-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fleet] Handle unavailable spaces in agent policy space selector #201251
base: main
Are you sure you want to change the base?
[Fleet] Handle unavailable spaces in agent policy space selector #201251
Conversation
This looks a good solution to me, we should probably remove the |
Good catch, thanks! I pushed a fix. I kept it local to the component instead of centralising the One general concern I had is that this fix relies on the Saved Objects API returning |
Pinging @elastic/fleet (Team:Fleet) |
It seems pretty reliable, the space plugin seems to use that behavior frequently in their code, it seems also they expose a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Cheers 👍 I pushed a commit to use the constant. |
Is there anything preventing us from hiding the spaces entirely instead of displaying "unavailable space"? This badge isn't actionable for users with limited space access, and seems like it's adding UI noise for them. |
Nothing preventing, it's a small change. My thinking was that this shows more clearly why the input is disabled, but with the tooltip it shouldn't be a concern. If showing how many unavailable spaces are assigned is a concern, then I'm definitely happy to hide them instead. |
If we're relying on spaces as an information/data isolation mechanism, I think a user with permissions to only 2 spaces should not know there are 12 available spaces in Kibana. Hiding the spaces entirely seems like the more "proper" thing to do when it comes to data isolation. I'd be in favor of making this change here. |
Thank you, agreed and done. I've updated the PR description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
|
Summary
Closes #193827
This PR improves the space selector in agent policy setting to handle the case where the user does not have access to all policy spaces.
In this case:
Unavailable space
badgeScreenshots
For a user with access to all policy spaces (no change):
For a user with access to only a subset of policy spaces:
Checklist
release_note:*
label is applied per the guidelines