Branch: refs/heads/XWIKI-21738
Home: https://github.com/xwiki/xwiki-platform
Commit: fc6dd5f5948385523b11fbfbe2e3c4c39913ee66
https://github.com/xwiki/xwiki-platform/commit/fc6dd5f5948385523b11fbfbe2e3…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-27 (Wed, 27 Dec 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/internal/DocumentMovedListener.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/internal/NotificationFilterPreferenceConfiguration.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/internal/NotificationFilterPreferenceStore.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R140401000XWIKI15460DataMigration.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R151002000XWIKI21448DataMigration.java
A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000001XWIKI21738DataMigration.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/resources/META-INF/components.txt
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/test/java/org/xwiki/notifications/filters/internal/DocumentMovedListenerTest.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/test/java/org/xwiki/notifications/filters/internal/NotificationFilterPreferenceConfigurationTest.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/test/java/org/xwiki/notifications/filters/internal/NotificationFilterPreferenceStoreTest.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/test/java/org/xwiki/notifications/filters/migration/R140401000XWIKI15460DataMigrationTest.java
Log Message:
-----------
XWIKI-21738: Remove uselocastore/usemainstore configurations for better maintenance
Start refactoring by removing entirely
NotificationFilterPreferenceConfiguration since it's now useless. Remove
also calls to useMainStore/useLocalStore where needed and fix tests.
Started to define migration but not implemted yet.
WIP: migration not yet impleemnted and coverage failing.
Branch: refs/heads/master
Home: https://github.com/xwiki/xwiki-platform
Commit: aa8d7045cf73b3e17e5917d241474e78641fddb0
https://github.com/xwiki/xwiki-platform/commit/aa8d7045cf73b3e17e5917d24147…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-27 (Wed, 27 Dec 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/pom.xml
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/checkstyle/checkstyle-suppressions.xml
A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000000XWIKI17243DataMigration.java
A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/WatchListObjectsRemovalTaskConsumer.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/resources/META-INF/components.txt
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watch/src/main/java/org/xwiki/notifications/filters/watch/internal/DefaultWatchedEntitiesConfiguration.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watch/src/test/java/org/xwiki/notifications/filters/watch/internal/DefaultWatchedEntitiesConfigurationTest.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/pom.xml
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/src/main/java/org/xwiki/notifications/filters/watchlistbridge/internal/WatchlistBridgeProvider.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/src/main/resources/META-INF/components.txt
M xwiki-platform-distribution/xwiki-platform-distribution-war-dependencies/pom.xml
Log Message:
-----------
XWIKI-17243: Migrate WatchListClass objects to the new Notifications filter storage (#2726)
* Add a new migration to properly save the old WatchListClass objects
as filter preferences using the NotificationFilterPreferenceStore
* Reuse the logic provided in the old bridge for performing the
migration
* Get rid of the the watchlistbridge module as it was only containing
the component for performing the bridge
* Fix error in the migration
* Use a TaskConsumer for performing final clean up of the objects
* Migrate autowatch property to a new Autowatch xobject whenever
that one doesn't exist and there's a WatchListClass xobject before
removing it, as we use to fallback on those xobject properties in
DefaultWatchEntitiesConfiguration
* Fix test DefaultWatchEntitiesConfiguration and refactor it
Branch: refs/heads/XWIKI-17243
Home: https://github.com/xwiki/xwiki-platform
Commit: df031f032937cb17e9d72ef1507a5d8a81c3576c
https://github.com/xwiki/xwiki-platform/commit/df031f032937cb17e9d72ef1507a…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-27 (Wed, 27 Dec 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/pom.xml
A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000000XWIKI17243DataMigration.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/resources/META-INF/components.txt
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watch/src/main/java/org/xwiki/notifications/filters/watch/internal/DefaultWatchedEntitiesConfiguration.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/pom.xml
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/src/main/java/org/xwiki/notifications/filters/watchlistbridge/internal/WatchlistBridgeProvider.java
R xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watchlistbridge/src/main/resources/META-INF/components.txt
M xwiki-platform-distribution/xwiki-platform-distribution-war-dependencies/pom.xml
Log Message:
-----------
XWIKI-17243: Migrate WatchListClass objects to the new Notifications filter storage
* Add a new migration to properly save the old WatchListClass objects
as filter preferences using the NotificationFilterPreferenceStore
* Reuse the logic provided in the old bridge for performing the
migration
* Get rid of the the watchlistbridge module as it was only containing
the component for performing the bridge
Commit: e726054b807d39f6e3ae1ac190a9da35a5a37ca6
https://github.com/xwiki/xwiki-platform/commit/e726054b807d39f6e3ae1ac190a9…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-27 (Wed, 27 Dec 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/checkstyle/checkstyle-suppressions.xml
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160000000XWIKI17243DataMigration.java
A xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/WatchListObjectsRemovalTaskConsumer.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/resources/META-INF/components.txt
Log Message:
-----------
XWIKI-17243: Migrate WatchListClass objects to the new Notifications filter storage
* Fix error in the migration
* Use a TaskConsumer for performing final clean up of the objects
Commit: 5719ab5db12b3c5f4d03db6b993ba5ed6915f4c8
https://github.com/xwiki/xwiki-platform/commit/5719ab5db12b3c5f4d03db6b993b…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-12-27 (Wed, 27 Dec 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/WatchListObjectsRemovalTaskConsumer.java
M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-watch/src/test/java/org/xwiki/notifications/filters/watch/internal/DefaultWatchedEntitiesConfigurationTest.java
Log Message:
-----------
XWIKI-17243: Migrate WatchListClass objects to the new Notifications filter storage
* Migrate autowatch property to a new Autowatch xobject whenever
that one doesn't exist and there's a WatchListClass xobject before
removing it, as we use to fallback on those xobject properties in
DefaultWatchEntitiesConfiguration
* Fix test DefaultWatchEntitiesConfiguration and refactor it
Compare: https://github.com/xwiki/xwiki-platform/compare/529871e71995...5719ab5db12b