Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

SUP-3058, Adapt FE according to new json structure of challenge endpoint #724

Merged

Conversation

vikasrohit
Copy link
Contributor

@parthshah @nlitwin please let me know if I have missed anything here.

-- Adapted the code to use winningPlacements array for determining the placement of member for any kind of challenge
-- Updated unit tests
-- Used submission statuses for determining the user status for passing the review for one of the submissions

vikasrohit added 5 commits February 9, 2016 15:03
-- Adapted the code to use winningPlacements array for determining the placement of member for any kind of challenge
-- Updated unit tests
-- Used submission statuses for determining the user status for passing the review for one of the submissions
…ion range

-- Fixed showing placement outside of the winning placement boundaries and shown 'Passed Review' instead of placement for such challenges.
-- Fixed. Added content type header in the request.
@@ -702,7 +725,7 @@ describe('Challenge Service', function() {
]
ChallengeService.processPastChallenges(challenges)
var challenge = challenges[0]
expect(challenge.highestPlacement).to.exist.to.equal(5)
expect(challenge.highestPlacement).not.to.exist.to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the dangling .to is messing anything up or giving a false test pass, but it can be deleted :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Nick!! Fixed it. And I think it was not causing the false test pass. 😁

@nlitwin
Copy link
Contributor

nlitwin commented Feb 9, 2016

lgtm!

vikasrohit pushed a commit that referenced this pull request Feb 10, 2016
…or-json-change-challenges-api

SUP-3058, Adapt FE according to new json structure of challenge endpoint
@vikasrohit vikasrohit merged commit eec4ba8 into dev Feb 10, 2016
@vikasrohit vikasrohit deleted the feature/sup-3058-adapt-fe-for-json-change-challenges-api branch June 27, 2016 07:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants