BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d441b5e7
Commit
d441b5e7
authored
Sep 07, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rs-remove-usage-ping-pretty' into 'master'
Remove the `pretty` parameter for `usage_data` Closes #36595 See merge request !14091
parents
8f763879
c7a77dce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+1
-2
_usage_ping.html.haml
app/views/admin/cohorts/_usage_ping.html.haml
+1
-1
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
d441b5e7
...
...
@@ -20,8 +20,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
def
usage_data
respond_to
do
|
format
|
format
.
html
do
usage_data
=
Gitlab
::
UsageData
.
data
usage_data_json
=
params
[
:pretty
]
?
JSON
.
pretty_generate
(
usage_data
)
:
usage_data
.
to_json
usage_data_json
=
JSON
.
pretty_generate
(
Gitlab
::
UsageData
.
data
)
render
html:
Gitlab
::
Highlight
.
highlight
(
'payload.json'
,
usage_data_json
)
end
...
...
app/views/admin/cohorts/_usage_ping.html.haml
View file @
d441b5e7
...
...
@@ -7,4 +7,4 @@
=
succeed
'.'
do
=
link_to
'application settings'
,
admin_application_settings_path
(
anchor:
'usage-statistics'
)
%pre
.usage-data.js-syntax-highlight.code.highlight
{
data:
{
endpoint:
usage_data_admin_application_settings_path
(
format: :html
,
pretty:
true
)
}
}
%pre
.usage-data.js-syntax-highlight.code.highlight
{
data:
{
endpoint:
usage_data_admin_application_settings_path
(
format: :html
)
}
}
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