From 69137e677484f3d70ed52938bc689c6cf4a6528d Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 15 Nov 2018 13:23:42 +0100 Subject: [PATCH] stackdriver: revert project test stuff --- public/app/plugins/datasource/stackdriver/datasource.ts | 5 ----- public/app/plugins/datasource/stackdriver/query_ctrl.ts | 6 ------ 2 files changed, 11 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/datasource.ts b/public/app/plugins/datasource/stackdriver/datasource.ts index 88bbdfd1bee..d1545655652 100644 --- a/public/app/plugins/datasource/stackdriver/datasource.ts +++ b/public/app/plugins/datasource/stackdriver/datasource.ts @@ -111,11 +111,6 @@ export default class StackdriverDatasource { return unit; } - async getProjects() { - const response = await this.doRequest(`/cloudresourcemanager/v1/projects`); - return response.data.projects.map(p => ({ value: p.projectId, name: p.name })); - } - async query(options) { const result = []; const data = await this.getTimeSeries(options); diff --git a/public/app/plugins/datasource/stackdriver/query_ctrl.ts b/public/app/plugins/datasource/stackdriver/query_ctrl.ts index 968b90d1db7..dcac8d135aa 100644 --- a/public/app/plugins/datasource/stackdriver/query_ctrl.ts +++ b/public/app/plugins/datasource/stackdriver/query_ctrl.ts @@ -63,16 +63,10 @@ export class StackdriverQueryCtrl extends QueryCtrl { constructor($scope, $injector) { super($scope, $injector); _.defaultsDeep(this.target, this.defaults); - this.setProjects($scope.ctrl.datasource); this.panelCtrl.events.on('data-received', this.onDataReceived.bind(this), $scope); this.panelCtrl.events.on('data-error', this.onDataError.bind(this), $scope); } - async setProjects(ds) { - this.projects = await ds.getProjects(); - console.log(this.projects); - } - onDataReceived(dataList) { this.lastQueryError = null; this.lastQueryMeta = null;