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

fix: Fix serialization of the lists_split block. #8702

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #8692

Proposed Changes

This PR updates the lists_split block's implementation to serialize the state of the mode (join vs split) field. While as the old comment notes the field validator does update this, during block serialization blocks are connected to their parents before having their field values set, so at the time of connection the field validator has not yet run to set the appropriate connection check, so the block and its parent become separated due to the connection check failing. Now, the extra state will be deserialized early, update the connection checks, and allow the block to be connected to its parent during deserialization. Note that this will not resolve already-saved projects with this issue, but it will fix it going forward.

@gonfunko gonfunko merged commit b8bb26f into google:develop Jan 6, 2025
11 checks passed
@gonfunko gonfunko deleted the deserialization-failure branch January 6, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blocks with Mutator-Driven Output Types Fail to Reconnect After Reloading JSON
3 participants