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

[#7184] Fix unknown notification mailer method #7200

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

gbp
Copy link
Member

@gbp gbp commented Aug 2, 2022

Relevant issue(s)

Fixes #7184

What does this do?

Rename expire_embargo_notification to embargo_expired_notification
as this method was misnamed.

Why was this needed?

Exceptions occurred when an embargo expires and the requester uses
instant notifications. When on daily notification no exceptions would
occur.

Implementation notes

Opted to not rename factories and lets variables as these read better as embargo_expired_....

Rename `expire_embargo_notification` to `embargo_expired_notification`
as this method was misnamed.

Exceptions occurred when an embargo expires and the requester uses
instant notifications. When on daily notification no exceptions would
occur.

Fixes #7184
Copy link
Member

@garethrees garethrees left a comment

Choose a reason for hiding this comment

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

Haven't run but seems sensible 👍

@garethrees garethrees assigned gbp and unassigned garethrees Aug 2, 2022
@gbp gbp merged commit e6fe11f into develop Aug 3, 2022
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.

[ERROR] undefined method `expire_embargo_notification' for #<NotificationMailer>
2 participants