-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: incorrect behaviors in Batch Entity Upsert endpoint #1290
Conversation
bobeal
commented
Dec 18, 2024
- noOverwrite option is not handled whereas it should be passed when in update mode
- replace mode was only replacing the attributes of the entity (and thus was missing all the other needed actions: replace types and scopes, send events...)
Test Results 69 files ±0 69 suites ±0 1m 25s ⏱️ +2s Results for commit 93d8cb5. ± Comparison against base commit 1b07122. This pull request removes 189 and adds 34 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
@@ -109,7 +109,9 @@ class EntityOperationHandler( | |||
) | |||
@RequestParam queryParams: MultiValueMap<String, String> | |||
): ResponseEntity<*> = either { | |||
val options = queryParams.getFirst(QP.OPTIONS.key) | |||
val options = queryParams.getFirst(QP.OPTIONS.key)?.split(",") | |||
val disallowOverwrite = options?.any { it == OptionsValue.NO_OVERWRITE.value } == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a no_overwrite option for upsert in the specification. (5.6.8 and 6.15)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the in-progress doc with misc fixes to contribute to the spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed, aligned with the figures of operations from 1.6.1. Spec needs clarification, to be discussed with ISG-CIM.
- noOverwrite option is not handled whereas it should be passed when in update mode - replace mode was only replacing the attributes of the entity
82a70b4
to
93d8cb5
Compare
Quality Gate passedIssues Measures |
@thomasBousselin OK for you? |