Branch: refs/heads/XWIKI-12987
Home:
https://github.com/xwiki/xwiki-platform
Commit: de8dfed35ea50b779e0f9153f08aa73f4c992c7a
https://github.com/xwiki/xwiki-platform/commit/de8dfed35ea50b779e0f9153f08a…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/RenamePageIT.java
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/render/DefaultOldRendering.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/XWikiTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/checkstyle/checkstyle-suppressions.xml
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/ReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/ReferenceUpdater.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/AbstractCopyOrMoveJob.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/AbstractEntityJobWithChecks.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/CopyJob.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/MoveJob.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/listener/BackLinkUpdaterListener.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultMacroRefactoring.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultReferenceUpdater.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/DefaultMacroRefactoringTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/DefaultReferenceUpdaterTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/ResourceReferenceRenamerTest.java
M
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/macro/MacroRefactoring.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving 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).
Commit: d9d5d0f771e8bc1e71e9299185b2a77a9782b598
https://github.com/xwiki/xwiki-platform/commit/d9d5d0f771e8bc1e71e9299185b2…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/RenamePageIT.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-include/src/main/java/org/xwiki/rendering/internal/macro/include/IncludeMacroRefactoring.java
M
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-include/src/test/java/org/xwiki/rendering/internal/macro/include/IncludeMacroRefactoringTest.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving a page
* Fix integration test setup
* Fix some signatures
* Work on the conditions for performing link update: WIP
Commit: 4b6e0ab61ce6b78ca874ad6594657eb63f67c659
https://github.com/xwiki/xwiki-platform/commit/4b6e0ab61ce6b78ca874ad659465…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving 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
Commit: f74c4c535bdb3c88ffcb31b0e937d241d9bba5b6
https://github.com/xwiki/xwiki-platform/commit/f74c4c535bdb3c88ffcb31b0e937…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/test/java/org/xwiki/refactoring/internal/listener/BackLinkUpdaterListenerTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/DefaultReferenceUpdaterTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/ResourceReferenceRenamerTest.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving a page
* Simplify a bit the conditions in ResourceReferenceRenamer and ensure
all unit tests are passing in refactoring module
Commit: 3f16fb6efd7a2411e143d966d951796bd649122a
https://github.com/xwiki/xwiki-platform/commit/3f16fb6efd7a2411e143d966d951…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/XWikiTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/ReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/ReferenceUpdater.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/job/AbstractEntityJobWithChecks.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-api/src/main/java/org/xwiki/refactoring/internal/listener/BackLinkUpdaterListener.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultMacroRefactoring.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/DefaultReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-xwiki/src/main/java/org/xwiki/rendering/macro/MacroRefactoring.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving a page
* Fix checkstyle
* WIP: try to find proper oracle for renaming absolute references,
without success so far.
Commit: 7fdbb08f4d3a211418673875375fdb829e34671d
https://github.com/xwiki/xwiki-platform/commit/7fdbb08f4d3a211418673875375f…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/DefaultReferenceUpdaterTest.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/ResourceReferenceRenamerTest.java
M
xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-include/src/main/java/org/xwiki/rendering/internal/macro/include/IncludeMacroRefactoring.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving 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)
Commit: c5904bc49cade122d3352a2dc5489c9ef3ecfee7
https://github.com/xwiki/xwiki-platform/commit/c5904bc49cade122d3352a2dc548…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/RenamePageIT.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/main/java/org/xwiki/refactoring/internal/ResourceReferenceRenamer.java
M
xwiki-platform-core/xwiki-platform-refactoring/xwiki-platform-refactoring-default/src/test/java/org/xwiki/refactoring/internal/DefaultModelBridgeTest.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving a page
* Fix a regression and provide a test to cover it
Commit: c58c5e668a011b17288b2269e17be74adb6c71a0
https://github.com/xwiki/xwiki-platform/commit/c58c5e668a011b17288b2269e17b…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2024-10-31 (Thu, 31 Oct 2024)
Changed paths:
M
xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-skin/xwiki-platform-flamingo-skin-test/xwiki-platform-flamingo-skin-test-docker/src/test/it/org/xwiki/flamingo/test/docker/RenamePageIT.java
M
xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-test/xwiki-platform-wiki-test-docker/src/test/it/org/xwiki/wiki/test/ui/SubWikiIT.java
Log Message:
-----------
XWIKI-12987: Relative links are made absolute or even broken after moving a page
* Provide subwiki integration tests
* Minor improvment in RenamePageIT
Compare:
https://github.com/xwiki/xwiki-platform/compare/4b1f9bf36ca3...c58c5e668a01
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications