Skip to content

Fetch storage plans for purchase flow

Diana Zubova requested to merge dz/327885-fetch-storage-plans into master

What does this MR do?

Fetch Storage plan information for storage purchase flow. It's the first MR that starts implementation of the flow.

What is moved and why

The flow for CI Minutes and Storage will be very similar, so some preparational work was done in order to set foundation for future issues &5789 (closed)

  • vue_shared/purchase_flow folder has all the components that could be reused for Subscription, CI Minutes and Storage purchase flows
  • buy_addons_shared/ folder has has all the components/utils that could be reused for CI Minutes and Storage purchase flows
  • buy_minutes and buy_storage folders have specific components that are unique for each flow

Relates to #327885 (closed)

Screenshots or Screencasts (strongly suggested)

Beware: there are still a lot of CI Minutes labels on the /buy_storage page. It will be addressed by future MRs. See Epic for details: &5789 (closed)

CI Minutes (didn't change) /buy_minutes Storage (changed) /buy_storage
Screenshot_2021-08-26_at_15.03.15 Screenshot_2021-08-26_at_15.03.30

How to setup and validate locally

  • Run rails c
  • Run Feature.enable(:new_route_storage_purchase) to enable the feature flag for Storage flow
  • Run Feature.enable(:new_route_ci_minutes_purchase) to enable the feature flag for CI MInutes flow

Validate CI Minutes flow:

Validate Storage flow:

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 Diana Zubova

Merge request reports