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

Add team preferences functionality to provider #131

Merged
merged 10 commits into from
Oct 29, 2020

Conversation

jonathan-dorsey
Copy link
Contributor

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.

@jonathan-dorsey
Copy link
Contributor Author

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.

@jonathan-dorsey
Copy link
Contributor Author

@trotttrotttrott - I believe this PR is ready for review now. Thanks!

Copy link
Member

@trotttrotttrott trotttrotttrott left a 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?

website/docs/r/team_preferences.html.md Outdated Show resolved Hide resolved
website/docs/r/team_preferences.html.md Outdated Show resolved Hide resolved
@jonathan-dorsey
Copy link
Contributor Author

@trotttrotttrott - comments incorporated. Thanks!

Copy link
Member

@trotttrotttrott trotttrotttrott left a 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!

@trotttrotttrott trotttrotttrott merged commit 42597b2 into grafana:master Oct 29, 2020
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.

2 participants