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

Batch Aggregation mailer #4352

Merged
merged 6 commits into from
Jul 1, 2024
Merged

Batch Aggregation mailer #4352

merged 6 commits into from
Jul 1, 2024

Conversation

zwolf
Copy link
Member

@zwolf zwolf commented Jun 25, 2024

If the params to AggregationsController#update include a change to status, send an email to the associated user that includes the links to the output files if the run was successful. "Complete" here means either succeeded or failed.

Review checklist

  • First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
  • If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
  • If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
  • Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

@zwolf zwolf requested a review from yuenmichelle1 June 25, 2024 23:59
Copy link
Collaborator

@yuenmichelle1 yuenmichelle1 left a comment

Choose a reason for hiding this comment

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

Changes look fine. I have one minor comment.


def perform(agg_id)
aggregation = Aggregation.find(agg_id)
AggregationCompletedMailer.aggregation_complete(aggregation).deliver
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think .deliver might be a deprecated method replaced by deliver_now or deliver_later

Copy link
Member Author

Choose a reason for hiding this comment

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

apparently so! Every other mailer uses it, but I'll just change it here and leave that refactor for later.

@zwolf zwolf merged commit ec4591d into master Jul 1, 2024
8 checks passed
@zwolf zwolf deleted the batch-agg-mailer branch July 1, 2024 23:05
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.

2 participants