Commit 7415b1ea authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch...

Merge branch '11112-insights-charts-don-t-load-data-from-subgroups-of-a-top-level-group' into 'master'

Resolve "Insights charts don't load data from subgroups of a top-level group"

Closes #11112

See merge request gitlab-org/gitlab-ee!10801
parents ec06004b a84228c9
---
title: Include subgroups when finding Insights issuables
merge_request: 10801
author:
type: fixed
......@@ -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',
......
......@@ -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 }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment