From 0a77cd55698adbcf610abb0abaf9b71a8d1485e9 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 26 Sep 2018 00:33:18 +0200 Subject: [PATCH] stackdriver: adds on-change with debounce for alias by field --- package.json | 2 +- .../datasource/stackdriver/partials/query.editor.html | 4 ++-- .../plugins/datasource/stackdriver/specs/query_ctrl.test.ts | 3 +++ yarn.lock | 6 +++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1e7ed02c87b..ba48304f0cd 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@types/d3": "^4.10.1", "@types/enzyme": "^3.1.13", - "@types/jest": "^21.1.4", + "@types/jest": "^23.3.2", "@types/node": "^8.0.31", "@types/react": "^16.4.14", "@types/react-custom-scrollbars": "^4.0.5", diff --git a/public/app/plugins/datasource/stackdriver/partials/query.editor.html b/public/app/plugins/datasource/stackdriver/partials/query.editor.html index 6696a57fa4d..bcb499702ce 100755 --- a/public/app/plugins/datasource/stackdriver/partials/query.editor.html +++ b/public/app/plugins/datasource/stackdriver/partials/query.editor.html @@ -55,7 +55,7 @@
Alias By - +
@@ -109,4 +109,4 @@
{{ctrl.lastQueryError}}
- \ No newline at end of file + diff --git a/public/app/plugins/datasource/stackdriver/specs/query_ctrl.test.ts b/public/app/plugins/datasource/stackdriver/specs/query_ctrl.test.ts index 590dea22601..0428cb3c618 100644 --- a/public/app/plugins/datasource/stackdriver/specs/query_ctrl.test.ts +++ b/public/app/plugins/datasource/stackdriver/specs/query_ctrl.test.ts @@ -427,5 +427,8 @@ function createTarget(existingFilters?: string[]) { }, filters: existingFilters || [], aliasBy: '', + metricService: '', + metricKind: '', + valueType: '', }; } diff --git a/yarn.lock b/yarn.lock index 413ff19e472..c98bec855e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -228,9 +228,9 @@ version "7946.0.4" resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.4.tgz#4e049756383c3f055dd8f3d24e63fb543e98eb07" -"@types/jest@^21.1.4": - version "21.1.10" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-21.1.10.tgz#dcacb5217ddf997a090cc822bba219b4b2fd7984" +"@types/jest@^23.3.2": + version "23.3.2" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-23.3.2.tgz#07b90f6adf75d42c34230c026a2529e56c249dbb" "@types/node@*": version "10.9.4"