* perf: Cache app store imports
* Added a console log to see when imports happen
* Discard changes to yarn.lock
---------
Co-authored-by: Omar López <zomars@me.com>
* perf: Avoid leading wildcard for Salesforce
* use limit of 1 since we need 1 record
* use LOWER to check exact website match
* Revert the usage of LOWER since we need wider searches
* Add limits to queries
* Update packages/app-store/salesforce/lib/CrmService.ts
* Remove unneeded LIMIT statements
* Update packages/app-store/salesforce/lib/CrmService.ts
* Apply suggestions from code review
* Update packages/app-store/salesforce/lib/CrmService.ts
---------
Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com>
* chore: Add perf tracing for handleNewBooking
* Added a few more to the event manager
* Added the sentry wrapper that enables perf tracing
* Revert "Added a few more to the event manager"
This reverts commit ccf3ee5200466b8b1d51f5663363fbb9dfd9a06f.
* Fixed where we wrap sentry
* Reverse sentry wrapper
* revert: "feat: refactor filters on insights response table (#17796)"
This reverts commit 5d88858995.
* Put back the search columns and options english terms
* chore: Remove Sentry source maps
* Using .env to control Sentry source maps
* Trying with sourcemaps property
* Turned silent off for testing
* Completely turned off devtool
## What does this PR do?
Adds ability to send API v2 logs to Axiom.
## Mandatory Tasks (DO NOT REMOVE)
- [x] I have self-reviewed the code (A decent size PR without self-review might be rejected).
- [x] N/A - I have updated the developer docs in /docs if this PR makes changes that would require a [documentation change](https://cal.com/docs). If N/A, write N/A here and check the checkbox.
- [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.
## How should this be tested?
- Add the AXIOM_DATASET and AXIOM_TOKEN variables and run the API locally. Ensure the logs flow through to Axiom.
* chore: Add Sentry perf tracing
* Just to build
* perf: Add Sentry perf tracing
* Removed the extra integrations tracing config
* Got spans working
* Now only tracing individual endpoints
* Removed check for booking event type
* Fixed types
* Added back for spans
* Consolidate sentry imports
* Added more traces
* Moved the start of the span
* perf: Load OOO in bulk for getSlots
* Added back the failsafe of running the query when no initial data is passed in
* Changed length check to be more explicit
* chore: Add Docs build to CI
* Added build-docs to flow
* Updated to run in the /docs folder
* Made web app build have consistent name
* Added a kill after the command runs
* Test the build
* Added it to the PR flow
* feat: Add Mintlify docs
* Fixed the mint.json for v2
* Fixed versioning issue
* Add titles to ICS feed endpoints
* Added errors to v1
* Added rate-limit to API v1
* feat: added v1-v2 differences and v1 auth
* Trying to eliminate reasons for v1 not showing on publication
* Used the swagger openapi validator
* remove deprecated v1 endpoints
* Moved api docs into new folders without api-reference
* Renamed api to api-reference
* removed the versioning
* Got rid of anchor warnings
* Fixed naming
* Just as a test - using the same v2 openapi spec for v1 reference
* Removed 'externalDocs' from v1
* Removed securitySchemes
* Updated the diff between v1/v2
* Added v1 in front of /attendees to test
* Moved paths up and removed externalDocs
* Testing - Added content to the response
* Reduced paths to 1
* Testing: anything at this point
* Fixed validation
* Moved the other .mdx files to see if that's disrupting something
* Trying with a tab
* Empty tags array
* Added back servers field
* Removed all other schemas
* Removed v1 for now
* Added platform docs
* Language fixes
* Added v1 back
* add API V1 response for attendees
* remove unnecessary endpoint docs in API V1
* Removing platform and API for now
* Updated v2 openapi doc
---------
Co-authored-by: Syed Ali Shahbaz <alishahbaz7@gmail.com>
* feat: Improve API v2 docs
* Consistency
* Made the descriptions complete sentences with period
* Update apps/api/v2/src/ee/schedules/schedules_2024_06_11/controllers/schedules.controller.ts
* chore: Add summaries for all API v2 endpoints
* Updated to Get all calendars
* Fix build issues
* Removed unneeded Swagger UI options
* Fix issues with OpenAPI spec
* chore: Use no isolation and pooling for unit tests
* Added the params to main command
* Added back the base checkout
* Remove pooling
* Run against an 8vCPU machine
* Added pool=threads back
* Setting on 4vCPU since 8 is not needed due to workflow dependencies
* chore: Add Prisma extension to block updateMany with undefined 'in'
* Fix type
* types
* Added check for deleteMany as well
* Improved in check
* type
* Updated check to only check undefined and not isArray
* Renamed the guard
* another rename
* Changed undefined check to use typeof
* Types
* Added check
* Update packages/prisma/extensions/disallow-undefined-in-delete-update-many.ts
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
* Added unit tests
* Added a good case
* Rename
* Rename fix
* Types
* Temporarily disabling the extension for testing
* Added back the extension
* Trying to also log to see if there are swallowed errors
* Update
* removed unused params
* removed console.log
---------
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
* trying to create generic function for ors
* chore: Add generic function to run separate queries for OR
* Refactored getTotalNoShows to use separate queries
* Finished noshows
* Made the no shows logic handle single result
* perf: Separate OR clauses from Insights counts
* fixed bug with delete statement
* Fixed types
* Reverted unneeded change
* Need to use += so we capture data from all queries