grafana / iot-sitewise-datasource

IoT Sitewise
Apache License 2.0
19 stars 9 forks source link

Create separate ResourceHandlers and Variable Editor #305

Open iwysiu opened 3 months ago

iwysiu commented 3 months ago

Currently, we have resources being fetched with runQuery and being parsed in the frontend. We should refactor this to have it parsed on the backend with resource handlers to get Assets, Asset Models, Associated Assets, and Properties, which can be used both for variables and for query fields. We also currently use the normal query editor for variables, which both contains query types that don't make sense in that context (Get Property Value, Get Property History, etc) and misses some that would be nice for variables (like fetching properties for an asset).