-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add team preferences functionality to provider #131
Conversation
Add team preferences functionality
NOTE: This PR cannot be merged until https://github.com/grafana/grafana-api-golang-client/pull/11/files is merged for the Go API. The call to update the preferences was incorrect and needed to be fixed. Once that PR is merged I will update the version of the api being referenced and call the "go mod vendor" and push those changes. |
@trotttrotttrott - I believe this PR is ready for review now. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Just some minor nitpicks in the docs. Could you also run go mod tidy
?
Co-authored-by: Chris Trott <908409+trotttrotttrott@users.noreply.github.com>
@trotttrotttrott - comments incorporated. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks once again @jonathan-dorsey!
This pull request will add the ability to maintain team preferences in the Grafana provider. The largest driver for this change is to be able to specify a home dashboard for each team. This PR is similar in structure to the PR that added folder permissions. Since team preferences cannot be added or deleted, we always perform an update. The delete will simply attempt to use the system default values, but if the corresponding team has already been deleted we simply ignore the error and continue.