-
-
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
Experiment: Replace SiteEntity
with SiteNodeAggregate
#4780
Conversation
/** | ||
* @var Site | ||
* @ORM\ManyToOne(inversedBy="domains") | ||
* @Flow\Validate(type="NotEmpty") | ||
*/ | ||
protected $site; |
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.
how should the relation ship of
domain entity -> site node aggregate
work? Currently in this wip the domain wouldnt know its site directly but one has to fetch all site node aggregates and look into them
public function findAll(): iterable | ||
{ | ||
$cr = $this->contentRepositoryRegistry->get(ContentRepositoryId::fromString('default')); |
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.
how can we find all site node aggregates efficiently? Loop over all crs registered and fetch the node aggregates und the Neos.Neos:Sites
node?
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.
that seems SUPER expensive for something that will happen on every request. (we could cache it of course).
If anything, I would see a custom projection for it?
a407cb0
to
b415aa0
Compare
SiteEntity
with SiteNodeAggregate
806c0e2
to
5baa0b6
Compare
5baa0b6
to
ce4c272
Compare
Closing this experiment as written here
That could be worked around by caching or projections or other stuff but it might not be worth the hassle. At least definitely not for now. Also working with node aggregates is not easy at all, #4830 as we just want to use aggregate scoped properties but still have to issue the set properties command on a fake (random) dsp For the neos 9 release we will keep the site entity and domain entity as is. |
WIP
Related: #4470
only works for one site right now at time - no real domain support.
For migration use