Skip to content

feat(leaky-bucket): prevent sending alerts to disabled org integrations#30339

Merged
scefali merged 7 commits into
masterfrom
feat/handle-disabled-org-integrations
Dec 6, 2021
Merged

feat(leaky-bucket): prevent sending alerts to disabled org integrations#30339
scefali merged 7 commits into
masterfrom
feat/handle-disabled-org-integrations

Conversation

@scefali

@scefali scefali commented Dec 1, 2021

Copy link
Copy Markdown
Contributor

This PR adds logic to make sure we don't allow users to pick a disabled integration (or org integration) for metric alerts and issue alerts. Additionally, it ensures we don't send issue alerts, metric alerts, or notifications for those disabled integrations. This is being done to make sure when we set the OrganizationIntegration status to disabled for Slack, alerting and notification get properly disabled.

Note, I am purposely not propagating this change for other integration features such as stack trace linking, issue syncing, etc. Since it seems the leaky bucket only impacts alert rule integrations, making those changes isn't strictly necessary to ensure functionality (and could add risk to this PR). Perhaps in a follow-up PR we might extend these checks there.

@ceorourke ceorourke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@wedamija wedamija left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks for thorough tests!

@scefali scefali merged commit 7c6d4ad into master Dec 6, 2021
@scefali scefali deleted the feat/handle-disabled-org-integrations branch December 6, 2021 18:52
scefali pushed a commit that referenced this pull request Dec 6, 2021
scefali pushed a commit that referenced this pull request Dec 6, 2021
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants