Skip to content

Conversation

@Legioth
Copy link
Member

@Legioth Legioth commented Feb 5, 2026

The signal tree logic has a check to verify that a node isn't moved in a way that creates a cyclic graph, i.e. to prevent the node from becoming its own ancestor. Before this fix, the logic was checking based on the provided node id without resolving aliases whereas the actual move was applied with resolved aliases. This made it possible to accidentally move a node in a way that created a cycle by moving an alias of the node rather than the original node. The fix is to resolve any alias before checking for cycles.

@github-actions github-actions bot added the +0.0.1 label Feb 5, 2026
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

Test Results

1 060 files  ± 0  1 060 suites  ±0   1h 15m 51s ⏱️ +27s
5 615 tests + 1  5 554 ✅ + 1  61 💤 ±0  0 ❌ ±0 
6 082 runs  +11  6 013 ✅ +11  69 💤 ±0  0 ❌ ±0 

Results for commit efce1b5. ± Comparison against base commit be2f0b2.

♻️ This comment has been updated with latest results.

mshabarov
mshabarov previously approved these changes Feb 9, 2026
@@ -300,7 +300,7 @@ private void attach(Id parentId, Id childId, ChildAttacher attacher) {

Id ancestor = resolvedParentId;
while (ancestor != null) {
if (ancestor.equals(childId)) {
if (ancestor.equals(resolvedChildId)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking: could give more context on what is the bigger problem behind this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description added to the top-level PR description. Should just make sure the description is used as the commit message when merging.

@Artur-
Copy link
Member

Artur- commented Feb 9, 2026

I generated some conflicts for you

@mshabarov mshabarov enabled auto-merge (squash) February 9, 2026 11:13
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 9, 2026

@mshabarov mshabarov merged commit a833056 into main Feb 9, 2026
31 checks passed
@mshabarov mshabarov deleted the aliasChild branch February 9, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants