Skip to content

Commit

Permalink
fix plugin loading #149 (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
Loori-R authored Dec 10, 2024
1 parent 649d972 commit dc5acfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## tip

* BUGFIX: fix plugin loading issue in Grafana `v10.x.x`. See [this issue](https://github.com/VictoriaMetrics/victorialogs-datasource/issues/149).

## v0.11.0

* FEATURE: add tooltips and info messages for query types. Now, plugin will warn about correct usage of `stats` panels and will provide more info about different query types.
Expand Down
4 changes: 1 addition & 3 deletions src/modifyQuery.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { scopeFilterOperatorMap } from "@grafana/data";

import { buildVisualQueryFromString, splitExpression } from "./components/QueryEditor/QueryBuilder/utils/parseFromString";
import { parseVisualQueryToString } from "./components/QueryEditor/QueryBuilder/utils/parseToString";
import { FilterVisualQuery } from "./types";

const operators = Object.keys(scopeFilterOperatorMap);
const operators = ["=", "!=", "=~", "!~", "<", ">"]

export function queryHasFilter(query: string, key: string, value: string, operator?: string): boolean {
const applicableOperators = operator ? [operator] : operators;
Expand Down

0 comments on commit dc5acfb

Please sign in to comment.