-
-
Notifications
You must be signed in to change notification settings - Fork 550
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 #3634
Commits on Nov 12, 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 e21fb37 - Browse repository at this point
Copy the full SHA e21fb37View 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 460658f - Browse repository at this point
Copy the full SHA 460658fView 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 f9d6fc3 - Browse repository at this point
Copy the full SHA f9d6fc3View 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 663edd6 - Browse repository at this point
Copy the full SHA 663edd6View 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 de3bd0a - Browse repository at this point
Copy the full SHA de3bd0aView 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 ea71edf - Browse repository at this point
Copy the full SHA ea71edfView 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 a8689a9 - Browse repository at this point
Copy the full SHA a8689a9View 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 1df0a36 - Browse repository at this point
Copy the full SHA 1df0a36View 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 ce1f455 - Browse repository at this point
Copy the full SHA ce1f455View 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 a7dedf4 - Browse repository at this point
Copy the full SHA a7dedf4View 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 e73d4c5 - Browse repository at this point
Copy the full SHA e73d4c5View 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 c9be265 - Browse repository at this point
Copy the full SHA c9be265View commit details