-
Notifications
You must be signed in to change notification settings - Fork 10.2k
feat: v2 api hidden event types #22715
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?
feat: v2 api hidden event types #22715
Conversation
@RadheyMugdal is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe changes introduce support for a new optional boolean property, Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes were identified. All code changes directly relate to the objectives specified in the linked issue #22377. Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ 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)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 (
|
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (07/24/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (07/24/25)1 label was added to this PR based on Keith Williams's automation. "Add ready-for-e2e label" took an action on this PR • (08/08/25)1 label was added to this PR based on Keith Williams's automation. |
@RadheyMugdal can you pls attach a loom video showing your fix? |
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.
I am still getting the following type error. This issue is still not fixed. Can you pls look into it?
src/modules/organizations/event-types/services/output.service.ts:92:7 - error TS2345: Argument of type 'Input' is not assignable to parameter of type 'Input'.
Property 'hidden' is missing in type 'Input' but required in type 'Input'.
92 databaseEventType,
~~~~~~~~~~~~~~~~~
../../../node_modules/.prisma/client/index.d.ts:14553:7
14553 hidden: boolean
~~~~~~
'hidden' is declared here.
[8:37:38 am] Found 1 error. Watching for file changes.
Fixed this error in latest commit. Let me know if anything else is needed. |
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.
LGTM
E2E results are ready! |
What does this PR do?
This PR adds support for creating and updating hidden event types via API v2.
Summary of Changes
hidden?: boolean
field to:BaseCreateEventTypeInput
BaseUpdateEventTypeInput
hidden
field in:BaseEventTypeOutput_2024_06_14
getResponseEventType()
serviceMandatory Tasks (DO NOT REMOVE)
How should this be tested?
E2E tests have been added to cover the functionality:
Location:
apps/api/v2/src/ee/event-types/event-types_2024_06_14/controllers/event-types.controller.e2e-spec.ts
What’s covered:
hidden: true
and verifying it in the response.hidden: false
and verifying the updated value.