-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
XWIKI-12987: Relative links are made absolute or even broken after moving a page #3553
Commits on Nov 8, 2024
-
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page WIP The idea of this work is to: 1. Provide a way to access all documents that are moved as part of a move job 2. Use that information when performing a call to ReferenceRenamer to define if a relative untyped link should be handled or not On top of it, the idea is also to check if the doc exists in case of refactoring of a link to avoid refactoring unexisting relative links. One problem is remaining about relative link pointing to sibling pages (e.g. the link to Alice in Bob page in the ticket): we rely apparently to an old mechanism for backward compatibility reason for this to work in the UI, we might need same thing in the check, or to decide to ignore that UC. I started to add an integration tests but for some reason it's not passing, though it seemed to be working locally for the scenario described in the ticket (except for the link in Bob page).
Configuration menu - View commit details
-
Copy full SHA for c8f33eb - Browse repository at this point
Copy the full SHA c8f33ebView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Fix integration test setup * Fix some signatures * Work on the conditions for performing link update: WIP
Configuration menu - View commit details
-
Copy full SHA for 456e447 - Browse repository at this point
Copy the full SHA 456e447View commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Fix conditions to make all RenamePageIT passing * WIP: need to double check that some conditions are not redundant and double check side effects
Configuration menu - View commit details
-
Copy full SHA for 60c169a - Browse repository at this point
Copy the full SHA 60c169aView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Simplify a bit the conditions in ResourceReferenceRenamer and ensure all unit tests are passing in refactoring module
Configuration menu - View commit details
-
Copy full SHA for c8be6ae - Browse repository at this point
Copy the full SHA c8be6aeView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Fix checkstyle * WIP: try to find proper oracle for renaming absolute references, without success so far.
Configuration menu - View commit details
-
Copy full SHA for 4ff12e2 - Browse repository at this point
Copy the full SHA 4ff12e2View commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Find proper conditions to perform or not link renames * Fix unit tests to add missing conditions * WIP: need to fix coverage and check on subwikis / with more conditions (e.g. with holes in hierarchy)
Configuration menu - View commit details
-
Copy full SHA for 1ac0e3a - Browse repository at this point
Copy the full SHA 1ac0e3aView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Fix a regression and provide a test to cover it
Configuration menu - View commit details
-
Copy full SHA for efd557d - Browse repository at this point
Copy the full SHA efd557dView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Provide subwiki integration tests * Minor improvment in RenamePageIT
Configuration menu - View commit details
-
Copy full SHA for 6409723 - Browse repository at this point
Copy the full SHA 6409723View commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Improve SubWikiIT to add more checks
Configuration menu - View commit details
-
Copy full SHA for 0b077f8 - Browse repository at this point
Copy the full SHA 0b077f8View commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Few improvments following review
Configuration menu - View commit details
-
Copy full SHA for 96eb739 - Browse repository at this point
Copy the full SHA 96eb739View commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Change APIs to use a Map<EntityReference, EntityReference> corresponding to the source and target of refactorings in renamers * Change some logic of AbstractCopyOrMoveJob to compute the actual couple source/destination before performing any operation and store the info in EntitySelection * Add a log in RenameJob if it's not executed because of the number of entities (not needed for this issue, but felt better to understand what's happening)
Configuration menu - View commit details
-
Copy full SHA for 079bb3c - Browse repository at this point
Copy the full SHA 079bb3cView commit details -
XWIKI-12987: Relative links are made absolute or even broken after mo…
…ving a page * Fix remaining coverage problems
Configuration menu - View commit details
-
Copy full SHA for 1d8b51b - Browse repository at this point
Copy the full SHA 1d8b51bView commit details