Skip to content

Surface Zuora lock error

Ryan Cobb requested to merge rc/surface_zuora_lock_error into master

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
gitlab_before_lock gitlab_after_lock

How to set up and validate locally

You'll need CustomersDot setup and properly configured.

  1. [Cdot] add raise IronBank::UnprocessableEntityError.new(errors: [{code: 58730050, message: 'Operation failed due to a lock competition, please retry later.'}]) to Zuora::Orders::Preview#perform to simulate a Zuora lock error
  2. [Gitlab] Create a group
  3. [Gitlab] On the group page, go to settings > billing
  4. [Gitlab] Click "upgrade to premium"
  5. [Gitlab] You should see a "Operation failed due to a lock competition, please retry later." error
Edited by Ryan Cobb

Merge request reports