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

fix: updating workflow with new step and new active event type #12592

Merged
merged 4 commits into from
Nov 29, 2023

Conversation

CarinaWolli
Copy link
Member

@CarinaWolli CarinaWolli commented Nov 29, 2023

What does this PR do?

Fixes issue that a workflow with an added step and a new active event types couldn't be saved because booking.findMany() failed.

Type of change

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

How should this be tested?

  • Create Workflow with before event trigger
  • Add a step
  • add an event type in the dropdown
  • Test if saving the workflow is successful

Copy link

vercel bot commented Nov 29, 2023

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 5:22pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 5:22pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2023 5:22pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 5:22pm
cal-demo ⬜️ Ignored (Inspect) Nov 29, 2023 5:22pm
qa ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 5:22pm
ui ⬜️ Ignored (Inspect) Visit Preview Nov 29, 2023 5:22pm

Copy link
Contributor

github-actions bot commented Nov 29, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@@ -629,11 +621,9 @@ export const updateHandler = async ({ ctx, input }: UpdateOptions) => {
});

if (addedSteps) {
const eventTypesToCreateReminders = activeOn.map((activeEventType) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

this resulted in having null and undefined values in eventTypesToCreateReminders which made booking.findMany() from Line 644 fail

@CarinaWolli CarinaWolli marked this pull request as ready for review November 29, 2023 17:00
@CarinaWolli CarinaWolli added workflows area: workflows, automations Medium priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Nov 29, 2023
@CarinaWolli CarinaWolli requested a review from a team November 29, 2023 17:00
Copy link
Contributor

📦 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! 🙌

Copy link

deploysentinel bot commented Nov 29, 2023

Current Playwright Test Results Summary

✅ 336 Passing - ⚠️ 23 Flaky

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

(Last updated on 11/29/2023 05:18:31pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 82c2e6a

Started: 11/29/2023 05:09:37pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking-seats.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking with Seats Attendees can cancel a seated event time slot
Retry 2Retry 1Initial Attempt
0.34% (1) 1 / 294 run
failed over last 7 days
2.04% (6) 6 / 294 runs
flaked over last 7 days

📄   apps/web/playwright/booking/selectQuestion.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Select Question and Number Question Select required and Number required
Retry 1Initial Attempt
0% (0) 0 / 294 runs
failed over last 7 days
2.72% (8) 8 / 294 runs
flaked over last 7 days

📄   apps/web/playwright/locale.e2e.ts • 13 Flakes

Top 1 Common Error Messages

null

13 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
unauthorized user sees correct translations (de) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (ar) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (zh) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-CN) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (zh-TW) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (pt) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (pt-br) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.70% (-166) -166 / 298 runs
failed over last 7 days
55.70% (166) 166 / 298 runs
flaked over last 7 days
unauthorized user sees correct translations (es-419) should use correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.52% (-166) -166 / 299 runs
failed over last 7 days
55.52% (166) 166 / 299 runs
flaked over last 7 days
authorized user sees correct translations (de) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-53.87% (-160) -160 / 297 runs
failed over last 7 days
55.89% (166) 166 / 297 runs
flaked over last 7 days
authorized user sees correct translations (pt-br) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-55.33% (-161) -161 / 291 runs
failed over last 7 days
57.04% (166) 166 / 291 runs
flaked over last 7 days
authorized user sees correct translations (ar) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-57.34% (-164) -164 / 286 runs
failed over last 7 days
57.69% (165) 165 / 286 runs
flaked over last 7 days
authorized user sees changed translations (de->ar) should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-18.25% (-52) -52 / 285 runs
failed over last 7 days
40.70% (116) 116 / 285 runs
flaked over last 7 days
authorized user sees changed translations (de->pt-BR) [locale1] should return correct translations and html attributes
Retry 2Retry 1Initial Attempt
-22.17% (-49) -49 / 221 runs
failed over last 7 days
39.82% (88) 88 / 221 runs
flaked over last 7 days

📄   apps/web/playwright/booking/radioGroupQuestion.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Radio Question and Each Other Question Booking With Radio Question and Address Question Booking With Radio Question and Multi email Question Radio and Multi email not required
Retry 1Initial Attempt
0% (0) 0 / 297 runs
failed over last 7 days
1.01% (3) 3 / 297 runs
flaked over last 7 days

📄   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 -- legacy Different Locations Tests Can remove location from multiple locations that are saved
Retry 1Initial Attempt
0% (0) 0 / 255 runs
failed over last 7 days
3.53% (9) 9 / 255 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 320 runs
failed over last 7 days
22.81% (73) 73 / 320 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.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
Popup Tests should be able to reschedule
Retry 1Initial Attempt
5.90% (19) 19 / 322 runs
failed over last 7 days
90.99% (293) 293 / 322 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
0.93% (3) 3 / 324 runs
failed over last 7 days
74.38% (241) 241 / 324 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-creation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization should be able to create an organization and complete onboarding
Retry 2Retry 1Initial Attempt
2.61% (8) 8 / 306 runs
failed over last 7 days
94.44% (289) 289 / 306 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
0.94% (3) 3 / 319 runs
failed over last 7 days
29.15% (93) 93 / 319 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-invitation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization Invitation (non verified)
Retry 1Initial Attempt
10.16% (31) 31 / 305 runs
failed over last 7 days
21.31% (65) 65 / 305 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM. works as expected

@Udit-takkar Udit-takkar merged commit d0f7085 into main Nov 29, 2023
36 checks passed
@Udit-takkar Udit-takkar deleted the fix/workfow-update-error branch November 29, 2023 18:21
jakazzy pushed a commit to jakazzy/cal.com that referenced this pull request Dec 5, 2023
…m#12592)

* correctly filter event types to avoid null values

* clean up all filters

* re-add reverted fix

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
…m#12592)

* correctly filter event types to avoid null values

* clean up all filters

* re-add reverted fix

---------

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working core area: core, team members only Medium priority Created by Linear-GitHub Sync workflows area: workflows, automations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants