grafana/pkg/services/provisioning
gotjosh 8e508e5ce4 Provisioning: Handle empty nested keys on YAML provisioning datasources (#19547)
* Fix: Handle empty nested keys on YAML provisioning datasources

As we provision a datasource via a YAML file, we attempt to transform the
file into sensible Go types that the provisioning code can use.

While this happens, there is a chance some of the keys nested within
the YAML array are empty.

This fix allows the YAML parser to handle empty keys by null checking
the return of `reflect.TypeOf` which according to the documentation:

> TypeOf returns the reflection Type that represents the dynamic type of i. If i is a nil interface value, TypeOf returns nil.

Can return nil.

* Add tests
2019-10-02 08:48:19 +02:00
..
dashboards Build: use golangci-lint as a make command (#17739) 2019-07-02 16:06:59 +03:00
datasources Azure Monitor: Revert support for cross resource queries (#19115)" (#19346) 2019-09-24 12:01:12 +02:00
notifiers docs: fixes typo in provisioning docs (#17248) 2019-05-23 13:06:34 +02:00
values Provisioning: Handle empty nested keys on YAML provisioning datasources (#19547) 2019-10-02 08:48:19 +02:00
provisioning_mock.go Chore: explore possibilities of using makefile (#17039) 2019-05-16 00:29:26 +03:00
provisioning_test.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
provisioning.go backend: replace /pkg/errors with errutil (#17065) 2019-05-15 12:20:17 +02:00