-
Notifications
You must be signed in to change notification settings - Fork 203
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
IBX-1201: Added handling of already generated aliases during subtree copying #3127
Conversation
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.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.
Not sure about alreadyGeneratedPairs
name, but that is just a nitpick. Something like alreadyAliasedLocations
would be more appropriate I guess. It is just hard to grasp at glance what the hell is alreadyGeneratedPairs
and why it is a part of copySubtree
.
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.
Foremost, integration test coverage is missing. It seems you should be able to reproduce the same database error inside test container. (eZ/Publish/API/Repository/Tests).
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Handler.php
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Looks good. I have minor CS remarks @barw4
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.
QA approved on eZPlatform-ee 2.5.25 with patch.
Merged into: |
v2.5
There may be a specific case when the parent content has more than one translation and after trying to copy such subtree system wants to create more than one alias of the same exact child content. Such duplicated aliases should be skipped.
Checklist:
$ composer fix-cs
).@ezsystems/engineering-team
).