-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: checkbox to count managed events for team-wide limits #16923
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
@@ -369,10 +429,10 @@ describe( | |||
|
|||
const { req: req2 } = createMockNextJsRequest({ | |||
method: "POST", | |||
body: mockBookingData1, | |||
body: mockBookingData2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the wrong mockBookingData was used here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename the variable to some self-explanatory to prevent this from happening again?
@@ -468,10 +557,9 @@ describe( | |||
|
|||
const { req: req2 } = createMockNextJsRequest({ | |||
method: "POST", | |||
body: mockBookingData1, | |||
body: mockBookingData2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, wrong mockBookingData was used
@@ -123,6 +129,8 @@ const _getBusyTimesFromBookingLimits = async (params: { | |||
teamId, | |||
user, | |||
rescheduleUid, | |||
includeManagedEvents, | |||
timeZone, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (10/04/24)1 reviewer was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Waiting on Checks. 🙏🏽
packages/features/bookings/lib/handleNewBooking/global-booking-limits.test.ts
Outdated
Show resolved
Hide resolved
@@ -369,10 +429,10 @@ describe( | |||
|
|||
const { req: req2 } = createMockNextJsRequest({ | |||
method: "POST", | |||
body: mockBookingData1, | |||
body: mockBookingData2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we rename the variable to some self-explanatory to prevent this from happening again?
E2E results are ready! |
What does this PR do?
Adds a checkbox to team-wide bookings limits so admins can choose if bookings from managed event types are counted for the time-wide booking limits.
Also fixes the following bug:
How to reproduce bug?
Mandatory Tasks (DO NOT REMOVE)