Redirect to /epics when work item epics are not available
What does this MR do and why?
Redirect to /epics when work item epics are not available
Once we rollout epic work items, links to /work_items/:iid
might be
already used. However there could be the scenario where we rollback
the feature flag to enable epic work items. In this case, we want
users to still see their epics and therefore redirect them to the
legacy /epics/:iid
url.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Enable
work_item_epics
andwork_item_epics_rollout
- Go to an epic, change the URL to
/work_items/
- Disable
work_item_epics_rollout
- Refresh the page -> you will be redirect to the
/epics
route