Rename vue-router-incompatible files
What does this MR do?
Allow viewing iterations within a cadence.
Currently the iteration_form.vue and iteration_report.vue components are not compatible with vue-router (they use pushState and some rails URLs). For the easiest/low-risk solution that doesn't break the existing /iterations page, so copied them and can make the necessary vue-router changes in the new files.
- Rename the components to be suffixed with
_without_vue_router - Copy
iteration_report.vue, change it so it supports vue-router and injected values for paths/permissions - Update other necessary HAML and imports
Once the iteration_cadences feature flag is removed, we can delete the _without_vue_router components, as we'll be using the vue router ones in both places.
Testing
Easiest way is a live_debug in ee/spec/features/groups/iterations/user_views_iteration_cadence_spec.rb
Or to manually test:
- go to the
/iterationspage and create some iterations - enable
iteration_cadencesfeature flag - load the
/cadencespage (have to edit URL) - expand the default cadence
- click an iteration in the list
Edited by Simon Knox