Commit fd647b40 authored by charlie ablett's avatar charlie ablett

Merge branch 'enable_confid_query' into 'master'

Remove confidential_epics_query feature flag

Closes #213075

See merge request gitlab-org/gitlab!35235
parents 67a0b331 560ebc35
......@@ -181,7 +181,6 @@ class EpicsFinder < IssuableFinder
# rubocop: enable CodeReuse/ActiveRecord
def with_confidentiality_access_check(epics, groups)
return epics unless Feature.enabled?(:confidential_epics_query, group)
return epics if can_read_all_epics_in_related_groups?(groups)
epics.not_confidential_or_in_groups(groups_with_confidential_access(groups))
......
......@@ -389,16 +389,6 @@ RSpec.describe EpicsFinder do
expect(subject).to match_array([base_epic2, public_epic1, public_epic2])
end
end
context 'when confidential_epics_query is disabled' do
before do
stub_feature_flags(confidential_epics_query: false)
end
it 'returns also confidential epics' do
expect(subject).to match_array([base_epic1, base_epic2, public_epic1, public_epic2])
end
end
end
context 'with negated labels' do
......
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