Skip to content

fix: set organiser email to external id#7406

Merged
zomars merged 1 commit intomainfrom
fix/double-events
Feb 28, 2023
Merged

fix: set organiser email to external id#7406
zomars merged 1 commit intomainfrom
fix/double-events

Conversation

@Udit-takkar
Copy link
Copy Markdown
Contributor

@Udit-takkar Udit-takkar commented Feb 25, 2023

What does this PR do?

Fixes #5588, #7329

Do suggest if there are better approach to fix these issues

BEFORE:-
Screenshot 2023-02-25 at 3 18 54 PM

AFTER:-
Screenshot 2023-02-25 at 3 19 16 PM

Environment: Staging(main branch) / Production

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
@Udit-takkar Udit-takkar requested a review from a team February 25, 2023 09:49
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 25, 2023

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

Name Status Preview Comments Updated
cal ❌ Failed (Inspect) Feb 25, 2023 at 9:52AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
ui ⬜️ Ignored (Inspect) Feb 25, 2023 at 9:52AM (UTC)

Comment on lines +93 to +95
email: calEventRaw.destinationCalendar?.externalId
? calEventRaw.destinationCalendar.externalId
: calEventRaw.organizer.email,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the event was created twice because google adds the event to all attendees email primary calendar. so if a user has a secondary calendar as destination calendar he would see event created on both primary and secondary calendar. we can avoid adding event to primary calendar by simply not passing email here

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

@zomars zomars merged commit 76cf352 into main Feb 28, 2023
@zomars zomars deleted the fix/double-events branch February 28, 2023 21:53
@Udit-takkar Udit-takkar linked an issue Mar 1, 2023 that may be closed by this pull request
G3root pushed a commit that referenced this pull request Mar 2, 2023
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
dmkav pushed a commit to join-com/cal-com that referenced this pull request Mar 6, 2023
Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-1149] Duplicate google event [CAL-399] Events are added twice to calendars

2 participants