remove tableschema from query builder ui

This commit is contained in:
Sven Klemm
2018-07-27 10:58:08 +02:00
parent b3ebc86093
commit 97f24733f5
5 changed files with 73 additions and 41 deletions

View File

@ -28,7 +28,6 @@ export class PostgresQueryCtrl extends QueryCtrl {
lastQueryMeta: QueryMeta;
lastQueryError: string;
showHelp: boolean;
schemaSegment: any;
tableSegment: any;
whereAdd: any;
timeColumnSegment: any;
@ -59,8 +58,6 @@ export class PostgresQueryCtrl extends QueryCtrl {
}
}
this.schemaSegment = uiSegmentSrv.newSegment(this.target.schema);
if (!this.target.table) {
this.tableSegment = uiSegmentSrv.newSegment({ value: 'select table', fake: true });
} else {
@ -119,18 +116,6 @@ export class PostgresQueryCtrl extends QueryCtrl {
button.value = plusButton.value;
}
getSchemaSegments() {
return this.datasource
.metricFindQuery(this.metaBuilder.buildSchemaQuery())
.then(this.transformToSegments({}))
.catch(this.handleQueryError.bind(this));
}
schemaChanged() {
this.target.schema = this.schemaSegment.value;
this.panelCtrl.refresh();
}
getTableSegments() {
return this.datasource
.metricFindQuery(this.metaBuilder.buildTableQuery())