grafana/pkg/services/dashboardimport
idafurjes 2532047e7a
Add FolderUID for library elements (#79572)
* Add FolderUID in missing places for libraryelements

* Add migration for FolderUID in library elements table

* Add Folder UIDs tolibrary panels

* Adjust dashboard import with folder uid

* Fix lint

* Rename back FolderUID to UID

* Remove default

* Check if folderUID is nil

* Add unique indes on org_id,folder_uid,name and kind

* Update pkg/services/libraryelements/database.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Fix folder integration test, with unique index on library elements

* Make folder uids nullable and rewrite migration query

* Use dashboard uid instead of folder_uid

* Adjust test

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-03-01 10:16:33 +01:00
..
api Grafana: Replace magic number with a constant variable in response status (#80132) 2024-02-27 18:39:51 +02:00
service Add FolderUID for library elements (#79572) 2024-03-01 10:16:33 +01:00
utils Chore: Change response status for dashboard import with invalid input (#81521) 2024-01-30 16:57:01 +01:00
dashboardimport.go Chore: Deprecate FolderId in ImportDashboardRequest and ImportDashboardResponse (#77627) 2023-11-06 11:32:34 -05:00