Skip to content

Fix update reminders not rescheduling the actual reminder #19252

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

Merged
merged 3 commits into from
Jun 23, 2025

Conversation

brunopagno
Copy link
Contributor

Ticket

https://community.openproject.org/projects/communicator-stream/work_packages/64971/activity

What are you trying to accomplish?

As per title

What approach did you choose and why?

Use saved_change_to_attribute? to check if an object has been updated

@brunopagno brunopagno self-assigned this Jun 19, 2025
@brunopagno brunopagno force-pushed the fix/64971-update-reminders branch from af88790 to c979c03 Compare June 20, 2025 08:14
@brunopagno brunopagno requested a review from a team June 20, 2025 12:59
Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

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

:shipit:

@@ -31,17 +31,9 @@ class UpdateService < ::BaseServices::Update
include Reminders::ServiceHelpers

def after_perform(service_call)
reschedule_reminder(service_call.result) if remind_at_changed?
reschedule_reminder(service_call.result) if model.saved_change_to_remind_at?
Copy link
Member

Choose a reason for hiding this comment

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

Really nice find 👍🏾 ✨

@brunopagno brunopagno merged commit 4e26fa7 into release/16.1 Jun 23, 2025
14 checks passed
@brunopagno brunopagno deleted the fix/64971-update-reminders branch June 23, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants