grafana/pkg/services/libraryelements
Matthew Jacobson 5dee2ed24c
Alerting: Add first Grafana reserved label grafana_folder (#50262)
* Alerting: Add first Grafana reserved label g_label

g_label holds the title of the folder container the alert. The intention of this label
is to use it as part of the new default notification policy groupBy.

* Add nil check on updateRule labels map

* Disable gocyclo lint on schedule.ruleRoutine

will remove later in a separate refactoring PR to reduce complexity.

* Address doc suggestions

* Update g_folder for rules in folder when folder title changes

* Remove global bus in FolderService

* Modify tests to fit new common g_folder label

* Add changelog entry

* Fix merge conflicts

* Switch GrafanaReservedLabelPrefix from `g_` to `grafana_`
2022-06-17 13:10:49 -04:00
..
api.go Chore: add Folderuid into panel-library API (#48577) 2022-05-05 10:04:54 +02:00
database.go LibraryPanels: Require only viewer permissions to use a Library Panel (#50241) 2022-06-13 14:26:17 +01:00
guard.go LibraryPanels: Require only viewer permissions to use a Library Panel (#50241) 2022-06-13 14:26:17 +01:00
libraryelements_create_test.go Chore: add Folderuid into panel-library API (#48577) 2022-05-05 10:04:54 +02:00
libraryelements_delete_test.go API: return resource ID when deleting datasource with UID and library element (#41342) 2021-11-05 15:06:14 +01:00
libraryelements_get_all_test.go Chore: Refactor api handlers to use web.Bind (#42199) 2021-11-29 10:18:01 +01:00
libraryelements_get_test.go Chore: replace macaron with web package (#40136) 2021-10-11 14:30:59 +02:00
libraryelements_patch_test.go Chore: add Folderuid into panel-library API (#48577) 2022-05-05 10:04:54 +02:00
libraryelements_permissions_test.go LibraryPanels: Require only viewer permissions to use a Library Panel (#50241) 2022-06-13 14:26:17 +01:00
libraryelements_test.go Alerting: Add first Grafana reserved label grafana_folder (#50262) 2022-06-17 13:10:49 -04:00
libraryelements.go Dashboards: Refactor service to make it injectable by wire (#44588) 2022-02-16 14:15:44 +01:00
models.go Chore: add Folderuid into panel-library API (#48577) 2022-05-05 10:04:54 +02:00
writers.go LibraryElements: Creates usage stats for panels and variables (#34476) 2021-05-24 06:11:01 +02:00