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: Issue with zoom meetings getting "invalid Meeting ID" #16669

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

askadityapandey
Copy link

@askadityapandey askadityapandey commented Sep 16, 2024

What does this PR do?

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
    • Ensure that the Zoom API credentials are correctly set up in the environment.
  • What are the minimal test data to have?
    • Create a test appointment with a Zoom meeting.
    • Reschedule the appointment to trigger the update logic.
  • What is expected (happy path) to have (input and output)?
    • The Zoom meeting ID should be correctly updated after rescheduling.
    • The updated meeting ID should be reflected in the appointment details.
  • Any other important info that could help to test that PR
    • Ensure that the Zoom integration is enabled and properly configured in the Cal.com settings.

Copy link

vercel bot commented Sep 16, 2024

@askadityapandey is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Sep 16, 2024
@graphite-app graphite-app bot requested a review from a team September 16, 2024 17:26
@CLAassistant
Copy link

CLAassistant commented Sep 16, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added High priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Sep 16, 2024
@askadityapandey askadityapandey marked this pull request as draft September 16, 2024 17:26
@dosubot dosubot bot added the app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar label Sep 16, 2024
@askadityapandey askadityapandey marked this pull request as ready for review September 16, 2024 17:29
Copy link

graphite-app bot commented Sep 16, 2024

Graphite Automations

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

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

"Add community label" took an action on this PR • (09/16/24)

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

@@ -333,12 +334,16 @@ const ZoomVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
body: JSON.stringify(await translateEvent(event)),
});

return Promise.resolve({
// Fetch the updated meeting details
Copy link
Contributor

Choose a reason for hiding this comment

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

It is understood by the code, please remove the comment

@@ -325,6 +325,7 @@ const ZoomVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
},
updateMeeting: async (bookingRef: PartialReference, event: CalendarEvent): Promise<VideoCallData> => {
try {
// Update the meeting details
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Comment on lines 338 to 346
const updatedMeeting = await fetchZoomApi(`meetings/${bookingRef.uid}`);
const result = zoomEventResultSchema.parse(updatedMeeting);

return {
type: "zoom_video",
id: bookingRef.meetingId as string,
password: bookingRef.meetingPassword as string,
url: bookingRef.meetingUrl as string,
});
id: result.id.toString(),
password: result.password || "",
url: result.join_url,
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Changes looks good, Pls a share a loom video of the result🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🐛 bug Something isn't working community Created by Linear-GitHub Sync High priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-4319] Issue with zoom meetings getting "invalid Meeting ID"
4 participants