mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 16:30:55 +01:00
6a59737e96
* Add button to prettify query
Just capitalizes query text for now
* Add /prettify-query API handler
* Replace UI pretiffier using prettifier API
* Add showing server errors
Had to pass setQueryErrors from useFetchQuery.ts
* Use serverUrl from global AppState
* Change icon to AutoAwsome icon + added style change color when button is active
* Add sync/await to prettifyQuery function
* Doc public function for lint
* Minor async fix
* Removed extra blank lines
* Extract usePrettifyQuery hook
* Made more generic style for :active button
* Refactor usePrettifyQuery
However, prettify errors don't clean up query errors, but should
* Add prettyQuery functionality to CHANGELOG.md
* Reuse queryErrors
* Unhide errors on start
---------
Co-authored-by: Tamara <toma.vashchuk@gmail.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
error_response.qtpl | ||
error_response.qtpl.go | ||
expand-with-exprs.qtpl | ||
expand-with-exprs.qtpl.go | ||
export.qtpl | ||
export.qtpl.go | ||
federate.qtpl | ||
federate.qtpl.go | ||
label_values_response.qtpl | ||
label_values_response.qtpl.go | ||
labels_response.qtpl | ||
labels_response.qtpl.go | ||
prometheus_test.go | ||
prometheus.go | ||
query_range_response.qtpl | ||
query_range_response.qtpl.go | ||
query_response.qtpl | ||
query_response.qtpl.go | ||
series_count_response.qtpl | ||
series_count_response.qtpl.go | ||
series_response.qtpl | ||
series_response.qtpl.go | ||
tenants_response.qtpl | ||
tenants_response.qtpl.go | ||
tsdb_status_response.qtpl | ||
tsdb_status_response.qtpl.go | ||
util.qtpl | ||
util.qtpl.go |