Skip to content

Commit 3e60c7b

Browse files
authored
Fix issue with power queries not sending proper request (#65)
1 parent 3263946 commit 3e60c7b

File tree

9 files changed

+13
-9
lines changed

9 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.3.3
4+
5+
Fix issue with power queries not sending proper data in the request (TBD) (Yan Shnayder)
6+
37
## 2.3.2
48

59
Fix issue with migrating panels from versions 2.3.0 and older to version 2.3.1 (#63) (Yan Shnayder)

dist/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ can find documentation on API Keys [here](https://www.scalyr.com/help/api#scalyr
3535

3636
```bash
3737
grafana-cli --pluginUrl \
38-
https://github.com/scalyr/scalyr-grafana-datasource-plugin/releases/download/2.3.1/scalyr_grafana_plugin_31da5c7.zip \
38+
https://github.com/scalyr/scalyr-grafana-datasource-plugin/releases/download/2.3.2/scalyr_grafana_plugin_7073038.zip \
3939
plugins install scalyr-datasource
4040
```
4141

@@ -78,7 +78,7 @@ from GitHub.
7878
Stable version:
7979

8080
```bash
81-
tar -xvf scalyr_grafana_plugin_31da5c7.tar.gz
81+
tar -xvf scalyr_grafana_plugin_7073038.tar.gz
8282
cp -rf dist/ /var/lib/grafana/plugins/scalyr/
8383
```
8484

dist/module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/partials/query.editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="gf-form-inline" ng-if="ctrl.target.queryType === ctrl.queryTypes.POWER_QUERY">
1111
<div class="gf-form">
1212
<span class="gf-form-label width-10">Query</span>
13-
<textarea rows="5" cols="100" class="gf-form-input" ng-blur="ctrl.onChangeInternal()" ng-model="ctrl.target.queryText"></textarea>
13+
<textarea rows="5" cols="100" class="gf-form-input" ng-blur="ctrl.onChangeInternal()" ng-model="ctrl.target.filter"></textarea>
1414
</div>
1515
</div>
1616
<div ng-if="ctrl.target.queryType === ctrl.queryTypes.STANDARD_QUERY">

dist/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "Scalyr",
77
"id": "scalyr-datasource",
88
"info": {
9-
"version": "2.3.2",
9+
"version": "2.3.3",
1010
"description": "Scalyr Observability Platform",
1111
"author": {
1212
"name": "Scalyr",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scalyr-grafana-datasource-plugin",
3-
"version": "2.3.2",
3+
"version": "2.3.3",
44
"description": "This grafana plugin allows Scalyr as a datasource for metrics and graphs",
55
"main": "webpack.config.js",
66
"scripts": {

src/datasource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export class GenericDatasource {
348348
*/
349349
performPowerQuery(options, visualizationType) {
350350
const target = options.targets[0];
351-
const query = this.createPowerQuery(target.queryText, options.range.from.valueOf(), options.range.to.valueOf(), options);
351+
const query = this.createPowerQuery(target.filter, options.range.from.valueOf(), options.range.to.valueOf(), options);
352352
return this.backendSrv.datasourceRequest(query).then( (response) => {
353353
const data = response && response.data;
354354
return this.transformPowerQueryData(data, visualizationType);

src/partials/query.editor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="gf-form-inline" ng-if="ctrl.target.queryType === ctrl.queryTypes.POWER_QUERY">
1111
<div class="gf-form">
1212
<span class="gf-form-label width-10">Query</span>
13-
<textarea rows="5" cols="100" class="gf-form-input" ng-blur="ctrl.onChangeInternal()" ng-model="ctrl.target.queryText"></textarea>
13+
<textarea rows="5" cols="100" class="gf-form-input" ng-blur="ctrl.onChangeInternal()" ng-model="ctrl.target.filter"></textarea>
1414
</div>
1515
</div>
1616
<div ng-if="ctrl.target.queryType === ctrl.queryTypes.STANDARD_QUERY">

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "Scalyr",
77
"id": "scalyr-datasource",
88
"info": {
9-
"version": "2.3.2",
9+
"version": "2.3.3",
1010
"description": "Scalyr Observability Platform",
1111
"author": {
1212
"name": "Scalyr",

0 commit comments

Comments
 (0)