Skip to content

AddOnPurchase process trial attribute

Qingyu Zhao requested to merge qzhao-addon-service-process-trial-attribute into master

What does this MR do and why?

GitlabSubscriptions::AddOnPurchase introduced a new field trial(introduced by MR Add trial column to subscription_add_on_purchas... (!147422 - merged)). This new field needs to be handled in API methods and update service.

This MR:

  • Update the add-on purchase for the namespace API accepts the trial as optional param
  • Create an add-on purchase for the namespace API accepts the trial as optional param
  • EE::API::Entities::GitlabSubscriptions::AddOnPurchase expose trial
  • GitlabSubscriptions::AddOnPurchases::UpdateService updates trial

Changelog: added EE: true

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

Numbered steps to set up and validate the change are strongly suggested.

Edited by Qingyu Zhao

Merge request reports