Skip to content

Commit ab85052

Browse files
committed
Revert typed options for getTagX methods
1 parent 60b6f2d commit ab85052

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/datasource/base.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import {
88
DataFrame,
99
DataQueryRequest,
1010
DataQueryResponse,
11-
DataSourceGetTagKeysOptions,
12-
DataSourceGetTagValuesOptions,
1311
DataSourceInstanceSettings,
1412
DataSourceWithQueryImportSupport,
1513
getDefaultTimeRange,
@@ -212,15 +210,15 @@ export class BaseQuickwitDataSource
212210
/**
213211
* Get tag keys for adhoc filters
214212
*/
215-
getTagKeys(options: DataSourceGetTagKeysOptions) {
213+
getTagKeys(options: any) {
216214
const fields = this.getFields({aggregatable:true, range: options.timeRange})
217215
return lastValueFrom(fields, {defaultValue:[]});
218216
}
219217

220218
/**
221219
* Get tag values for adhoc filters
222220
*/
223-
getTagValues(options: DataSourceGetTagValuesOptions) {
221+
getTagValues(options: any) {
224222
const terms = this.getTerms({ field: options.key }, options.timeRange)
225223
return lastValueFrom(terms, {defaultValue:[]});
226224
}

0 commit comments

Comments
 (0)