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: support for platform wide webhooks #14092
feat: support for platform wide webhooks #14092
Conversation
@SomayChauhan is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
602e019
to
69513b1
Compare
2ee4320
to
7ecb109
Compare
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (03/15/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (03/15/24)1 label 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.
Left two comments that need to be addressed first 🙏
|
||
if (input.eventTypeId) { | ||
andCondition.push({ eventTypeId: input.eventTypeId }); | ||
} else if (input.teamId) { | ||
andCondition.push({ teamId: input.teamId }); | ||
} else if (ctx.user.role == "ADMIN") { | ||
andCondition.push({ platform: true }); |
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.
with this, the ADMIN won't be able to delete any of their other event types anymore
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 see 🤔
@@ -127,7 +143,6 @@ const WebhooksList = ({ webhooksByViewer }: { webhooksByViewer: WebhooksByViewer | |||
<WebhookListItem | |||
key={webhook.id} | |||
webhook={webhook} | |||
readOnly={group.metadata?.readOnly ?? false} |
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.
why was that removed?
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.
A mistake, sorry!!
@SomayChauhan can you take a look at the type error? |
fixed 👍 |
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.
Great work, everything looks good now 🙌🏻
What does this PR do?
LOOM
Fixes #13587
Type of change
How should this be tested?
Mandatory Tasks