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

FEATURE: Refactor publication and discarding endpoints #3752

Merged
merged 34 commits into from
Apr 5, 2024

Conversation

nezaniel
Copy link
Member

@nezaniel nezaniel commented Mar 14, 2024

This implements explicit endpoints for publishing and discarding sites or documents, adjusting Neos' behavior to the ESCR.

(see also: neos/neos-development-collection#4943)

@grebaldi grebaldi force-pushed the publishingBonanza branch from e624b53 to b01269c Compare March 17, 2024 16:22
@mhsdesign mhsdesign self-requested a review March 18, 2024 20:11
@grebaldi
Copy link
Contributor

grebaldi commented Mar 19, 2024

This commit MUST be removed before merging PR #3752
@grebaldi grebaldi changed the title Refactor publication and discarding endpoints FEATURE: Refactor publication and discarding endpoints Mar 19, 2024
@grebaldi grebaldi marked this pull request as ready for review March 19, 2024 11:32
@github-actions github-actions bot added the Feature Label to mark the change as feature label Mar 19, 2024
@mhsdesign
Copy link
Member

Thanks for all the adjustments and discussions so far. It seems the mutations are now handled by the Neos Workspace but we dont use the new Workspace::countChangesInSite api. Should we do this in a followup or later :D?

@grebaldi
Copy link
Contributor

@mhsdesign:

Thanks for all the adjustments and discussions so far. It seems the mutations are now handled by the Neos Workspace but we dont use the new Workspace::countChangesInSite api. Should we do this in a followup or later :D?

Definitely later. Currently, we need the actual changes in the UI to calculate dirty-state in various places. The new API doesn't solve this for us yet, but that's an implementation detail and can be adjusted later down the line. We need to take care of conflict resolution first.

{
/** @todo send from UI */
Copy link
Member

@mhsdesign mhsdesign Apr 3, 2024

Choose a reason for hiding this comment

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

todo remove todo, or later

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

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

Thanks for the change i will run the Neos Ui e2e locally and then i suppose we can merge this.

@grebaldi
Copy link
Contributor

grebaldi commented Apr 3, 2024

Just a reminder:

@mhsdesign
Copy link
Member

Locally all tests pass, except an unrelated unit test failure that should be fixed after an upmerge. Ill push also a commit to fix the silly ci (sorry i meant style ci)

@mhsdesign mhsdesign closed this Apr 5, 2024
@mhsdesign
Copy link
Member

reopen to trigger ci

@mhsdesign mhsdesign reopened this Apr 5, 2024
@mhsdesign mhsdesign merged commit 1930801 into 9.0 Apr 5, 2024
10 of 13 checks passed
@mhsdesign mhsdesign deleted the publishingBonanza branch April 5, 2024 18:24
@mhsdesign
Copy link
Member

Huh e2e still fail

Fatal error: Cannot redeclare Neos\Neos\Domain\Workspace\Workspace::getCurrentContentStreamId() in /home/circleci/app/Packages/Neos/Neos.Neos/Classes/Domain/Workspace/Workspace.php on line 131

also on 9.0 after merge ...

Comment on lines -223 to -226
$nodeIdentifiersToPublish[] = new NodeIdToPublishOrDiscard(
$nodeAddress->nodeAggregateId,
$nodeAddress->dimensionSpacePoint
);
Copy link
Member

Choose a reason for hiding this comment

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

FYI, as we dont use the node address from the Neos Ui here anymore and their dimension we accidentally trashed partial publishing with respect to dimensions.

But this might be okay as discussed :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.0 Feature Label to mark the change as feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants