Commit c56b1af7 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch '300897-create-issue-with-iteration-no-cadence-specified' into 'master'

Remove feature flag check from iteration cadences resolver

See merge request gitlab-org/gitlab!72633
parents 7771a207 5dc94b43
......@@ -31,8 +31,7 @@ module Resolvers
args[:id] = parse_id(id) if id.present?
cadences = ::Iterations::Cadence.none
cadences = ::Iterations::CadencesFinder.new(current_user, group, args).execute if group.iteration_cadences_feature_flag_enabled?
cadences = ::Iterations::CadencesFinder.new(current_user, group, args).execute
offset_pagination(cadences)
end
......
......@@ -34,16 +34,6 @@ RSpec.describe Resolvers::Iterations::CadencesResolver do
expect(resolve_group_iteration_cadences({ id: active_group_iteration_cadence.to_global_id }, parent, { current_user: current_user })).to contain_exactly(active_group_iteration_cadence)
end
end
context 'when iteration cadences feature is disabled' do
before do
stub_feature_flags(iteration_cadences: false)
end
it 'returns no results' do
expect(resolve_group_iteration_cadences).to be_empty
end
end
end
end
......
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