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
a84228c9
Commit
a84228c9
authored
Apr 12, 2019
by
Rémy Coutable
Committed by
Lin Jen-Shin
Apr 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include subgroups when fiunding Insights issuables
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
ec06004b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
ee/changelogs/unreleased/11112-insights-charts-don-t-load-data-from-subgroups-of-a-top-level-group.yml
...s-don-t-load-data-from-subgroups-of-a-top-level-group.yml
+5
-0
ee/lib/gitlab/insights/finders/issuable_finder.rb
ee/lib/gitlab/insights/finders/issuable_finder.rb
+1
-0
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
+1
-1
No files found.
ee/changelogs/unreleased/11112-insights-charts-don-t-load-data-from-subgroups-of-a-top-level-group.yml
0 → 100644
View file @
a84228c9
---
title
:
Include subgroups when finding Insights issuables
merge_request
:
10801
author
:
type
:
fixed
ee/lib/gitlab/insights/finders/issuable_finder.rb
View file @
a84228c9
...
...
@@ -49,6 +49,7 @@ module Gitlab
def
finder_args
{
include_subgroups:
true
,
state:
opts
[
:issuable_state
]
||
'opened'
,
label_name:
opts
[
:filter_labels
],
sort:
'created_asc'
,
...
...
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
View file @
a84228c9
...
...
@@ -123,7 +123,7 @@ RSpec.describe Gitlab::Insights::Finders::IssuableFinder do
context
'for a group'
do
let
(
:entity
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
group:
entity
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
group:
create
(
:group
,
parent:
entity
)
)
}
let
(
:label_type
)
{
:group_label
}
let
(
:label_entity_association_key
)
{
:group
}
...
...
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