-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
mdm delete with cascade bug fix #6540
base: master
Are you sure you want to change the base?
Conversation
Formatting check succeeded! |
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.
Looks good to me.
hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/interceptor/MdmStorageInterceptor.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6540 +/- ##
============================================
- Coverage 83.54% 83.18% -0.37%
- Complexity 27432 28168 +736
============================================
Files 1707 1778 +71
Lines 106185 110128 +3943
Branches 13397 13844 +447
============================================
+ Hits 88710 91606 +2896
- Misses 11750 12554 +804
- Partials 5725 5968 +243 ☔ View full report in Codecov by Sentry. |
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.
Approved pending questions and minor changes. nice tests!
...uhn/hapi/fhir/changelog/7_8_0/6539-handle-mdm-link-deletion-when-delete-cascade-enabled.yaml
Outdated
Show resolved
Hide resolved
...uhn/hapi/fhir/changelog/7_8_0/6539-handle-mdm-link-deletion-when-delete-cascade-enabled.yaml
Show resolved
Hide resolved
hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/interceptor/MdmStorageInterceptor.java
Outdated
Show resolved
Hide resolved
hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/interceptor/MdmStorageInterceptor.java
Show resolved
Hide resolved
hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/interceptor/MdmStorageInterceptor.java
Outdated
Show resolved
Hide resolved
hapi-fhir-server-mdm/src/main/java/ca/uhn/fhir/mdm/interceptor/MdmStorageInterceptor.java
Outdated
Show resolved
Hide resolved
...uhn/hapi/fhir/changelog/7_8_0/6539-handle-mdm-link-deletion-when-delete-cascade-enabled.yaml
Show resolved
Hide resolved
...hir-jpaserver-mdm/src/test/java/ca/uhn/fhir/jpa/mdm/interceptor/MdmStorageInterceptorIT.java
Outdated
Show resolved
Hide resolved
assertTrue(outcome.getOperationOutcome() instanceof OperationOutcome); | ||
OperationOutcome out = (OperationOutcome) outcome.getOperationOutcome(); | ||
assertTrue(out.getIssue().stream() | ||
.anyMatch(f -> f.getDiagnostics().toLowerCase().contains("successfully deleted 2 resource(s)"))); |
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.
question: I know this is likely not new, but .... like 5 resources were deleted here, weird that it would say 2.
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 think this is the result of using a 'fake' cascading interceptor.
The real one actually goes through and adds additional messages. But that code isn't in the test, so it only says it deletes 2 resources (no matter what)
closes #6539