Skip to content

Commit

Permalink
membership-request [inveniosoftware#855]: configure notification buil…
Browse files Browse the repository at this point in the history
…ders
  • Loading branch information
fenekku committed Jul 30, 2024
1 parent c8644a1 commit ce94069
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions invenio_app_rdm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
CommunityInvitationDeclineNotificationBuilder,
CommunityInvitationExpireNotificationBuilder,
CommunityInvitationSubmittedNotificationBuilder,
CommunityMembershipRequestAcceptNotificationBuilder,
CommunityMembershipRequestCancelNotificationBuilder,
CommunityMembershipRequestDeclineNotificationBuilder,
CommunityMembershipRequestExpireNotificationBuilder,
CommunityMembershipRequestSubmittedNotificationBuilder,
)
from invenio_notifications.backends import EmailNotificationBackend
from invenio_rdm_records.notifications.builders import (
Expand Down Expand Up @@ -1320,6 +1325,12 @@ def github_link_render(record):
community_notifications.SubCommunityCreate.type: community_notifications.SubCommunityCreate,
community_notifications.SubCommunityAccept.type: community_notifications.SubCommunityAccept,
community_notifications.SubCommunityDecline.type: community_notifications.SubCommunityDecline,
# Community membership request
CommunityMembershipRequestAcceptNotificationBuilder.type: CommunityMembershipRequestAcceptNotificationBuilder,
CommunityMembershipRequestCancelNotificationBuilder.type: CommunityMembershipRequestCancelNotificationBuilder,
CommunityMembershipRequestDeclineNotificationBuilder.type: CommunityMembershipRequestDeclineNotificationBuilder,
CommunityMembershipRequestExpireNotificationBuilder.type: CommunityMembershipRequestExpireNotificationBuilder,
CommunityMembershipRequestSubmittedNotificationBuilder.type: CommunityMembershipRequestSubmittedNotificationBuilder,
}
"""Notification builders."""

Expand Down

0 comments on commit ce94069

Please sign in to comment.