Skip to content
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

fix: prevent submitting alerts per check when FF is off #1068

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

VikaCep
Copy link
Contributor

@VikaCep VikaCep commented Feb 18, 2025

What this PR does / why we need it:

Prevents executing the new alerts POST request to update alerts when saving a check if the feature flag is off.

Special notes for your reviewer:

This was a regression introduced after a refactor PR. Before, we were relying on the absence of the alerts property from the form in order to save them or not. Since after the refactor the alerts prop is always present, I'm now relying on the status of the feature flag directly.

Ref https://raintank-corp.slack.com/archives/C0162C1K9E1/p1739894967044089

@VikaCep VikaCep self-assigned this Feb 18, 2025
@VikaCep VikaCep marked this pull request as ready for review February 18, 2025 16:42
@VikaCep VikaCep requested a review from a team as a code owner February 18, 2025 16:42
@VikaCep VikaCep requested review from w1kman and ckbedwell February 18, 2025 16:42
Copy link
Contributor

@ckbedwell ckbedwell left a comment

Choose a reason for hiding this comment

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

LGTM. Good catch!

@VikaCep VikaCep merged commit a0062cd into main Feb 18, 2025
7 checks passed
@VikaCep VikaCep deleted the saving-check-alerts branch February 18, 2025 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants