OpenSearch-Dashboards
OpenSearch-Dashboards copied to clipboard
[Workspace] Comply recentAccessed service with workspace
Is your feature request related to a problem? Please describe.
Recent items storage is using basePath
as the partition of its storage.
Before workspace feature is introduced, it works well as the only factor of basePath is serverBasePath
, which is defined in opensearch_dashboards.yml file.
After workspace feature is enabled, things get weird because workspace will modify basePath service so that basePath consists of two parts: 1. serverBasePath 2. currentWorkspaceId. As a result, recent items storage is distinct by workspace, and user can not see all the recent items in any of the page or workspace.
Describe the solution you'd like
Take serverBasePath into consideration when generating the storage key of recent items.
Describe alternatives you've considered
N/A
Additional context
#4944