grafana/pkg/services/provisioning/dashboards
Simon Aquino 5dbbf1826c Avoid ID validation before provisioning dashboards
Attempting to provision grafana using a previously exported
JSON dashboard with the ID field already set, might result in an error.
In fact, Grafana might believe that a dashboard with that
given ID already exists in the database, throwing an error if it doesn't.
(see pkg/services/sqlstore/dashboard.go#L32)

The dashboard provisioner should set the dashboard id to zero in order to
avoid this behaviour inducing the dashboard to be written to the DB
without ID validation.
2017-12-14 02:07:50 +01:00
..
test-configs improve error handling for datasources as cfg 2017-12-08 10:50:11 +01:00
test-dashboards dashboards as cfg: revert minor changes 2017-12-07 15:27:01 +01:00
config_reader_test.go fixes broken test 2017-12-08 11:33:15 +01:00
config_reader.go dashboards as cfg: revert minor changes 2017-12-07 15:27:01 +01:00
dashboard.go dashboards as cfg: type 2017-12-07 15:27:01 +01:00
file_reader_test.go dashboards as cfg: type 2017-12-07 15:27:01 +01:00
file_reader.go Avoid ID validation before provisioning dashboards 2017-12-14 02:07:50 +01:00
types.go removes unused property 2017-12-13 13:12:50 +01:00