grafana/public/app
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
..
angular Update dependency prettier to v2.5.1 (#43473) 2022-02-02 12:02:32 +00:00
core Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
features Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Accessibility: Fix text selection when using FocusScope (#44770) 2022-02-04 11:20:18 +00:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes AccessControl: Change teams permissions page when accesscontrol is enabled (#43971) 2022-02-03 17:49:39 +01:00
store Chore: Bumps Immer, Redux Toolkit, Redux and React Redux (#38872) 2021-09-07 10:44:47 +02:00
types Query History: Refactor persistence layer (#44545) 2022-02-04 12:46:27 +01:00
app.ts Refactor: Move Value Mappings to Grafana public instead of Grafana UI (#44237) 2022-01-20 20:36:34 -08:00
AppWrapper.tsx Navigation: allow adding extra content (#44048) 2022-01-25 10:04:44 +02:00
dev.ts React: Add why-did-you-render dev extension to better see what components re-render and why (in console) (#23455) 2020-04-09 19:44:05 +02:00
index.ts Chore: Prevent loading error from showing too early (#41347) 2021-11-08 16:13:37 +01:00