Архитектура: централизовать navigation focus authority в continuity policy и сделать phase15 replay time-stable
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
buildRootScopedCarryoverFilters,
|
||||
hydrateInventoryRootFrameState,
|
||||
readAddressDebugTemporalScope,
|
||||
resolveNavigationSessionContextState,
|
||||
resolveAddressDebugCarryoverFilters,
|
||||
resolveAddressDebugContextFacts,
|
||||
resolveAddressDebugAnchorContext,
|
||||
@@ -111,6 +112,40 @@ describe("assistantContinuityPolicy organization authority", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("resolves navigation session context through one shared helper", () => {
|
||||
const state = resolveNavigationSessionContextState({
|
||||
session_context: {
|
||||
organization_scope: "Org Alt",
|
||||
active_result_set_id: "rs-42",
|
||||
date_scope: {
|
||||
as_of_date: "2020-03-31",
|
||||
period_from: "2020-03-01",
|
||||
period_to: "2020-03-31"
|
||||
},
|
||||
active_focus_object: {
|
||||
object_type: "item",
|
||||
label: "Workstation",
|
||||
provenance_result_set_id: "rs-focus"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
expect(state).toEqual({
|
||||
organization: "Org Alt",
|
||||
activeResultSetId: "rs-42",
|
||||
dateScope: {
|
||||
as_of_date: "2020-03-31",
|
||||
period_from: "2020-03-01",
|
||||
period_to: "2020-03-31"
|
||||
},
|
||||
focusObject: {
|
||||
objectType: "item",
|
||||
label: "Workstation",
|
||||
provenanceResultSetId: "rs-focus"
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it("resolves carryover temporal scope and inferred anchor from debug filters when explicit anchor fields are absent", () => {
|
||||
const debug = {
|
||||
extracted_filters: {
|
||||
|
||||
Reference in New Issue
Block a user