Skip to content

Revert "feat(ACI): Make rule stats and group history endpoints backwards compatible (#110282)"#111038

Merged
kcons merged 1 commit intomasterfrom
kcons/rollbax
Mar 18, 2026
Merged

Revert "feat(ACI): Make rule stats and group history endpoints backwards compatible (#110282)"#111038
kcons merged 1 commit intomasterfrom
kcons/rollbax

Conversation

@kcons
Copy link
Member

@kcons kcons commented Mar 18, 2026

This reverts commit e6be161.

The endpoint was already mostly backward compatible, so following our standard pattern results in a regression.

@kcons kcons requested a review from a team as a code owner March 18, 2026 22:01
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 18, 2026
@kcons kcons enabled auto-merge (squash) March 18, 2026 22:05
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.


except AlertRuleWorkflow.DoesNotExist:
# If no workflow is associated with this rule, just use the original behavior
logger.exception("No workflow associated with rule", extra={"rule_id": rule.id})
Copy link
Contributor

Choose a reason for hiding this comment

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

logger.exception used for expected non-error code path

Medium Severity

logger.exception is used for an AlertRuleWorkflow.DoesNotExist case that the comment explicitly describes as expected behavior ("just use the original behavior"). logger.exception logs at ERROR level with a full stack trace, which in the Sentry codebase would generate error events in Sentry's own monitoring. For any rule without an associated workflow — likely very common during migration — this creates significant noise in production error tracking. logger.info or logger.warning would be more appropriate here.

Additional Locations (1)
Fix in Cursor Fix in Web

@saponifi3d saponifi3d requested a review from a team as a code owner March 18, 2026 22:48
@kcons kcons merged commit 3631aa9 into master Mar 18, 2026
57 checks passed
@kcons kcons deleted the kcons/rollbax branch March 18, 2026 23:09
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.

2 participants