-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(aci milestone 3): ACI dual delete helper #82280
base: master
Are you sure you want to change the base?
Conversation
ca3704f
to
cd16d41
Compare
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
46c1d9a
to
83addbc
Compare
cc0af05
to
951176e
Compare
if data_source is None: | ||
logger.error( | ||
"DataSource does not exist", | ||
extra={"alert_rule_id": AlertRule.id}, | ||
) | ||
return |
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.
if the data source is deleted and we return early, is it possible we skip deleting the detectors or workflows?
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.
Yes, I think it's possible. We're not deleting the data source anywhere outside of this dual delete function, though (for migrated legacy alert rules).
04ac44f
to
efd919f
Compare
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.
lgtm besides the little import, I think you said you wanted to wait until mine gets through to rebase though? if I'm mistaken lmk and I'll approve but don't wanna accidentally push it out too early
@@ -103,6 +103,8 @@ | |||
from sentry.utils.audit import create_audit_entry_from_user | |||
from sentry.utils.snuba import is_measurement | |||
|
|||
# from sentry.workflow_engine.migration_helpers.alert_rule import dual_delete_migrated_alert_rule |
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.
oop
Add helper method to delete the corresponding rows in the ACI tables after deleting an
AlertRule
.