-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor job creation code #3465
Conversation
This PR is ready for another round of review. |
Sorry I've not reviewed this - been ill and not been able to concentrate on it properly so just doing easy work (MarkDown conversion). |
Get well soon, James! |
Beterschap James! The sniffle-time is upon us! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting much easier to follow now, just some small points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Epic work, well done!
It only took 219 comments... Thanks for the help and review! |
Indeed, this is the 7th largest PR we've had, and the largest one that doesn't add/remove any vendored JS:
|
This PR refactors the job creation code. Jobs, archive items and display sets now all use the same creation and validation logic.
Errors from asynchronous input validation now get caught and are reported back to the user as error message on the Job object. The job is then cancelled and not executed.
This PR also enables selecting existing images and files for jobs through the UI and enables re-using CIVs for existing values if possible. The same holds partially for the API view as well. It is not yet possible to create a job through the API with an existing non-image file. This was out of scope for this PR (https://github.com/DIAGNijmegen/rse-roadmap/issues/335#issuecomment-2304484574)
Part of https://github.com/DIAGNijmegen/rse-roadmap/issues/335
Closes #3139
Closes #3325
Closes #3565
Partially addresses #3368