mirror of
https://github.com/grafana/grafana.git
synced 2025-09-22 20:37:05 +08:00
remove tableschema from query builder ui
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user