Skip to content

Commit

Permalink
updated tests and templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah committed Oct 17, 2023
1 parent 0c233cc commit 867e538
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions invenio_rdm_records/notifications/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ class CommunityInclusionNotificationBuilder(NotificationBuilder):
type = "community-submission"

@classmethod
def build(cls, request, message=None):
def build(cls, request):
"""Build notification with request context."""
return Notification(
type=cls.type,
context={
"request": EntityResolverRegistry.reference_entity(request),
"message": message,
},
)

Expand Down
1 change: 0 additions & 1 deletion invenio_rdm_records/services/review/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def submit(self, identity, id_, data=None, require_review=False, uow=None):
NotificationOp(
CommunityInclusionSubmittedNotificationBuilder.build(
request_item._request,
message=data.get('payload', {}).get('content'),
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</tr>
<tr>
{% if message %}
<td><em>"{{{message}}}"</em></td>
<td><em>"{{message}}"</em></td>
{% endif %}
</tr>
<tr>
Expand Down

0 comments on commit 867e538

Please sign in to comment.