Skip to content

Commit

Permalink
Merge branch 'main' into fix-stats-check
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen1778 authored Dec 10, 2024
2 parents 9883c81 + dc5acfb commit 4dc0c28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## tip

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

## v0.11.0

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 4dc0c28

Please sign in to comment.