Skip to content

Retrieve the account id and pass it to the FE

Angelo Gulina requested to merge ag/341564-use-account-id-for-iframe into master

What does this MR do and why?

Describe in detail what your merge request does and why.

This MR is a step towards solving the scenario of gitlab-org/gitlab#341564 and is the backend side of it. The work has been split to make it easier to review. Together with the selected namespace, we need to provide an accountId to the FE application in order to correctly set up the Zuora iframe.

Retrieve the account id and pass it to the FE 👈 you are here
Use account id as part of the namespace to init Zuora iframe !71735 (merged)

The MR goes on to:

  • renaming the service from filter to fetch, the eligibility service will actually still filter but it will also attach the account id
  • reworking the subscription controller to consider this tuple
  • passing the account id to the FE as part of the namespace object

Note that the logic outlined here works on the assumption that we will want to link the account ID to the namespace at a later point.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

There are no visible changes.

How to set up and validate locally

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

Example below:

  1. Make sure your CustomersDot is running locally
  2. Make sure to have set GITLAB_LICENSE_MODE=test on gdk (see here)
  3. Make sure to have a Group with a purchased plan
  4. Visit /-/subscriptions/buy_minutes/?selected_group=<your-group-id> and puts the result from here 😅

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Angelo Gulina

Merge request reports