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
9dd6b356
Commit
9dd6b356
authored
Sep 28, 2021
by
Ammar Alakkad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide settings search from project storage usage
parent
81f1b5f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
app/controllers/projects/usage_quotas_controller.rb
app/controllers/projects/usage_quotas_controller.rb
+1
-0
spec/controllers/projects/usage_quotas_controller_spec.rb
spec/controllers/projects/usage_quotas_controller_spec.rb
+20
-0
No files found.
app/controllers/projects/usage_quotas_controller.rb
View file @
9dd6b356
...
...
@@ -9,6 +9,7 @@ class Projects::UsageQuotasController < Projects::ApplicationController
feature_category
:utilization
def
index
@hide_search_settings
=
true
@storage_app_data
=
{
project_path:
@project
.
full_path
,
usage_quotas_help_page_path:
help_page_path
(
'user/usage_quotas'
),
...
...
spec/controllers/projects/usage_quotas_controller_spec.rb
0 → 100644
View file @
9dd6b356
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
Projects
::
UsageQuotasController
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:project
)
{
create
(
:project
,
namespace:
user
.
namespace
)
}
describe
'GET #index'
do
render_views
it
'does not render search settings partial'
do
sign_in
(
user
)
get
(
:index
,
params:
{
namespace_id:
user
.
namespace
,
project_id:
project
})
expect
(
response
).
to
render_template
(
'index'
)
expect
(
response
).
not_to
render_template
(
'shared/search_settings'
)
end
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