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
a7847eec
Commit
a7847eec
authored
Jul 14, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor query for Jira service records
parent
1c95ebb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+1
-4
No files found.
lib/gitlab/usage_data.rb
View file @
a7847eec
...
...
@@ -369,10 +369,7 @@ module Gitlab
projects_jira_active:
0
}
Service
.
active
.
by_type
(
:JiraService
)
.
includes
(
:jira_tracker_data
)
.
find_in_batches
(
batch_size:
BATCH_SIZE
)
do
|
services
|
JiraService
.
active
.
includes
(
:jira_tracker_data
).
find_in_batches
(
batch_size:
BATCH_SIZE
)
do
|
services
|
counts
=
services
.
group_by
do
|
service
|
# TODO: Simplify as part of https://gitlab.com/gitlab-org/gitlab/issues/29404
service_url
=
service
.
data_fields
&
.
url
||
(
service
.
properties
&&
service
.
properties
[
'url'
])
...
...
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