From cdbac5ede62015c39ae467c3e1ade6772a27691a Mon Sep 17 00:00:00 2001 From: yoution Date: Wed, 11 Aug 2021 15:59:33 +0800 Subject: [PATCH 1/2] fix: update ROLE_MATCHING_RATE to 0.66 --- config/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/default.js b/config/default.js index 52923d7f..1a012a6d 100644 --- a/config/default.js +++ b/config/default.js @@ -177,7 +177,7 @@ module.exports = { DEFAULT_TIMELINE_TEMPLATE_ID: process.env.DEFAULT_TIMELINE_TEMPLATE_ID || '53a307ce-b4b3-4d6f-b9a1-3741a58f77e6', DEFAULT_TRACK_ID: process.env.DEFAULT_TRACK_ID || '9b6fc876-f4d9-4ccb-9dfd-419247628825', // the minimum matching rate when searching roles by skills - ROLE_MATCHING_RATE: process.env.ROLE_MATCHING_RATE || 0.70, + ROLE_MATCHING_RATE: process.env.ROLE_MATCHING_RATE || 0.66, // member groups representing Wipro or TopCoder employee INTERNAL_MEMBER_GROUPS: process.env.INTERNAL_MEMBER_GROUPS || ['20000000', '20000001', '20000003', '20000010', '20000015'], // Topcoder skills cache time in minutes From 354b1c5ea54ecda95598becd68c27fa9362582b7 Mon Sep 17 00:00:00 2001 From: yoution Date: Wed, 11 Aug 2021 16:23:13 +0800 Subject: [PATCH 2/2] fix: taas 412 add skill and unmatch skills for role --- src/services/TeamService.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/TeamService.js b/src/services/TeamService.js index a14b29df..f6cd6612 100644 --- a/src/services/TeamService.js +++ b/src/services/TeamService.js @@ -741,6 +741,8 @@ async function roleSearchRequest (currentUser, data) { if (!_.isUndefined(data.roleId)) { role = await Role.findById(data.roleId) role = role.toJSON() + role.matchedSkills = role.listOfSkills + role.unMatchedSkills = [] role.skillsMatch = 1 // if skills is provided then use skills to find role } else if (!_.isUndefined(data.skills)) {