Commit Graph

11 Commits

Author SHA1 Message Date
Andrej Ocenas
ba2332eb96 Prometheus: bool bin op improvements (#47198)
* Change param order

* Align tooltip icon styling
2022-04-01 17:51:50 +02:00
Andrej Ocenas
20b4112b3b Prometheus: Report error when parens are used and switching to visual builder (#46899) 2022-03-25 14:03:30 +01:00
Andrej Ocenas
ee87ed3b51 Prometheus: Parsing for vector matching and UI changes (#46668) 2022-03-17 10:50:49 +01:00
Andrej Ocenas
a2cec62fa2 Prometheus: Fix parsing of binary operations (#46549) 2022-03-15 17:00:29 +01:00
Andrej Ocenas
04409799fb Prometheus: Allow boolean params on operations and add bool modifier parsing (#46448)
* Allow boolean params on operations and add bool modifier parsing

* Allow float number literals
2022-03-14 17:36:25 +01:00
Andrej Ocenas
5aa1713941 Prometheus: Support more binary operations in visual builder (#46241)
* Add definitions and code to parse more binary ops

* Add alternativesKey

* Add signs to nested query

* Change label
2022-03-04 15:04:09 +01:00
renovate[bot]
1f332a846b Update dependency lezer-promql to v0.22.0 (#45838)
* Update dependency lezer-promql to v0.22.0

* Add missing peerdep + fixes in code

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2022-03-02 19:45:08 +01:00
Andrej Ocenas
5c6061acd2 Prometheus/QueryBuilder: Fix parsing of functions without args (#45508) 2022-02-24 11:37:25 +01:00
Andrej Ocenas
642f0a250d Prometheus: Use single string expr as a state for the visual editor (#45232)
* Use just expr string as a state for whole editor

* Fix patterns

* Fix tests
2022-02-10 16:55:44 +01:00
Torkel Ödegaard
68eb18c758 Prometheus: Support with aggregations without labels (#45160) 2022-02-10 11:48:48 +01:00
Andrej Ocenas
071ff0b399 Prometheus: Query parsing for visual editor (#44824)
* Add parsing from string to visual query

* Add comments

* Parse expr when changing to builder

* Support template variables

* Report parsing errors

* More error handling

* Add ts-ignore for debug func

* Fix comments
2022-02-09 17:16:14 +01:00