Skip to content

Commit 1820010

Browse files
authored
Merge pull request #526 from topcoder-platform/ss-bughunt
Merge ss-bughunt with develop
2 parents a167238 + 79e8909 commit 1820010

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ workflows:
7272
- develop
7373
- fix/challenge-timelines-edit-routes
7474
- test/performance-profile
75+
- ss-bughunt
7576

7677
# Production builds are exectuted only on tagged commits to the
7778
# master branch.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ You can find sample `.env` files inside the `/docs` directory.
129129
npm run services:up
130130
```
131131

132-
4. ♻ Update following two parts:
133-
- https://github.com/topcoder-platform/challenge-api/blob/develop/src/models/Challenge.js#L116
132+
4. ♻ Update following three parts:
133+
- https://github.com/topcoder-platform/challenge-api/blob/develop/src/models/Challenge.js#L140
134+
`throughput: 'ON_DEMAND',` should be updated to `throughput:{ read: 4, write: 2 },`
135+
- https://github.com/topcoder-platform/challenge-api/blob/develop/src/models/Phase.js#L33
134136
`throughput: 'ON_DEMAND',` should be updated to `throughput:{ read: 4, write: 2 },`
135137
- https://github.com/topcoder-platform/challenge-api/blob/develop/config/default.js#L27-L28
136138

src/common/helper.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,15 @@ async function createSelfServiceProject (name, description, type, token) {
494494
const res = await axios.post(url, projectObj, { headers: { Authorization: `Bearer ${token}` } })
495495
const projectId = _.get(res, 'data.id')
496496
const phaseUrl = `${config.PROJECTS_API_URL}/${projectId}/phases`
497-
const phaseStartDate = Date.now()
498-
const phaseEndDate = Date.now()
497+
const phaseStartDate = new Date()
498+
const phaseEndDate = new Date()
499499
phaseEndDate.setMonth(phaseEndDate.getMonth() + 3)
500500
const phaseObj = {
501501
name: 'project main phase',
502502
description: 'default 90-day phase generated by self-service APIs',
503-
startDate: phaseStartDate,
504-
endDate: phaseEndDate
503+
startDate: phaseStartDate.getTime(),
504+
endDate: phaseEndDate.getTime(),
505+
status: 'draft'
505506
}
506507
await axios.post(phaseUrl, phaseObj, { headers: { Authorization: `Bearer ${token}` } })
507508
return projectId

0 commit comments

Comments
 (0)