-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
EZP-30760: Fixed broken link after historical parent location removed #2965
EZP-30760: Fixed broken link after historical parent location removed #2965
Conversation
(inc. nop actions clear in ezplatform:urls:regenerate-aliases)
61485aa
to
b1354b7
Compare
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Tests/Content/UrlAlias/UrlAliasHandlerTest.php
Show resolved
Hide resolved
...lish/Core/Persistence/Legacy/Tests/Content/UrlAlias/_fixtures/urlaliases_location_delete.php
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.php
Outdated
Show resolved
Hide resolved
Just for info, this is described in https://jira.ez.no/browse/EZP-20773 and is related to another URL alias problem described in https://jira.ez.no/browse/EZP-20775. |
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.
Please try to resolve cache issue by invalidating cache at the moment something is removed, not when loaded (explanation in the relevant diff).
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.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.
Looks very good, I see tagging/invalidation in expected places.
One final remark:
eZ/Publish/Core/Persistence/Legacy/Content/UrlAlias/Gateway/DoctrineDatabase.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.
QA Approved on eZ Platform EE v2.5.9 with diff.
@alongosz could you merge it? |
Merged up and horizontally as ezsystems/ezplatform-kernel@6ae97c9 into |
7.5
,master
This PR resolves problem with broken links created by scenario described in https://jira.ez.no/browse/EZP-30760
and save the historical URL alias, even if historical location has been deleted (for example, alias /deleted-location/moved-somewhere-else-content will works fine)
There is included also nop-actions clearing for ezplatform:urls:regenerate-aliases (clear all unused nop-links (without parents))
TODO:
$ composer fix-cs
).