You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking in memory mappings of sessionId to multiple searchIds (also tracking the user and request that generated that search.
Clearing out those mappings if they are stale.
Monitoring the existence of a saved object for that sessionId (indicating a background search was requested) and storing the search IDs into it.
Restore an searchId for a given sessionId from a saved object.
Tasks:
Define a saved object to represent a background search
Define a BackgroundSearch service
interfaceBackgroundSearchService{/* Track a `searchId` in memory or on a background search saved object (if exists). */asynctrackId: (userId: string,sessionId: string,requestParams: any,searchId: string)=>void;/* Get a `searchId` from a background search saved object */asyncgetId(userId: string,sessionId: string,requestParams: any): string|undefined;/* Create a background search saved object for a given session. */asyncstore(sessionId: string)=>void;}
Define a route internal\search\bg (??) where client can send a sessionId and optionally a list of searchIds. Invoke backgroundSearch.store(sessionId) and trackId for each searchId.
The text was updated successfully, but these errors were encountered:
Part of #61738
The background search service is responsible for
sessionId
to multiplesearchId
s (also tracking theuser
andrequest
that generated that search.sessionId
(indicating a background search was requested) and storing the search IDs into it.searchId
for a givensessionId
from a saved object.Tasks:
BackgroundSearch
serviceinternal\search\bg
(??) where client can send asessionId
and optionally a list ofsearchId
s. InvokebackgroundSearch.store(sessionId)
andtrackId
for eachsearchId
.The text was updated successfully, but these errors were encountered: