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

6254 double creation of contacts when updating calendar event participants #6269

Conversation

bosiraphael
Copy link
Contributor

Closes #6254

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

  • Removed iCalUID from participants mapping in format-google-calendar-event.util.ts
  • Removed workspaceId parameter from upsertAndDeleteCalendarEventParticipants in calendar-save-events.service.ts
  • Refactored calendar-event-participant.service.ts to optimize participant update and delete operations
  • Removed iCalUID property from CalendarEventParticipant type in calendar-event.ts

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

  • Updated import statement for 'lodash.differencewith'
  • Modified logic for upserting and deleting calendar event participants
  • Adjusted service methods to handle participant matching/unmatching by email, person ID, and workspace member ID

File: packages/twenty-server/src/modules/calendar/calendar-event-participant-manager/services/calendar-event-participant.service.ts

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

@bosiraphael Don't know why but it's calendar events are not created while testing in local on this branch

@charlesBochet
Copy link
Member

Re-tried and it worked but now the RightDrawer is empty:
image

@charlesBochet
Copy link
Member

image image

@charlesBochet
Copy link
Member

Nevermind, I have reset and restarted everything and it works!

@charlesBochet charlesBochet merged commit d216bfd into main Jul 16, 2024
5 of 6 checks passed
@charlesBochet charlesBochet deleted the 6254-double-creation-of-contacts-when-updating-calendar-event-participants branch July 16, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double creation of contacts when updating calendar event participants
2 participants