Skip to content
This repository was archived by the owner on Dec 11, 2022. It is now read-only.

Commit 8c56173

Browse files
authored
Merge pull request #208 from doitintl/issue-207
Fixes #207
2 parents cb124f3 + b7b1f8d commit 8c56173

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

dist/module.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60111,8 +60111,8 @@ function () {
6011160111
query.rawSql = this.queryModel.expend_macros(options);
6011260112
return this.backendSrv.datasourceRequest({
6011360113
data: {
60114-
query: query.rawSql,
6011560114
from: options.range.from.valueOf().toString(),
60115+
query: query.rawSql,
6011660116
to: options.range.to.valueOf().toString(),
6011760117
useLegacySql: false,
6011860118
useQueryCache: true
@@ -61876,9 +61876,8 @@ function () {
6187661876
list.push({
6187761877
annotation: options.annotation,
6187861878
tags: row.f[tagsColumnIndex].v ? row.f[tagsColumnIndex].v.trim().split(/\s*,\s*/) : [],
61879-
text: row.f[textColumnIndex],
61880-
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000,
61881-
title: row.f[titleColumnIndex]
61879+
text: row.f[textColumnIndex].v ? row.f[textColumnIndex].v.toString() : "",
61880+
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000
6188261881
});
6188361882
}
6188461883

dist/module.js.map

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

src/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ export class BigQueryDatasource {
433433
return this.backendSrv
434434
.datasourceRequest({
435435
data: {
436-
query: query.rawSql,
437436
from: options.range.from.valueOf().toString(),
437+
query: query.rawSql,
438438
to: options.range.to.valueOf().toString(),
439439
useLegacySql: false,
440440
useQueryCache: true

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WHERE
1515
class BigQueryAnnotationsQueryCtrl {
1616
static templateUrl = 'partials/annotations.editor.html';
1717

18-
annotation: any;
18+
public annotation: any;
1919

2020
/** @ngInject */
2121
constructor() {

src/response_parser.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,8 @@ export default class ResponseParser {
295295
tags: row.f[tagsColumnIndex].v
296296
? row.f[tagsColumnIndex].v.trim().split(/\s*,\s*/)
297297
: [],
298-
text: row.f[textColumnIndex],
299-
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000,
300-
title: row.f[titleColumnIndex]
298+
text: row.f[textColumnIndex].v ? row.f[textColumnIndex].v.toString() : "",
299+
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000
301300
});
302301
}
303302
return list;

0 commit comments

Comments
 (0)