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-22209: Deprecate NotificationFilterPreference#isActive #3153

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

surli
Copy link
Member

@surli surli commented Jun 3, 2024

Jira URL

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

Changes

Description

  • Ensure to not use anymore isActive and setActive

Clarifications

N/A

Screenshots & Video

N/A

Executed Tests

mvn clean install -Pquality,integration-tests,docker on module xwiki-platform-notifications and on xwiki-platform-legacy-notifications

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches: No

*/
@Deprecated(since = "16.5.0RC1")
boolean isActive();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you plan to move this to legacy?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I started to work on providing legacy interface as part of #2882 the plan would be to move that method to legacy too once the other PR is merged.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually I can't move it yet to legacy: the column isActive is exposed in hibernate configuration so hibernate needs a getter for it and moving to legacy means that it would be lost in standard docker tests leading to errors.
I will add a note in javadoc.
Now note that my goal is to refactor the hibernate mapping for filters as part of #3154 so I should be able to do it in there.

surli added 2 commits June 6, 2024 15:29
  * Ensure to not use anymore isActive and setActive
  * Provide a default method for the deprecated method in interface and
    remove all overrides
@surli surli merged commit b30ff5f into master Jun 6, 2024
1 check passed
@surli surli deleted the XWIKI-22209 branch June 6, 2024 14:20
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