elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Infra] Error in the Asset Details when viewing the Anomaly tab without ML privilege #191169

Open crespocarlos opened 3 weeks ago

crespocarlos commented 3 weeks ago

Summary

We need to hide the Anomaly tab or show a message to the user when they don't have permission to view ml jobs

Image

Steps to reproduce

Possible solution

We should hide the Anomaly tabs in case users don't have permission to view it or display a message saying that the user doesn't have permission if the same condition is not met, eg:

image

Check application.uiCapabilities.ml object.

Osquery displays a message, so If we decide to hide the Anomaly tab, we might want to hide Osquery tab to in case users don't have permission to view it for consistency.

elasticmachine commented 3 weeks ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

crespocarlos commented 3 weeks ago

cc @roshan-elastic

crespocarlos commented 2 weeks ago

This also happens with if Analytics is disabled on the Space's feature visibility.

Image