Skip to content

Commit

Permalink
Merge pull request #317 from alkem-io/develop
Browse files Browse the repository at this point in the history
Release: Fixes
  • Loading branch information
valentinyanakiev authored May 28, 2024
2 parents cdaf2f9 + 1786f3f commit 5d58a82
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 43 deletions.
4 changes: 2 additions & 2 deletions lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alkemio/notifications-lib",
"version": "0.8.2",
"version": "0.8.3",
"description": "Library for interacting with Alkemio notifications service",
"author": "Alkemio Foundation",
"private": false,
Expand Down
1 change: 1 addition & 0 deletions lib/src/dto/community.invitation.created.event.payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import { SpaceBaseEventPayload } from './space.base.event.payload';
export interface CommunityInvitationCreatedEventPayload
extends SpaceBaseEventPayload {
invitee: ContributorPayload;
welcomeMessage?: string;
}
34 changes: 2 additions & 32 deletions service/notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ recipients:
- rule:
type: SPACE_ADMIN
resource_id: <spaceID>
# We don't have SUBSPACE_ADMIN any more. We have SPACE_SUBSPACE_ADMIN, but it's different payload that needs to be provided for this to work (the resource_id should be the parent of the entity).
# toDo - clarify this rule
# - rule:
# type: SUBSPACE_ADMIN
# resource_id: <spaceID>
- rule:
type: GLOBAL_COMMUNITY_READ
resource_id:
Expand All @@ -114,9 +109,6 @@ recipients:
- rule:
type: SPACE_ADMIN
resource_id: <spaceID>
# - rule:
# type: SUBSPACE_ADMIN
# resource_id: <spaceID>
- name: member
rules:
- rule:
Expand Down Expand Up @@ -150,9 +142,6 @@ recipients:
- rule:
type: SPACE_MEMBER
resource_id: <spaceID>
- rule:
type: SUBSPACE_MEMBER
resource_id: <spaceID>
communication_user_message:
- name: sender
rules:
Expand Down Expand Up @@ -186,9 +175,6 @@ recipients:
- rule:
type: SPACE_LEAD
resource_id: <spaceID>
- rule:
type: SUBSPACE_LEAD
resource_id: <spaceID>
communication_user_mention:
- name: receiver
rules:
Expand All @@ -207,34 +193,24 @@ recipients:
- rule:
type: SPACE_ADMIN
resource_id: <spaceID>
# - rule:
# type: SUBSPACE_ADMIN
# resource_id: <spaceID>
- name: user
rules:
- rule:
type: SPACE_MEMBER
resource_id: <spaceID>
- rule:
type: SUBSPACE_MEMBER
resource_id: <spaceID>

collaboration_whiteboard_created:
- name: admin
rules:
- rule:
type: SPACE_ADMIN
resource_id: <spaceID>
# - rule:
# type: SUBSPACE_ADMIN
# resource_id: <spaceID>

- name: user
rules:
- rule:
type: SPACE_MEMBER
resource_id: <spaceID>
- rule:
type: SUBSPACE_MEMBER
resource_id: <spaceID>
collaboration_post_comment:
- name: owner
rules:
Expand All @@ -247,18 +223,12 @@ recipients:
- rule:
type: SPACE_MEMBER
resource_id: <spaceID>
- rule:
type: SUBSPACE_MEMBER
resource_id: <spaceID>
collaboration_callout_published:
- name: user
rules:
- rule:
type: SPACE_MEMBER
resource_id: <spaceID>
- rule:
type: SUBSPACE_MEMBER
resource_id: <spaceID>
platform_user_registered:
- name: admin
rules:
Expand Down
14 changes: 7 additions & 7 deletions service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@alkemio/client-lib": "^0.29.4",
"@alkemio/notifications-lib": "^0.8.2",
"@alkemio/notifications-lib": "^0.8.3",
"@nestjs/common": "^8.0.5",
"@nestjs/config": "^1.0.1",
"@nestjs/core": "^8.0.5",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export interface CommunityInvitationCreatedEmailPayload
email: string;
profile: string;
};
welcomeMessage?: string;
spaceAdminURL: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export class CommunityInvitationCreatedNotificationBuilder
email: recipient.email,
notificationPreferences: notificationPreferenceURL,
},
welcomeMessage: eventPayload.welcomeMessage,
space: {
displayName: eventPayload.space.profile.displayName,
type: eventPayload.space.type,
Expand Down

0 comments on commit 5d58a82

Please sign in to comment.