Redirect issues#show to work items route if issue is a task
What does this MR do and why?
Adds a redirect for Issues#show
controller if the fetched issue is of type task and the work_items
feature flag is enabled.
How to set up and validate locally
- Enable
work_items
feature flagFeature.enable(:work_items)
- Use the console to change issue type to task of any issue
issue.update(issue_type: :task)
- Go to the regular issue show route e.g.
http://127.0.0.1:3000/flightjs/Flight/-/issues/<IID>
and you should get redirected tohttp://127.0.0.1:3000/flightjs/Flight/-/work_items/<GID>
- You should not get redirected if the FF is disabled or the issue is not a task
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #358998 (closed)
Edited by Mario Celi