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

#3347 no send empty list #3455

Merged
merged 11 commits into from
Sep 20, 2018
Merged

#3347 no send empty list #3455

merged 11 commits into from
Sep 20, 2018

Conversation

ivar
Copy link
Contributor

@ivar ivar commented Aug 28, 2018

See issue at #3347

  • merged in Rob's work from seller_order_update_no_recipient_3347 branch
  • removes packing list PDF & csv from supplier update emails when supplier's part of the order was cancelled. (As per Rob in slack ) (though it's TBD if this code works / ever gets executed anyway...)

The following specs have been reviewed and run green

  • spec/interactors/send_update_emails_spec.rb
  • spec/mailers/order_mailer_spec.rb
  • spec/models/order_spec.rb

@ivar ivar added the ready for review hey! this PR needs your love label Aug 29, 2018
Copy link
Collaborator

@thermistor thermistor left a comment

Choose a reason for hiding this comment

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

:shipit:

delay(priority: 10).
seller_order_updated(order, supplier)
else
Rollbar.warning("Warning: Trying to send update email (for order id ##{order.id}) to supplier (#{supplier.id} - #{supplier.name}) with 0 users")
Copy link
Contributor

Choose a reason for hiding this comment

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

@ivar I think this warning should be removed. In some markets, there are organizations that are managed by the market manager. For example, you have a farm who can't handle technology so they just call a market manager on the phone and he/she does the order management for them. In this case, an organization could have an empty users list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rbarreca - updated as per your feedback. Please review

@rbarreca rbarreca added address comments PR has outstanding issue(s) / needs some more attention and removed ready for review hey! this PR needs your love labels Sep 10, 2018
@ivar ivar added ready for review hey! this PR needs your love and removed address comments PR has outstanding issue(s) / needs some more attention labels Sep 10, 2018
@ivar
Copy link
Contributor Author

ivar commented Sep 11, 2018

@rbarreca extra space removed

@rbarreca rbarreca merged commit 88bce1e into master Sep 20, 2018
@rbarreca rbarreca deleted the 3347-no_send_to_empty_list branch March 2, 2020 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review hey! this PR needs your love
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants