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

[Security Solutions] Search results deepLinks fix inconsistency #113046

Merged

Conversation

semd
Copy link
Contributor

@semd semd commented Sep 23, 2021

Summary

Solves: #107123

  • Put all deep links under the proper deep link group.
  • Investigate and Explore groups did not exist so deepLinks have been created (without path).
  • All deepLink ids are defined in the constants file now.

Refactor

The current approach using the base and premium entries in a separate object did not allow to have nested premium sections, which was needed since all the Investigate and Explore sub-sections needed to be moved one level deeper.
Hence, the PREMIUM_DEEP_LINK_IDS has been created and the getDeepLinks function now uses a recursive approach to build the "filtered" deep links object.

Gravacio.de.pantalla.2021-09-27.a.les.10.02.00.mov

Checklist

Delete any items that are not applicable to this PR.

@semd semd added bug Fixes for quality problems that affect the customer experience v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 v7.16.0 Team:Threat Hunting:Cases labels Sep 23, 2021
@semd semd self-assigned this Sep 23, 2021
@semd semd marked this pull request as ready for review September 27, 2021 09:09
@semd semd requested a review from a team as a code owner September 27, 2021 09:09
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

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

@XavierM
Copy link
Contributor

XavierM commented Sep 27, 2021

I think we need to change this logic because of this comment in my PR

@angorayc
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@angorayc angorayc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, all looks good. Thank you Sergi!

@semd semd enabled auto-merge (squash) September 29, 2021 10:04
@kibanamachine
Copy link
Contributor

💚 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
securitySolution 109.0KB 109.7KB +759.0B

History

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

cc @semd

@semd semd merged commit 36e7b5f into elastic:master Sep 29, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Sep 29, 2021
…tic#113046)

* deepLinks grouped and refactor

* use translations

* use Set and renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.15 Commit could not be cherrypicked due to conflicts
7.x

Successful backport PRs will be merged automatically after passing CI.

To backport manually run:
node scripts/backport --pr 113046

@semd semd removed the v7.15.0 label Sep 29, 2021
kibanamachine added a commit that referenced this pull request Sep 29, 2021
) (#113395)

* deepLinks grouped and refactor

* use translations

* use Set and renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Sergi Massaneda <sergi.massaneda@elastic.co>
@MadameSheema
Copy link
Member

@semd can you please backport this into 7.15? thanks!

@semd semd added the v7.15.0 label Sep 30, 2021
semd added a commit to semd/kibana that referenced this pull request Sep 30, 2021
…tic#113046)

* deepLinks grouped and refactor

* use translations

* use Set and renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/public/app/deep_links/index.test.ts
semd added a commit that referenced this pull request Oct 1, 2021
#113046) (#113537)

* [Security Solutions] Search results deepLinks fix inconsistency (#113046)

* deepLinks grouped and refactor

* use translations

* use Set and renaming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/public/app/deep_links/index.test.ts

* limit updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience 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 Security Solution Threat Hunting Team v7.15.0 v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants