Skip to content

Fix Cascade Delete Failing when handling Anchored Activities#1839

Open
Mythicaeda wants to merge 2 commits into
developfrom
fix/scheduler-cascade-auto-delete
Open

Fix Cascade Delete Failing when handling Anchored Activities#1839
Mythicaeda wants to merge 2 commits into
developfrom
fix/scheduler-cascade-auto-delete

Conversation

@Mythicaeda

Copy link
Copy Markdown
Contributor

Description

The deletePastCreations method has been reworked. It now pre-gathers the set of Activities to delete. Then, if CASCADE is not the selected deletion strategy, it uses the old behavior of deleting every activity on the list. However, if the deletion strategy is CASCADE, the method now checks that the activity still exists before deleting it (since specifically in the CASCADE case an activity may have been deleted between being put on the list and the iterator reaching it in the list).

Verification

A test going through the reproduction steps on the ticket were added.

@Mythicaeda Mythicaeda requested a review from dandelany June 30, 2026 21:23
@Mythicaeda Mythicaeda self-assigned this Jun 30, 2026
@Mythicaeda Mythicaeda requested a review from a team as a code owner June 30, 2026 21:23
@Mythicaeda Mythicaeda added this to Aerie Jun 30, 2026
@Mythicaeda Mythicaeda requested a review from JoelCourtney June 30, 2026 21:23
@Mythicaeda Mythicaeda added fix A bug fix scheduling Anything related to the scheduling domain labels Jun 30, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Aerie Jun 30, 2026
@Mythicaeda Mythicaeda moved this from Todo to In Review in Aerie Jul 1, 2026
…tivities on the same anchor chain in Cascade mode

A new function: `deleteIfExists` has been added to `EditablePlan.kt` and `Procedure` has been updated to call it instead. This function will not throw an exception if the activity directive doesn't exist
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix scheduling Anything related to the scheduling domain

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

Scheduler Fails to Cascade Delete When Placed Activities are Anchored to Each Other

1 participant