Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Oct 31, 2023

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)

Screenshot 2023-10-31 at 14 12 26 Screenshot 2023-10-31 at 14 12 45

Checklist

Delete any items that are not applicable to this PR.

@angorayc angorayc added Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Feature:Lens Charts Security Solution Lens Charts feature bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes v8.12.0 v8.11.1 labels Oct 31, 2023
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
embeddable 78.3KB 78.4KB +55.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@angorayc angorayc marked this pull request as ready for review October 31, 2023 18:08
@angorayc angorayc requested a review from a team as a code owner October 31, 2023 18:08
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Copy link
Contributor

@ThomThomson ThomThomson left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Embedding Embedding content via iFrame Feature:Lens Charts Security Solution Lens Charts feature release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting:Explore Team:Threat Hunting Security Solution Threat Hunting Team v8.11.1 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants