Filter Panel: Tie to Dashboard
Activity
Show:

Scott Theleman May 15, 2023 at 1:56 PM
Implemented saving Filter Panel selection data per dashboard uid. Implemented as an object in local storage keyed by dashboard uid.
EntityDS checks dashboard uid and retrieves correct Filter Panel settings
Buttons (added previously) in Filter Panel Options and Entity DS configuration to clear all Filter Panel data
Was unable to find a hook for when dashboard is deleted. May consider option to clear data of just current dashboard, but would need user to do it before deleting dashboard. For now, data will still exist in local storage but just never be used until user clears all filter panel data
Unresolved
Details
Assignee
Scott ThelemanScott ThelemanReporter
Scott ThelemanScott ThelemanStory Points
5Components
Sprint
NoneAffects versions
Fix versions
Priority
Medium
Details
Details
Assignee

Reporter

Story Points
5
Components
Sprint
None
Affects versions
Fix versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Created March 28, 2023 at 3:13 PM
Updated May 15, 2023 at 1:56 PM
Modify the new React Filter Panel so that its
localStorage
is associated with the dashboard it is on.Currently, selected values are stored in
localStorage
with a global key. If there are multiple dashboards containing their own FilterPanel, then those selected values may clash. If a panel or dashboard are deleted, those values may still be persisted.Alternatively, use another method for storing selected values.
clean up localStorage when panel or dashboard are deleted
EntityDS will need to check which dashboard it is on to check on Filter Panel values
maybe offer a way to clear all values for all Filter Panels