Skip to content

fix: webhooks for managed event types#10958

Merged
zomars merged 5 commits into
mainfrom
fix/webhooks-managed-event-types
Aug 26, 2023
Merged

fix: webhooks for managed event types#10958
zomars merged 5 commits into
mainfrom
fix/webhooks-managed-event-types

Conversation

@CarinaWolli
Copy link
Copy Markdown
Member

What does this PR do?

Webhooks for managed event types should trigger for team webhooks and user webhooks. Before they only triggerd for team webhooks. Also fixes that listBookings (for Zapier) now returns bookings from managed events when using user or team API key.

Fixes #10940

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

  • Create a managed event type
  • Create a team webhook and a user webhook that triggers when booking is created (use webhook.site)
  • Book managed event type, see that webhooks triggered twice (once for users, once for team)
  • Test other webhook triggers + test booking normal user event type and team event type (round robin, collective)

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 26, 2023 0:24am
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 26, 2023 0:24am
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 26, 2023 0:24am
ui ❌ Failed (Inspect) Aug 26, 2023 0:24am
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2023 0:24am
qa ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2023 0:24am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 25, 2023

Thank you for following the naming conventions! 🙏

@github-actions github-actions Bot added linear Sync Github Issue from community members to Linear.app Medium priority Created by Linear-GitHub Sync labels Aug 25, 2023
@zomars zomars added the core area: core, team members only label Aug 25, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 25, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link
Copy Markdown

deploysentinel Bot commented Aug 25, 2023

Current Playwright Test Results Summary

✅ 122 Passing - ⚠️ 3 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 08/26/2023 12:26:17am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: ed81726

Started: 08/26/2023 12:24:38am UTC

⚠️ Flakes

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
0.43% (1) 1 / 230 run
failed over last 7 days
99.13% (228) 228 / 230 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration Can book a paid booking
Retry 1Initial Attempt
0.87% (2) 2 / 231 runs
failed over last 7 days
6.49% (15) 15 / 231 runs
flaked over last 7 days

📄   apps/web/playwright/webhook.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED can submit a form and get a submission event
Retry 1Initial Attempt
1.32% (3) 3 / 227 runs
failed over last 7 days
24.23% (55) 55 / 227 runs
flaked over last 7 days

View Detailed Build Results


Comment thread packages/app-store/zapier/api/subscriptions/listBookings.ts Outdated
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only linear Sync Github Issue from community members to Linear.app Medium priority Created by Linear-GitHub Sync

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

trigger user and team webhooks for managed events

2 participants