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
bb141031
Commit
bb141031
authored
Dec 16, 2020
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track epic issues count on usage data
Add epic issues count to usage ping.
parent
bb0819de
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
ee/changelogs/unreleased/issue_233156.yml
ee/changelogs/unreleased/issue_233156.yml
+5
-0
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-0
ee/spec/lib/ee/gitlab/usage_data_spec.rb
ee/spec/lib/ee/gitlab/usage_data_spec.rb
+7
-2
No files found.
ee/changelogs/unreleased/issue_233156.yml
0 → 100644
View file @
bb141031
---
title
:
Track epic issue counts on usage ping
merge_request
:
50204
author
:
type
:
other
ee/lib/ee/gitlab/usage_data.rb
View file @
bb141031
...
...
@@ -192,6 +192,7 @@ module EE
confidential_epics:
count
(
::
Epic
.
confidential
),
dependency_list_usages_total:
redis_usage_data
{
::
Gitlab
::
UsageCounters
::
DependencyList
.
usage_totals
[
:total
]
},
epics:
count
(
::
Epic
),
epic_issues:
count
(
::
EpicIssue
),
feature_flags:
count
(
Operations
::
FeatureFlag
),
geo_nodes:
count
(
::
GeoNode
),
geo_event_log_max_id:
alt_usage_data
{
Geo
::
EventLog
.
maximum
(
:id
)
||
0
},
...
...
ee/spec/lib/ee/gitlab/usage_data_spec.rb
View file @
bb141031
...
...
@@ -53,9 +53,12 @@ RSpec.describe Gitlab::UsageData do
create
(
:status_page_setting
,
project:
projects
[
0
],
enabled:
true
)
create
(
:status_page_setting
,
project:
projects
[
1
],
enabled:
false
)
# 1 published issue on 1 projects with status page enabled
create
(
:issue
,
project:
projects
[
0
])
create
(
:issue
,
:published
,
project:
projects
[
0
])
issue_1
=
create
(
:issue
,
project:
projects
[
0
])
issue_2
=
create
(
:issue
,
:published
,
project:
projects
[
0
])
create
(
:issue
,
:published
,
project:
projects
[
1
])
create
(
:epic_issue
,
issue:
issue_2
)
create
(
:epic_issue
,
issue:
issue_1
)
end
subject
{
described_class
.
data
}
...
...
@@ -91,6 +94,7 @@ RSpec.describe Gitlab::UsageData do
dependency_scanning_jobs
epics
epics_deepest_relationship_level
epic_issues
feature_flags
geo_nodes
geo_event_log_max_id
...
...
@@ -126,6 +130,7 @@ RSpec.describe Gitlab::UsageData do
expect
(
count_data
[
:status_page_issues
]).
to
eq
(
1
)
expect
(
count_data
[
:issues_with_health_status
]).
to
eq
(
2
)
expect
(
count_data
[
:projects_jira_issuelist_active
]).
to
eq
(
1
)
expect
(
count_data
[
:epic_issues
]).
to
eq
(
2
)
end
it
'has integer value for epic relationship level'
do
...
...
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