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

Allow more foreign events #136

Merged
merged 1 commit into from Mar 13, 2024
Merged

Allow more foreign events #136

merged 1 commit into from Mar 13, 2024

Conversation

lyind
Copy link
Contributor

@lyind lyind commented Mar 11, 2024

Fixes https://github.com/giantswarm/giantswarm/issues/29860

Summary

Users noticed that events created by other users aren't synchronized with Personio, even if those signify absences.

This PR allows synchronization of events under the following conditions:

  • event.creator.email == primaryEmail
  • event.organizer.email == primaryEmail
  • event.attendees[].email == primaryEmail && event.attendees[].responseStatus != 'declined'

Previously only event.creator.email == primaryEmail was tested.

@lyind lyind requested a review from luca-rui March 11, 2024 17:56
@lyind lyind self-assigned this Mar 11, 2024
@lyind lyind requested a review from a team as a code owner March 11, 2024 17:56
@lyind
Copy link
Contributor Author

lyind commented Mar 11, 2024

Extensive search runs have been performed on the live calendars to lower the risk of including unwanted events.

@lyind lyind requested a review from marians March 12, 2024 11:31
@lyind lyind merged commit 52f070c into main Mar 13, 2024
6 checks passed
@lyind lyind deleted the fix-foreign-events branch March 13, 2024 12:24
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.

None yet

2 participants