This adds the isArchived field to the Challenge class, and adds it as a value in the challenge json. For now it is set to always be false, as challenges must be unarchived for tasks to be uploaded to them through the API.
This will cause any archived challenges to be unarchived by the MapRouletteUploadCommand before it attempts to upload tasks to the given challenges. This is useful for dealing with the new challenge auto-archiving after 6 months of inactivity.
Potential Impact:
Challenges will be unarchived by the MR Upload command before attempting to upload tasks to them.
Unit Test Approach:
Added the new field in the serialization unit test.
Test Results:
Tested uploading to an archived challenge before and after this change. Before, the challenge remained archived and no tasks were uploaded. After, the challenge was unarchived and tasks were uploaded as expected.
Description:
This adds the
isArchived
field to the Challenge class, and adds it as a value in the challenge json. For now it is set to always be false, as challenges must be unarchived for tasks to be uploaded to them through the API. This will cause any archived challenges to be unarchived by the MapRouletteUploadCommand before it attempts to upload tasks to the given challenges. This is useful for dealing with the new challenge auto-archiving after 6 months of inactivity.Potential Impact:
Challenges will be unarchived by the MR Upload command before attempting to upload tasks to them.
Unit Test Approach:
Added the new field in the serialization unit test.
Test Results:
Tested uploading to an archived challenge before and after this change. Before, the challenge remained archived and no tasks were uploaded. After, the challenge was unarchived and tasks were uploaded as expected.