Skip to content
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

Merged

Conversation

michal-myszka
Copy link
Contributor

@michal-myszka michal-myszka commented Mar 3, 2020

Question Answer
JIRA issue EZP-30760
Bug/Improvement yes
New feature no
Target version 7.5, master
BC breaks no
Tests pass yes
Doc needed no

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:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

(inc. nop actions clear in ezplatform:urls:regenerate-aliases)
@michal-myszka michal-myszka changed the title EZP-30760 - fixed broken link after historical parent location removed EZP-30760: Fixed broken link after historical parent location removed Mar 3, 2020
@michal-myszka michal-myszka self-assigned this Mar 3, 2020
@michal-myszka michal-myszka force-pushed the EZP-30760-fix-broken-link-after-historical-parent-location-removed branch from 61485aa to b1354b7 Compare March 5, 2020 16:20
@pspanja
Copy link
Contributor

pspanja commented Apr 7, 2020

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.

Copy link
Member

@alongosz alongosz left a 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).

Copy link
Member

@alongosz alongosz left a 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:

@micszo micszo self-assigned this Apr 14, 2020
Copy link
Member

@micszo micszo left a 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.

@micszo micszo removed their assignment Apr 15, 2020
@lserwatka lserwatka merged commit 6ae97c9 into 7.5 Apr 15, 2020
@lserwatka lserwatka deleted the EZP-30760-fix-broken-link-after-historical-parent-location-removed branch April 15, 2020 08:18
@lserwatka
Copy link
Member

@alongosz could you merge it?

@alongosz
Copy link
Member

Merged up and horizontally as ezsystems/ezplatform-kernel@6ae97c9 into ezplatform-kernel:1.0 and ezplatform-kernel:master.

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

7 participants