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: Overhaul node uri building #4892

Draft
wants to merge 11 commits into
base: 9.0
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Feb 15, 2024

Currently in 9.0-dev the NodeUriBuilder is a not well though out abstraction. It has a really shallow implementation and doest abstract the uribuilder away, but rather exposes it to be set from outside. That makes it impossible to swap out the implementation and also the api is questionable. How do i really set the format option or add additional queryparameters?
By creating a clear interface we are completely able to replace the LinkingService and make the linking service eventually use the NodeUriBuilder too: #4552

With the overhaul of the api and introduction of the NodeUriSpecification we will go one step further and not use the NodeAdress any further. The NodeIdentity #4868 will fill its place and make thus also cross site linking possible: #4441

TODO
is it okay to ignore the node uri? neos/flow-development-collection#2157

Related flow pr: neos/flow-development-collection#2744

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

@github-actions github-actions bot added the 9.0 label Feb 15, 2024
@mhsdesign mhsdesign marked this pull request as draft February 15, 2024 09:40
@mhsdesign mhsdesign force-pushed the feature/overhaulNodeUriBuilding branch from a5e9319 to a90fddb Compare February 16, 2024 09:13
@mhsdesign mhsdesign force-pushed the feature/overhaulNodeUriBuilding branch 3 times, most recently from ad7df6c to f3f34f9 Compare February 22, 2024 08:35
@mhsdesign mhsdesign force-pushed the feature/overhaulNodeUriBuilding branch from f3f34f9 to d32a2d4 Compare March 19, 2024 22:54
Comment on lines 170 to +171
$this->runtime->addCacheTag(
CacheTag::forDynamicNodeAggregate($contentRepository->id, $nodeAddress->contentStreamId, NodeAggregateId::fromString($matches[2]))->value
CacheTag::forDynamicNodeAggregate($nodeIdentity->contentRepositoryId, $nodeIdentity->workspaceName, $nodeIdentity->nodeAggregateId)->value
Copy link
Member Author

Choose a reason for hiding this comment

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

todo #4810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant