Skip to content

Conversation

@maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes #9226

Proposed Changes

Don't save IDs when copying blocks and workspace comments

Reason for Changes

Saving the IDs doesn't make sense and can break some multi-workspace scenarios:

imagine you are mirroring events into a workspace, and you paste a block into one workspace but a block with that id already exists on the mirroring workspace.

if you're just pasting into the same workspace, the id won't be the same anyway because pasting will detect there's an id collision and automatically get a new one. we might as well always get a new id when pasting instead.

Test Coverage

I also tested this with the additional webdriver tests I added in #9254 and those also pass

Documentation

Additional Information

@maribethb maribethb requested a review from a team as a code owner July 26, 2025 00:24
@maribethb maribethb requested a review from BenHenning July 26, 2025 00:24
@github-actions github-actions bot added the PR: fix Fixes a bug label Jul 26, 2025
Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Makes sense.

@BenHenning
Copy link
Collaborator

BenHenning commented Jul 28, 2025

Will the keyboard nav tests need to be updated as well (per the failures)?

@maribethb
Copy link
Contributor Author

Will the keyboard nav tests need to be updated as well (per the failures)?

yep RaspberryPiFoundation/blockly-keyboard-experimentation#681

@maribethb maribethb merged commit c661dd1 into RaspberryPiFoundation:develop Jul 28, 2025
13 of 15 checks passed
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.

Pasting copied blocks with shared IDs causes block disappearance, possibly due to event mirroring

2 participants