Hide Integrations from sidenav when no integrations have been allowed
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Context
This issue is part of Ability to disable integrations through admin s... (&15666) see that epic for more context.
In Add settings for allow-listing integrations thr... (#500610 - closed) we implemented the ability for an instance admin to allow list integrations.
Proposal
When an instance has configured their integrations allow list to block all integrations, we should:
- Hide the Integrations sidebar menu items from instance, group and project-level settings menus.
- Return a
404
page if user visits the integrations settings index pages at instance, group or project-levels.
Technical proposal
We can use a check if Integration.available_integration_names
is an empty array (no integrations are available).
Hiding the menu item visibility would be in:
Edited by 🤖 GitLab Bot 🤖