Skip to content

NPM script to store v5 challenge id for current records #209

@callmekatootie

Description

@callmekatootie
  • Npm script that
  • takes EACH submission record in the database (dynamodb)
  • creates a new attribute legacyChallengeId for the record
  • copies the current challengeId value to the legacyChallengeId
  • Calls v5 submission GET https://api.topcoder-dev.com/v5/challenges?legacyId=challengeId and gets the equivalent v5 challenge id for the legacy challenge id
  • Stores this v5 id under challengeId for the submission (old is is now under legacyChallengeId while new id is now under challengeId
  • saves the record back into the database (update the old record)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions