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
f6dd4976
Commit
f6dd4976
authored
May 29, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use children.any? since ObjectHierarchy is not
supported on MySQL
parent
f7601fd4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/models/ee/epic.rb
ee/app/models/ee/epic.rb
+1
-1
ee/spec/models/epic_spec.rb
ee/spec/models/epic_spec.rb
+1
-1
No files found.
ee/app/models/ee/epic.rb
View file @
f6dd4976
...
...
@@ -280,7 +280,7 @@ module EE
end
def
has_children?
descendants
.
any?
children
.
any?
end
def
has_issues?
...
...
ee/spec/models/epic_spec.rb
View file @
f6dd4976
...
...
@@ -732,7 +732,7 @@ describe Epic do
it
'has child epics'
do
create
(
:epic
,
group:
group
,
parent:
epic
)
expect
(
epic
.
has_children?
).
to
be_truthy
expect
(
epic
.
reload
.
has_children?
).
to
be_truthy
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