Commit 5dc94b43 authored by Mario Celi's avatar Mario Celi

Remove feature flag check from cadences resolver

We need cadence Id's generally available so they can be
sent as an argument when creating an issue associated with an iteration
using the `CURRENT` iteration wildcard ID

EE: true
parent ac898833
......@@ -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