Commit a84228c9 authored by Rémy Coutable's avatar Rémy Coutable Committed by Lin Jen-Shin

Include subgroups when fiunding Insights issuables

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ec06004b
---
title: Include subgroups when finding Insights issuables
merge_request: 10801
author:
type: fixed
...@@ -49,6 +49,7 @@ module Gitlab ...@@ -49,6 +49,7 @@ module Gitlab
def finder_args def finder_args
{ {
include_subgroups: true,
state: opts[:issuable_state] || 'opened', state: opts[:issuable_state] || 'opened',
label_name: opts[:filter_labels], label_name: opts[:filter_labels],
sort: 'created_asc', sort: 'created_asc',
......
...@@ -123,7 +123,7 @@ RSpec.describe Gitlab::Insights::Finders::IssuableFinder do ...@@ -123,7 +123,7 @@ RSpec.describe Gitlab::Insights::Finders::IssuableFinder do
context 'for a group' do context 'for a group' do
let(:entity) { create(:group) } 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_type) { :group_label }
let(:label_entity_association_key) { :group } 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