mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Add all supported parsers to query builder (#47304)
* Loki: Add all supported parsers to query builderr * Update test * Add tests for new parsers
This commit is contained in:
@@ -205,8 +205,7 @@ function getLabelFilter(expr: string, node: SyntaxNode): QueryBuilderOperation {
|
||||
const label = filter!.firstChild;
|
||||
const op = label!.nextSibling;
|
||||
const value = op!.nextSibling;
|
||||
const params = [getString(expr, label), getString(expr, op), getString(expr, value).replace(/"/g, '')];
|
||||
|
||||
const params = [getString(expr, label), getString(expr, op), handleQuotes(getString(expr, value))];
|
||||
//Special case of pipe filtering - no errors
|
||||
if (params.join('') === `__error__=`) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user