challenge-api icon indicating copy to clipboard operation
challenge-api copied to clipboard

Challenge phases not working properly

Open jmgasper opened this issue 4 years ago • 2 comments

There is one phase in timeline template doesn't exist in all challenge phases (https://api.topcoder-dev.com/v5/challenge-phases):

 {
        "phaseId": "6950164f-3c5e-4bdc-abc8-22aaf5a1bd49",
        "defaultDuration": 48
      },

the front end can't find the phase with id "6950164f-3c5e-4bdc-abc8-22aaf5a1bd49" in challenge phase so it will ignore this phase.

This phase doesn't come down from this endpoint: https://api.topcoder-dev.com/v5/challenge-phases

This line seems to be the culprit, in PhaseService.js:

const list = await helper.scan('Phase')

The scan will only return the first 20 phases, but we need to pull all of them.

jmgasper avatar May 06 '20 03:05 jmgasper