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

[v10.0.x] Alerting: Sort NumberCaptureValues in EvaluationString #71931

Merged
merged 1 commit into from Jul 19, 2023

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 89dcaaf from #71927


What is this feature?

This commit changes extractEvalString to sort NumberCaptureValues in ascending order of Var before building the output string. This means that users will see EvaluationString in a consistent order, but also make it possible to assert its output in tests.

Why do we need this feature?

[Add a description of the problem the feature is trying to solve.]

Who is this feature for?

[Add information on what kind of user the feature is for.]

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

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.

This commit changes extractEvalString to sort NumberCaptureValues
in ascending order of Var before building the output string. This
means that users will see EvaluationString in a consistent order,
but also make it possible to assert its output in tests.

(cherry picked from commit 89dcaaf)
@grobinson-grafana grobinson-grafana enabled auto-merge (squash) July 19, 2023 11:13
@grobinson-grafana grobinson-grafana merged commit d30e6f2 into v10.0.x Jul 19, 2023
20 checks passed
@grobinson-grafana grobinson-grafana deleted the backport-71927-to-v10.0.x branch July 19, 2023 11:22
@zerok zerok modified the milestones: 10.0.x, 10.0.3 Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants