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.4.x] Alerting: Fix simplified routing group by override #86620

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

JacobsonMT
Copy link
Member

Backport 7144500 from #86552


What is this feature?

Custom group by overrides for simplified routing looked like they were generating correctly using GroupByStr, displaying correctly in exports and UI but the generated routes were actually missing required fields normally set during upstream Route validation.

This fix ensures the missing fields GroupBy and GroupByAll are applied to the generated routes.

Why do we need this feature?

For simplified routing group by overrides to function correctly.

Who is this feature for?

Users of simplified routing.

* Alerting: Fix simplified routing custom group by override

Custom group by overrides for simplified routing were missing required fields
GroupBy and GroupByAll normally set during upstream Route validation.

This fix ensures those missing fields are applied to the generated routes.

* Inline GroupBy and GroupByAll initialization instead of normalize after

(cherry picked from commit 7144500)
@JacobsonMT JacobsonMT added this to the 10.4.x milestone Apr 19, 2024
@JacobsonMT JacobsonMT requested review from a team, rwwiv, yuri-tceretian and grobinson-grafana and removed request for a team April 19, 2024 15:09
Copy link
Contributor

@yuri-tceretian yuri-tceretian left a comment

Choose a reason for hiding this comment

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

LGTM

@JacobsonMT JacobsonMT enabled auto-merge (squash) April 19, 2024 15:21
@JacobsonMT JacobsonMT merged commit 879edcb into v10.4.x Apr 19, 2024
22 checks passed
@JacobsonMT JacobsonMT deleted the backport-86552-to-v10.4.x branch April 19, 2024 15:23
@fabrizio-grafana fabrizio-grafana modified the milestones: 10.4.x, 10.4.3 May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants