Skip to content

Merge ss-bughunt with develop #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ workflows:
- develop
- fix/challenge-timelines-edit-routes
- test/performance-profile
- ss-bughunt

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ You can find sample `.env` files inside the `/docs` directory.
npm run services:up
```

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

Expand Down
9 changes: 5 additions & 4 deletions src/common/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,14 +494,15 @@ async function createSelfServiceProject (name, description, type, token) {
const res = await axios.post(url, projectObj, { headers: { Authorization: `Bearer ${token}` } })
const projectId = _.get(res, 'data.id')
const phaseUrl = `${config.PROJECTS_API_URL}/${projectId}/phases`
const phaseStartDate = Date.now()
const phaseEndDate = Date.now()
const phaseStartDate = new Date()
const phaseEndDate = new Date()
phaseEndDate.setMonth(phaseEndDate.getMonth() + 3)
const phaseObj = {
name: 'project main phase',
description: 'default 90-day phase generated by self-service APIs',
startDate: phaseStartDate,
endDate: phaseEndDate
startDate: phaseStartDate.getTime(),
endDate: phaseEndDate.getTime(),
status: 'draft'
}
await axios.post(phaseUrl, phaseObj, { headers: { Authorization: `Bearer ${token}` } })
return projectId
Expand Down