Skip to content

Adapt SubscriptionDetails for purchasing the CI Minutes addon

Vitaly Slobodin requested to merge vs/change-text-in-buy-minutes into master

What does this MR do?

This is the 1st merge request that adapts the SubscriptionDetails component for purchasing an addon (CI Minutes or Storage pack). Right now the component has hardcoded values for CI Minutes pack, later we will change them to dynamic string that depend on the picked addon.

Next steps will be adapt all other components in the purchase flow and generalize this workflow for purchasing any addon.

See this epic for more information.

How to test this locally

  • Make sure you have the CustomersDot app running locally.

  • Make sure your local GDK instance points to your local CustomersDot. You the following lines to the env.runit file in the root folder of your GDK installation:

    export CUSTOMER_PORTAL_URL=http://localhost:5000/
  • Enable the following feature flag Feature.enable(:new_route_ci_minutes_purchase)

  • Sign in into your local GitLab instance and navigate to -/subscriptions/buy_minutes

Screenshots (strongly suggested)

Description Image
Entering quantity image
After clicked on Continue to billing image

ci_minutes_purchase-2021-07-02_09.12.53

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Vitaly Slobodin

Merge request reports