grafana/pkg/components
Hugo Häggmark b7b6632a4d
PanelLibrary: adding library panels to Dashboard Api (#30278)
* Wip: First naive impl

* Chore: fix after merge

* Chore: changes after PR comments

* Chore: removes unused types

* Chore: adds feature toggle

* Refactor: adds library panels cleanup and connect when storing dashboards

* Refactor: adds feature toggle

* Update pkg/services/librarypanels/librarypanels.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor: adds disconnect library panels when deleting a dashboard

* Chore: changes after PR comments

* Tests: adds tests for LoadLibraryPanelsForDashboard

* Tests: adds tests for CleanLibraryPanelsForDashboard

* Tests: adds tests for ConnectLibraryPanelsForDashboard

* Tests: adds tests for DisconnectLibraryPanelsForDashboard and small refactor

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/services/librarypanels/librarypanels_test.go

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor: deletes all connections in one call and connects all in the same transaction

* Chore: adds better comments

* Chore: changes after PR comments

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-01-20 09:28:10 +01:00
..
apikeygen Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
dashdiffs Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
gtime gtime: Add ParseDuration function (#28525) 2020-11-02 19:26:19 +01:00
imguploader Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
null Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
securedata Snapshots: Store dashboard data encrypted in the database (#28129) 2020-10-13 10:19:42 +02:00
securejsondata Chore: Enable goprintffuncname and nakedret linters (#26376) 2020-07-23 08:14:39 +02:00
simplejson PanelLibrary: adding library panels to Dashboard Api (#30278) 2021-01-20 09:28:10 +01:00