From c14e58cac22beba47882edb9cc077a80508cda27 Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Mon, 10 Jan 2022 19:11:07 +0300 Subject: [PATCH 1/2] Issues-650: Client Managers watch a group --- src/constants.js | 3 ++- src/services/vanilla.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index 91537ea..a3a4654 100644 --- a/src/constants.js +++ b/src/constants.js @@ -41,7 +41,8 @@ module.exports = { CHALLENGE_ROLES: { COPILOT: 'Copilot', MANAGER: 'Manager', - SUBMITTER: 'Submitter' + SUBMITTER: 'Submitter', + CLIENT_MANGER: 'Client Manager' }, CHALLENGE_STATUSES: { NEW: 'New', diff --git a/src/services/vanilla.js b/src/services/vanilla.js index bb86588..542d774 100644 --- a/src/services/vanilla.js +++ b/src/services/vanilla.js @@ -362,7 +362,8 @@ function shouldWatchCategories (projectRole, challengeRoles) { // Project Copilots / Challenge Copilots and Submitters return (projectRole === constants.TOPCODER.PROJECT_ROLES.COPILOT || (_.isArray(challengeRoles) && (_.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.COPILOT) || - _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.SUBMITTER))) + _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.SUBMITTER) || + _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.CLIENT_MANGER))) ) } From 49af611b140939375fc153b97ff5ea984dbb839f Mon Sep 17 00:00:00 2001 From: Bogdanova Olga Date: Mon, 10 Jan 2022 19:13:20 +0300 Subject: [PATCH 2/2] Issues-650: Client Managers watch a group --- src/constants.js | 2 +- src/services/vanilla.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants.js b/src/constants.js index a3a4654..b47d9ac 100644 --- a/src/constants.js +++ b/src/constants.js @@ -42,7 +42,7 @@ module.exports = { COPILOT: 'Copilot', MANAGER: 'Manager', SUBMITTER: 'Submitter', - CLIENT_MANGER: 'Client Manager' + CLIENT_MANAGER: 'Client Manager' }, CHALLENGE_STATUSES: { NEW: 'New', diff --git a/src/services/vanilla.js b/src/services/vanilla.js index 542d774..67eb8b9 100644 --- a/src/services/vanilla.js +++ b/src/services/vanilla.js @@ -363,7 +363,7 @@ function shouldWatchCategories (projectRole, challengeRoles) { return (projectRole === constants.TOPCODER.PROJECT_ROLES.COPILOT || (_.isArray(challengeRoles) && (_.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.COPILOT) || _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.SUBMITTER) || - _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.CLIENT_MANGER))) + _.includes(challengeRoles, constants.TOPCODER.CHALLENGE_ROLES.CLIENT_MANAGER))) ) }