Repository navigation
Conversation
…he copyedit and awaiting approval stages
e5949e6 to
61a9449
Compare
tompollard
left a comment
There was a problem hiding this comment.
Thanks for this, the restore-to-original-status approach looks right, and the legacy fallback is correct since only projects awaiting revisions could previously be archived as reopenable. Tests for the touched areas pass locally on this branch.
The one blocker is the migration number, which conflicts with 0119_s3_download_metrics on dev. The other comments are smaller: tidying reopen_for_revisions, centralising the reopen-status rule, a couple of test additions, and a race in archive() that could be a follow-up.
|
Thanks for working through the comments so quickly. The migration, There are two remaining issues I'd like to fix before merging, both related to the 1. A stale approval can still undo an archive ( The conditional update protects So a project an editor has just withdrawn ends up in Awaiting Publication. Could 2. Callers ignore Only the editor archive view checks the new return value:
I'd suggest having 3. Doubled punctuation in the reopen text ( The status labels already end in a full stop, so we get: The confirm dialog has the same problem ( 4. Archived projects stay in the on-hold queue ( Archiving a held project leaves |
Currently there is no way for editors to archive projects that are in the copyedit or awaiting author approval stage. This capability is needed for situations when authors request the withdrawal of their submission while it is undergoing copyedits or when projects get stuck in the awaiting approval stage for long period of time. This pull request give editors the ability to archive (and reopen if needed) these projects.
Changes made
Archving
archive_submission_statusto record the project’s workflow state before it is archived, with a database migration.Reopening
Testing