Skip to content

Include added items in distribution change emails (5666) - #5727

Merged
awwaiid merged 1 commit into
rubyforgood:mainfrom
augustocbx:5666-include-added-items-in-distribution-emails
Sep 27, 2026
Merged

awwaiid merged 1 commit into
rubyforgood:mainfrom
augustocbx:5666-include-added-items-in-distribution-emails

Conversation

@augustocbx

Copy link
Copy Markdown
Contributor

Resolves #5666

Description

Include newly added items and their quantities in distribution change notifications. An addition now counts as a distribution content change, so adding an item by itself sends the partner a change email.

The existing change detection already handles updated and removed items. Extending it for additions keeps the notification path in one place and preserves the current wording for other changes. No dependencies or user guide changes are needed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • rbenv exec bundle exec rspec spec/services/distribution_content_change_service_spec.rb spec/services/distribution_update_service_spec.rb spec/controllers/distributions_controller_spec.rb spec/mailers/distribution_mailer_spec.rb — 46 examples, 0 failures.
  • PATH="$HOME/.rbenv/shims:$PATH" bin/lint — 649 Ruby files inspected with no offenses; 423 ERB files with no errors.
  • rbenv exec bundle exec rspec --format progress — 2,980 examples, 0 failures, 1 pending (existing pending example in Partners::RequestApprovalService).

An earlier full-suite run overlapped with another test process and hit a PostgreSQL deadlock in an unrelated donation system spec. That example passed alone, and the clean full-suite run above passed without concurrent test processes.

@dorner dorner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Passes tech review. Over to QA @janeewheatley @ruestitch

@awwaiid awwaiid left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good from QA review

@awwaiid
awwaiid merged commit 1085e87 into rubyforgood:main Sep 27, 2026
11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@augustocbx: Your PR Include added items in distribution change emails (5666) is part of today's Human Essentials production release: 2026.11.15.
Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants