Skip to content

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

Open
augustocbx wants to merge 1 commit into
rubyforgood:mainfrom
augustocbx:5666-include-added-items-in-distribution-emails
Open

augustocbx wants to merge 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.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

1 participant