Skip to content

Commit

Permalink
Revert "Replace deprecated setVariableQueryEditor with CustomVariable…
Browse files Browse the repository at this point in the history
…Support (#184)"

This reverts commit 5aaabb5.
  • Loading branch information
idastambuk authored Oct 10, 2023
1 parent acd457f commit f0ee429
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
2 changes: 0 additions & 2 deletions src/DataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Observable } from 'rxjs';
import { getRequestLooper, MultiRequestTracker } from 'requestLooper';
import { appendMatchingFrames } from 'appendFrames';
import { frameToMetricFindValues } from 'utils';
import { SitewiseVariableSupport } from './variables';

export class DataSource extends DataSourceWithBackend<SitewiseQuery, SitewiseOptions> {
// Easy access for QueryEditor
Expand All @@ -24,7 +23,6 @@ export class DataSource extends DataSourceWithBackend<SitewiseQuery, SitewiseOpt
constructor(instanceSettings: DataSourceInstanceSettings<SitewiseOptions>) {
super(instanceSettings);
this.options = instanceSettings.jsonData;
this.variables = new SitewiseVariableSupport(this);
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ import { QueryEditor } from 'components/query/QueryEditor';
export const plugin = new DataSourcePlugin<DataSource, SitewiseQuery, SitewiseOptions>(DataSource)
.setConfigEditor(ConfigEditor)
.setMetadataInspector(MetaInspector)
.setVariableQueryEditor(QueryEditor)
.setQueryEditor(QueryEditor);
21 changes: 0 additions & 21 deletions src/variables.ts

This file was deleted.

0 comments on commit f0ee429

Please sign in to comment.