Skip to content

Rerun submission when a task used is deleted

Placeholder Ihsan Ullah requested to merge rerun_submission into develop

@ mention of reviewers`

@Didayolo`

A brief description of the purpose of the changes contained in this PR.

Previously, when a task was disconnected from a competition but it was used in a submission: Rerunning such submission would result in a submission stuck in submitted status.

Now, when task/tasks are deleted, a warning message is shown to the user: Screenshot 2024-01-28 at 4 12 46 PM Screenshot 2024-01-28 at 4 13 25 PM

If a user tries to rerun submission with its task deleted, the following error message is shown: Screenshot 2024-01-28 at 4 02 12 PM

Issues this PR resolves

A checklist for hand testing

For single-task phase

  • Create a competition with one task A per phase,
  • upload a submission and wait for its success,
  • add a new task B in resource interface
  • remove task A from phase
  • connect task B to this phase
  • delete task A from resource interface
  • rerun the submission and check if you get an error

For multi-task phase

  • repeat the above but make sure to create multi-task phase

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

Merge request reports

Loading