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

OpenAPI Client: Clone before modifying org ID #1150

Merged
merged 2 commits into from
Nov 12, 2023

Conversation

julienduchesne
Copy link
Member

Needs grafana/grafana-openapi-client-go#27 to be merged and ref to be changed in go.mod before merging
Closes #1125

In a parallel context where both the main org (id 0) and non-main orgs are being called, the wrong client may be used
To fix this, we can clone the client everytime we modify it. This will make sure we avoid conflicts, since we're never modifying the main reference (created in provider.go)

Needs grafana/grafana-openapi-client-go#27 to be merged and ref to be changed in go.mod before merging
Closes #1125

In a parallel context where both the main org (id 0) and non-main orgs are being called, the wrong client may be used
To fix this, we can clone the client everytime we modify it. This will make sure we avoid conflicts, since we're never modifying the main reference (created in provider.go)
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 marked this pull request as ready for review November 10, 2023 18:28
@julienduchesne julienduchesne requested a review from a team as a code owner November 10, 2023 18:28
@julienduchesne julienduchesne merged commit 75937aa into master Nov 12, 2023
23 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/clone-openapi-client branch November 12, 2023 23: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: v2.6.0 does not properly read grafana_team outside of main org
2 participants