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
9ee97d7d
Commit
9ee97d7d
authored
Jul 09, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
08423878
db1b15e4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
15 deletions
+16
-15
app/helpers/storage_helper.rb
app/helpers/storage_helper.rb
+1
-1
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+1
-5
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+1
-5
app/views/shared/_storage_counter_statistics.html.haml
app/views/shared/_storage_counter_statistics.html.haml
+4
-0
changelogs/unreleased/61284-frontend-follow-up-from-add-packages_size-to-projectstatistics.yml
...follow-up-from-add-packages_size-to-projectstatistics.yml
+5
-0
doc/administration/audit_events.md
doc/administration/audit_events.md
+1
-1
doc/administration/auditor_users.md
doc/administration/auditor_users.md
+1
-1
doc/administration/img/audit_log.png
doc/administration/img/audit_log.png
+0
-0
doc/administration/img/auditor_access_form.png
doc/administration/img/auditor_access_form.png
+0
-0
spec/features/admin/admin_sees_project_statistics_spec.rb
spec/features/admin/admin_sees_project_statistics_spec.rb
+1
-1
spec/helpers/storage_helper_spec.rb
spec/helpers/storage_helper_spec.rb
+1
-1
No files found.
app/helpers/storage_helper.rb
View file @
9ee97d7d
...
...
@@ -17,6 +17,6 @@ module StorageHelper
counter_lfs_objects:
storage_counter
(
statistics
.
lfs_objects_size
)
}
_
(
"
%{counter_repositories} repositories, %{counter_wikis} wikis, %{counter_build_artifacts} build artifacts, %{counter_lfs_objects} LFS
"
)
%
counters
_
(
"
Repository: %{counter_repositories} / Wikis: %{counter_wikis} / Build Artifacts: %{counter_build_artifacts} / LFS: %{counter_lfs_objects}
"
)
%
counters
end
end
app/views/admin/groups/show.html.haml
View file @
9ee97d7d
...
...
@@ -43,11 +43,7 @@
=
render_if_exists
'admin/namespace_plan_info'
,
namespace:
@group
%li
%span
.light
=
_
(
'Storage:'
)
%strong
=
storage_counter
(
@group
.
storage_size
)
(
=
storage_counters_details
(
@group
)
)
=
render
'shared/storage_counter_statistics'
,
storage_size:
@group
.
storage_size
,
storage_details:
@group
%li
%span
.light
=
_
(
'Group Git LFS status:'
)
...
...
app/views/admin/projects/show.html.haml
View file @
9ee97d7d
...
...
@@ -73,11 +73,7 @@
=
@project
.
repository
.
relative_path
%li
%span
.light
=
_
(
'Storage:'
)
%strong
=
storage_counter
(
@project
.
statistics
&
.
storage_size
)
-
if
@project
.
statistics
=
surround
'('
,
')'
do
=
storage_counters_details
(
@project
.
statistics
)
=
render
'shared/storage_counter_statistics'
,
storage_size:
@project
.
statistics
&
.
storage_size
,
storage_details:
@project
.
statistics
%li
%span
.light
last commit:
...
...
app/views/shared/_storage_counter_statistics.html.haml
0 → 100644
View file @
9ee97d7d
%span
.light
=
_
(
'Storage:'
)
%strong
=
storage_counter
(
storage_size
)
-
if
storage_details
(
#{
storage_counters_details
(
storage_details
)
}
)
changelogs/unreleased/61284-frontend-follow-up-from-add-packages_size-to-projectstatistics.yml
0 → 100644
View file @
9ee97d7d
---
title
:
Improved readability of storage statistics in group / project admin area
merge_request
:
30406
author
:
type
:
other
doc/administration/audit_events.md
View file @
9ee97d7d
...
...
@@ -99,7 +99,7 @@ It is possible to filter particular actions by choosing an audit data type from
the filter drop-down. You can further filter by specific group, project or user
(for authentication events).
![
audit log
](
audit_log.png
)
![
audit log
](
img/
audit_log.png
)
### Missing events
...
...
doc/administration/auditor_users.md
View file @
9ee97d7d
...
...
@@ -52,7 +52,7 @@ section.
**Admin Area > Users**
. You will find the option of the access level under
the 'Access' section.
![Admin Area Form](auditor_access_form.png)
![Admin Area Form](
img/
auditor_access_form.png)
1.
Click
**Save changes**
or
**Create user**
for the changes to take effect.
...
...
doc/administration/audit_log.png
→
doc/administration/
img/
audit_log.png
View file @
9ee97d7d
File moved
doc/administration/auditor_access_form.png
→
doc/administration/
img/
auditor_access_form.png
View file @
9ee97d7d
File moved
spec/features/admin/admin_sees_project_statistics_spec.rb
View file @
9ee97d7d
...
...
@@ -15,7 +15,7 @@ describe "Admin > Admin sees project statistics" do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
it
"shows project statistics"
do
expect
(
page
).
to
have_content
(
"Storage: 0 Bytes (
0 Bytes repositories, 0 Bytes wikis, 0 Bytes build artifacts, 0 Bytes LFS
)"
)
expect
(
page
).
to
have_content
(
"Storage: 0 Bytes (
Repository: 0 Bytes / Wikis: 0 Bytes / Build Artifacts: 0 Bytes / LFS: 0 Bytes
)"
)
end
end
...
...
spec/helpers/storage_helper_spec.rb
View file @
9ee97d7d
...
...
@@ -31,7 +31,7 @@ describe StorageHelper do
build_artifacts_size:
30
.
megabytes
))
end
let
(
:message
)
{
'
10 KB repositories, 10 Bytes wikis, 30 MB build artifacts, 20 GB LFS
'
}
let
(
:message
)
{
'
Repository: 10 KB / Wikis: 10 Bytes / Build Artifacts: 30 MB / LFS: 20 GB
'
}
it
'works on ProjectStatistics'
do
expect
(
helper
.
storage_counters_details
(
project
.
statistics
)).
to
eq
(
message
)
...
...
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