Skip to content

Hide legacy profile menu items when `profile_tabs_vue` flag is enabled

Shane Maglangit requested to merge 497970-hide-legacy-profile-menu into master

What does this MR do and why?

We have an ongoing effort of migrating the current profile pages into Vue. This MR hides the menu items that redirects to these legacy pages when profile_tabs_vue is enabled.

This is the groundwork needed as we can start replacing them with menu items that redirects to the Vue-based pages (see #389842)

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

Before After
image image

How to set up and validate locally

  1. In rails console enable the profile_tabs_vue flag.
    Feature.enable(:profile_tabs_vue)
  2. Visit a user's profile page (e.g. http://localhost:3000/root)
  3. Activity, Groups, Contributed projects, Personal projects, Starred projects, Snippets, Followers, Following must be removed from the sidebar.

Note: The pages are still accessible through their URL but will fallback to the Overview page. This is not a blocker for this MR:

  • The pages are broken (renders blank page) on master
  • This should be fixed in the child items listed in #389842.

Related to #497970 (closed)

Edited by Shane Maglangit

Merge request reports

Loading