grafana/pkg/services/provisioning
Maksim Nabokikh ec9a587cbe
Provisioning: Improve validation by validating across all dashboard providers (#26742)
* Provisioning: check sanity across all dashboard readers

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Apply suggestions from code review

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Refactor of duplicateValidator and fix issues according to commentaries

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Apply suggestions from code review

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

* Remove newDuplicateEntries function

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Change folderUid in logs to folderUID

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Restrict write access for readers, which are provisioning duplicate dashboards

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Fix file reader after rebasing onto master

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Apply suggestions from code review

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

* Format file_reader

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Fix lint problem

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-07-21 17:52:41 +02:00
..
dashboards Provisioning: Improve validation by validating across all dashboard providers (#26742) 2021-07-21 17:52:41 +02:00
datasources API: Add by UID routes for data sources (#29884) 2021-01-13 13:16:27 -05:00
notifiers Slack: Use chat.postMessage API by default (#32511) 2021-04-22 16:00:21 +02:00
plugins PluginManager: Make remaining plugin state non-global (#32094) 2021-03-18 13:53:01 +01:00
utils Provisioning: Add validation for missing organisations in datasource, dashboard, and notifier configurations (#26601) 2020-07-30 12:59:12 +03:00
values Chore: Disable default golangci-lint filter (#29751) 2020-12-15 09:32:06 +01:00
provisioning_mock.go ProvisioningService: Change the ProvisioningService interface for easier extension (#32910) 2021-04-21 13:41:34 +02:00
provisioning_test.go ProvisioningService: Change the ProvisioningService interface for easier extension (#32910) 2021-04-21 13:41:34 +02:00
provisioning.go ProvisioningService: Change the ProvisioningService interface for easier extension (#32910) 2021-04-21 13:41:34 +02:00