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

Alerting: Save and restore condition reference while switching type #71629

Merged

Conversation

soniaAguilarPeiron
Copy link
Member

What is this feature?

This PR saves and restores condition reference in the alert rule form when creating a new rule and switching between types.
The problem was that once user switch to cloud rule type the condition is set to the query and we loose this reference to the grafana managed expression or query condition.

Why do we need this feature?

We want to help user to keep the options they have while switching between alert rule types.

Who is this feature for?

All users.

Special notes for your reviewer:

Before this change:

conditionKO.mp4

After the change:

conditionOK.mp4

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@soniaAguilarPeiron soniaAguilarPeiron added this to the 10.1.x milestone Jul 14, 2023
@soniaAguilarPeiron soniaAguilarPeiron requested a review from a team as a code owner July 14, 2023 09:14
@soniaAguilarPeiron soniaAguilarPeiron self-assigned this Jul 14, 2023
@soniaAguilarPeiron soniaAguilarPeiron requested review from gillesdemey, armandgrillet, VikaCep and konrad147 and removed request for a team July 14, 2023 09:14
@soniaAguilarPeiron soniaAguilarPeiron merged commit ec479b8 into main Jul 18, 2023
20 checks passed
@soniaAguilarPeiron soniaAguilarPeiron deleted the alerting/save-restore-condition-while-switching-type branch July 18, 2023 08:06
linoman pushed a commit that referenced this pull request Jul 24, 2023
…71629)

Save and restore condition reference while switching type
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants