Open alisonelizabeth opened 1 year ago
Pinging @elastic/platform-deployment-management (Team:Deployment Management)
The logic behind allowing the Management item is that it's enabled if at least one of its subitems is enabled. In this case, DevTools is enabled. That's why I couldn't figure out if the problem is the link that doesn't open or if enabling it if at least one item is enabled is the correct logic.
That's why I couldn't figure out if the problem is the link that doesn't open or if enabling it if at least one item is enabled is the correct logic.
I think we need to investigate this further. While Dev Tools is under "Management", it isn't under Stack Management, so I wouldn't expect us to render the link. The other behavior I noticed is that the link in itself is wrong - it's /s/dev_tools/app/mangement
when I would expect it to go to /app/management
(possibly a non-issue if we're able to hide it).
Please notice that the behavior is the same on the left sidebar: if you have at least one item under Management (like Dev Tools), the Management item itself is clickable and will take you to the Stack Management home page. The Stack Management subitem doesn't have to appear under the Management item either.
Pinging @elastic/kibana-management (Team:Kibana Management)
Kibana version: 8.9.0
Describe the bug: The "Stack Management" link shows on the home page when the user does not have sufficient privileges to view the UIs under Stack Management.
Steps to reproduce:
Expected behavior: Only the Dev Tools tile/links should show.
Screenshots (if relevant):
URL/error message when clicking from the home page
I would actually expect the link to go here (or not show at all)
Any additional context: Looks like this logic was originally added via https://github.com/elastic/kibana/pull/108580.
After a quick investigation, it looks like
iapplication.capabilities.navLinks.management
returns true, which is unexpected. However, if you logapplication.capabilities.mangement
, all plugins are marked asfalse
(disabled).Another interesting piece, is the actual link is wrong from the home page. If I go to the correct management link, I see the expected error message.