grafana/pkg/services
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
..
alerting Alerting: Truncate PagerDuty summary when greater than 1024 characters (#18730) 2019-09-20 10:39:27 +02:00
annotations Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
auth Testing: Include BatchRevoke for all tokens in the fake. (#17728) 2019-07-02 09:42:35 +02:00
cleanup move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
dashboards move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
datasources codestyle: moves cache to infra (#17519) 2019-06-13 10:55:38 +02:00
guardian move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
hooks Adds backend hooks service so extensions can modify index data 2018-10-12 11:26:42 +02:00
ldap LDAP: Show non-matched groups returned from LDAP (#19208) 2019-09-19 16:13:38 +01:00
login Login: divide login errors by pkg and service (#17835) 2019-07-01 14:32:17 +03:00
multildap Multi-LDAP: Do not fail-fast on invalid credentials (#19261) 2019-09-23 13:34:05 +01:00
notifications Build: Fix potential case-insensitive import collision for github.com/Unknwon/com (#18915) 2019-09-09 14:22:06 +03:00
provisioning Provisioning: Handle empty nested keys on YAML provisioning datasources (#19547) 2019-10-02 08:48:19 +02:00
quota Auth: Enable retries and transaction for some db calls for auth tokens (#16785) 2019-04-30 14:42:01 +02:00
rendering Image rendering: Add deprecation warning when PhantomJS is used for rendering images (#18933) 2019-09-10 16:16:51 +03:00
search Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
sqlstore API: Add createdAt field to /api/users/:id (#19475) 2019-09-28 12:12:33 +01:00
teamguardian teams: local access to bus, moving away from dep on global. 2019-03-19 14:01:20 +01:00