8813cbfb62
Loki: Update copy for missing label filter error message ( #53449 )
...
* Loki: Update copy for missing label filter
* Update
2022-08-11 17:57:10 +02:00
5009c330ca
Loki: Add tests for explain section in builder and code editor ( #53113 )
...
* Loki: Add tests for new explain section
* Update any assertions
2022-08-02 17:20:22 +02:00
b8e4c2abeb
Loki: Move explain section to builder mode ( #52879 )
...
* Loki: Move explain to builder and code mode
* Update
* Update transition
* Fix tests
* Fix tests
* Prometheus: Move explain section to builder mode (#52935 )
* Prometheus: Move explain section to builder mode
* Show explain switch before raw query switch
* Store explain switch value in localstorage
* Make explain available for code mode too
* Introduce useFlag hook for query editor switches
* Remove Explain mode
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2022-07-29 17:09:43 +02:00
de956fc3d8
Core code editor/builder components ( #52421 )
...
* migrate experimental to core grafana - update refs
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2022-07-20 12:50:08 -04:00
10cb84e401
Loki: Implement hints for query builder ( #51795 )
...
* Loki: Implement hints for query builder
* Update name of file
* Update imports
* Refactor
* Remove unused import
* Unify
* Revert "Unify"
This reverts commit 78da0e27e33d878b3763a6aca004059b0330c3f0.
* Unify
* Fix types
* Fix tests
* Fix type error
* Simplify
* Update test
* Add documentation
* Update comment
* Add tests for addParserToQuery
* Smaller updates
2022-07-07 15:49:31 +02:00
66b4a9e6a1
Loki: Remove unused prop from query builder ( #51504 )
2022-06-30 16:02:27 +02:00
f00ffb190c
Escape backslashes in regexps in Loki label browser ( #45809 , #47039 ). ( #47412 )
...
* Escape backslashes in regexps in Loki label browser (#45809 , #47039 ).
* Escape values in Loki Query Builder.
* Escape more values in Loki Query Builder.
2022-05-04 12:49:04 +02:00
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
677327ea07
Show error when operations, but no stream selector ( #47890 )
2022-04-19 16:54:08 +02:00
5df05e31bb
Loki: Use single string expr as a state for the visual editor ( #47566 )
...
* Loki: Use expr as state for visual editor
* Loki: Use query with line filter as default for visual editor
* Refactor based on feedback
* fix background for query text row
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-04-14 10:59:39 +02:00
feaa4a5c64
Loki: Support binary operations and nested queries in new builder ( #47012 )
...
* Binary ops support
* Add support for nested expressions in loki
* Nested queries working
* Fixing tests
* Share more code between loki and prometheus query modellers
2022-03-29 18:50:07 +02:00
1c648cb52c
Loki: Adds options to the new query builder ( #46783 )
...
* Initial commit for loki builder options
* Loki query options
* Added some basic tests
* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilderOptions.test.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Updated options
* All option changes should trigger query
* Fixed ts issue
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-03-25 13:13:55 +01:00
7839fadf00
Loki: Fix fetching of second label set for the streams selector ( #46898 )
...
* Fix fetching of labels
* Add test
2022-03-23 17:59:48 +00:00
c23bc1e7b7
Prometheus: Show variable options in query builder ( #44784 )
...
* Prometheus: Show variable options
* Remove lint error
* Fix test for CodeQL
* Update public/app/plugins/datasource/prometheus/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
* Update public/app/plugins/datasource/loki/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
2022-02-03 11:40:19 +01:00
64e1e91403
PromQueryBuilder: Query builder and components that can be shared with a loki query builder and others ( #42854 )
2022-01-31 06:57:14 +00:00