Skip to content

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 requested a review from a team as a code owner August 23, 2023 21:25
@github-actions github-actions bot added the PR: fix Fixes a bug label Aug 23, 2023
@maribethb maribethb merged commit b9a7a0c into RaspberryPiFoundation:develop Aug 23, 2023
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