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
e9c1f184
Commit
e9c1f184
authored
Aug 14, 2018
by
Chantal Rollison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added count for label, assignee, and milestone lists
parent
d2590b15
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
0 deletions
+29
-0
changelogs/unreleased/ccr-48800-ping_for_boards.yml
changelogs/unreleased/ccr-48800-ping_for_boards.yml
+6
-0
db/migrate/20180815175440_add_index_on_list_type.rb
db/migrate/20180815175440_add_index_on_list_type.rb
+16
-0
db/schema.rb
db/schema.rb
+1
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+3
-0
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+3
-0
No files found.
changelogs/unreleased/ccr-48800-ping_for_boards.yml
0 → 100644
View file @
e9c1f184
---
title
:
Adds count for different board list types (label lists, assignee lists, and
milestone lists) to usage statistics.
merge_request
:
21208
author
:
type
:
changed
db/migrate/20180815175440_add_index_on_list_type.rb
0 → 100644
View file @
e9c1f184
# frozen_string_literal: true
class
AddIndexOnListType
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:lists
,
:list_type
end
def
down
remove_concurrent_index
:lists
,
:list_type
end
end
db/schema.rb
View file @
e9c1f184
...
@@ -1135,6 +1135,7 @@ ActiveRecord::Schema.define(version: 20180816193530) do
...
@@ -1135,6 +1135,7 @@ ActiveRecord::Schema.define(version: 20180816193530) do
add_index
"lists"
,
[
"board_id"
,
"label_id"
],
name:
"index_lists_on_board_id_and_label_id"
,
unique:
true
,
using: :btree
add_index
"lists"
,
[
"board_id"
,
"label_id"
],
name:
"index_lists_on_board_id_and_label_id"
,
unique:
true
,
using: :btree
add_index
"lists"
,
[
"label_id"
],
name:
"index_lists_on_label_id"
,
using: :btree
add_index
"lists"
,
[
"label_id"
],
name:
"index_lists_on_label_id"
,
using: :btree
add_index
"lists"
,
[
"list_type"
],
name:
"index_lists_on_list_type"
,
using: :btree
create_table
"members"
,
force: :cascade
do
|
t
|
create_table
"members"
,
force: :cascade
do
|
t
|
t
.
integer
"access_level"
,
null:
false
t
.
integer
"access_level"
,
null:
false
...
...
lib/gitlab/usage_data.rb
View file @
e9c1f184
...
@@ -34,6 +34,7 @@ module Gitlab
...
@@ -34,6 +34,7 @@ module Gitlab
def
system_usage_data
def
system_usage_data
{
{
counts:
{
counts:
{
assignee_lists:
List
.
assignee
.
count
,
boards:
Board
.
count
,
boards:
Board
.
count
,
ci_builds:
::
Ci
::
Build
.
count
,
ci_builds:
::
Ci
::
Build
.
count
,
ci_internal_pipelines:
::
Ci
::
Pipeline
.
internal
.
count
,
ci_internal_pipelines:
::
Ci
::
Pipeline
.
internal
.
count
,
...
@@ -61,9 +62,11 @@ module Gitlab
...
@@ -61,9 +62,11 @@ module Gitlab
groups:
Group
.
count
,
groups:
Group
.
count
,
issues:
Issue
.
count
,
issues:
Issue
.
count
,
keys:
Key
.
count
,
keys:
Key
.
count
,
label_lists:
List
.
label
.
count
,
labels:
Label
.
count
,
labels:
Label
.
count
,
lfs_objects:
LfsObject
.
count
,
lfs_objects:
LfsObject
.
count
,
merge_requests:
MergeRequest
.
count
,
merge_requests:
MergeRequest
.
count
,
milestone_lists:
List
.
milestone
.
count
,
milestones:
Milestone
.
count
,
milestones:
Milestone
.
count
,
notes:
Note
.
count
,
notes:
Note
.
count
,
pages_domains:
PagesDomain
.
count
,
pages_domains:
PagesDomain
.
count
,
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
e9c1f184
...
@@ -56,6 +56,7 @@ describe Gitlab::UsageData do
...
@@ -56,6 +56,7 @@ describe Gitlab::UsageData do
expect
(
count_data
[
:projects
]).
to
eq
(
3
)
expect
(
count_data
[
:projects
]).
to
eq
(
3
)
expect
(
count_data
.
keys
).
to
match_array
(
%i(
expect
(
count_data
.
keys
).
to
match_array
(
%i(
assignee_lists
boards
boards
ci_builds
ci_builds
ci_internal_pipelines
ci_internal_pipelines
...
@@ -83,9 +84,11 @@ describe Gitlab::UsageData do
...
@@ -83,9 +84,11 @@ describe Gitlab::UsageData do
groups
groups
issues
issues
keys
keys
label_lists
labels
labels
lfs_objects
lfs_objects
merge_requests
merge_requests
milestone_lists
milestones
milestones
notes
notes
projects
projects
...
...
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