grafana/public/app/features/explore/RichHistory
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
..
RichHistory.test.tsx Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989) 2021-02-11 13:45:25 +01:00
RichHistory.tsx Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
RichHistoryCard.test.tsx Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
RichHistoryCard.tsx Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
RichHistoryContainer.test.tsx Rich history: Test coverage (#22852) 2020-03-17 23:24:27 +01:00
RichHistoryContainer.tsx Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
RichHistoryQueriesTab.test.tsx Chore: Fix more TypeScript errors (#36918) 2021-07-20 09:57:03 +01:00
RichHistoryQueriesTab.tsx Explore: query history: fix error when removing last item (#42179) 2021-11-24 13:52:44 +01:00
RichHistorySettings.test.tsx Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
RichHistorySettings.tsx Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
RichHistoryStarredTab.test.tsx Chore: Fix more TypeScript errors (#36918) 2021-07-20 09:57:03 +01:00
RichHistoryStarredTab.tsx Explore: query history: fix error when removing last item (#42179) 2021-11-24 13:52:44 +01:00