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
96167244
Commit
96167244
authored
Nov 06, 2019
by
Jan Provaznik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switched to id_not_in
parent
388e2a12
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
3 deletions
+2
-3
ee/app/models/ee/epic.rb
ee/app/models/ee/epic.rb
+0
-1
ee/app/models/ee/issue.rb
ee/app/models/ee/issue.rb
+1
-1
ee/app/services/epics/descendant_count_service.rb
ee/app/services/epics/descendant_count_service.rb
+1
-1
No files found.
ee/app/models/ee/epic.rb
View file @
96167244
...
...
@@ -95,7 +95,6 @@ module EE
scope
:due_date_inherited
,
->
{
where
(
due_date_is_fixed:
[
nil
,
false
])
}
scope
:counts_by_state
,
->
{
group
(
:state_id
).
count
}
scope
:excluding_ids
,
->
(
ids
)
{
where
.
not
(
id:
ids
)
}
MAX_HIERARCHY_DEPTH
=
5
...
...
ee/app/models/ee/issue.rb
View file @
96167244
...
...
@@ -21,7 +21,7 @@ module EE
scope
:in_epics
,
->
(
epics
)
do
issue_ids
=
EpicIssue
.
where
(
epic_id:
epics
).
select
(
:issue_id
)
where
(
id:
issue_ids
)
id_in
(
issue_ids
)
end
has_one
:epic_issue
...
...
ee/app/services/epics/descendant_count_service.rb
View file @
96167244
...
...
@@ -31,7 +31,7 @@ module Epics
def
epics_count
strong_memoize
(
:epics_count
)
do
accessible_epics
.
excluding_ids
([
epic
.
id
]
).
counts_by_state
accessible_epics
.
id_not_in
(
epic
.
id
).
counts_by_state
end
end
...
...
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