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

Enhancement - Campaign Cancellations #66

Merged
merged 16 commits into from
Oct 9, 2020

Conversation

joshuafranks
Copy link
Contributor

@joshuafranks joshuafranks commented Aug 18, 2020

Description

This PR introduces the ability to cancel a campaign. There are a limited number of states that a campaign may be in for a cancellation to be possible. Such states include:

  • A campaign that is queued.
  • A campaign that is sending.
  • A campaign that is configured to save draft messages and has the sent status and has not has not had all of its draft messages dispatched.

When you cancel a queued campaign, its status is simply updated to cancelled. When a sending campaign is cancelled, we immediately change its status which in turn, prevents any subsequent messages from being dispatched. When a campaign that is configured to save draft messages is cancelled, its status is updated and any draft messages that have not been sent are automatically deleted.

Addresses mettle/sendportal#50.

@JonoB JonoB merged commit 9021412 into master Oct 9, 2020
@JonoB JonoB deleted the enhancement/campaign-cancellations branch October 9, 2020 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants