Explorar el Código

removed unused props from angular query component interface

Torkel Ödegaard hace 7 años
padre
commit
3047579cdd

+ 1 - 7
public/app/features/dashboard/panel_editor/QueryEditorRow.tsx

@@ -43,7 +43,7 @@ export class QueryEditorRow extends PureComponent<Props, State> {
   }
 
   getAngularQueryComponentScope(): AngularQueryComponentScope {
-    const { panel, onAddQuery, onMoveQuery, onRemoveQuery, query } = this.props;
+    const { panel, query } = this.props;
     const { datasource } = this.state;
 
     return {
@@ -52,9 +52,6 @@ export class QueryEditorRow extends PureComponent<Props, State> {
       panel: panel,
       refresh: () => panel.refresh(),
       render: () => panel.render,
-      addQuery: onAddQuery,
-      moveQuery: onMoveQuery,
-      removeQuery: onRemoveQuery,
       events: panel.events,
     };
   }
@@ -234,9 +231,6 @@ export interface AngularQueryComponentScope {
   events: Emitter;
   refresh: () => void;
   render: () => void;
-  removeQuery: (query: DataQuery) => void;
-  addQuery: (query?: DataQuery) => void;
-  moveQuery: (query: DataQuery, direction: number) => void;
   datasource: DataSourceApi;
   toggleEditorMode?: () => void;
   getCollapsedText?: () => string;

+ 3 - 3
public/app/plugins/datasource/postgres/partials/query.editor.html

@@ -138,9 +138,9 @@
     <pre class="gf-form-pre alert alert-info">Time series:
 - return column named <i>time</i> (UTC in seconds or timestamp)
 - return column(s) with numeric datatype as values
-Optional: 
-  - return column named <i>metric</i> to represent the series name. 
-  - If multiple value columns are returned the metric column is used as prefix. 
+Optional:
+  - return column named <i>metric</i> to represent the series name.
+  - If multiple value columns are returned the metric column is used as prefix.
   - If no column named metric is found the column name of the value column is used as series name
 
 Resultsets of time series queries need to be sorted by time.