Skip to content

Commit

Permalink
Revert typed options for getTagX methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelemeny committed Mar 26, 2024
1 parent 60b6f2d commit ab85052
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/datasource/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
DataFrame,
DataQueryRequest,
DataQueryResponse,
DataSourceGetTagKeysOptions,
DataSourceGetTagValuesOptions,
DataSourceInstanceSettings,
DataSourceWithQueryImportSupport,
getDefaultTimeRange,
Expand Down Expand Up @@ -212,15 +210,15 @@ export class BaseQuickwitDataSource
/**
* Get tag keys for adhoc filters
*/
getTagKeys(options: DataSourceGetTagKeysOptions) {
getTagKeys(options: any) {
const fields = this.getFields({aggregatable:true, range: options.timeRange})
return lastValueFrom(fields, {defaultValue:[]});
}

/**
* Get tag values for adhoc filters
*/
getTagValues(options: DataSourceGetTagValuesOptions) {
getTagValues(options: any) {
const terms = this.getTerms({ field: options.key }, options.timeRange)
return lastValueFrom(terms, {defaultValue:[]});
}
Expand Down

0 comments on commit ab85052

Please sign in to comment.