Closed danez closed 2 years ago
thanks for adding this @danez Can you help check if this is backward compatible with 6.x or 5.x ?
Ok will check
I tested with grafana 4.0.0 and 5.0.0 and in both cases it works as expected and it seems the instanceSettings did already exists in these versions.
I will create another PR with the docker setup to easily test different versions.
Fixed with 8.x.x grafana version
Problem
Currently the name of the datasource is not shown in the interface of grafana.
Solution
Correctly set the name and the id on the plugin in the constructor. This is the same as if using the new ES2015+/TS plugin api and extending DataSourceAPI (https://github.com/grafana/grafana/blob/v6.3.5/packages/grafana-ui/src/types/datasource.ts#L143)
After the change it looks like this:
I also called build and it generated
dist
, I hope it is okay to do that, otherwise I remove them again.I'm not 100% certain, but I think this changed in 6.3 of grafana.