English
@eightkk/vue-weave / core / resolveResourceTimelineEdits
Function: resolveResourceTimelineEdits()
resolveResourceTimelineEdits(
projection,edits):ResourceTimelineRejection|ResourceTimelineEditsResolution
Defined in: src/core/resourceTimeline.ts:240
Resolve GanttChart edits of a resource timeline (for example edit, edits or the edits of a cascade) to task date changes and assignment replacements. Edits of several projections of one task become one schedule change; they must agree on the new dates. A row change replaces the assignment of the bar's resource; moving to a resource the task already has is rejected. Apply the result as one change, so dates and assignments are accepted or refused together. Throws an Error for a target row that is not in the projection.
Parameters
projection
Pick<ResourceTimelineProjection, "bars" | "rows" | "origins" | "taskBarIds">
edits
readonly TimelineEdit[]