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
4e54cd51
Commit
4e54cd51
authored
Sep 29, 2021
by
Angelo Gulina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update anchor on redirect
parent
26b5a0c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/helpers/subscriptions_helper.rb
ee/app/helpers/subscriptions_helper.rb
+1
-1
ee/spec/helpers/subscriptions_helper_spec.rb
ee/spec/helpers/subscriptions_helper_spec.rb
+1
-1
No files found.
ee/app/helpers/subscriptions_helper.rb
View file @
4e54cd51
...
...
@@ -24,7 +24,7 @@ module SubscriptionsHelper
def
buy_storage_addon_data
(
group
)
{
redirect_after_success:
group_usage_quotas_path
(
group
,
anchor:
'
pipelines
-quota-tab'
,
purchased_product:
_
(
'Storage'
))
redirect_after_success:
group_usage_quotas_path
(
group
,
anchor:
'
storage
-quota-tab'
,
purchased_product:
_
(
'Storage'
))
}.
merge
(
addon_data
(
group
))
end
...
...
ee/spec/helpers/subscriptions_helper_spec.rb
View file @
4e54cd51
...
...
@@ -183,6 +183,6 @@ RSpec.describe SubscriptionsHelper do
it
{
is_expected
.
to
include
(
namespace_id:
group
.
id
.
to_s
)
}
it
{
is_expected
.
to
include
(
source:
'some_source'
)
}
it
{
is_expected
.
to
include
(
group_data:
%Q{[{"id":
#{
group
.
id
}
,"name":"My Namespace","users":1,"guests":0}]}
)
}
it
{
is_expected
.
to
include
(
redirect_after_success:
group_usage_quotas_path
(
group
,
anchor:
'
pipelines
-quota-tab'
,
purchased_product:
'Storage'
))
}
it
{
is_expected
.
to
include
(
redirect_after_success:
group_usage_quotas_path
(
group
,
anchor:
'
storage
-quota-tab'
,
purchased_product:
'Storage'
))
}
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