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: insertion marker's next blocks are real blocks #7384

Merged
merged 1 commit into from
Aug 14, 2023
Merged

fix: insertion marker's next blocks are real blocks #7384

merged 1 commit into from
Aug 14, 2023

Conversation

HollowMan6
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7383 (Ignore the reasoning there, as I had no idea what caused this at the time when I opened that issue)

Address issues in PR #7364

Proposed Changes

Don't add next block to the insertion marker when we do an insertion marker json serialization.

Also, to keep consistent with the old behavior, we don't need to add input blocks for the insertion marker.

And we don't need to do a full serialization here as it will just become an insertion marker.

Behavior Before Change

The insertion marker's next blocks are real blocks and can get connected to the statements stack.

Screencast.from.2023-08-13.02-42-30.webm

Behavior After Change

Everything returned to normal, just like the old behavior.

Reason for Changes

To fix the problem.

Test Coverage

N/A

Documentation

N/A

Additional Information

N/A

Don't add next block to the insertion marker when we do
an insertion marker json serialization.

Also, to keep consistent with the old behavior, we don't
need to add input blocks for the insertion marker.

And we don't need to do a full serialization here as it
will just become an insertion marker.

Resolves #7383

Address issues in PR #7364

Signed-off-by: Hollow Man <[email protected]>
@HollowMan6
Copy link
Contributor Author

I think this may need an emergency release, as the issue here is breaking the user experience significantly.

@BeksOmega BeksOmega merged commit 18ee0ec into google:develop Aug 14, 2023
10 checks passed
ericblackmonGoogle pushed a commit that referenced this pull request Aug 14, 2023
Don't add next block to the insertion marker when we do
an insertion marker json serialization.

Also, to keep consistent with the old behavior, we don't
need to add input blocks for the insertion marker.

And we don't need to do a full serialization here as it
will just become an insertion marker.

Resolves #7383

Address issues in PR #7364

Signed-off-by: Hollow Man <[email protected]>
(cherry picked from commit 18ee0ec)
@johnnesky
Copy link
Member

I'm guessing #7381 is a duplicate of this.

@HollowMan6
Copy link
Contributor Author

I'm guessing #7381 is a duplicate of this.

Yeah, I think so. Didn't aware that was the same issue when I opened this one.

rachel-fenichel added a commit that referenced this pull request Aug 24, 2023
rachel-fenichel added a commit that referenced this pull request Aug 24, 2023
@BeksOmega BeksOmega mentioned this pull request Aug 28, 2023
13 tasks
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.

Insertion previews become real blocks in v10.1.x
4 participants