From ddaf1047b84ffe7b5c95e2f9c13e62bfe5c77d42 Mon Sep 17 00:00:00 2001 From: Krist Wongsuphasawat Date: Mon, 26 Aug 2019 11:03:42 -0700 Subject: [PATCH] fix: remove is_prequery and prequeries (#208) --- packages/superset-ui-query/src/buildQueryObject.ts | 2 -- packages/superset-ui-query/src/types/Query.ts | 5 ----- 2 files changed, 7 deletions(-) diff --git a/packages/superset-ui-query/src/buildQueryObject.ts b/packages/superset-ui-query/src/buildQueryObject.ts index 71cbd0a32a..bed181bd21 100644 --- a/packages/superset-ui-query/src/buildQueryObject.ts +++ b/packages/superset-ui-query/src/buildQueryObject.ts @@ -38,12 +38,10 @@ export default function buildQueryObject(formData: T): extras: processExtras(formData), granularity: processGranularity(formData), groupby: Array.from(groupbySet), - is_prequery: false, is_timeseries: groupbySet.has(DTTM_ALIAS), metrics: processMetrics(formData), order_desc: typeof order_desc === 'undefined' ? true : order_desc, orderby: [], - prequeries: [], row_limit: Number(row_limit), since, time_range, diff --git a/packages/superset-ui-query/src/types/Query.ts b/packages/superset-ui-query/src/types/Query.ts index e57e1c32df..56f93073ca 100644 --- a/packages/superset-ui-query/src/types/Query.ts +++ b/packages/superset-ui-query/src/types/Query.ts @@ -67,11 +67,6 @@ export type QueryObject = { /** If set, will group by timestamp */ is_timeseries?: boolean; - - /** TODO: Doc */ - is_prequery?: boolean; - /** TODO: Doc */ - prequeries?: string[]; } & TimeRange; export interface QueryContext {