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 when posting a run incorrectly update an anaysis state to RUN_ERROR #1085

Closed
sambles opened this issue Jul 22, 2024 · 0 comments · Fixed by #1086
Closed

Comments

@sambles
Copy link
Contributor

sambles commented Jul 22, 2024

Issue Description

If something go wrong at validation when posting to ..analyses/{id}/run/ then a bad request response is raised (correct behaviour)

However, the analysis status is also set to RUN_ERROR which is not correct

if errors:
self.status = self.status_choices.RUN_ERROR
self.save()
raise ValidationError(detail=errors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants