-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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: get org bookings endpoint api-v2 #20462
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
E2E results are ready! |
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.
Thank you for the awesome work! I'm really happy how clear this looks compared to before.
apps/api/v2/src/ee/bookings/2024-08-13/controllers/bookings.controller.ts
Outdated
Show resolved
Hide resolved
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.
Looking great 👍
What does this PR do?
Add endpoint to get bookings of an organization as an ORG_OWNER or ORG_ADMIN.
it should return all the bookings where members of the org are either within the Hosts or within the Attendees
refactored getBookings to be more readable
also now we fetch bookings where members of your team/org are attendees if you are team/org owner/admin
we now throw error 403 when trying to filter by members that are not within your org/team and 400 when trying to filter by non existing event-types
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
Mandatory Tasks (DO NOT REMOVE)