Skip to content

Commit 12350df

Browse files
committed
feat: set scheduled start date for submission phase
1 parent a5dd4b8 commit 12350df

File tree

4 files changed

+25
-50
lines changed

4 files changed

+25
-50
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ workflows:
152152
context : org-global
153153
filters: &filters-dev
154154
branches:
155-
only: ['develop']
155+
only: ['develop', 'PLAT-2111']
156156

157157
# Production builds are exectuted only on tagged commits to the
158158
# master branch.

package-lock.json

Lines changed: 19 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,8 @@
175175
},
176176
"devDependencies": {
177177
"standard": "^12.0.1"
178+
},
179+
"volta": {
180+
"node": "10.15.3"
178181
}
179182
}

src/components/ChallengeEditor/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,8 @@ class ChallengeEditor extends Component {
860860
newChallenge.phases[index - 1]['duration'],
861861
phase.duration
862862
])
863+
console.log('Setting submission phase scheduled start date', moment(phase.startDate).toISOString())
864+
newChallenge.phases[index]['scheduledStartDate'] = moment(phase.startDate).toISOString()
863865
newChallenge.phases[index]['scheduledEndDate'] =
864866
moment(newChallenge.phases[index]['scheduledStartDate'])
865867
.add(newChallenge.phases[index]['duration'], 'hours')

0 commit comments

Comments
 (0)