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

Plugin Framework: Fix Configure function #1487

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

julienduchesne
Copy link
Member

Closes #1485
I was using the Configure function of resources to extract the grafana client
Turns out that this function is called before ProviderData is even initialized in real world scenarios

I moved the client exist check down to where the client is actually used and now the resources work as shown in the modified integration test which used to fail before the fix

Closes #1485
I was using the `Configure` function of resources to extract the grafana client
Turns out that this function is called before ProviderData is even initialized in real world scenarios
I moved the client exist check down to where the client is actually used and now the resources work as shown in the modified integration test which used to fail before the fix
@julienduchesne julienduchesne requested review from a team as code owners April 15, 2024 16:06
Copy link

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 merged commit afd5ae9 into main Apr 16, 2024
27 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/fix-plugin-framework-resources branch April 16, 2024 13:56
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]: error trying to use grafana_folder_permission_item (Resource)
2 participants