Skip to content

9.0: BUGFIX: Fix default dimension resolving #4066

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

Merged
merged 5 commits into from
Mar 12, 2023

Conversation

skurfuerst
Copy link
Member

@bwaidelich we need to discuss this a bit further; some more edge cases appeared ;)

@skurfuerst skurfuerst added this to the 9.0 (ES CR) milestone Mar 5, 2023
@github-actions github-actions bot added the 9.0 label Mar 5, 2023
$siteConfiguration['contentDimensions']['defaultDimensionSpacePoint'] ?? []
);
$siteConfiguration->defaultDimensionSpacePoint
);*/
Copy link
Member Author

Choose a reason for hiding this comment

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

I have removed this, because we need a way to express "X cannot match..." -> need to discuss this. maybe extend the matching logic.

UriConstraints $uriConstraints
): UriConstraints {
$dimensionSpacePoint = $this->reduceDimensionSpacePointToConfiguredDimensions($dimensionSpacePoint);

if ($targetNode->getUriPath() === '' && $dimensionSpacePoint->hash === $this->defaultDimensionSpacePoint->hash) {
Copy link
Member Author

Choose a reason for hiding this comment

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

we need the target node, because UriConstraints does NOT contain the target URL...

@skurfuerst skurfuerst marked this pull request as ready for review March 12, 2023 07:56
@skurfuerst skurfuerst merged commit e22d565 into 9.0 Mar 12, 2023
@skurfuerst skurfuerst deleted the 90-fix-default-dimensionresolving branch March 12, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants