Skip to content
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

Prevent GCal from sending update #7920

Merged
merged 8 commits into from
Mar 27, 2023
Merged

Prevent GCal from sending update #7920

merged 8 commits into from
Mar 27, 2023

Conversation

joeauyeung
Copy link
Contributor

What does this PR do?

This PR fixes the double sending emails & double booking events on Google calendar.

Please see the Loom in the thread for more context.

Fixes # (issue)

Environment: Staging(main branch) / Production

Type of change

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

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@joeauyeung joeauyeung requested a review from a team March 23, 2023 21:26
@vercel
Copy link

vercel bot commented Mar 23, 2023

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

Name Status Preview Comments Updated
cal ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 27, 2023 at 2:11PM (UTC)
dhe ❌ Failed (Inspect) Mar 27, 2023 at 2:11PM (UTC)
inkblot ❌ Failed (Inspect) Mar 27, 2023 at 2:11PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
ui ⬜️ Ignored (Inspect) Visit Preview Mar 27, 2023 at 2:11PM (UTC)

@joeauyeung joeauyeung requested a review from zomars as a code owner March 23, 2023 21:28
@joeauyeung joeauyeung requested a review from a team March 23, 2023 21:28
Comment on lines 1659 to 1667

//delete original rescheduled booking (no seats event)
if (!eventType.seatsPerTimeSlot) {
await prisma.booking.delete({
where: {
id: originalRescheduledBooking.id,
},
});
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed to borrow this from #7910

@@ -133,6 +133,7 @@ export default class GoogleCalendarService implements Calendar {
calendarId: selectedCalendar,
requestBody: payload,
conferenceDataVersion: 1,
sendUpdates: "none",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Copy link
Member

Choose a reason for hiding this comment

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

@joeauyeung @zomars @emrysal are we really fine with these sideeffects?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, these warnings exists for typical applications "Create a booking" - it's not for booking software that sends booking invites on its own like we do 🙏

@github-actions
Copy link
Contributor

github-actions bot commented Mar 23, 2023

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 233.22 KB (-1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Sixty-nine Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/404 8.36 KB 241.58 KB 69.02% (+/- <0.01%)
/[user] 103.33 KB 336.55 KB 96.16% (+/- <0.01%)
/[user]/[type] 91.78 KB 325 KB 92.86% (+/- <0.01%)
/[user]/[type]/embed 91.81 KB 325.03 KB 92.86% (+/- <0.01%)
/[user]/book 183.34 KB 416.55 KB 119.02% (+/- <0.01%)
/[user]/embed 103.4 KB 336.61 KB 96.17% (+/- <0.01%)
/apps 167.05 KB 400.27 KB 114.36% (+/- <0.01%)
/apps/[slug] 190.78 KB 423.99 KB 121.14% (+/- <0.01%)
/apps/[slug]/[...pages] 392.19 KB 625.41 KB 178.69% (+/- <0.01%)
/apps/categories 151.95 KB 385.17 KB 110.05% (+/- <0.01%)
/apps/categories/[category] 155.82 KB 389.03 KB 111.15% (+/- <0.01%)
/apps/installed/[category] 196.92 KB 430.14 KB 122.90% (+/- <0.01%)
/auth/error 19.24 KB 252.46 KB 72.13% (+/- <0.01%)
/auth/forgot-password 25.59 KB 258.8 KB 73.94% (+/- <0.01%)
/auth/forgot-password/[id] 32.79 KB 266 KB 76.00% (+/- <0.01%)
/auth/login 40.06 KB 273.27 KB 78.08% (+/- <0.01%)
/auth/logout 7.56 KB 240.78 KB 68.79% (+/- <0.01%)
/auth/setup 79.41 KB 312.63 KB 89.32% (+/- <0.01%)
/availability 155.16 KB 388.38 KB 110.96% (🟡 +0.01%)
/availability/[schedule] 271.96 KB 505.18 KB 144.34% (+/- <0.01%)
/availability/troubleshoot 152.64 KB 385.86 KB 110.25% (+/- <0.01%)
/booking/[uid] 123.45 KB 356.67 KB 101.91% (+/- <0.01%)
/bookings/[status] 272.27 KB 505.48 KB 144.42% (+/- <0.01%)
/d/[link]/[slug] 91.43 KB 324.65 KB 92.76% (+/- <0.01%)
/d/[link]/[slug]/embed 91.46 KB 324.68 KB 92.77% (+/- <0.01%)
/d/[link]/book 182.99 KB 416.21 KB 118.92% (+/- <0.01%)
/event-types/[type] 382.25 KB 615.46 KB 175.85% (+/- <0.01%)
/getting-started/[[...step]] 303 KB 536.22 KB 153.20% (🟡 +0.01%)
/insights 386.12 KB 619.34 KB 176.95% (+/- <0.01%)
/more 151.58 KB 384.79 KB 109.94% (+/- <0.01%)
/settings/admin 157.04 KB 390.25 KB 111.50% (+/- <0.01%)
/settings/admin/apps 165.72 KB 398.94 KB 113.98% (+/- <0.01%)
/settings/admin/apps/[category] 165.71 KB 398.92 KB 113.98% (+/- <0.01%)
/settings/admin/flags 159.93 KB 393.14 KB 112.33% (+/- <0.01%)
/settings/admin/impersonation 157.32 KB 390.53 KB 111.58% (+/- <0.01%)
/settings/billing 157.15 KB 390.36 KB 111.53% (+/- <0.01%)
/settings/developer/api-keys 186.3 KB 419.52 KB 119.86% (+/- <0.01%)
/settings/developer/webhooks 159.64 KB 392.85 KB 112.24% (+/- <0.01%)
/settings/developer/webhooks/[id] 190.49 KB 423.71 KB 121.06% (+/- <0.01%)
/settings/developer/webhooks/new 190.35 KB 423.57 KB 121.02% (+/- <0.01%)
/settings/my-account/appearance 171.11 KB 404.33 KB 115.52% (+/- <0.01%)
/settings/my-account/calendars 191.33 KB 424.55 KB 121.30% (+/- <0.01%)
/settings/my-account/conferencing 162.91 KB 396.12 KB 113.18% (+/- <0.01%)
/settings/my-account/general 266.3 KB 499.52 KB 142.72% (+/- <0.01%)
/settings/my-account/profile 274.2 KB 507.41 KB 144.97% (🟡 +0.01%)
/settings/security/impersonation 159.19 KB 392.4 KB 112.12% (+/- <0.01%)
/settings/security/password 192.48 KB 425.7 KB 121.63% (+/- <0.01%)
/settings/security/sso 166.88 KB 400.1 KB 114.31% (+/- <0.01%)
/settings/security/two-factor-auth 161.64 KB 394.86 KB 112.82% (+/- <0.01%)
/settings/teams 156.78 KB 390 KB 111.43% (+/- <0.01%)
/settings/teams/[id]/appearance 171.13 KB 404.35 KB 115.53% (+/- <0.01%)
/settings/teams/[id]/billing 157.02 KB 390.23 KB 111.49% (🟡 +0.01%)
/settings/teams/[id]/members 297.02 KB 530.23 KB 151.50% (+/- <0.01%)
/settings/teams/[id]/onboard-members 49.94 KB 283.15 KB 80.90% (+/- <0.01%)
/settings/teams/[id]/profile 269.41 KB 502.62 KB 143.61% (+/- <0.01%)
/settings/teams/[id]/sso 166.97 KB 400.19 KB 114.34% (+/- <0.01%)
/settings/teams/new 92.68 KB 325.89 KB 93.11% (+/- <0.01%)
/signup 25.45 KB 258.67 KB 73.90% (🟡 +0.01%)
/team/[slug] 105.87 KB 339.09 KB 96.88% (+/- <0.01%)
/team/[slug]/[type] 91.43 KB 324.65 KB 92.76% (+/- <0.01%)
/team/[slug]/[type]/embed 91.46 KB 324.68 KB 92.77% (+/- <0.01%)
/team/[slug]/book 182.99 KB 416.21 KB 118.92% (+/- <0.01%)
/team/[slug]/embed 105.94 KB 339.16 KB 96.90% (+/- <0.01%)
/teams 151.8 KB 385.01 KB 110.00% (+/- <0.01%)
/video/meeting-ended/[uid] 14.67 KB 247.88 KB 70.82% (+/- <0.01%)
/video/meeting-not-started/[uid] 14.3 KB 247.51 KB 70.72% (+/- <0.01%)
/video/no-meeting-found 6.6 KB 239.82 KB 68.52% (+/- <0.01%)
/workflows 164.69 KB 397.91 KB 113.69% (+/- <0.01%)
/workflows/[workflow] 293.89 KB 527.1 KB 150.60% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@deploysentinel
Copy link

deploysentinel bot commented Mar 23, 2023

Current Playwright Test Results Summary

✅ 60 Passing - ⚠️ 3 Flaky

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

(Last updated on 03/27/2023 02:21:35pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: d78be73

Started: 03/27/2023 02:12:47pm UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user can add multiple organizer address
Retry 2Retry 1Initial Attempt
4.17% (8) 8 / 192 runs
failed over last 7 days
32.81% (63) 63 / 192 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Routing Link - Reporting and CSV Download
Retry 1Initial Attempt
3.45% (6) 6 / 174 runs
failed over last 7 days
28.16% (49) 49 / 174 runs
flaked over last 7 days
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
0.57% (1) 1 / 176 run
failed over last 7 days
7.39% (13) 13 / 176 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Member

@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.

Ship it

Copy link
Contributor

@alannnc alannnc left a comment

Choose a reason for hiding this comment

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

Seems like the way to do it now.

@PeerRich PeerRich enabled auto-merge (squash) March 25, 2023 08:42
@PeerRich PeerRich disabled auto-merge March 25, 2023 08:42
Co-authored-by: Omar López <zomars@me.com>
@emrysal emrysal enabled auto-merge (squash) March 27, 2023 10:33
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants