-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution] add ability for network map to be toggable, prevent map from displaying without permissions #123336
Conversation
…ng without permissions
1b895d7
to
4d4a8e5
Compare
thanks @jamster10! overall it looks pretty good but the spacing on the Unpermissioned view without the map between the divider line and the visualizations look wider than the other view with the map. Is there something that's causing the extra space? Other than that, the interaction itself looks good! |
make sure you don't automatically close the ticket when this is merged. instead keep the issue open and add the |
x-pack/plugins/security_solution/public/network/components/embeddables/embedded_map.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/network/components/embeddables/translations.ts
Outdated
Show resolved
Hide resolved
…-permissions-and-allow-map-toggle
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
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.
Checked out, tested locally, verified map only shows if role has ALL
or READ
privileges to Maps, and that clearing local storage works as expected. Also verified keyboard nav support for collapsing as well. LGTM! Thanks for taking care of this and improving the UX around maps @jamster10! 🙂
@elasticmachine merge upstream |
…-permissions-and-allow-map-toggle
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! Thanks for taking this ancient issue on, just in time for 8.0!
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @jamster10 |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
7 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
The following labels were identified as gaps in your version labels and will be added automatically:
If any of these should not be on your pull request, please manually remove them. |
…nt map from displaying without permissions (elastic#123336) * add ability for network map to be toggable, prevent map from displaying without permissions * PR & test additions * Found rogue semicolon Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 57d507c)
…nt map from displaying without permissions (elastic#123336) * add ability for network map to be toggable, prevent map from displaying without permissions * PR & test additions * Found rogue semicolon Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 57d507c)
💔 Some backports could not be created
How to fixRe-run the backport manually:
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…nt map from displaying without permissions (#123336) (#125091) * add ability for network map to be toggable, prevent map from displaying without permissions * PR & test additions * Found rogue semicolon Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 57d507c)
…nt map from displaying without permissions (#123336) (#125092) * add ability for network map to be toggable, prevent map from displaying without permissions * PR & test additions * Found rogue semicolon Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 57d507c) Co-authored-by: Kristof C <kpac.ja@gmail.com>
#75012
Summary
If a user is not permissioned to use maps plugin, they should not see any map related data. As such a conditional for Maps capability is now wrapped around the component.
Add ability for Map to be hidden (toggle closed). Not all users with the permission, want to see the map. As such toggling it, saves its state to local storage, so it is hidden/visible to the user for the entirety of their session.
To implement the above the map is now embedded into an accordion that toggles its state. This means the
embeddable_header
is no longer used.Unpermissioned view of network (no network map):
Toggable map:
Checklist
Release Notes
Network map hidden from users without permission
Network map now toggable for user preference