Skip to content

Commit 6f32fe0

Browse files
authored
Merge pull request #42 from topcoder-platform/feat/reviewer-payment
feat: add reviewer payment
2 parents 1bc8723 + 36d671f commit 6f32fe0

File tree

9 files changed

+560
-41
lines changed

9 files changed

+560
-41
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ workflows:
7070
branches:
7171
only:
7272
- develop
73+
- feat/reviewer-payment
7374

7475
# Production builds are exectuted only on tagged commits to the
7576
# master branch.

challenge-api-v5-mock/mock-challenge-api.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ const sampleChallenge = {
1919
'value': 'value1'
2020
}
2121
],
22+
'metadata': [
23+
{
24+
'name': 'reviewerPrize',
25+
'value': '5'
26+
}
27+
],
2228
'created': '2019-03-02T14:35:53.948Z',
2329
'createdBy': 'Copilot1',
2430
'updated': '2019-03-02T14:35:53.948Z',

config/default.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ module.exports = {
2323

2424
SUBMITTER_ROLE_ID: process.env.SUBMITTER_ROLE_ID || '732339e7-8e30-49d7-9198-cccf9451e221',
2525
MANAGER_RESOURCE_ROLE_ID: process.env.MANAGER_RESOURCE_ROLE_ID || '0e9c6879-39e4-4eb6-b8df-92407890faf1',
26+
REVIEWER_ROLE_ID: process.env.REVIEWER_ROLE_ID || '318b9c07-079a-42d9-a81f-b96be1dc1099',
27+
ITERATIVE_REVIEWER_ROLE_ID: process.env.ITERATIVE_REVIEWER_ROLE_ID || 'f6df7212-b9d6-4193-bfb1-b383586fce63',
2628

2729
RESOURCE_ROLES_WITHOUT_TIMELINE_NOTIFICATIONS: process.env.RESOURCE_ROLES_WITHOUT_TIMELINE_NOTIFICATIONS ? process.env.RESOURCE_ROLES_WITHOUT_TIMELINE_NOTIFICATIONS.split(',') : ['2a4dc376-a31c-4d00-b173-13934d89e286'],
2830

@@ -68,5 +70,7 @@ module.exports = {
6870

6971
LEGACY_REVIEWER_ROLE_ID: process.env.LEGACY_REVIEWER_ROLE_ID || 4,
7072
LEGACY_REVIEW_PHASE_ID: process.env.LEGACY_REVIEW_PHASE_ID || 4,
73+
LEGACY_REVIEWER_ITERATIVE_ROLE_ID: process.env.LEGACY_REVIEWER_ITERATIVE_ROLE_ID || 21,
74+
LEGACY_PROJECT_REVIEW_PAYMENT_TYPE_ID: process.env.LEGACY_PROJECT_REVIEW_PAYMENT_TYPE_ID || 3,
7175
COPILOT_PAYMENT_TYPE: process.env.COPILOT_PAYMENT_TYPE || 'copilot'
7276
}

0 commit comments

Comments
 (0)