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

feat(api-raw): raise a 404 Not Found error when a resource is missing in the study #2078

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

laurent-laporte-pro
Copy link
Contributor

This PR enhances the error management for the GET /v1/studies/{uuid}/raw endpoint. It now returns a 404 Not Found error if a resource within the study is unavailable, replacing the previous 500 error, which was not ideal.

Additionally, this Pull Request refines the code structure and style in the test_binding_constraints.py file, making it more straightforward.

These modifications are necessary for issue #2077.

@laurent-laporte-pro laurent-laporte-pro added this to the v2.17.3 milestone Jun 27, 2024
@laurent-laporte-pro laurent-laporte-pro force-pushed the feature/improve-raw-api-error-handling branch from 49be693 to 27a60d3 Compare June 27, 2024 13:02
@laurent-laporte-pro laurent-laporte-pro merged commit 5ad8c1d into dev Jun 27, 2024
7 checks passed
@laurent-laporte-pro laurent-laporte-pro deleted the feature/improve-raw-api-error-handling branch June 27, 2024 14:04
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.

2 participants