Howdy,
I’m trying to build off the base simple-json-datasource repo, and develop a new data source plugin.
While I’ve got basic table data coming in, I’m now wanting to add query functionality, but when the Query Editor calls the getOptions()
or getCheckList()
functions in query_ctrl.js
, I’m seeing a TypeError
suggesting that this.datasource is undefined. This was part of the original repo, so I’m not sure what the fault is here.
It seems that the base QueryCtrl class is defined here, and that the datasource attribute is set there.
Is the simple-json-datasource project out of date/not in line with current Grafana requirements, or am I doing something wrong?
My (modified) query_ctrl.js file is here.