-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
FEATURE: Edit, delete and switch workspaces #4186
Conversation
…cription and for workspace deletion.
Awesome!! I'll review this in the morning (as it is a rather big change ;) ) |
Just one thing is missing where I need some help. Maybe @skurfuerst has some idea how to figure out, if the workspace is empty (no unpublished nodes) without using the projection. See:https://github.com/neos/neos-development-collection/pull/4186/files#diff-3e5de1a138586c8c85cdd71ed1a765ecc0ba0d79ab2579a6000475d427cefda2R753
|
@dlubitz There would be two ways to do it I think:
All the best, |
Neos.ContentRepository.Core/Classes/EventStore/EventNormalizer.php
Outdated
Show resolved
Hide resolved
Neos.ContentRepository.Core/Classes/Feature/ContentStreamCommandHandler.php
Show resolved
Hide resolved
// TODO Check workspace is empty before forking | ||
$changedNodes = 0; | ||
if ($changedNodes > 0) { | ||
throw new WorkspaceIsNotEmptyException('The user workspace needs to be empty before forking.', 1681455989); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be empty before switching the base workspace (naming)
...ContentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeBaseWorkspace.php
Outdated
Show resolved
Hide resolved
...ontentRepository.Core/Classes/Feature/WorkspaceModification/Command/ChangeWorkspaceOwner.php
Outdated
Show resolved
Hide resolved
...tentRepository.Core/Classes/Feature/WorkspaceModification/Event/WorkspaceOwnerWasChanged.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dlubitz really cool change :) Just found a few nitpicks, I think this is really close to merging! Thanks!!
Thanks for for your rewiew @skurfuerst, I've implemented all changes will have a look into the last open task next days. |
Done. Also added the check for empty workspace on base workspace change. |
@dlubitz great work ❤️ ❤️ ❤️ |
Adds following features using the new CR:
Fixes #4041