Skip to content

Conversation

@surli
Copy link
Member

@surli surli commented Nov 28, 2025

Jira URL

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

Changes

Description

  • Provide a new solr event field for storing prefiltering date and use that date instead of event date when getting events for sending emails

Clarifications

Screenshots & Video

Executed Tests

All impacted modules were rebuilt with quality profile. All tests of xwiki-platform-notification-test-docker have been executed.

Manual test to perform:

  • Perform migration from an existing instance with email notifications enabled

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • to be decided

@surli
Copy link
Member Author

surli commented Nov 28, 2025

Note: was previously #4782 but the branch has been renamed.

@surli surli changed the title Feature deploy xwiki 23420 XWIKI-23420: Notifications that aren't pre-filtered in time aren't sent by schedulers Nov 28, 2025
Copy link
Contributor

@michitux michitux left a comment

Choose a reason for hiding this comment

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

The since-versions need to be adjusted (17.10.0 has already been released) and I have some comments regarding the migration.

…nt by schedulers

  * Provide a new solr event field for storing prefiltering date and use
    that date instead of event date when getting events for sending
emails
…ent by schedulers

  * Fix coverage
  * Fix missing version to update schema
  * Use setAtomic
@surli surli force-pushed the feature-deploy-XWIKI-23420 branch from 8cf4374 to 46c5452 Compare November 28, 2025 13:23
@surli
Copy link
Member Author

surli commented Nov 28, 2025

The since-versions need to be adjusted (17.10.0 has already been released)

I'm aware about that, but I'm waiting to know exactly where it's merged before changing all versions FTR.

@surli surli self-assigned this Nov 28, 2025
…nt by schedulers

  * Start improvments on migration
…nt by schedulers

  * Improve migration following Michael's review
@surli surli requested a review from michitux December 1, 2025 10:39
Copy link
Contributor

@michitux michitux left a comment

Choose a reason for hiding this comment

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

It seems you have some confusing and not really used code left over from the index-based pagination, I've added some comments.

…nt by schedulers

  * Minor fix
  * Change version
@surli surli merged commit 6d7320d into master Dec 3, 2025
3 checks passed
@surli surli deleted the feature-deploy-XWIKI-23420 branch December 3, 2025 10:09
github-actions bot pushed a commit that referenced this pull request Dec 3, 2025
…nt by schedulers (#4854)

  * Provide a new solr event field for storing prefiltering date and use
    that date instead of event date when getting events for sending
emails
  * Fix coverage
  * Fix missing version to update schema
  * Use setAtomic
  * Fix bug with migration
  * Start improvments on migration
  * Improve migration following Michael's review
  * Minor fix
  * Change version

(cherry picked from commit 6d7320d)
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

💚 All backports created successfully

Status Branch Result
stable-17.10.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

surli added a commit that referenced this pull request Dec 3, 2025
…nt by schedulers (#4854)

  * Provide a new solr event field for storing prefiltering date and use
    that date instead of event date when getting events for sending
emails
  * Fix coverage
  * Fix missing version to update schema
  * Use setAtomic
  * Fix bug with migration
  * Start improvments on migration
  * Improve migration following Michael's review
  * Minor fix
  * Change version

(cherry picked from commit 6d7320d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants