dalmatinerdb / dalmatinerdb-datasource

Grafana 3 datasource for DDB
MIT License
5 stars 6 forks source link

Fix collection selection in Grafana 4. #20

Closed DvdGiessen closed 7 years ago

DvdGiessen commented 7 years ago

In Grafana 4, the lodash library was updated from 2.4.2 to 4.15.0, in which the _.findWhere alias no longer exists, causing errors when trying to select an collection in Grafana 4, see issue #19.

This simply changes the call to use _.find, which yields identical behaviour. Also, since _.find already existed in previous lodash versions, the plugin still works as before on older Grafana versions.

Licenser commented 7 years ago

Wow that looks amazingly stright forward! I'll give it a quick test run and merge it :) 👍 Much appriciated!

Licenser commented 7 years ago

Works great, 1000 thanks mate!