grafana / kairosdb-datasource

Data source plugin for KairosDB
Apache License 2.0
30 stars 62 forks source link

Adding tags/group by/aggregators affects other queries in same graph #16

Closed simonsdeng closed 8 years ago

simonsdeng commented 8 years ago

When editing a graph with multiple KairosDB queries, the entry fields for adding tags, group by values, and aggregators are enabled for every query for that graph when I press the "+" button rather than just for that specific query. See attached image for example:

Looking at the plugin code it seems like this is caused by the fact that most of the Angular model is stored in ctrl.panel instead of ctrl.target, which would make these settings panel-specific rather than query-specific. Replacing all instances of panel with target in query_ctrl.js and partials/query.editor.html seems to fix this issue.

bergquist commented 8 years ago

closed by https://github.com/grafana/kairosdb-datasource/pull/17