Skip to content

Commit

Permalink
Revert "Replace deprecated setVariableQueryEditor with CustomVariable…
Browse files Browse the repository at this point in the history
…Support" (#229)
  • Loading branch information
idastambuk authored Oct 10, 2023
1 parent acd457f commit b24bca0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## v1.11.1
- Revert "Replace deprecated setVariableQueryEditor with CustomVariableSupport" in [#229](https://github.com/grafana/iot-sitewise-datasource/pull/229)

## v1.11.0

- Update backend grafana-aws-sdk to v0.19.1 to add `il-central-1` to the opt-in region list
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grafana-iot-sitewise-datasource",
"version": "1.11.0",
"version": "1.11.1",
"description": "View IoT Sitewise data in grafana",
"scripts": {
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
Expand Down
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 b24bca0

Please sign in to comment.