From fc8f6fcfb43a3496e4767f4ce955ad3b34a390c9 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 4 Dec 2023 10:31:57 +0100 Subject: [PATCH] remove time filter restriction the time filter is checked by thruks rest api. --- CHANGELOG.md | 3 +++ src/datasource.ts | 11 ----------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ae8cb4..933a04e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ### Changelog +next: + - remove time filter restriction + 2.0.3 2023-07-14 - make drag/drop more obvious - set correct field type for numeric columns diff --git a/src/datasource.ts b/src/datasource.ts index aac2d75..bcd6809 100644 --- a/src/datasource.ts +++ b/src/datasource.ts @@ -108,10 +108,6 @@ export class DataSource extends DataSourceApi { let col = this._buildColumns(target.columns); - if (this.isLogs(target.table) && !target.condition.match(/\$time/)) { - throw new Error('logs query must contain time filter, ex.: time = $time'); - } - let path = target.table; path = path.replace(/^\//, ''); path = this.replaceVariables(path, options.range, options.scopedVars); @@ -501,11 +497,4 @@ export class DataSource extends DataSourceApi