Skip to content

Hide contributors menu item

What does this MR do and why?

We are getting a 404 when clicking on Contributors menu item in Project > Reposiotry and if Analytics is disabled. Let's fix this by hiding the menu item if Analytics is disabled.

🛠 with at Siemens

Screenshots or screen recordings

before (Analytics == disabled) contributors_before

after (Analytics == disabled) contributors_after

How to set up and validate locally

  1. Create a project or use an existing one
  2. Hover over Project > Repository
  3. Recognise Contributors menu item is visible and also clickable
  4. Go to Project > Settings > General
  5. Expand Visibility, project features, permissions
  6. Disable Analytics and click Save changes
  7. Hover again over Project > Repository
  8. Recognise Contributors menu item is hidden

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Andreas Deicha

Merge request reports

Loading