feat: calls to Graphite api /metrics/find now include panel or dashboard time ranges in some scenarios, closes #8055

This commit is contained in:
Torkel Ödegaard
2017-07-31 17:21:15 +02:00
parent bf7516d9bf
commit 44fbd3ec9f
6 changed files with 46 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ describe('QueryVariable', () => {
describe('when creating from model', () => {
it('should set defaults', () => {
var variable = new QueryVariable({}, null, null, null, null);
var variable = new QueryVariable({}, null, null, null, null, null);
expect(variable.datasource).to.be(null);
expect(variable.refresh).to.be(0);
expect(variable.sort).to.be(0);
@@ -19,7 +19,7 @@ describe('QueryVariable', () => {
});
it('get model should copy changes back to model', () => {
var variable = new QueryVariable({}, null, null, null, null);
var variable = new QueryVariable({}, null, null, null, null, null);
variable.options = [{text: 'test'}];
variable.datasource = 'google';
variable.regex = 'asd';
@@ -34,7 +34,7 @@ describe('QueryVariable', () => {
});
it('if refresh != 0 then remove options in presisted mode', () => {
var variable = new QueryVariable({}, null, null, null, null);
var variable = new QueryVariable({}, null, null, null, null, null);
variable.options = [{text: 'test'}];
variable.refresh = 1;
@@ -44,7 +44,7 @@ describe('QueryVariable', () => {
});
describe('can convert and sort metric names',() => {
var variable = new QueryVariable({}, null, null, null, null);
var variable = new QueryVariable({}, null, null, null, null, null);
variable.sort = 3; // Numerical (asc)
describe('can sort a mixed array of metric variables', () => {