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

mdm delete with cascade bug fix #6540

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

TipzCM
Copy link
Collaborator

@TipzCM TipzCM commented Dec 5, 2024

closes #6539

Copy link

github-actions bot commented Dec 5, 2024

Formatting check succeeded!

Copy link
Contributor

@dotasek dotasek left a 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.

@TipzCM TipzCM enabled auto-merge (squash) December 9, 2024 21:48
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.18%. Comparing base (406db33) to head (9ba1e0a).
Report is 129 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@tadgh tadgh left a 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!

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)")));
Copy link
Collaborator

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.

Copy link
Collaborator Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MDM - Deleting resources when mdm and delete cascade is enabled causes errors
3 participants