grafana/public/app/features/explore/state
Piotr Jamróz 6bb6b13379
Query History: Refactor persistence layer (#44545)
* Extract Rich History storage into two separate implementations

Implement getting all entries and adding a new entry

* Add deleting rich history items

* Add editing rich history

* Simplify RichHistoryStorage API

* Reorganize methods

* Rename variable

* Remove feature toggle

* Fix TS errors

* Fix tests

* Clean up

* Clean up only when adding new entry

* Fix showing a warning message

* Use enum instead of a string

* Update public/app/core/history/richHistoryLocalStorage.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Update public/app/core/history/richHistoryLocalStorage.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Improve readability

* Rename files and remove inferred return types

* Use const over a var

* Remove unsed files

* Remove redundant null check

* Update public/app/core/history/richHistoryLocalStorageUtils.ts

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Fix linting issues

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2022-02-04 12:46:27 +01:00
..
datasource.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
datasource.ts Loki: Logs volume improvements (#40327) 2021-10-18 12:22:41 +02:00
explorePane.test.ts explore: store failed queries too (#42516) 2021-12-09 14:00:50 +01:00
explorePane.ts Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
history.ts Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
main.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
main.ts Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
query.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
query.ts Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
selectors.ts Explore: Reuse Dashboard's QueryRows component (#38942) 2021-09-15 16:26:23 +01:00
time.test.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
time.ts Hotkeys: Make time range permanent (#43802) 2022-01-07 16:51:29 +01:00
utils.test.ts Dependencies: Jest 27 (#42681) 2021-12-03 17:09:25 +00:00
utils.ts Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00