Commit 97334e65 authored by Thong Kuah's avatar Thong Kuah

Merge branch '10706-quick-actions-on-epic-doesn-t-include-ancestor-group-labels' into 'master'

Include ancestor group labels in autocomplete for Epics

See merge request gitlab-org/gitlab-ee!15460
parents eb785e23 9433ae8f
......@@ -43,7 +43,7 @@ module Groups
# rubocop: enable CodeReuse/ActiveRecord
def labels_as_hash(target)
super(target, group_id: group.id, only_group_labels: true)
super(target, group_id: group.id, only_group_labels: true, include_ancestor_groups: true)
end
def commands(noteable)
......
---
title: Include ancestor group labels in autocomplete for epics
merge_request: 15460
author:
type: fixed
......@@ -21,7 +21,7 @@ describe Groups::AutocompleteService do
let!(:label1) { create(:group_label, group: group) }
let!(:label2) { create(:group_label, group: group) }
let!(:sub_group_label) { create(:group_label, group: sub_group) }
let!(:parent_group_label) { create(:group_label, group: group.parent, group_id: group.id) }
let!(:parent_group_label) { create(:group_label, group: group.parent) }
it 'returns labels from own group and ancestor groups' do
results = subject.labels_as_hash(nil)
......
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