-
Notifications
You must be signed in to change notification settings - Fork 95
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
CMR-9848: When submitting multiple associations, if one fails CMR returns a 400 but still makes the other associations #2198
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…sitory into CMR-9848-Association-Status
…sitory into CMR-9848-Association-Status
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2198 +/- ##
==========================================
+ Coverage 58.23% 58.26% +0.03%
==========================================
Files 1056 1056
Lines 71012 71082 +70
Branches 2026 2033 +7
==========================================
+ Hits 41354 41417 +63
+ Misses 27771 27766 -5
- Partials 1887 1899 +12 ☔ View full report in Codecov by Sentry. |
jmaeng72
requested review from
eereiter,
isja17,
TylerHeald1,
dpesall,
daniel-zamora,
jceaser and
zimzoom
December 12, 2024 14:41
eereiter
approved these changes
Dec 12, 2024
jceaser
requested changes
Dec 17, 2024
system-int-test/test/cmr/system_int_test/search/misc/association_test.clj
Show resolved
Hide resolved
jceaser
approved these changes
Dec 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
What is the problem?
When some associations in POST request, fail, but some succeed. The response returns a 400 for association endpoints, but we want it to reflect the true state that some associations failed.
What is the Solution?
If a request with multiple associations returns with some successes and some failures, we will return a 207 MULT-STATUS instead, with each association having its own status of 200 or 400 based on success or failure.
Associations affected:
New Expected Response Status Behavior:
What areas of the application does this impact?
Search App
Checklist