XWIKI-22271: Custom filters to subwiki remain on the main Wiki after subwiki is deleted (#3219)
* Iterate over all wikis when deleting filters related to a wiki * Fix unit test * Provide a migration to clean up filters related to deleted wikis * Provide unit test for the migration * Fix migration query after testing * Add a few comments over the query (cherry picked from commit 858605a2) * Set the proper DB version for 16.4.x branch. * Rename the migration class for 16.4.x branch so that it remains consistent with DB version. * Rename the migration test too. --------- Co-authored-by:Simon Urli <simon.urli@xwiki.com>
Showing
- 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 38 additions, 22 deletions...s/filters/internal/NotificationFilterPreferenceStore.java
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/migration/R160401000XWIKI22271DataMigration.java 181 additions, 0 deletions.../filters/migration/R160401000XWIKI22271DataMigration.java
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/main/resources/META-INF/components.txt 1 addition, 0 deletions...ilters-default/src/main/resources/META-INF/components.txt
- 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 30 additions, 6 deletions...lters/internal/NotificationFilterPreferenceStoreTest.java
- xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-filters/xwiki-platform-notifications-filters-default/src/test/java/org/xwiki/notifications/filters/migration/R160401000XWIKI22271DataMigrationTest.java 237 additions, 0 deletions...ters/migration/R160401000XWIKI22271DataMigrationTest.java
Loading
Please register or sign in to comment