Skip to content

Commit 945bc2d

Browse files
author
vikasrohit
authored
Merge pull request #88 from topcoder-platform/dev
Supporting release for Connect 2.4.9
2 parents b9e5e3e + d1eefb9 commit 945bc2d

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

connect/connectNotificationServer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ const handler = (topic, message, logger, callback) => {
321321
)).then((notifications) => {
322322
allNotifications = _.filter(notifications, notification => notification.userId !== `${message.initiatorUserId}`);
323323

324+
if (eventConfig.includeUsers && message[eventConfig.includeUsers] && message[eventConfig.includeUsers].length>0){
325+
allNotifications = _.filter(allNotifications, notification => message[eventConfig.includeUsers].contains(notification.userId));
326+
}
327+
324328
// now let's retrieve some additional data
325329

326330
// if message has userId such messages will likely need userHandle and user full name

connect/events-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const EVENTS = [
149149
type: BUS_API_EVENT.CONNECT.PROJECT.FILE_UPLOADED,
150150
version: 2,
151151
projectRoles: [PROJECT_ROLE_OWNER, PROJECT_ROLE_COPILOT, PROJECT_ROLE_MANAGER, PROJECT_ROLE_MEMBER],
152+
includeUsers: 'allowedUsers'
152153
}, {
153154
type: BUS_API_EVENT.CONNECT.PROJECT.SPECIFICATION_MODIFIED,
154155
version: 2,
@@ -159,6 +160,7 @@ const EVENTS = [
159160
}, {
160161
type: BUS_API_EVENT.CONNECT.PROJECT_PLAN.MODIFIED,
161162
projectRoles: [PROJECT_ROLE_OWNER, PROJECT_ROLE_COPILOT, PROJECT_ROLE_MANAGER, PROJECT_ROLE_MEMBER],
163+
includeUsers: 'allowedUsers'
162164
}, {
163165
type: BUS_API_EVENT.CONNECT.PROJECT_PLAN.PROGRESS_UPDATED,
164166
projectRoles: [PROJECT_ROLE_OWNER, PROJECT_ROLE_COPILOT, PROJECT_ROLE_MANAGER, PROJECT_ROLE_MEMBER],
@@ -198,6 +200,7 @@ const EVENTS = [
198200
}, {
199201
type: BUS_API_EVENT.CONNECT.PROJECT_PLAN.TIMELINE_ADJUSTED,
200202
projectRoles: [PROJECT_ROLE_OWNER, PROJECT_ROLE_COPILOT, PROJECT_ROLE_MANAGER, PROJECT_ROLE_MEMBER],
203+
includeUsers: 'allowedUsers'
201204
}
202205
];
203206

emails/src/partials/invites.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,36 @@
6666
</table>
6767
</td>
6868
</tr>
69+
<tr class="post-details">
70+
<td class="main-td">
71+
<table class="main-child">
72+
<tr>
73+
<td class="empty-child-one"></td>
74+
<td>If you are enterprise client with SSO, please use the link below to sign in and join the project.</td>
75+
</tr>
76+
</table>
77+
</td>
78+
</tr>
79+
<tr class="button-row button-one">
80+
<td class="main-td">
81+
<table class="main-child">
82+
<tr>
83+
<td class="empty-child-one"></td>
84+
<td class="second-child" align="center">
85+
<a href="{{@root.accountsAppURL}}/sso-login/?app=connect&retUrl={{@root.connectURL}}/projects/{{projectId}}">
86+
SSO Login
87+
</a>
88+
</td>
89+
<td class="empty-child-one"></td>
90+
</tr>
91+
</table>
92+
</td>
93+
</tr>
94+
<tr class="empty-20">
95+
<td class="main-td">
96+
<table class="main-child">
97+
<tr><td></td></tr>
98+
</table>
99+
</td>
100+
</tr>
69101
{{/if}}

0 commit comments

Comments
 (0)