Move QueryPartDef out from angular app (#45386)

pull/45398/head
Torkel Ödegaard 3 years ago committed by GitHub
parent 6a828a051a
commit ed5b2e5210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/features/alerting/AlertTabCtrl.ts
  2. 2
      public/app/features/alerting/state/alertDef.ts
  3. 0
      public/app/features/alerting/state/query_part.ts
  4. 2
      public/app/plugins/datasource/influxdb/components/VisualInfluxQLEditor/partListUtils.tsx
  5. 2
      public/app/plugins/datasource/influxdb/query_part.ts

@ -1,7 +1,7 @@
import { find, map, reduce, remove } from 'lodash';
import coreModule from 'app/angular/core_module';
import { ThresholdMapper } from './state/ThresholdMapper';
import { QueryPart } from 'app/angular/components/query_part';
import { QueryPart } from 'app/features/alerting/state/query_part';
import alertDef from './state/alertDef';
import config from 'app/core/config';
import appEvents from 'app/core/app_events';

@ -1,5 +1,5 @@
import { isArray, reduce } from 'lodash';
import { QueryPartDef, QueryPart } from 'app/angular/components/query_part';
import { QueryPartDef, QueryPart } from 'app/features/alerting/state/query_part';
const alertQueryDef = new QueryPartDef({
type: 'query',

@ -5,7 +5,7 @@ import InfluxQueryModel from '../../influx_query_model';
import { unwrap } from './unwrap';
import queryPart from '../../query_part';
import { toSelectableValue } from './toSelectableValue';
import { QueryPartDef } from 'app/angular/components/query_part';
import { QueryPartDef } from 'app/features/alerting/state/query_part';
type Categories = Record<string, QueryPartDef[]>;

@ -1,5 +1,5 @@
import { map, clone } from 'lodash';
import { QueryPartDef, QueryPart, functionRenderer, suffixRenderer } from 'app/angular/components/query_part';
import { QueryPartDef, QueryPart, functionRenderer, suffixRenderer } from 'app/features/alerting/state/query_part';
const index: any[] = [];
const categories: any = {

Loading…
Cancel
Save