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

Commit

Permalink
Merge pull request #208 from doitintl/issue-207
Browse files Browse the repository at this point in the history
Fixes #207
  • Loading branch information
avivl authored Feb 23, 2020
2 parents cb124f3 + b7b1f8d commit 8c56173
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions dist/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -60111,8 +60111,8 @@ function () {
query.rawSql = this.queryModel.expend_macros(options);
return this.backendSrv.datasourceRequest({
data: {
query: query.rawSql,
from: options.range.from.valueOf().toString(),
query: query.rawSql,
to: options.range.to.valueOf().toString(),
useLegacySql: false,
useQueryCache: true
Expand Down Expand Up @@ -61876,9 +61876,8 @@ function () {
list.push({
annotation: options.annotation,
tags: row.f[tagsColumnIndex].v ? row.f[tagsColumnIndex].v.trim().split(/\s*,\s*/) : [],
text: row.f[textColumnIndex],
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000,
title: row.f[titleColumnIndex]
text: row.f[textColumnIndex].v ? row.f[textColumnIndex].v.toString() : "",
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ export class BigQueryDatasource {
return this.backendSrv
.datasourceRequest({
data: {
query: query.rawSql,
from: options.range.from.valueOf().toString(),
query: query.rawSql,
to: options.range.to.valueOf().toString(),
useLegacySql: false,
useQueryCache: true
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ WHERE
class BigQueryAnnotationsQueryCtrl {
static templateUrl = 'partials/annotations.editor.html';

annotation: any;
public annotation: any;

/** @ngInject */
constructor() {
Expand Down
5 changes: 2 additions & 3 deletions src/response_parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,8 @@ export default class ResponseParser {
tags: row.f[tagsColumnIndex].v
? row.f[tagsColumnIndex].v.trim().split(/\s*,\s*/)
: [],
text: row.f[textColumnIndex],
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000,
title: row.f[titleColumnIndex]
text: row.f[textColumnIndex].v ? row.f[textColumnIndex].v.toString() : "",
time: Number(Math.floor(Number(row.f[timeColumnIndex].v))) * 1000
});
}
return list;
Expand Down

0 comments on commit 8c56173

Please sign in to comment.