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

[20.01] Check dataset is accessible and use payload in job error API #9753

Merged

Conversation

nsoranzo
Copy link
Member

Without the payload parameter, it cannot be correctly used by BioBlend.

Also:

  • self.decode_id() already raise a MalformedId exception
  • Use RequestParameterMissingException instead of ObjectAttributeMissingException when no object is to be created
  • Prevent a KeyError exception if dataset_id is missing from the payload
  • Check that the job is in error and the dataset is an output of the job

@nsoranzo
Copy link
Member Author

Green and ready to review!

nsoranzo and others added 2 commits May 13, 2020 16:42
Without the `payload` parameter, it cannot be correctly used by BioBlend.

Also:
- `self.decode_id()` already raise a `MalformedId` exception
- Use `RequestParameterMissingException` instead of
  `ObjectAttributeMissingException`  when no object is to be created
- Prevent a `KeyError` exception if `dataset_id` is missing from the
  payload
- Check that the dataset is an output of the job
We cannot be sure that the response is valid JSON if there was an error.

Also do not use mutable data structures for argument defaults.

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
@nsoranzo nsoranzo force-pushed the release_20.01_fix_jobs_error_api branch from 840c3ae to 0de3051 Compare May 13, 2020 15:42
@nsoranzo nsoranzo merged commit 7e8dc81 into galaxyproject:release_20.01 May 13, 2020
@nsoranzo nsoranzo deleted the release_20.01_fix_jobs_error_api branch May 13, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants