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: do not create extra shadow blocks when mirroring events #7427

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes #7310

Proposed Changes

If the Create event only has shadow blocks that already exist in the workspace, don't run anything in the event. This is because shadow block handling is done already when a block is disconnected or deleted. These types of events only happen when a block covering a shadow block is moved or deleted.

Behavior Before Change

When mirroring events across a workspace, extra block that has the same data as the shadow block is created.

Behavior After Change

No extra blocks created when mirroring events.

Reason for Changes

bugs

Test Coverage

  • Added a unit test.
  • Linked my build into the mirror demo and tested manually. Also tested undo, redo, etc.

Documentation

no

Additional Information

@maribethb maribethb merged commit b9a7a0c into google:develop Aug 23, 2023
11 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.

Handle shadow blocks correctly in run for CreateBlock event
2 participants