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.
Screenshots or screen recordings
before (Analytics == disabled
)
How to set up and validate locally
- Create a project or use an existing one
- Hover over
Project > Repository
- Recognise
Contributors
menu item is visible and also clickable - Go to
Project > Settings > General
- Expand
Visibility, project features, permissions
- Disable
Analytics
and clickSave changes
- Hover again over
Project > Repository
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Andreas Deicha