From 39c89878601d62e180754e4ad7c9c4b32c7a94b8 Mon Sep 17 00:00:00 2001 From: Philip Carneiro Date: Tue, 5 Mar 2024 14:31:25 +0000 Subject: [PATCH] remove slice times --- src/webview/components/kdbDataSourceView.ts | 38 +++------------------ 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/src/webview/components/kdbDataSourceView.ts b/src/webview/components/kdbDataSourceView.ts index a0a613b8..b6ff86ea 100644 --- a/src/webview/components/kdbDataSourceView.ts +++ b/src/webview/components/kdbDataSourceView.ts @@ -54,8 +54,6 @@ export class KdbDataSourceView extends LitElement { @state() declare filled: boolean; @state() declare temporality: string; @state() declare temporal: boolean; - @state() declare sliceStartTS: string; - @state() declare sliceEndTS: string; @state() declare filters: Filter[]; @state() declare labels: Label[]; @state() declare sorts: Sort[]; @@ -82,8 +80,6 @@ export class KdbDataSourceView extends LitElement { this.filled = false; this.temporality = ""; this.temporal = false; - this.sliceStartTS = ""; - this.sliceEndTS = ""; this.filters = [createFilter()]; this.labels = [createLabel()]; this.sorts = [createSort()]; @@ -131,8 +127,6 @@ export class KdbDataSourceView extends LitElement { if (optional) { this.filled = optional.filled; this.temporal = optional.temporal; - this.sliceStartTS = optional.startTS; - this.sliceEndTS = optional.endTS; this.filters = optional.filters; this.labels = optional.labels; this.sorts = optional.sorts; @@ -163,8 +157,6 @@ export class KdbDataSourceView extends LitElement { optional: { filled: this.filled, temporal: this.temporal, - startTS: this.sliceStartTS, - endTS: this.sliceEndTS, filters: this.filters, labels: this.labels, sorts: this.sorts, @@ -223,7 +215,7 @@ export class KdbDataSourceView extends LitElement { if (this.isInsights && this.isMetaLoaded) { return this.insightsMeta.api .filter( - (api) => api.api === ".kxi.getData" //|| !api.api.startsWith(".kxi.") + (api) => api.api === ".kxi.getData", //|| !api.api.startsWith(".kxi.") ) .map((api) => { const value = @@ -338,7 +330,7 @@ export class KdbDataSourceView extends LitElement { value="${operator}" ?selected="${operator === filter.operator}" >${operator}` + >`, )} @@ -559,7 +551,7 @@ export class KdbDataSourceView extends LitElement { value="${operator}" ?selected="${operator === agg.operator}" >${operator}` + >`, )} @@ -832,28 +824,6 @@ export class KdbDataSourceView extends LitElement { > - Start Time - End Time
@@ -887,7 +857,7 @@ export class KdbDataSourceView extends LitElement { event.target as HTMLSelectElement ).value)}"> ${this.renderTargetOptions( - this.qsqlTarget + this.qsqlTarget, )}