Skip to content

[Security Solution] Explore Sub Plugin Part 2- Combine Network, Hosts, Users into one Explore Sub Plugin#147468

Merged
stephmilovic merged 29 commits intoelastic:mainfrom
stephmilovic:explore_sub_plugin
Dec 15, 2022
Merged

[Security Solution] Explore Sub Plugin Part 2- Combine Network, Hosts, Users into one Explore Sub Plugin#147468
stephmilovic merged 29 commits intoelastic:mainfrom
stephmilovic:explore_sub_plugin

Conversation

@stephmilovic
Copy link
Copy Markdown
Contributor

This is part 2 of the work described #143574. In the first PR, explore code was moved only. In this PR we create the Explore sub plugin.

@stephmilovic stephmilovic added 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. Team:Threat Hunting:Explore v8.7.0 labels Dec 13, 2022
@stephmilovic stephmilovic requested review from a team as code owners December 13, 2022 18:36
@elasticmachine
Copy link
Copy Markdown
Contributor

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

storageDataTables?: Pick<TableState, 'tableById'>;
exploreDataTables?: {
network: Pick<TableState, 'tableById'>;
hosts: Pick<TableState, 'tableById'>;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why, but users never actually utilized this storage.

users: Reducer<UsersState, AnyAction>;
}

export class Explore {
Copy link
Copy Markdown
Contributor Author

@stephmilovic stephmilovic Dec 13, 2022

Choose a reason for hiding this comment

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

@YulNaumenko @elastic/security-threat-hunting-explore this is the part that needs some opinion. I added exploreDataTables to make typing this easier. Note that users never utilized the local storage table feature, should it be there? Not sure I totally understand/remember this feature

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we have the local storage cleanup or utilize functionality, but we have a migration logic:

.map(migrateColumnWidthToInitialWidth)
.map(migrateColumnLabelToDisplayAsText),

Do you think this is something you can use for your case?

@stephmilovic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Member

@machadoum machadoum left a comment

Choose a reason for hiding this comment

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

The code looks good, and explores pages are working fine. 👍

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 3393 3387 -6

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 10.1MB 10.1MB -268.0B

Page load bundle

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

id before after diff
securitySolution 50.5KB 50.4KB -82.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1
securitySolution 76 77 +1
total +2

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 61 67 +6
osquery 109 115 +6
securitySolution 445 446 +1
total +15

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 70 76 +6
osquery 110 117 +7
securitySolution 521 523 +2
total +17

History

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

@stephmilovic stephmilovic merged commit afa186f into elastic:main Dec 15, 2022
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Dec 15, 2022
@stephmilovic stephmilovic deleted the explore_sub_plugin branch December 15, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting 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 v8.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants