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

BUGFIX: Asset usage prevent orphaned asset usage entries in case of a rebase with conflicts #5406

Merged
merged 5 commits into from
Jan 27, 2025

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Dec 18, 2024

Some projections / catchup hooks attempt to optimise to make WorkspaceWasRebased a no-op under the idea that all changes in the user workspace are still existent as known previously.

This is mostly true except for the case of a force rebase. Here changes in the user workspace might be discarded. To signal that to the consumer instead of a new even we introduce WorkspaceWasRebased::hasSkippedEvents().

The asset usage was adjusted to flush all entries on force rebase so the state is rebuild from scratch without any orphaned entries that would only be deleted on a discard at some point.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

Sorry, something went wrong.

…equence numbers in force-rebase event

Storing the skipped sequence numbers should ease debugging rather than having 'just' a boolean indicator. The public api does not need to know about that thus the getter.
@mhsdesign mhsdesign force-pushed the bugfix/orphaned-asset-usage-entries branch from 8d5bc2c to 19cb5c2 Compare January 9, 2025 10:37
Copy link
Contributor

@dlubitz dlubitz left a comment

Choose a reason for hiding this comment

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

This looks awesome. Thank you

@dlubitz
Copy link
Contributor

dlubitz commented Jan 17, 2025

@mhsdesign Can we merge this?

@kitsunet kitsunet enabled auto-merge January 27, 2025 14:45
@kitsunet kitsunet merged commit c381507 into neos:9.0 Jan 27, 2025
9 checks passed
@mhsdesign mhsdesign deleted the bugfix/orphaned-asset-usage-entries branch January 27, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants