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
aff559c4
Commit
aff559c4
authored
Jun 10, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
77d9e89e
1cc2aa5b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
app/views/admin/application_settings/_performance_bar.html.haml
...ews/admin/application_settings/_performance_bar.html.haml
+1
-1
app/views/admin/application_settings/metrics_and_profiling.html.haml
...dmin/application_settings/metrics_and_profiling.html.haml
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+3
-3
spec/features/admin/admin_settings_spec.rb
spec/features/admin/admin_settings_spec.rb
+4
-4
No files found.
app/views/admin/application_settings/_performance_bar.html.haml
View file @
aff559c4
...
...
@@ -6,7 +6,7 @@
.form-check
=
f
.
check_box
:performance_bar_enabled
,
class:
'form-check-input'
=
f
.
label
:performance_bar_enabled
,
class:
'form-check-label qa-enable-performance-bar-checkbox'
do
Enable the Performance Bar
Enable
access to
the Performance Bar
.form-group
=
f
.
label
:performance_bar_allowed_group_path
,
'Allowed group'
,
class:
'label-bold'
=
f
.
text_field
:performance_bar_allowed_group_path
,
class:
'form-control'
,
placeholder:
'my-org/my-group'
,
value:
@application_setting
.
performance_bar_allowed_group
&
.
full_path
...
...
app/views/admin/application_settings/metrics_and_profiling.html.haml
View file @
aff559c4
...
...
@@ -31,7 +31,7 @@
%button
.btn.btn-default.js-settings-toggle
{
type:
'button'
}
=
expanded_by_default?
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
=
_
(
'Enable the Performance Bar for a given group.'
)
=
_
(
'Enable
access to
the Performance Bar for a given group.'
)
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'administration/monitoring/performance/performance_bar'
)
.settings-content
=
render
'performance_bar'
...
...
locale/gitlab.pot
View file @
aff559c4
...
...
@@ -4659,6 +4659,9 @@ msgstr ""
msgid "Enable Sentry for error reporting and logging."
msgstr ""
msgid "Enable access to the Performance Bar for a given group."
msgstr ""
msgid "Enable and configure InfluxDB metrics."
msgstr ""
...
...
@@ -4695,9 +4698,6 @@ msgstr ""
msgid "Enable shared Runners"
msgstr ""
msgid "Enable the Performance Bar for a given group."
msgstr ""
msgid "Enable two-factor authentication"
msgstr ""
...
...
spec/features/admin/admin_settings_spec.rb
View file @
aff559c4
...
...
@@ -302,22 +302,22 @@ describe 'Admin updates settings' do
group
=
create
(
:group
)
page
.
within
(
'.as-performance-bar'
)
do
check
'Enable the Performance Bar'
check
'Enable
access to
the Performance Bar'
fill_in
'Allowed group'
,
with:
group
.
path
click_on
'Save changes'
end
expect
(
page
).
to
have_content
"Application settings saved successfully"
expect
(
find_field
(
'Enable the Performance Bar'
)).
to
be_checked
expect
(
find_field
(
'Enable
access to
the Performance Bar'
)).
to
be_checked
expect
(
find_field
(
'Allowed group'
).
value
).
to
eq
group
.
path
page
.
within
(
'.as-performance-bar'
)
do
uncheck
'Enable the Performance Bar'
uncheck
'Enable
access to
the Performance Bar'
click_on
'Save changes'
end
expect
(
page
).
to
have_content
'Application settings saved successfully'
expect
(
find_field
(
'Enable the Performance Bar'
)).
not_to
be_checked
expect
(
find_field
(
'Enable
access to
the Performance Bar'
)).
not_to
be_checked
expect
(
find_field
(
'Allowed group'
).
value
).
to
be_nil
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