-
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
[SecuritySolution] Panel Settings of visualizations not working #170244
Conversation
💚 Build Succeeded
Metrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: |
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.
Hey @angorayc!
I'm currently in the middle of a major refactor of the Embeddable code, so if possible I'd like to avoid changes to it. Rather than changing the base embeddable implementation to include withDefaultActions
, would it be possible to add ACTION_CUSTOMIZE_PANEL
to the disabledActions
array anywhere this is used? That should accomplish the same thing with fewer changes. It's not an ideal solution because you'd need to individually disable actions as they get added, but it should work well enough for now.
It looks like this problem is caused because some of the Embeddable panel actions skip the registry, instead being called universalActions
, so the current withDefaultActions
implementation doesn't remove them properly. In my refactor, I've removed universalActions
so all actions go through the registry.
Summary
#168670
Before: Panel Settings displayed in SecuritySolution visualisations and SecuritySolution dashboards panel actions. However, the panel settings do not work with visualisations in SecuritySolution.
After: Panel Settings displayed in dashboards only (as we have
withDefaultActions
= false in SecuritySolution Lens Embeddables)Checklist
Delete any items that are not applicable to this PR.