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

Break notification filter provider #2882

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

surli
Copy link
Member

@surli surli commented Feb 13, 2024

Jira URL

TBD

Changes

Description

Experimental removal of NotificationFilterPreferenceProvider.

Clarifications

Executed Tests

TBD

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None

@surli surli force-pushed the break-notification-filter-provider branch from ea68bae to 7fd885e Compare February 13, 2024 15:23
…enceProvider

WIP: Experimental removal of NotificationFilterPreferenceProvider.
@surli surli force-pushed the break-notification-filter-provider branch from 7fd885e to 07020d9 Compare February 13, 2024 15:34
@@ -297,8 +295,7 @@ private boolean isEnabledScopeNotificationFilterPreference(NotificationFilterPre
{
// This optimization can only works on preferences stored by the user, that's why we add a condition
// on the provider hint.
return nfp.isEnabled() && ScopeNotificationFilter.FILTER_NAME.equals(nfp.getFilterName())
&& UserProfileNotificationFilterPreferenceProvider.HINT.equals(nfp.getProviderHint());
return nfp.isEnabled() && ScopeNotificationFilter.FILTER_NAME.equals(nfp.getFilterName());
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmmm I just realized that this method was having the following documentation:

NOTE: this work only with user's preferences stocked in the database. It does not support the use-case of
* the notifications macro, when the preferences are created on the fly based on the macro parameters!

I probably need to check it a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant