Register
Submit a solution
The challenge is finished.

Challenge Overview

We have updates to the Challenge Service swagger yaml file which need to be propagated down to the controllers and models.

The goal of this challenge is to update this code to match the swagger spec:  https://github.com/appirio-tech/lc1-challenge-service/tree/challenge-updates.  Please use the challenge-updates branch.

This challenge is based upon https://github.com/topcoderinc/serenity-core/issues/170.

The file was updated in the following areas:

  • Prizes were added to the challenge resource.  This should be stored as an array field on the challenge table.
  • Requirements were added.  This is a new controller, model and table.
  • Added fields to challenge resource.  These should be added to challenge table.
  • ScorecardItemResource has had fields removed.  Please make sure there is a new migration script to remove the fields
  • Changed "ACTIVE" to "SUBMISSION" as a enum in the challenge.status field.

Deliverables

  • Updated Mocha tests to reflect new fields.
  • Add  Mocha test for new resources
  • Updated/new controllers and models
  • New migration scripts logically separated.  Please do not update the baseline script.
  • Migration Script moving the requirements from the ScorecardItem table to the new Requirements table.


Final Submission Guidelines

  • Please submit your code as either a pull request against https://github.com/appirio-tech/lc1-challenge-service/tree/challenge-updates or submit the entire code base (including .git folder but excluding node_modules) as a zip file.

Review style

Final Review

Community Review Board

Approval

User Sign-Off

ID: 30046668