[go: nahoru, domu]

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: first block dragged from flyout will have same id #7788

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes n/a

Proposed Changes

Previously in #7432 we added a saveIds parameter to block serialization so that we could have blocks in the flyout not save their id, that way all new blocks created would have a unique id, instead of having the same id as the block in the flyout.

This PR keeps the option to disable saving block IDs during serialization, but it doesn't use the option when serializing flyout blocks. One of our partners was relying on the old behavior where the first block dragged from the toolbox had the same id as the original block in the toolbox.

Reason for Changes

Unblocking partners.

Test Coverage

We originally added this because our browser tests were searching for the data-id attribute on the page and assuming that only one block would match. We worked around that in the existing browser tests and never updated them after we added this feature so that block ids would never match, so none of the browser tests need to be changed. I tested this by running the browser tests before and after this PR, and actually fewer tests fail after... but that's just a result of flakiness, none of the failures are related to this issue.

Documentation

n/a this behavior wasn't documented before and shouldn't be relied upon. if someone was relying on this undocumented behavior, then... this PR will also unblock them because however they were using it also probably broke in 10.3.

Additional Information

This will be included in the next patch release.

@maribethb maribethb requested a review from a team as a code owner January 17, 2024 20:02
@github-actions github-actions bot added the PR: fix Fixes a bug label Jan 17, 2024
@BeksOmega BeksOmega assigned BeksOmega and unassigned cpcallen Jan 17, 2024
@BeksOmega BeksOmega requested review from BeksOmega and removed request for cpcallen January 17, 2024 20:05
@maribethb maribethb merged commit 49f65a2 into google:develop Jan 17, 2024
11 checks passed
maribethb added a commit that referenced this pull request Jan 17, 2024
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.

None yet

3 participants