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

fix(api): prevent /account/destroy failing due to subhub errors #1741

Merged
merged 1 commit into from Jul 11, 2019

Conversation

philbooth
Copy link
Contributor

Fixes #1740.

I didn't think #1671 through at all, and foolishly left errors from subhub to abort the /account/destroy endpoint. Given that it's called optimistically, unknownCustomer errors are expected to come back as a matter of course. This change prevents them causing a problem.

Opened against the train-141 branch for a point release.

@mozilla/fxa-devs r?

@philbooth philbooth added this to the Train 142 milestone Jul 11, 2019
@philbooth philbooth requested a review from a team July 11, 2019 12:12
@philbooth philbooth self-assigned this Jul 11, 2019
@philbooth
Copy link
Contributor Author

Actually, I'm going to refine this so that it only ignores unknownCustomer. Closing for a sec.

@philbooth philbooth closed this Jul 11, 2019
@philbooth
Copy link
Contributor Author

This is better I think.

@philbooth philbooth reopened this Jul 11, 2019
@philbooth philbooth force-pushed the pb/1740-catch-delete-customer-errors branch from d76bb72 to f627a3c Compare July 11, 2019 12:36
@philbooth philbooth force-pushed the pb/1740-catch-delete-customer-errors branch from f627a3c to bfede8e Compare July 11, 2019 12:39
Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

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

@philbooth LGTM 👍

@philbooth philbooth merged commit 94588df into train-141 Jul 11, 2019
@philbooth philbooth deleted the pb/1740-catch-delete-customer-errors branch July 11, 2019 13:40
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.

None yet

2 participants