Fix query to create iteration in cadence
What does this MR do?
Three loosely-related changes:
- Fix creating an iteration within an iteration cadence.
- Set
durationInWeeks
to 0, and disable the field whenautomatic
is false on 'Create cadence` form - Show 'Add iteration' dropdown based on
automatic
prop, rather thandurationInWeeks
Requires iteration_cadences
feature flag
The query was previously missing the input
field and would throw an error when submit was clicked
Testing:
- enabled
iteration_cadences
feature flag - go to Cadences page for a group (Issues > Iterations)
- create a cadence with
Automatic
unchecked - in cadences list, click ellipsis, Add iteration
- Fill in fields and save
🎉
OR, bin/spring rspec ee/spec/features/groups/iterations/user_creates_iteration_in_cadence_spec.rb
Edited by Simon Knox