Ashley Harrison
e0e6165f70
Chore: adjust more unit tests to work with react 18 ( #64759 )
...
adjust unit tests to work with react 18
2023-03-15 10:12:13 +00:00
Matias Chomicki
57369915f5
Loki Query Editor: Make Monaco the default editor ( #62247 )
...
* feat(loki-editor): remove slate and make Monaco the default editor
* feat(loki-editor): remove unsupported usages of onBlur
* feat(loki-editor): remove monaco feature flag
* Chore: remove unused import
2023-02-06 11:18:01 +01:00
Piotr Jamróz
e8ef0395b1
Glue: Hide run queries button in Correlations Page ( #61039 )
...
* Hide run queries button in Correlations Page when showing Loki and Prometheus editors
* Use more semantic selectors
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* Use more semantic selectors
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* Post-merge fix (remove duplicate)
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-01-12 21:14:55 +01:00
Gareth Dawson
114c8b64aa
Loki: Rename "explain" toggle to "explain query" ( #61150 )
...
* feat: rename explain toggle to explain query
* test: correct failing test for explain toggle
* docs: update documentation on explain query toggle
* fix: update capitalization
2023-01-10 12:35:12 +00:00
Gareth Dawson
a098bdef58
Loki: Make label browser accessible in query builder ( #58525 )
...
* add label browser button to query editor header
* add dynamic button label text
* add LabelBrowserModal.tsx
* toggle label browser modal on click
* pass required props to LabelBrowserModal
* add placeholder to text input
* render label browser inside of the modal
* change button based on label status
* remove label browser button from code mode
* fix element overlap in label browser
* fix undefined app in feature tracking
* remove all any types
* add tests for label browser button
* update modal component width
* update label loading function
* add tests to LabelBrowserModal
* fix broken mock datasource
* update test names
* use stack component for button spacing
* revert modal width
* update label search placeholder
* remove unused import
* add test assertion for closed modal
* remove redundant if statement
* remove unnecessary code
* update error message and fix position
* fix input placeholder text
2022-11-23 16:48:41 +00:00
Gareth Dawson
94372f5f23
Loki: Remove raw query toggle ( #59125 )
...
* set default query expression
* always show raw query
* remove raw query title
* remove test for raw query toggle
* remove raw query toggle
* remove default expression
* hide raw query preview if empty
* remove e2e test for raw query toggle
* update test name
2022-11-23 16:07:59 +00:00
Gareth Dawson
966b47c2ef
Loki: Rename log browser to label browser ( #58416 )
...
* rename loki log browser to label browser
* rename loki log browser to label browser
2022-11-09 09:57:05 +00:00
Matias Chomicki
25f79ef2b9
Loki: enable Monaco Query Editor by default ( #58080 )
...
* feat(loki-monaco-editor): update tests
* chore(loki): use unified datasource mock function in tests
* chore: enable monaco feature flag in tests
* feat(loki-monaco-editor): add test case for disabled feature
* feat(loki-monaco-editor): enable by default
* Revert "feat(loki-monaco-editor): enable by default"
This reverts commit 08904f94a707a4fa32aa1e7f3f0de377575a7636.
* feat(loki-monaco-editor): enable from registry
* feat(loki-monaco-editor): make feature flag frontend only
2022-11-08 10:22:40 -05:00
Ivana Huckova
ef78f03a6f
Loki: Fix the name of exported component from LokiQueryEditor.tsx ( #57340 )
...
* Loki: Fix editor
* Fix names
2022-10-20 14:49:55 +02:00
Ivana Huckova
3ee450e66b
Loki: Remove unused query editors ( #57192 )
...
* Loki: Remove not used query editors
* Move Loki editor to components and rename
* Update public/app/plugins/datasource/loki/components/LokiQueryEditorByApp.test.tsx
Co-authored-by: Matias Chomicki <matyax@gmail.com>
* Fix test
Co-authored-by: Matias Chomicki <matyax@gmail.com>
2022-10-20 11:46:48 +02:00
Ashley Harrison
3e8d178fc1
convert LokiQueryEditor test to RTL ( #54639 )
2022-09-02 15:11:13 +01:00
Josh Hunt
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
Ivana Huckova
a54e0ff79d
Loki: Add query type and line limit to query editor in dashboard ( #29356 )
...
* WIP Add line limit and query type switch toLoki dashboard editor
* Refactor, reuse code for both - Explore and Dashboard
* Üpdate snapshot tests
* Refactor and unify
* Rename test file
* Update test
2020-12-01 20:43:35 +01:00
Ivana Huckova
bf5d52c5c7
Loki: Send current time range when fetching labels and values ( #26622 )
...
* Send current time range when fetching labels and values in Explore
* Pass range to Editors, in the same way as it was in Angular editors
* Remove unused imports
* Remove unused imports, props
* Update
* Update
* Update refresh condition
* Add comment
2020-07-30 18:04:20 +02:00
Sebastian Widmer
5789f80e14
Loki: Allow aliasing Loki queries in dashboard ( #25706 )
...
* Loki: Add Legend field to query editor
* Loki: Basic test for legend field
* Loki: Mention legend is only for metric queries
* Loki: Fix absolute timerange never updating
2020-07-01 22:19:36 +02:00