-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
!!! TASK: Serializable Commands #5348
Merged
Merged
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9714f47
WIP: PoC: Serializable Commands
bwaidelich b81032c
Merge branch '9.0' into task/serializable-commands
bwaidelich 2ecfe5d
Fix node migration transformations and tests
bwaidelich 38c0b9b
Merge branch '9.0' into task/serializable-commands
bwaidelich bd60fb8
Fine grained PHPStan ignores
bwaidelich 35b02dc
Fix tests
bwaidelich c36073e
Avoid union type in `CommandThatFailedDuringRebase`
bwaidelich 8e9b333
TASK: Add docs for Serialized Command
mhsdesign e9d576b
TASK: Remove `SerializedCommandInterface` again and use `RebasableToO…
mhsdesign ddf2a52
TASK: Adjust documentation of `CommandInterface`
mhsdesign d79fe10
TASK: Overhaul api of `CommandThatFailedDuringRebase`
mhsdesign 43e9501
Merge pull request #5355 from mhsdesign/task/serializable-commands
mhsdesign d6ff6bb
TASK: Do not expose that `Command`'s failed during rebase
mhsdesign 48ebbda
TASK: Rename `EventThatFailedDuringRebase` to `ConflictingEvent`
mhsdesign 930266d
TASK: Remove hacky method again
mhsdesign fbbf138
Merge branch '9.0' into task/serializable-commands
bwaidelich ad9f66b
Merge branch '9.0' into task/serializable-commands
bwaidelich 255b38e
TASK: Adjust changed `WorkspaceRebaseFailed`
mhsdesign dbbb7f1
TASK: Remove obsolete array declaration due to interface
mhsdesign 9f9f946
Fix test
bwaidelich 1aa0e04
Merge branch 'task/serializable-commands' of https://github.com/neos/…
bwaidelich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Neos.ContentRepository.Core/Classes/CommandHandler/SerializedCommandInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Neos\ContentRepository\Core\CommandHandler; | ||
|
||
/** | ||
* Common (marker) interface for all commands that need to be serialized for rebasing | ||
* | ||
* During a rebase, the command (either {@see CommandInterface} or this serialized counterpart) will be deserialized | ||
* from array {@see SerializedCommandInterface::fromArray()} and reapplied {@see CommandSimulator} | ||
* | ||
* @internal | ||
*/ | ||
interface SerializedCommandInterface | ||
mhsdesign marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
/** | ||
* called during deserialization from metadata | ||
* @param array<string,mixed> $array | ||
*/ | ||
public static function fromArray(array $array): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@skurfuerst you had originally introduced this test case with 0f88ed6 but in our opinion node migrations should not be allowed to set properties that are not allowed according to the node type schema. Do you agree to that assumption?