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-21880: Cannot delete user defined filters #2881

Merged
merged 3 commits into from
Feb 13, 2024
Merged

XWIKI-21880: Cannot delete user defined filters #2881

merged 3 commits into from
Feb 13, 2024

Conversation

surli
Copy link
Member

@surli surli commented Feb 13, 2024

Jira URL

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

Changes

Description

  • Refactor DefaultNotificationFilterPreferenceManager to never throw immediately an exception thrown by a provider, but to only do it if all providers failed
  • Provide a new test covering this behaviour

Clarifications

Use same pattern in every method of DefaultNotificationFilterPreferenceManager to always check if at least one provider managed to process a call, and to only throw the exception if all of them failed.

Executed Tests

Run of mvn clean install -Pquality in module xwiki-platform-notification-filters-api.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • stable-15.10.x

  * Refactor DefaultNotificationFilterPreferenceManager to never throw
    immediately an exception thrown by a provider, but to only do it if
all providers failed
  * Provide a new test covering this behaviour
@surli surli added the backport stable-15.10.x Used for automatic backport to 15.10.x branch. label Feb 13, 2024
  * Improve a bit the logic to use standard exception if there's only
    one provider
@surli surli merged commit 103650d into master Feb 13, 2024
1 check passed
@surli surli deleted the XWIKI-21880 branch February 13, 2024 15:14
github-actions bot pushed a commit that referenced this pull request Feb 13, 2024
  * Refactor DefaultNotificationFilterPreferenceManager to never throw
    immediately an exception thrown by a provider, but to only do it if
all providers failed
  * Provide a new test covering this behaviour
  * Small test improvment
  * Improve a bit the logic to use standard exception if there's only
    one provider

(cherry picked from commit 103650d)
surli added a commit that referenced this pull request Feb 13, 2024
  * Refactor DefaultNotificationFilterPreferenceManager to never throw
    immediately an exception thrown by a provider, but to only do it if
all providers failed
  * Provide a new test covering this behaviour
  * Small test improvment
  * Improve a bit the logic to use standard exception if there's only
    one provider

(cherry picked from commit 103650d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable-15.10.x Used for automatic backport to 15.10.x branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants