Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Refactor ahead of bulk npm #4495

Merged
merged 5 commits into from
Jun 2, 2017
Merged

Refactor ahead of bulk npm #4495

merged 5 commits into from
Jun 2, 2017

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre chadwhitacre commented May 31, 2017

Prereqs for #4488.

Todo

@chadwhitacre
Copy link
Contributor Author

Ping @rohitpaulk. Ready for review! :-)

"""Load messages queued for sending, and send them.
"""
flush_one = _flush_one or self._flush_one
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, why is this needed? We've got a console mailer hooked up in the test env, no?

Copy link
Contributor

@rohitpaulk rohitpaulk Jun 1, 2017

Choose a reason for hiding this comment

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

If the aim is to empty the email queue in tests, might be cleaner to use a separate email_queue.purge() function. (Tests shouldn't have to be aware of the fact that we purge one email at a time)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better in c74a413?

@rohitpaulk
Copy link
Contributor

Looks good to me, aside from this one comment

@rohitpaulk rohitpaulk changed the base branch from friendlier-401 to master June 2, 2017 07:32
@rohitpaulk rohitpaulk merged commit 8e743ea into master Jun 2, 2017
@chadwhitacre chadwhitacre deleted the bulk-prefactor branch June 15, 2017 19:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants