Repository navigation
Submissions - add organizer Resubmit to run a submission on the current phase tasks - #2667
Merged
Merged
Conversation
…nt phase tasks Re-run keeps the task the submission originally ran on, so after an organizer replaces a task of an active phase the re-run scores still show as n/a. Resubmit creates a fresh submission with the same upload and runs it on the current phase tasks, as if the participant submitted it again. Resolves #2636
Didayolo
force-pushed
the
resubmit-current-tasks
branch
from
October 20, 2026 14:10
3a40c0d to
fd4efb2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original PR: #2644
Description
Re-run keeps the task the submission originally ran on. After an organizer replaces a task of an active phase, a re-run therefore still scores on the old task and the leaderboard shows
n/a. #2624 changed re-run itself to use the current task, which alters re-run semantics; this PR adds a separate Resubmit instead and leaves re-run untouched.Submission.resubmit(): new submission with the same upload, owner, participant, fact sheet answers, organization and selected groups, run through the existingrun()on the current phase tasks (children are created as for a normal submission)POST /api/submissions/{id}/resubmit_submission/andresubmit_many_submissions/, with the same organizer / finished-status checks as re-runresubmit()runs on the new task whilere_run()still runs on the original onePairs with #2642, which flags the submissions that need resubmitting.
Issues this PR resolves
A checklist for hand testing
tests/test_files/competitions/competition_v2_wheat_results.zip, submittests/test_files/submissions/submission_v2_wheat_results.zipChecklist