Sven Grossmann
c006ea18fb
Loki: Fix validation of step values to also allow e.g. ms values ( #73270 )
...
* use go duration validation
* add `isValidGrafanaDuration`
* use `isValidGrafanaDuration`
* improve jsdoc
2023-08-16 17:57:26 +02:00
RoxanaAnamariaTurc
eea18d6741
Datetime: Added more tests to the files in the datetime folder ( #71731 )
...
* Datetime: Added more tests to the files in the datetime folder
* Updated tests suites according to feedback received
* Corrected the lint error
* Removed repetitive code
2023-07-21 11:24:22 +01:00
Fábio Silva
afc9925dbf
Alerting: Fix invalid duration that causes Grafana to crash ( #63753 )
...
* Alerting: fix invalid alert duration
* Return empty string from intervalToAbbreviatedDurationString
* Alerting: add tests for invalid duration
* tests intervalToAbbreviatedDurationString
* Alerting: add missing isAfter import
* durationutils.ts
2023-03-01 11:45:41 -10:00
Josh Hunt
609a1aa8ad
Chore: parse parseDuration values as numbers ( #42826 )
...
* Chore: parseDuration values as numbers
* Clean up RefreshPicker labels
2021-12-16 11:35:53 +00:00
Ivana Huckova
7bc27a3cfc
Tempo: Fix validation of float durations ( #41400 )
...
* Fix parsing of float numbers in validation
* Adjust test
* Update packages/grafana-data/src/datetime/durationutil.test.ts
* Update packages/grafana-data/src/datetime/durationutil.test.ts
* Remove us from placeholder
2021-11-10 13:48:38 +01:00
Connor Lindsey
06592410b2
Tempo: Improve search form defaults and validation ( #39534 )
...
* Tempo: add default limit, option to hide Loki search, and run query on hotkey in dropdowns
2021-09-28 10:52:57 -06:00
Nathan Rodman
889d3ed76f
Alerting: Add duration field to silence editor ( #34029 )
2021-05-17 08:59:27 +03:00