Skip to content

Fix summary section when purchasing an addon

Vitaly Slobodin requested to merge vs/fix-summary-addon-purchase into master

What does this MR do?

This is the 2nd merge request that adapts the SummaryDetails 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?namespace_id=NAMESPACE_ID

Related #321648 (closed)

Screenshots (strongly suggested)

Description Image
Entering quantity image
After clicking on Continue to billing image
After clicking on Continue to payment image
After clicking on Submit image

In Action

ci_minutes_purchase-2021-07-08_13.16.58

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 Ragnar Hardarson

Merge request reports