Skip to content

Commit

Permalink
Support Grafana 10.x
Browse files Browse the repository at this point in the history
Fix #318

Appears the team preferences required home folder UID and not ID.  The docs are incorrect on Grafana's website it seems
  • Loading branch information
treydock committed Feb 1, 2024
1 parent 0dad8d7 commit 07c9adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/grafana_team/grafana.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def team
def map_preferences(preferences)
{
theme: preferences['theme'],
home_dashboard: preferences['homeDashboardId'],
home_dashboard: preferences['homeDashboardUID'],
timezone: preferences['timezone']
}
end
Expand All @@ -97,7 +97,7 @@ def setup_save_preferences_data
dash = get_dashboard(resource[:home_dashboard], resource[:home_dashboard_folder])
request_data = {
theme: resource[:theme],
homeDashboardId: dash[:id],
homeDashboardUID: dash[:uid],
timezone: resource[:timezone]
}
['PUT', endpoint, request_data]
Expand Down
2 changes: 1 addition & 1 deletion spec/support/acceptance/supported_versions.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

def supported_versions
%w[8.5.22 9.2.15]
%w[8.5.22 9.2.15 10.3.1]
end

0 comments on commit 07c9adc

Please sign in to comment.