Skip to content

Fix #4413: Allow adding missing submission metadata#5094

Open
officialasishkumar wants to merge 1 commit into
Cloud-CV:masterfrom
officialasishkumar:fix/submission-metadata-edit-fields
Open

Fix #4413: Allow adding missing submission metadata#5094
officialasishkumar wants to merge 1 commit into
Cloud-CV:masterfrom
officialasishkumar:fix/submission-metadata-edit-fields

Conversation

@officialasishkumar
Copy link
Copy Markdown

Fixes #4413.

Summary:

  • Load the current phase metadata schema when a submission has no saved submission_metadata.
  • Preserve saved submission metadata when it already exists.
  • Add controller coverage for both editing paths.

Validation:

  • git diff --check
  • node --check frontend/src/js/controllers/challengeCtrl.js
  • node --check frontend/tests/controllers-test/challengeCtrlMetadata.test.js
  • docker compose run nodejs bash -c "gulp dev && karma start --single-run --reporters=brief --client.jasmine.grep="ChallengeCtrl submission metadata editing"" (602 passed)

Load the phase metadata schema when a submission has no saved metadata so participants can add optional fields later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Editing of submission meta attributes not allowed if not provided during submission

1 participant