Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8cbdf9c
Commit
b8cbdf9c
authored
Sep 09, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New checkout flow for personal namespace on gitlab.com
parent
0a8ed206
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ee/app/helpers/billing_plans_helper.rb
ee/app/helpers/billing_plans_helper.rb
+1
-2
ee/changelogs/unreleased/239338-new-checkout-experience-for-personal-namespaces-on-a-free-plan.yml
...out-experience-for-personal-namespaces-on-a-free-plan.yml
+5
-0
ee/spec/helpers/billing_plans_helper_spec.rb
ee/spec/helpers/billing_plans_helper_spec.rb
+1
-1
No files found.
ee/app/helpers/billing_plans_helper.rb
View file @
b8cbdf9c
...
@@ -21,8 +21,7 @@ module BillingPlansHelper
...
@@ -21,8 +21,7 @@ module BillingPlansHelper
end
end
def
use_new_purchase_flow?
(
namespace
)
def
use_new_purchase_flow?
(
namespace
)
namespace
.
group?
&&
namespace
.
actual_plan_name
==
Plan
::
FREE
namespace
.
actual_plan_name
==
Plan
::
FREE
end
end
def
show_contact_sales_button?
(
purchase_link_action
)
def
show_contact_sales_button?
(
purchase_link_action
)
...
...
ee/changelogs/unreleased/239338-new-checkout-experience-for-personal-namespaces-on-a-free-plan.yml
0 → 100644
View file @
b8cbdf9c
---
title
:
New checkout flow for personal namespace on gitlab.com
merge_request
:
41795
author
:
type
:
changed
ee/spec/helpers/billing_plans_helper_spec.rb
View file @
b8cbdf9c
...
@@ -63,7 +63,7 @@ RSpec.describe BillingPlansHelper do
...
@@ -63,7 +63,7 @@ RSpec.describe BillingPlansHelper do
subject
{
helper
.
use_new_purchase_flow?
(
namespace
)
}
subject
{
helper
.
use_new_purchase_flow?
(
namespace
)
}
it
do
it
do
result
=
type
==
'Group'
&&
plan
==
Plan
::
FREE
result
=
plan
==
Plan
::
FREE
is_expected
.
to
be
(
result
)
is_expected
.
to
be
(
result
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment