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: undefined in meeting url workflow variable #16771

Merged
merged 14 commits into from
Sep 30, 2024

Conversation

CarinaWolli
Copy link
Member

@CarinaWolli CarinaWolli commented Sep 23, 2024

What does this PR do?

Fixes issue that {MEETING_URL} workflow variable sometimes shows undefined in url. Like that: undefined/reschedule/...

Copy link

vercel bot commented Sep 23, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 4:46pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 4:46pm

@CarinaWolli CarinaWolli marked this pull request as ready for review September 23, 2024 16:55
@CarinaWolli CarinaWolli requested a review from a team September 23, 2024 16:55
@CarinaWolli CarinaWolli added the workflows area: workflows, automations label Sep 23, 2024
@dosubot dosubot bot added the 🐛 bug Something isn't working label Sep 23, 2024
Copy link

graphite-app bot commented Sep 23, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/23/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

I noticed that for workflows the event is typed as BookingInfo. Should we add the bookerUrl as a property so we ensure we're always handling org domains?

Found in packages\features\ee\workflows\lib\reminders\smsReminderManager.ts line 37

joeauyeung
joeauyeung previously approved these changes Sep 24, 2024
Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

Feedback addressed.

Just a heads up that we don't have to do Omit<CalendarEvent, "bookerUrl"> if we're declaring bookerUrl in ExtendedCalendarEvent

@@ -2,7 +2,7 @@ import type { Prisma } from "@prisma/client";
import type z from "zod";

import type { Workflow } from "@calcom/features/ee/workflows/lib/types";
import type { AppsStatus } from "@calcom/types/Calendar";
import type { AppsStatus, CalendarEvent } from "@calcom/types/Calendar";
Copy link
Member Author

Choose a reason for hiding this comment

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

CalendarEvent wasn't imported, so evt was treated as any instead. Importing it now caused some other type errors that needed to be fixed

Copy link
Contributor

github-actions bot commented Sep 24, 2024

E2E results are ready!

@CarinaWolli
Copy link
Member Author

@joeauyeung Fixed the merge conflicts, can you re-review?

@CarinaWolli CarinaWolli merged commit 2a734fa into main Sep 30, 2024
38 checks passed
@CarinaWolli CarinaWolli deleted the fix/undefined-in-meeting-url branch September 30, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working consumer core area: core, team members only ready-for-e2e workflows area: workflows, automations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants