Require valid reference order for submission/publication #2300
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.
Many existing projects have an invalid order of entries in their References section, due to issue #2137. "Invalid" means:
(a) One or more references have
order=None
, typically because it was copied from a past published version.(b) Two references have the same
order
value, typically because a reference was deleted from the middle of the list and then a new one was added.(c)
order
is distinct but doesn't matchid
order, typically because two references were deleted from the middle of the list and then a new one was added.Whatever the reason for having an invalid order of references, it is not feasible to fix the order automatically, so we want to require the author/editor to review and fix it by hand before the project is published.
The demo project "MIMIC-III Clinical Database" currently has
order=None
for its three references. With these changes, you should see:If you open the preview page, there is an error message "Order of references may be incorrect".
If you open the Project Content page, there is a warning at the bottom of the page.
If you add or edit references, and click "Save Description" (without checking the checkbox), the references should be saved but the warning should still be present.
If you check the checkbox and then click "Save Description", the warning should go away.
Alternatively, if you delete all three of the original references and then refresh the page, the warning should go away.