Skip to content

fix(monitors): Pass deletion guid as audit transaction id - #127813

Closed
joshuarli wants to merge 1 commit into
masterfrom
fix/monitor-rule-audit-transaction-id
Closed

joshuarli wants to merge 1 commit into
masterfrom
fix/monitor-rule-audit-transaction-id

Conversation

@joshuarli

Copy link
Copy Markdown
Member

When deleting a monitor's alert rules, the audit entry was created with transaction_id=scheduled_rule, the CellScheduledDeletion object itself, so the audit log extra received a model instance instead of an id. The monitor and monitor environment delete paths in the same module pass schedule.guid; this now does the same.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@getsantry getsantry Bot added the Stale label Nov 7, 2026
@getsantry

getsantry Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

The rule removal audit entry received the CellScheduledDeletion object as transaction_id. Pass its guid, as the other delete paths in this module do, so the audit log records an id instead of a model instance.
@joshuarli

Copy link
Copy Markdown
Member Author

Consolidated into #130964 as part of the typing campaign cleanup; code unchanged from the individually validated draft. Tracked in #130956.

@joshuarli joshuarli closed this Nov 12, 2026
joshuarli added a commit that referenced this pull request Nov 26, 2026
Consolidates the previously separate drafts #127793 and #127813 into one
review unit; the code is unchanged from those individually validated drafts.

- monitor index no longer silently mis-filters when the OK status maps onto
  ACTIVE, and filters status through environment-scoped EXISTS instead of a
  joined membership check
- monitor deletion passes the scheduled deletion GUID as the audit log
  transaction id instead of the rule id

Integrated in #130956.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Team: python-typing Scope: Backend Automatically applied to PRs that change backend components Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant