Skip to content
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

Validation errors on job creation are not handled #3139

Closed
amickan opened this issue Dec 15, 2023 · 6 comments · Fixed by #3465
Closed

Validation errors on job creation are not handled #3139

amickan opened this issue Dec 15, 2023 · 6 comments · Fixed by #3465
Assignees

Comments

@amickan
Copy link
Contributor

amickan commented Dec 15, 2023

@jmsmkn
Copy link
Member

jmsmkn commented Jan 10, 2024

We are seeing this a lot, important to fix.

@amickan
Copy link
Contributor Author

amickan commented Jan 10, 2024

PR to fix this for archive items is about ready, but for algorithm jobs I was hoping to get the open PR from before Christmas merged first because it is contingent on it. I can also make a quick fix if necessary in the meantime, but it won't use the same code as display sets and archive items (yet) then.

@jmsmkn
Copy link
Member

jmsmkn commented Jan 10, 2024

OK, no need to do something separate, I'll review #3125 as soon as I can.

@jmsmkn
Copy link
Member

jmsmkn commented Feb 21, 2024

@jmsmkn
Copy link
Member

jmsmkn commented Feb 23, 2024

I have a big PR that touches on algorithm job creation right now, so best to hold off a few days on a fix for this.

@amickan
Copy link
Contributor Author

amickan commented Feb 23, 2024

Good that say that. I was just going to start looking at this.

amickan added a commit that referenced this issue Oct 7, 2024
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
(DIAGNijmegen/rse-roadmap#335 (comment))

Part of DIAGNijmegen/rse-roadmap#335 

Closes #3139
Closes #3325
Closes #3565
Partially addresses
#3368

---------

Co-authored-by: James Meakin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants