-
-
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: Workspace aware commands #4708
Conversation
So much work with all the tests, but this looks great! |
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.
Amazing, thanks for your hard work!
Can you give a bit more context to your notice re "For Rebasing, a surrogate WorkspaceWasRebased is used."?
Sure. This no longer works since the commands now operate on workspaces and the workspace doesn't change during rebase. Thus, before the commands get applied, the workspace must already point to the new content stream. This can currently only be done by |
So okay i ran the neos ui e2e test locally in combination with neos/neos-ui#3661 and they pass. At first i had little trouble getting this branch to work and emptied my db:
This WorkspaceWasPartiallyDiscarded event could not be deserialized when catching up:
i have to test again that this change is really not breaking if swapped out on the fly |
@mhsdesign did you retest this? |
I tried it as well and so far didn't notice problems, so I would realyl like to get this in ASAP. |
@kitsunet so you didn't ran into this error?
So this should be added in a follow up or do we need to introduce this event here? If we can add this later I'm with you on merging this ASAP. |
Seemed fine for me, but my dataset is small. I applied patch, did cr:setup on my exisating database for good measure and tried the website. |
...ralTests/Tests/Functional/Feature/WorkspacePublication/WorkspaceWritingDuringPublication.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.
Thank you very much for all the work!
…e/WorkspacePublication/WorkspaceWritingDuringPublication.php Co-authored-by: Bastian Waidelich <[email protected]>
…ebasing exceptions
-> this was fixed
-> this was fixed |
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.
Thank you so much for taking care.
Yeah!! Thanks so much, @nezaniel and congratulations!! |
This makes commands operate on workspaces instead of content streams, as this
Notice: For Rebasing, a surrogate WorkspaceWasRebased is used. This passes the tests but does not make much sense, instead we should introduce a new event
WorkspaceRebaseWasStarted
that sets the workspace to the new content stream so that during rebase the commands can be applied to the proper content stream.Resolves: #4694
Neos Ui Part: neos/neos-ui#3661
Upgrade instructions
The php api of most content repository commands was adjusted. The content stream id argument was removed and replaced with the workspace name.
(To migrate you can also look into the Ui adjustments for inspiration)
Important
This change is partially breaking to your existing events. To allow discarding or publishing a workspace the migration has to be applied:
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions