Skip to content

Redirect to /epics when work item epics are not available

Nicolas Dular requested to merge nd/redirect-work-items-to-epics into master

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

  1. Enable work_item_epics and work_item_epics_rollout
  2. Go to an epic, change the URL to /work_items/
  3. Disable work_item_epics_rollout
  4. Refresh the page -> you will be redirect to the /epics route

Merge request reports

Loading