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

Datasources: Fix numerical UIDs #1531

Merged
merged 1 commit into from
May 3, 2024

Conversation

julienduchesne
Copy link
Member

Closes #1511
The current getDatasourceByUIDOrID logic does not support numerical UIDs
Since the ID of the resource is now normalized, we should always start with trying the ID as a DS UID, and if that fails, try it as a numerical ID

Closes #1511
The current `getDatasourceByUIDOrID` logic does not support numerical UIDs
Since the ID of the resource is now normalized, we should always start with trying the ID as a DS UID, and if that fails, try it as a numerical ID
Copy link

github-actions bot commented May 3, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@julienduchesne julienduchesne marked this pull request as ready for review May 3, 2024 11:59
@julienduchesne julienduchesne requested a review from a team as a code owner May 3, 2024 11:59
@julienduchesne julienduchesne merged commit 541e46f into main May 3, 2024
27 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/datasource-numerical-ids branch May 3, 2024 14:39
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.

[Bug]: Already existing and provisioned datasources get their state corrupted when upgrading provider to 2.15+
2 participants