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

Delegate the task of sending event attendance notification emails to StandaloneEventAttendanceRepository #1421

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

HoussemNasri
Copy link
Member

@HoussemNasri HoussemNasri commented Dec 19, 2024

Closes #1400

@HoussemNasri HoussemNasri force-pushed the event-attenandce-notification-email branch from 3ced5f5 to 0adf9d3 Compare December 19, 2024 13:36
Copy link
Member

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Next step: use EventAttendanceRepository in /accept /mayb /reject metods!

@HoussemNasri HoussemNasri changed the title [WIP] Delegate the task of sending event attendance notification emails to StandaloneEventAttendanceRepository Delegate the task of sending event attendance notification emails to StandaloneEventAttendanceRepository Dec 20, 2024
@HoussemNasri HoussemNasri marked this pull request as ready for review December 20, 2024 16:44
Comment on lines +1060 to +1061
@Test
def shouldFailWhenBlobIdIsNotPrefixedByMessageId(): Unit = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: This test is only appropriate for StandaloneEventAttendanceRepository, as it is the only implementation currently available. Once a CarDav repository is implemented, this test should be moved to a standalone-specific location.

@HoussemNasri HoussemNasri marked this pull request as draft December 24, 2024 13:23
MailboxSession systemMailboxSession = sessionProvider.createSystemSession(username);

return Flux.from(messageIdManager.getMessagesReactive(List.of(messageId), FetchGroup.MINIMAL, systemMailboxSession))
.map(MessageResult::getMailboxId)
return getEnclosingMessageId(eventBlobIds).flatMap(messageId ->
Copy link
Member Author

@HoussemNasri HoussemNasri Dec 24, 2024

Choose a reason for hiding this comment

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

The assumption here that input Blobs will belong to the same email message is wrong, as nothing in the JMAP API explicitly says that; thus, the PR needs a bit more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants