Skip to content
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-21738: Remove uselocastore/usemainstore configurations for better maintenance #2745

Merged
merged 8 commits into from
Feb 15, 2024

Conversation

surli
Copy link
Member

@surli surli commented Dec 27, 2023

Jira URL

https://jira.xwiki.org/browse/XWIKI-21738

Changes

Description

Remove uselocalstore and usemainstore from the xwiki.properties: the goal is to always rely on uselocalstore: i.e. to have always the filters located in same DB as the owner of the filter.

Provide a migration to move all filters that are stored in main DB in subwiki DBs based on their owner.

Clarifications

Remove entirely NotificationFilterPreferenceConfiguration since it's now useless. Remove also calls to useMainStore/useLocalStore where needed and fix tests.

Executed Tests

mvn clean install -Pquality,integration-tests,docker ran on module xwiki-platform-notification.

Manual migration tests: TBD

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches: None

@surli surli force-pushed the XWIKI-21738 branch 2 times, most recently from a22992c to 9d2134e Compare January 15, 2024 16:24
…er 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.
…er maintenance

  * Provide migration of filters

WIP: coverage still failing
…er maintenance

  * Remove options from configuration
…er maintenance

  * Bulletproof a bit the migration
  * Fix property file
@surli surli marked this pull request as ready for review February 12, 2024 15:02
Copy link
Contributor

@manuelleduc manuelleduc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

…m-notifications-filters/xwiki-platform-notifications-filters-default/src/main/java/org/xwiki/notifications/filters/internal/DocumentMovedListener.java

Co-authored-by: Manuel Leduc <manuel.leduc@xwiki.com>
@surli surli merged commit 7e1d14c into master Feb 15, 2024
1 check passed
@surli surli deleted the XWIKI-21738 branch February 15, 2024 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants