Allow explicit control over actor ID uniqueness in project scheduling state resolution

This commit is contained in:
2026-04-27 16:35:02 +02:00
parent e7fa39a1aa
commit 6150b4c162

View File

@@ -484,11 +484,14 @@ export function resolveRuntimeProjectScheduleState(options: {
scheduler: ProjectScheduler; scheduler: ProjectScheduler;
sequences: ProjectSequenceLibrary; sequences: ProjectSequenceLibrary;
actorIds: string[]; actorIds: string[];
actorIdsAreUnique?: boolean;
dayNumber: number; dayNumber: number;
timeOfDayHours: number; timeOfDayHours: number;
pathsById?: ReadonlyMap<string, RuntimeProjectSchedulePathDefinition>; pathsById?: ReadonlyMap<string, RuntimeProjectSchedulePathDefinition>;
}): RuntimeResolvedProjectScheduleState { }): RuntimeResolvedProjectScheduleState {
const actorIds = [...new Set(options.actorIds)]; const actorIds = options.actorIdsAreUnique
? options.actorIds
: [...new Set(options.actorIds)];
return { return {
actors: actorIds.map((actorId) => actors: actorIds.map((actorId) =>