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

Delete subscriptions on manually deleting account #742

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

1pretz1
Copy link
Contributor

@1pretz1 1pretz1 commented Oct 31, 2023

Email subscriptions get ended when an account is deleted via the API 1, however the manual rake task doesn't include this step. If the subscriber doesn't exist then we'll just return nil and continue with the account deletion.

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

Email subscriptions get ended when an account is deleted via the API
[1], however the manual rake task doesn't include this step. If the
subscriber doesn't exist then we'll just return `nil` and continue with
the account deletion.

[1]: https://github.com/alphagov/account-api/blob/39af89177ed2ed6380d30f3469e6ab7c86348de2/app/controllers/internal/oidc_users_controller.rb#L31
@1pretz1 1pretz1 requested a review from KludgeKML October 31, 2023 17:20
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.

LGTM

@1pretz1 1pretz1 merged commit 387f674 into main Nov 1, 2023
4 checks passed
@1pretz1 1pretz1 deleted the unsubscribe-email-subscriptions branch November 1, 2023 11:51
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