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

Add rake task to bulk unsubscribe active subscribers from a subscription list #2313

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

deborahchua
Copy link
Contributor

@deborahchua deborahchua commented Jan 23, 2025

When organisations close/merge, we want to be able to unsubscribe all active subscribers from the organisation's subscription list. This rake task makes it easier to do this in bulk rather than individually using the support:unsubscribe_single_subscription] rake task.

This has been tested on Integration.

Sample output:

Unsubscribing anon-2562571@example.com from central-digital-and-data-office
Unsubscribing anon-2527485@example.com from central-digital-and-data-office
Subscriber anon-461468@example.com already unsubscribed from central-digital-and-data-office

Trello card: https://trello.com/c/jU0FVxFn/443-bulk-emailing-email-subscribers-of-closing-organisations

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

When organisations close/merge, we want to be able to unsubscribe
all active subscribers from the organisation's subscription list.
This rake task makes it easier to do this in bulk rather than
individually using the `support:unsubscribe_single_subscription]`
rake task.
@deborahchua deborahchua force-pushed the add-bulk-unsubscribe-from-subscriber-list branch from 1f46ee5 to f609a05 Compare January 24, 2025 16:02
@deborahchua deborahchua force-pushed the add-bulk-unsubscribe-from-subscriber-list branch from f609a05 to edcb4b7 Compare January 24, 2025 16:16
@deborahchua deborahchua marked this pull request as ready for review January 24, 2025 16:18
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

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

LGMT, excellent work improving coverage of that file as well.

@deborahchua deborahchua merged commit 87689fa into main Jan 27, 2025
9 checks passed
@deborahchua deborahchua deleted the add-bulk-unsubscribe-from-subscriber-list branch January 27, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants