-
Notifications
You must be signed in to change notification settings - Fork 10.4k
refactor: update v2 event type booking fields #22634
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
base: main
Are you sure you want to change the base?
refactor: update v2 event type booking fields #22634
Conversation
Caution Review failedFailed to post review comments. Configuration used: CodeRabbit UI 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (3)apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.ts (2)
apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.ts (1)
apps/api/v2/swagger/documentation.json (1)undefined <retrieved_learning> ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
WalkthroughThis change introduces two new repository methods for selectively fetching booking fields and metadata for event types. The main update revises the booking fields update logic in the event type service: instead of replacing all booking fields when an update request is made, the new implementation merges the input booking fields with those already stored, matching by slug or name, and preserving or updating fields as appropriate. The OpenAPI documentation is also updated, simplifying and clarifying property descriptions for booking fields and their behaviors. No changes are made to the structure or types of the schemas, only to their descriptions. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
apps/api/v2/src/ee/event-types/event-types_2024_06_14/services/input-event-types.service.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/apps/api/v2".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "apps/api/v2/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. apps/api/v2/src/ee/event-types/event-types_2024_06_14/event-types.repository.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "/apps/api/v2".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in "apps/api/v2/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. ✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@weknowyourgame is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (07/18/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (07/18/25)1 label was added to this PR based on Keith Williams's automation. |
2f4f177
to
ce9fafe
Compare
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.
hey @weknowyourgame thanks for the pr. Could you please add a Postman test to help verify the change? It’ll make it easier to confirm the fix end-to-end.
This PR is being marked as stale due to inactivity. |
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.
This code looks a bit complex and hard to understand, it would be good to extract repeated logic into utility functions and include tests for changes.
This PR is being marked as stale due to inactivity. |
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?