Surface Zuora lock error
What does this MR do and why?
Issue: https://gitlab.com/gitlab-org/customers-gitlab-com/-/issues/7168
This displays a more specific error message when we hit a Zuora lock instead of a generic error message.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
You'll need CustomersDot setup and properly configured.
- [Cdot] add
raise IronBank::UnprocessableEntityError.new(errors: [{code: 58730050, message: 'Operation failed due to a lock competition, please retry later.'}])
toZuora::Orders::Preview#perform
to simulate a Zuora lock error - [Gitlab] Create a group
- [Gitlab] On the group page, go to settings > billing
- [Gitlab] Click "upgrade to premium"
- [Gitlab] You should see a "Operation failed due to a lock competition, please retry later." error
Edited by Ryan Cobb