fix bug in autocheck background task submitter, and update related tests #2460
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.
Enable autochecks for incoming applications
When we last enabled autochecks on incoming applications, there were a number of duplicates created. This PR fixes the apparent cause of those duplicates, and prepares the code for autochecks to be applied on incoming applications.
NOTE: this code DOES NOT enable autochecks in
settings.py
on incoming applications, it leaves it OFF by default, but it DOES updateproduction.cfg
to turn on autochecks. The production config will require update/sync with the source config.This PR...
Developer Checklist
Developers should review and confirm each of these items before requesting review
constants
ormessages
filesdates
)url_for
not hard-codeddevelop
Reviewer Checklist
Reviewers should review and confirm each of these items before approval
If there are multiple reviewers, this section should be duplicated for each reviewer
constants
ormessages
filesdates
)url_for
not hard-codeddevelop
Testing
Review the application submission workflow autochecks testbook here https://doaj.github.io/doaj-docs/master/testbook/index.html#autocheck/application_submission_workflow
This is supported by the testdrive
/testdrive/autocheck_application_submission
Deployment
Configuration changes
This PR requires production to be updated with the config: