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
ec3a16da
Commit
ec3a16da
authored
Sep 07, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New checkout flow for free groups on gitlab.com
parent
e06ee9c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
ee/app/helpers/billing_plans_helper.rb
ee/app/helpers/billing_plans_helper.rb
+1
-2
ee/changelogs/unreleased/239338-experiment-cleanup-new-checkout-experience.yml
...sed/239338-experiment-cleanup-new-checkout-experience.yml
+5
-0
ee/spec/helpers/billing_plans_helper_spec.rb
ee/spec/helpers/billing_plans_helper_spec.rb
+2
-4
No files found.
ee/app/helpers/billing_plans_helper.rb
View file @
ec3a16da
...
...
@@ -22,8 +22,7 @@ module BillingPlansHelper
def
use_new_purchase_flow?
(
namespace
)
namespace
.
group?
&&
namespace
.
actual_plan_name
==
Plan
::
FREE
&&
Feature
.
enabled?
(
:free_group_new_purchase_flow
,
current_user
)
namespace
.
actual_plan_name
==
Plan
::
FREE
end
def
show_contact_sales_button?
(
purchase_link_action
)
...
...
ee/changelogs/unreleased/239338-experiment-cleanup-new-checkout-experience.yml
0 → 100644
View file @
ec3a16da
---
title
:
New checkout flow for free groups on gitlab.com
merge_request
:
41644
author
:
type
:
added
ee/spec/helpers/billing_plans_helper_spec.rb
View file @
ec3a16da
...
...
@@ -46,8 +46,7 @@ RSpec.describe BillingPlansHelper do
end
describe
'#use_new_purchase_flow?'
do
where
free_group_new_purchase:
[
true
,
false
],
type:
[
'Group'
,
nil
],
where
type:
[
'Group'
,
nil
],
plan:
Plan
.
all_plans
with_them
do
...
...
@@ -59,13 +58,12 @@ RSpec.describe BillingPlansHelper do
before
do
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
user
)
stub_feature_flags
free_group_new_purchase_flow:
free_group_new_purchase
end
subject
{
helper
.
use_new_purchase_flow?
(
namespace
)
}
it
do
result
=
free_group_new_purchase
&&
type
==
'Group'
&&
plan
==
Plan
::
FREE
result
=
type
==
'Group'
&&
plan
==
Plan
::
FREE
is_expected
.
to
be
(
result
)
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