Do not show blocked states
What does this MR do and why?
This MR adds a deny list of states for a country, that can be updated in order to not show those blocked states.
For now, we are denying the three regions of Ukraine: The Crimea, Donetsk, and Luhansk.
Screenshots or screen recordings
- Billing Page on Subscription buy
Screen_Recording_2022-09-29_at_18.08.32
- New User log in with trial page
Screen_Recording_2022-09-29_at_21.51.12
- Trial Page directly via url: http://gdk.test:3000/-/trials/new
Screen_Recording_2022-09-29_at_22.02.17
How to set up and validate locally
Billing page when buying subscriptions
- Checkout this branch
- Run the Gitlab and Customers-Dot server locally
- Go to Gitlab page locally and create a new group
- For the newly created group, go to
Settings -> Billing
and Click onUpgrade (Ultimate SaaS plan)
button - On the Subscription buying page, click
Continue to Billing
- On the billing page, look for
Ukraine
inCountry
select list - You should see
Ukraine (except the Crimea, Donetsk, and Luhansk regions)
- Once you select
Ukraine (except the Crimea, Donetsk, and Luhansk regions)
for country, click onStates
select list - These 3 states should not be listed for selection:
["Donets'ka Oblast'", "Luhans'ka Oblast'", "Respublika Krym"]
- Proceed further and the purchase should function without error
New user joining as "My company or team"
- Create a new user
- Login with the credentials
- Select "Who will be using GitLab" with "My company or team".
- Select "What would you like to do?" with "Create a new project"
- Continue and fill up "Group name" and "Project name" and continue
- You will see a "Start your Free Ultimate Trial" page
- In the country select list you will see:
Ukraine (except the Crimea, Donetsk, and Luhansk regions)
- Proceed further and the new user welcome steps should function without error
Directly going to trial page
- Login and go to url:
http://gdk.test:3000/-/trials/new
- You will see the Country select list and
Ukraine (except the Crimea, Donetsk, and Luhansk regions)
- Proceed further and the trial should function without error
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #374946 (closed)
Edited by Bishwa Hang Rai