grafana/public/app/plugins/datasource/loki/components
Gareth Dawson 0072b2cca4
Loki: Use better query validation before requesting stats (#70800)
* fix: use correct validate funtion

* rename isValidQuery to isQueryWithError

* lets pretend i didnt break things again

* Loki validation: add missing comments and refactor validation function

* isValidQuery: add unit test

* Loki datasource: add tests for getQueryStats

* Remove isValidQuery function

* UnwrapParamEditor: interpolate query before testing validity

* Stats: trim queries when evaluating change

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2023-06-29 16:50:17 +01:00
..
monaco-query-field Loki: Use better query validation before requesting stats (#70800) 2023-06-29 16:50:17 +01:00
AnnotationsQueryEditor.tsx Loki Query Editor: Make Monaco the default editor (#62247) 2023-02-06 11:18:01 +01:00
LokiCheatSheet.tsx Accessibility: Make QueryEditorHelp examples keyboard interactive (#59355) 2022-12-05 16:03:24 +01:00
LokiContextUi.test.tsx Loki: Preserve pipeline stages in context query (#70472) 2023-06-22 17:34:43 +02:00
LokiContextUi.tsx Loki: Preserve pipeline stages in context query (#70472) 2023-06-22 17:34:43 +02:00
LokiLabelBrowser.test.tsx Loki: Rename public/app/plugins/datasource/loki/language_provider.ts file to follow convention (#54819) 2022-09-08 14:32:32 +02:00
LokiLabelBrowser.tsx Loki: Update feature tracking for label browser (#59295) 2022-12-12 15:35:29 +00:00
LokiOptionFields.test.tsx Loki: Fix showing of correct line limit in options (#69572) 2023-06-08 14:40:39 +02:00
LokiOptionFields.tsx Loki: Use getNormalizedLokiQuery to get queryType (#70237) 2023-06-20 16:27:32 +02:00
LokiQueryEditor.test.tsx Chore: adjust more unit tests to work with react 18 (#64759) 2023-03-15 10:12:13 +00:00
LokiQueryEditor.tsx Loki: Remove unused datasource prop from LokiQueryBuilderOptions (#69445) 2023-06-02 13:26:20 +02:00
LokiQueryEditorByApp.test.tsx Loki: Improve the display of loki query stats (#63623) 2023-03-16 18:50:42 +00:00
LokiQueryEditorByApp.tsx Loki: Fix the name of exported component from LokiQueryEditor.tsx (#57340) 2022-10-20 14:49:55 +02:00
LokiQueryEditorForAlerting.tsx Loki Query Editor: Make Monaco the default editor (#62247) 2023-02-06 11:18:01 +01:00
LokiQueryField.test.tsx Loki Query Editor: Make Monaco the default editor (#62247) 2023-02-06 11:18:01 +01:00
LokiQueryField.tsx Prometheus/Loki: Run query explicitly instead of onblur in panel edit (#64815) 2023-03-21 07:55:34 +01:00
stats.test.ts Loki: Use better query validation before requesting stats (#70800) 2023-06-29 16:50:17 +01:00
stats.ts Loki: Use better query validation before requesting stats (#70800) 2023-06-29 16:50:17 +01:00
types.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
VariableQueryEditor.test.tsx Loki Variable Query Editor: Fix bug when the query is updated (#66509) 2023-04-13 23:30:27 +02:00
VariableQueryEditor.tsx Loki: Make stream selector input in variables editor larger (#69729) 2023-06-07 18:56:35 +03:00