mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Improve local storage error handling when rich history is added (#39943)
* Rich History: improve local storage error handling * Reduce number of max items and update docs * Rotate not-starred items and add tests * Add missing property to initial state * Unify date in richHistory tests * Show a warning message that rich history limit has been reached * Add missing param
This commit is contained in:
@@ -46,6 +46,17 @@ export interface ExploreState {
|
||||
*/
|
||||
richHistory: RichHistoryQuery[];
|
||||
|
||||
/**
|
||||
* True if local storage quota was exceeded when a new item was added. This is to prevent showing
|
||||
* multiple errors when local storage is full.
|
||||
*/
|
||||
localStorageFull: boolean;
|
||||
|
||||
/**
|
||||
* True if a warning message of hitting the exceeded number of items has been shown already.
|
||||
*/
|
||||
richHistoryLimitExceededWarningShown: boolean;
|
||||
|
||||
/**
|
||||
* Auto-loading logs volume after running the query
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user