Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure replaced nodes keep the same index #1371

Merged
merged 3 commits into from
May 20, 2023

Conversation

glopesdev
Copy link
Member

@glopesdev glopesdev commented May 20, 2023

This PR fixes a subtle issue where replaced nodes would be assigned a different index in the order. The issue was caused by assigning an index to the delete operation, but not to the creation operation. Nodes might therefore be inserted at the end of the workflow and cause an index mismatch in the corresponding delete operation.

@glopesdev glopesdev added the fix Pull request that fixes an issue label May 20, 2023
@glopesdev glopesdev added this to the 2.8 milestone May 20, 2023
@glopesdev glopesdev merged commit 3930514 into bonsai-rx:main May 20, 2023
@glopesdev glopesdev deleted the fix-replace branch May 20, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Pull request that fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant