@outbuild-company/schedule-core 1.13.4 → 1.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/schedule-core.global.js +1 -1
- package/dist/cdn/schedule-core.global.js.map +1 -1
- package/dist/index.cjs +21 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14529,6 +14529,14 @@ async function dispatchActivityIndent(action, options, deps) {
|
|
|
14529
14529
|
if (shift.before !== void 0) beforeImage.correlativeId = shift.before;
|
|
14530
14530
|
beforeSnap.set(shift.activityId, beforeImage);
|
|
14531
14531
|
}
|
|
14532
|
+
const invalidLinkIds = collectInvalidLinkIdsForCycle(succeededIds, adapter);
|
|
14533
|
+
const beforeLinks = /* @__PURE__ */ new Map();
|
|
14534
|
+
for (const linkId of invalidLinkIds) {
|
|
14535
|
+
const link = adapter.getLink(linkId);
|
|
14536
|
+
if (!link) continue;
|
|
14537
|
+
beforeLinks.set(linkId, { ...link });
|
|
14538
|
+
adapter.removeLink(linkId);
|
|
14539
|
+
}
|
|
14532
14540
|
const { scheduledIds } = await runPostMutation(
|
|
14533
14541
|
{
|
|
14534
14542
|
adapter,
|
|
@@ -14544,7 +14552,6 @@ async function dispatchActivityIndent(action, options, deps) {
|
|
|
14544
14552
|
options
|
|
14545
14553
|
}
|
|
14546
14554
|
);
|
|
14547
|
-
const invalidLinkIds = collectInvalidLinkIdsForCycle(succeededIds, adapter);
|
|
14548
14555
|
const trackingEvent = {
|
|
14549
14556
|
name: DISPATCH_TRACK_EVENT.ACTIVITY_INDENT,
|
|
14550
14557
|
properties: {
|
|
@@ -14559,6 +14566,15 @@ async function dispatchActivityIndent(action, options, deps) {
|
|
|
14559
14566
|
if (action.eventSource !== void 0) {
|
|
14560
14567
|
trackingEvent.properties.event_source = action.eventSource;
|
|
14561
14568
|
}
|
|
14569
|
+
const changes = await assembleChangeSet(adapter, {
|
|
14570
|
+
source: action,
|
|
14571
|
+
beforeSnap,
|
|
14572
|
+
touchedIds: touched,
|
|
14573
|
+
scheduledIds,
|
|
14574
|
+
links: buildLinkDeletions(beforeLinks),
|
|
14575
|
+
trackingEvents: [trackingEvent],
|
|
14576
|
+
hoursPerDay: sector.hoursPerDay
|
|
14577
|
+
});
|
|
14562
14578
|
return {
|
|
14563
14579
|
ok: true,
|
|
14564
14580
|
activityVerdicts: action.activityIds.map((activityId) => {
|
|
@@ -14571,14 +14587,8 @@ async function dispatchActivityIndent(action, options, deps) {
|
|
|
14571
14587
|
reason: failure.reason
|
|
14572
14588
|
} : { activityId: String(activityId), ok: true };
|
|
14573
14589
|
}),
|
|
14574
|
-
changes
|
|
14575
|
-
|
|
14576
|
-
beforeSnap,
|
|
14577
|
-
touchedIds: touched,
|
|
14578
|
-
scheduledIds,
|
|
14579
|
-
trackingEvents: [trackingEvent],
|
|
14580
|
-
hoursPerDay: sector.hoursPerDay
|
|
14581
|
-
})
|
|
14590
|
+
changes,
|
|
14591
|
+
__beforeLinks: beforeLinks
|
|
14582
14592
|
};
|
|
14583
14593
|
}
|
|
14584
14594
|
|
|
@@ -14867,6 +14877,7 @@ async function dispatchActivitySetProgress(action, options, deps) {
|
|
|
14867
14877
|
changes.postProcessors ?? [],
|
|
14868
14878
|
adapter
|
|
14869
14879
|
);
|
|
14880
|
+
const autoscheduleFrom = changes.needsAutoSchedule ? ctx.hierarchy.hasChildren(action.activityId) ? AUTOSCHEDULE_SCOPE.ROOTS : action.activityId : null;
|
|
14870
14881
|
const { scheduledIds } = await runPostMutation(
|
|
14871
14882
|
{
|
|
14872
14883
|
adapter,
|
|
@@ -14876,7 +14887,7 @@ async function dispatchActivitySetProgress(action, options, deps) {
|
|
|
14876
14887
|
},
|
|
14877
14888
|
{
|
|
14878
14889
|
action,
|
|
14879
|
-
autoscheduleFrom
|
|
14890
|
+
autoscheduleFrom,
|
|
14880
14891
|
recomputeParentsFrom: [],
|
|
14881
14892
|
collectDirty: (sids) => collectDirtyForInlineEdit(action.activityId, touchedIds, sids),
|
|
14882
14893
|
now: deps.now,
|