Commit Graph
100 Commits
Author SHA1 Message Date
Keith WilliamsandGitHub 5beb039003 fix: Caching key for CI database (#14932)
* fix: Caching key for db

* Fix line length
2024-05-07 22:21:39 +00:00
Keith WilliamsandGitHub 63dd357664 chore: Removed duplicate production build (#14836)
* chore: Removed duplicate production build

* fix references

* Move env vars to top level of e2e

* job renaming

* Added env vars to top level of all e2e jobs

* Removed part of cache key that causes issues and is moot

* Using buildjet hardware so the caching works

* clean up
2024-05-07 12:56:19 -07:00
Keith WilliamsandGitHub 83917e8655 chore: Add build of API v2 to PR checks (#14902)
* chore: Add build of API v2 to PR checks

* Actually added the v2 build to the pipeline...

* Added back the original yarn install

* Updated the main PR flow to require API builds before tests
2024-05-07 09:05:49 -03:00
Keith WilliamsandGitHub 1467815c3f chore: Use 4vCPU BuildJet hardware for type checks (#14900) 2024-05-06 10:31:37 -03:00
7254cd97e2 chore: Use better buildjet hardware for e2e (#14835)
* chore: Use better buildjet server for e2e

* Backed down buildjet hardware where not needed

---------

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
2024-05-06 12:27:14 +00:00
Keith WilliamsandGitHub 97b2816897 v4.0.6 (#14865) 2024-05-02 22:23:46 +00:00
Keith WilliamsandGitHub 73a79cf29b fix: Improve French translations (#14718) 2024-04-23 17:35:56 -04:00
Keith WilliamsandGitHub ae64d7ba82 fix: API v2 recurring spelling (#14620) 2024-04-16 18:58:36 -03:00
Keith WilliamsandGitHub 9dd2dbff19 v4.0.1 (#14618) 2024-04-16 21:05:18 +00:00
Keith WilliamsandGitHub 6a75ef86b0 v4.0.0 2024-04-14 20:02:28 -03:00
Keith WilliamsandGitHub 8b31b9aa05 fix: Production deploys (#14578) 2024-04-14 15:04:30 +00:00
Keith WilliamsandGitHub ac3d7c9fae fix: Integrate maintenance mode with current middleware (#14571)
* fix: API v1 maintenance mode

* Removed old middleware

* Refactor to follow same pattern as other middleware

* Added missing import
2024-04-13 20:27:22 +01:00
Keith WilliamsandGitHub fd193e651d revert: "fix: view team bookings (#14079)" (#14561)
This reverts commit f86c448359.
2024-04-13 00:53:05 +00:00
Keith WilliamsandGitHub ac77fe360d fix: Invalid 403 forbidden for event-types GET (#14528) 2024-04-11 19:15:21 +00:00
Keith WilliamsandGitHub 4335c9ab92 v3.9.7 2024-04-09 09:37:32 -03:00
Keith WilliamsandGitHub 84fdd03603 fix: Return team event type (#14464) 2024-04-08 18:35:41 -03:00
Keith WilliamsandGitHub 64b2397fa2 v3.9.6 2024-04-08 12:42:15 -03:00
Keith WilliamsandGitHub 306f53dec7 fix: Typo in OAuth clients (#14292)
* fix: Typo in OAuth clients

* Update index.tsx
2024-04-02 15:02:26 -03:00
Keith WilliamsandGitHub ed745623eb fix: Organization check (#14251) 2024-03-28 16:13:10 +00:00
Keith WilliamsandGitHub 5109075494 v3.8.9 2024-03-12 16:31:33 -03:00
Keith WilliamsandGitHub 52791599e1 Revert "fix: view team bookings (#13591)" (#14066)
This reverts commit 4585199b5e.
2024-03-12 19:01:41 +00:00
Keith WilliamsandGitHub b06e46342c v3.8.8 2024-03-12 13:03:00 -03:00
Keith WilliamsandGitHub 157f633ef2 chore: Reduce insights range to 7 days (#13991) 2024-03-06 13:02:02 +00:00
Keith WilliamsandGitHub 7f53db601d chore: Add index to Team.parentId (#13950) 2024-03-04 15:19:24 -03:00
Keith WilliamsandGitHub 1cc9f1d25d chore: Increase API rate limit (#13970) 2024-03-04 16:44:39 +00:00
Keith WilliamsandGitHub 8e97444129 v3.8.3 2024-02-22 10:16:18 -03:00
Keith WilliamsandGitHub aa2db562b8 fix: Bookings API (#13815) 2024-02-21 16:05:53 -07:00
Keith WilliamsandGitHub 192603a1fa fix: No available users found near midnight (#13801)
* fix: No available users found near midnight

* Update date-ranges.ts
2024-02-21 10:58:38 -07:00
Keith WilliamsandGitHub a3d969680f chore: Including original start and end dates from request in log (#13800) 2024-02-21 13:22:42 -03:00
Keith WilliamsandGitHub 75d5576e17 v3.8.2 2024-02-20 21:41:13 -03:00
Keith WilliamsandGitHub 0a6dde4fcc chore: Add extra logging for no available users error (#13791)
* chore: Add extra logging for no available users error

* Changed warn to info
2024-02-20 23:51:31 +00:00
71574488c5 fix: No available users found (#13738)
* fix: No available users found

* Update getUserAvailability.ts

* Update getUserAvailability.ts

* Update handleNewBooking.ts

* Reusing the parsed dates throughout the full stack

* Fixed typo

* Added unit tests for stringToDayjs

* Fixing types

* Reverted the getSchedule utc change since that endpoint takes in UTC formatted dates but with a given timezone

* chore: Add test replicating 'no available users' error

* Test is passing

* Name clarifications

* Test clean up

* Update packages/features/bookings/lib/handleNewBooking.ts

Co-authored-by: Omar López <zomars@me.com>

* Update handleNewBooking.ts

* Fixed issue where date overrides ending at midnight don't allow bookings

* Removed comment

---------

Co-authored-by: Omar López <zomars@me.com>
2024-02-20 12:15:05 -03:00
c7e78cc181 fix: AI build (#13657)
* fix: AI build

* Updated zod to 3.22.4

* yarn.lock

* Updated yarn.lock to prevent next/tw downgrade

---------

Co-authored-by: Peer Richelsen <peer@cal.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2024-02-13 16:10:08 +00:00
Keith WilliamsandGitHub a5d99bbec9 chore: Remove platform from label ignore list (#13618) 2024-02-09 12:42:56 -03:00
Keith WilliamsandGitHub 0990549e7f perf: Don't process date overrides outside of requested boundaries (#13495)
* perf: Don't process date overrides outside of requested boundaries

* Added ability to skip override calculations when not used

* Only instantiating utc date for overrides once

* Removed performance tracing

* Cleanup

* Fixed broken tests

* Fix type

* In process of fixing types

* Types

* Fixed types

* Removed unnecessary performance.now() call

* Changed override date check to use isBetween

* Attempting to fix availability test

* Put code back to test availability

* Put back isBetween because confirmed it wasn't triggering the new test failures

* Removed date check to see if this is breaking it

* Put the code back since the test failed without it too

* Skipping test to unblock pipeline unless research is done

* Removed steps to test

* Removing the piece around the troubleshooter

* 1 more try

* Adding an extra wait

* Took out the boolean check to see if that's the issue

* Put back the check

* Trying to isolate the problem

* Changed how the test loads the troubleshooter

* Changed to OR to capture range better

* Using the proper date instead of 1/1/1970

* Update availability.e2e.ts
2024-02-07 03:21:43 +00:00
Keith WilliamsandGitHub 512628e8ab perf: Load bookings used for limits in bulk (#13474) 2024-02-06 16:56:05 -07:00
Keith WilliamsandGitHub 903a154dbc v3.7.14 2024-02-06 19:52:05 -03:00
Keith WilliamsandGitHub 925dc04f1c v3.7.13 2024-02-06 17:07:05 -03:00
Keith WilliamsandGitHub 556787b93b perf: yarn patch dayjs (#13542)
* perf: Use overriden tz function

* Renamed .js to .ts

* Trying to use a type file for timezone

* perf: Yarn patch dayjs

* Fixed import casing
2024-02-05 19:53:15 +00:00
Keith WilliamsandGitHub 910f5f906f v3.7.10 2024-01-30 08:27:06 -03:00
Keith WilliamsandGitHub 0af780aac9 fix: before/after event buffers not rendering correctly (#13451) 2024-01-29 15:29:26 +00:00
Keith WilliamsandGitHub 63feb721ea fix: Deployments on main (#13450) 2024-01-29 10:00:53 -03:00
Keith WilliamsandGitHub 17db644be1 v3.7.9 2024-01-25 14:51:08 -03:00
e4037be79a feat: Limit the amount of days to load for a schedule (#13282)
* feat: Disallow next month prefetching in booker

* renamed to include NEXT_PUBLIC

* fixed boolean expression

* Now using a variable length of days to load

* Type fixes

* Now opening all dates to be clickable

* Added turbo.json var and updated example env

* Fixed issue with selectedDate being null when first loading the page

* Updated description of variable

* Made constant for the booking days

* Type fix

* Setting the days to load for weekly view to 7

* feat: add ui and ability to fetch more on click

* feat: add ui and ability to fetch more on click

* fix: loader

* fix: banner detection

* Update packages/features/bookings/Booker/Booker.tsx

* fix: types

* Not showing HavingTroubleFindingTime component when the schedule is loading

* Only enabled on monthly view

* Correctly load initial date

* Type fix

* Fixed bugs around triggering multiple requests

* Added case for when there is no selectedDate but the month has been specified

* Types

* More types

* Check for undefined

* More typing

* More typing

---------

Co-authored-by: sean-brydon <sean@cal.com>
Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
2024-01-25 14:48:46 -03:00
Keith WilliamsandGitHub 9b22f44cba v3.7.8 2024-01-24 16:01:51 -03:00
24a4646fdc fix: sync/async calls in getSchedule (#13387)
* Fixed the sync/async calls

* fixing type errors

* fixing more type errors

---------

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
2024-01-24 10:05:25 -05:00
Keith WilliamsandGitHub 0860036607 v3.7.7 2024-01-24 11:06:38 -03:00
Keith WilliamsandGitHub 5ca216b922 v3.7.3 2024-01-23 09:34:58 -03:00
Keith WilliamsandGitHub df91dacc3f v3.7.2 2024-01-17 10:59:04 -03:00
Keith WilliamsandGitHub 7978f0317a chore: Revert bundle analysis text formatting (#13256) 2024-01-16 14:57:45 +00:00
Keith WilliamsandGitHub a7b38b1b58 feat: Allow admins to filter bookings only by attendee emails (#13236)
* chore: Allow admins to filter bookings only by attendee emails

* Fix type error
2024-01-15 23:36:39 +00:00
Keith WilliamsandGitHub 18f637d94c v3.7.0 2024-01-15 14:23:30 -03:00
Keith WilliamsandGitHub 5950c5a756 fix: Bundle analysis message (#13161) 2024-01-11 13:30:14 +00:00
Keith WilliamsandGitHub 993f92acba chore: Ignore admin and devops team labels (#13162) 2024-01-11 09:46:42 -03:00
Keith WilliamsandGitHub b69d885ee6 fix: Bundle analysis commenting (#13116)
* fix: Bundle analysis commenting

* Remove if on build step for testing

* Remove GitHub event number check for testing

* Reverted changes for testing
2024-01-10 14:35:27 +00:00
Keith WilliamsandGitHub 7dc7f949cf chore: Upgrade deprecated parts of bundle analysis (#13104)
* chore: Upgrade deprecated parts of bundle analysis

* Added workflow_dispatch to allow for manual runs

* Removed conditions just for testing
2024-01-09 11:13:41 +00:00
Keith WilliamsandGitHub 15b0e0c5bd chore: Change PR template to have bullet points instead of checkboxes for type (#13096) 2024-01-08 13:59:03 +00:00
87cb8e918f chore: Add E2E test suite back to PRs (#13093)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2024-01-08 12:36:47 +00:00
Keith WilliamsandGitHub c07b456b2d chore: Stop closing stale PRs (#13092) 2024-01-08 12:19:52 +00:00
Keith WilliamsandGitHub c19799e275 chore: Remove invalid DATABASE_URL 'with' value (#13027) 2024-01-04 01:39:45 -03:00
Keith WilliamsandGitHub 4c4fc9e38b chore: Fix NODE_OPTIONS error (#13024) 2024-01-04 01:39:17 -03:00
Keith WilliamsandGitHub 2220778e6b chore: Upgrade buildjet cache action to v3 (#13026) 2024-01-04 14:38:48 +10:00
Keith WilliamsandGitHub 0f707a55b0 chore: Upgrade upload-artifact action to v4 (#13025) 2024-01-04 14:38:27 +10:00
Keith WilliamsandGitHub 574a4a847d chore: Allow labeler action to use workflow_dispatch (#12993)
* chore: Update team labeler to workflow_dispatch

* Fixed conflict
2024-01-03 20:35:16 -03:00
Keith WilliamsandGitHub 71e57bafde chore: Remove need for force merges (#13021) 2024-01-03 19:51:24 +00:00
Keith WilliamsandGitHub 4dba72fecb fix: Permissions issue with team labeler (#12992)
* fix: Permissions issue with team labeler

* Made the job runnable
2024-01-02 22:39:39 +00:00
Keith WilliamsandGitHub e39e6ccf79 chore: Merge PR labeler actions (#12987) 2024-01-02 16:07:58 +00:00
Keith WilliamsandGitHub 1a3e4d10c0 chore: Update permissions used for assigning team labels (#12984)
* chore: Inherit secrets for assigning team labels

* Added workflow_call for testing

* Added this branch for testing

* Moved secrets label

* Trying to set permissions differently

* Removed testing branch
2024-01-02 14:34:59 +00:00
Keith WilliamsandGitHub f7b257750a v3.6.1 2023-12-22 08:28:33 -05:00
Keith WilliamsandGitHub b384e4a9d8 chore: Reduced shard count to 5 for E2E (#12901) 2023-12-20 18:31:27 +00:00
Keith WilliamsandGitHub 099f36deeb fix: Workflow files for E2E naming issue (#12859) 2023-12-18 18:15:14 +00:00
Keith WilliamsandGitHub 09f804413b chore: Moved e2e suite to run on pushes to main (#12819)
* chore: Moved e2e suite to run on pushes to main

* Update yarn.lock

* Small cleanup

* Moved production build without database to pre-release

* Added name to script

* Added changes, lint and build dependencies
2023-12-18 17:48:55 +00:00
Keith WilliamsandGitHub 2352bb1075 chore: Wire up Sentry for API (#12756) 2023-12-12 14:57:39 -08:00
Keith WilliamsandGitHub 3534e3c224 Revert "perf: Increased memory/vCPU for slots perf (#12387)" (#12389)
This reverts commit 0b96ef5476.
2023-11-16 20:40:42 +02:00
Keith WilliamsandGitHub 0b96ef5476 perf: Increased memory/vCPU for slots perf (#12387) 2023-11-16 11:57:37 -03:00
Keith WilliamsandGitHub 5ab0b85e52 chore: Reduce slots API serverless memory configuration (#12270)
* chore: Reduce API serverless memory configuration

* Only limit to slots for now

* Moved the vercel.json file to root

* More fun with vercel.json files

* Trying new pattern

* Using a pattern that matches the Vercel deployment summary function name

* Trying to set the memory directly in the handler file

* Trying it on all functions

* Changed glob

* Moved vercel.json file to root

* Trying a new glob

* Give me all functions

* Trying just * for all functions

* Trying again...

* Putting the config on the defaultResponder

* Seeing if web app takes setings

* Changed .js to .ts

* Changed root path

* Added back vercel.json now that the path is changed

* Reduced API slots memory to 512

* Removed unneeded code changes'

* Update defaultResponder.ts
2023-11-13 15:37:26 +00:00
Keith WilliamsandGitHub e4281a852a feat: Add Sentry to edge (#12304) 2023-11-10 08:47:55 -03:00
Keith WilliamsandGitHub 2236dfe411 v3.4.8 2023-11-09 14:43:25 -03:00
Keith WilliamsandGitHub f7eb86577c fix: Sentry warnings for startTransaction (#12300) 2023-11-09 12:55:53 -03:00
09fc7e1a4c fix: Remove count from query to update schedule (#12287)
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
2023-11-08 14:47:33 -03:00
Keith WilliamsandGitHub 5c8abbb3e9 v3.4.7 2023-11-07 15:07:42 -03:00
2e3b3257db feat: Add Sentry (#12155)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
2023-11-07 13:18:25 -03:00
Keith WilliamsandGitHub 51fd4102ae v3.4.6 2023-10-31 17:25:46 -03:00
Keith WilliamsandGitHub b724d367fc v3.4.5 2023-10-26 10:38:57 -03:00
Keith WilliamsandGitHub 55a8a0d2d3 v3.4.3 2023-10-20 13:53:48 -03:00
Keith WilliamsandGitHub 5e3c0cdea1 v3.4.2 2023-10-19 12:31:00 -03:00
Keith WilliamsandGitHub 8a8d284113 fix: API cold boot issues (#11740) 2023-10-06 19:17:07 +01:00
Keith WilliamsandGitHub a2df323cf8 fix: credential sync app lookup (#11530) 2023-09-27 17:50:16 +01:00
bd21b2dfe1 fix: Import prisma (#11369)
Co-authored-by: zomars <zomars@me.com>
2023-09-14 19:47:25 +00:00
84408025ed perf: pre-load booking data for all users (#11243)
* perf: pre-load booking data for all users

* Fixing property issues

* Fixes

* Removed unwanted console.log

* Made comment for intention of refactor more clear

* fix: types

* _count is optional

* Assign to const bookings

* Added mock for prisma booking

* Fixed unit tests

* Added lint ignore for prisma field

* Update bookingScenario.ts

* Fix linting

---------

Co-authored-by: Alex van Andel <me@alexvanandel.com>
2023-09-12 14:12:25 +01:00
b4b90f2d27 perf: Removed unused queries for user event types (#10568)
* perf: Removed unused queries for user event types

* Added empty children array

* Refactor to clean up

* Fixing type issue

* Removed extra call to get raw event types

* Temporarily putting children back

* Removing include from children

* Added check for children

* Put children back for testing

---------

Co-authored-by: Alan <alannnc@gmail.com>
2023-09-05 11:35:02 -07:00
Keith WilliamsandGitHub d55b4b051a perf: Fix slowest db query (again) (#10954) 2023-08-25 14:27:37 +03:00
Keith WilliamsandGitHub b4b38b9bc3 v3.2.3 2023-08-24 17:16:02 +03:00
43b3d68447 chore: Don't render certain components when running meticulous tests (#10772)
* chore: Don't render credits when running meticulous tests

* fix: type window Meticulous

* fix: window reference error

* chore: window interface

* chore: disable tzdialog popup on meticulous

* chore: IS_VISUAL_REGRESSION_TESTING

* fix: constants

* fix: only run on preview builds

---------

Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
2023-08-24 13:42:53 +05:30
3f273235a6 perf: Cache translations per language/per release (#10843)
Co-authored-by: zomars <zomars@me.com>
2023-08-18 17:46:17 -07:00
Keith WilliamsandGitHub 201a9d9356 perf: Fix slowest db query (#10842) 2023-08-18 17:36:57 +02:00
Keith WilliamsandGitHub 06857a4a69 perf: Remove duplicate call for user event types (#10770)
* perf: Remove duplicate call for user events

* Removed unneeded .map() call

* Remove yarn.lock change

* Renamed variable for clarity
2023-08-15 15:46:24 +01:00
Keith WilliamsandGitHub e6ae69a20f chore: Remove env file cache (#10297) 2023-07-28 08:24:53 -07:00
Keith WilliamsandGitHub eb93e81baf chore: Updated Docker release workflow to use environment variable (#10345) 2023-07-25 16:15:56 +05:30
Keith WilliamsandGitHub e4c49d0e0b fix: Added step to create env file for bundle analysis (#10224) 2023-07-18 09:20:17 -07:00