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

[v11.3.x] Alerting: Fix setting datasource uid, when datasource is string in old version #96273

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

grafana-delivery-bot[bot]
Copy link
Contributor

Backport 2f58311 from #96085


What is this feature?

This PR fixes a rare bug that happens on old rules created before uids where introduced in datasources.

In particular when trying to set datasource uid, and the datasource hapens to be an string instead of an object.

It seems a regression after this PR was merged (that was actually fixing another edge usecase)

Why do we need this feature?

It's a bug.

Who is this feature for?

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

Which issue(s) does this PR fix?:

Fixes #96040

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.

…d version (#96085)

fix setting datasource uid, when datasource is string in old versions rules

(cherry picked from commit 2f58311)
@soniaAguilarPeiron soniaAguilarPeiron merged commit 58333e0 into v11.3.x Nov 12, 2024
18 checks passed
@soniaAguilarPeiron soniaAguilarPeiron deleted the backport-96085-to-v11.3.x branch November 12, 2024 13:23
@Sergej-Vlasov Sergej-Vlasov modified the milestones: 11.3.x, 11.3.1 Nov 15, 2024
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.

3 participants