Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 3c743cd

Browse files
Omit the organization prefs dashboard ID if unset (#131)
* Add `WithOrgID` function to Grafana client Issue: grafana/terraform-provider-grafana#747 This will allow the Terraform provider to use a different Org ID for each resource. Currently, the client is configured once for each `provider` block One caveat is that this feature can only be used with basic auth since API keys are org-scoped * Fix linting * Omit the organization prefs dashboard ID if unset Will be used for grafana/terraform-provider-grafana#768
1 parent 80e79a9 commit 3c743cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preferences.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type QueryHistoryPreference struct {
2121
// Preferences represents Grafana preferences.
2222
type Preferences struct {
2323
Theme string `json:"theme"`
24-
HomeDashboardID int64 `json:"homeDashboardId"`
24+
HomeDashboardID int64 `json:"homeDashboardId,omitempty"`
2525
HomeDashboardUID string `json:"homeDashboardUID,omitempty"`
2626
Timezone string `json:"timezone,omitempty"`
2727
WeekStart string `json:"weekStart,omitempty"`

0 commit comments

Comments
 (0)