Skip to content

feat(ACI): Set up deletions for Incident model #89227

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

Merged
merged 5 commits into from
Apr 10, 2025
Merged

Conversation

ceorourke
Copy link
Member

When we delete an Incident we want to be sure that we're also deleting the corresponding IncidentGroupOpenPeriod and the GroupOpenPeriod.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 9, 2025
@ceorourke ceorourke requested review from a team and snigdhas April 9, 2025 21:55
Copy link

codecov bot commented Apr 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #89227      +/-   ##
==========================================
+ Coverage   85.22%   87.70%   +2.47%     
==========================================
  Files       10103    10109       +6     
  Lines      571685   571969     +284     
  Branches    22476    22476              
==========================================
+ Hits       487226   501622   +14396     
+ Misses      84038    69926   -14112     
  Partials      421      421              

@ceorourke ceorourke merged commit 62c7065 into master Apr 10, 2025
60 checks passed
@ceorourke ceorourke deleted the ceorourke/ACI-241 branch April 10, 2025 16:39
Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a problem, but we might need to be careful here that when we drop Incidents fully that we don't end up cascade deleting GroupOpenPeriod. Probably it won't be an issue, because we'll just remove references to the model and drop it, rather than deleting rows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants