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 Solution] Revert security_solution_common package which is unnecessary #198294

Merged
merged 13 commits into from
Nov 4, 2024

Conversation

logeekal
Copy link
Contributor

@logeekal logeekal commented Oct 30, 2024

Summary

This PR reverts #189633.

Background

PR : #189633 had created a package security_solution_common so that security components can be easily used in Discover plugins.

But because of recent direction change, I have decided to revert that change which mainly moved flyout code to the security_solution_common package.

Most of the changes that you will see will be path changes replacing security_solution_common.

TL;DR

security_solution_common is being removed as the reason it was created does not exists any more.

@logeekal logeekal added backport v8.17.0 release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team labels Oct 30, 2024
@logeekal
Copy link
Contributor Author

/ci

@logeekal logeekal marked this pull request as ready for review October 30, 2024 13:11
@logeekal logeekal requested review from a team as code owners October 30, 2024 13:11
@logeekal logeekal requested a review from tiansivive October 30, 2024 13:11
@elasticmachine
Copy link
Contributor

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

@logeekal
Copy link
Contributor Author

/ci

Copy link
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

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

Defend Workflows Code changes LGTM 👍

Copy link
Contributor

@seanrathier seanrathier left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@PhilippeOberti PhilippeOberti left a comment

Choose a reason for hiding this comment

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

left a few very minor comments

Copy link
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

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

Code-only review, Data Discovery changes LGTM 👍 Just to confirm, are you removing security-solution-common because you're no longer intending to extract the components and instead use discover_shared for IoC?

@logeekal
Copy link
Contributor Author

Code-only review, Data Discovery changes LGTM 👍 Just to confirm, are you removing security-solution-common because you're no longer intending to extract the components and instead use discover_shared for IoC?

Thanks @davismcphee . To answer your question, Yes, exactly. In current state security-solution-common does not make sense as it was partial decomposition so I reverted it in favour of discover_shared.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 1015 969 -46
securitySolution 6146 6134 -12
total -58

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/security-solution-common 38 - -38

Async chunks

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

id before after diff
discover 828.6KB 807.7KB -20.9KB
securitySolution 21.0MB 21.0MB +4.1KB
total -16.8KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/security-solution-common 5 - -5

Page load bundle

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

id before after diff
discover 50.7KB 50.5KB -165.0B
Unknown metric groups

API count

id before after diff
@kbn/security-solution-common 59 - -59

History

@logeekal logeekal merged commit 641d0e2 into elastic:main Nov 4, 2024
46 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11666461538

@kibanamachine
Copy link
Contributor

PhilippeOberti pushed a commit to PhilippeOberti/kibana that referenced this pull request Nov 4, 2024
…s unnecessary (elastic#198294)

## Summary

This PR reverts elastic#189633.

### Background

PR : elastic#189633 had created a package
`security_solution_common` so that security components can be easily
used in Discover plugins.

But because of recent direction change, I have decided to revert that
change which mainly moved `flyout` code to the
`security_solution_common` package.

Most of the changes that you will see will be path changes replacing
`security_solution_common`.

## TL;DR

`security_solution_common` is being removed as the reason it was created
does not exists any more.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 641d0e2)

# Conflicts:
#	.github/CODEOWNERS
@PhilippeOberti
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

PhilippeOberti pushed a commit to PhilippeOberti/kibana that referenced this pull request Nov 4, 2024
…s unnecessary (elastic#198294)

## Summary

This PR reverts elastic#189633.

### Background

PR : elastic#189633 had created a package
`security_solution_common` so that security components can be easily
used in Discover plugins.

But because of recent direction change, I have decided to revert that
change which mainly moved `flyout` code to the
`security_solution_common` package.

Most of the changes that you will see will be path changes replacing
`security_solution_common`.

## TL;DR

`security_solution_common` is being removed as the reason it was created
does not exists any more.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 641d0e2)

# Conflicts:
#	.github/CODEOWNERS
PhilippeOberti added a commit that referenced this pull request Nov 5, 2024
…hich is unnecessary (#198294) (#198877)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Revert `security_solution_common` package which
is unnecessary (#198294)](#198294)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jatin
Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-04T14:39:32Z","message":"[Security
Solution] Revert `security_solution_common` package which is unnecessary
(#198294)\n\n## Summary\r\n\r\nThis PR reverts
https://github.com/elastic/kibana/pull/189633.\r\n\r\n###
Background\r\n\r\nPR : #189633 had
created a package\r\n`security_solution_common` so that security
components can be easily\r\nused in Discover plugins.\r\n\r\nBut because
of recent direction change, I have decided to revert that\r\nchange
which mainly moved `flyout` code to the\r\n`security_solution_common`
package.\r\n\r\nMost of the changes that you will see will be path
changes replacing\r\n`security_solution_common`.\r\n\r\n\r\n##
TL;DR\r\n\r\n`security_solution_common` is being removed as the reason
it was created\r\ndoes not exists any
more.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"641d0e2d477955c60ccfa290ba5c10601c7f453a","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","v8.17.0"],"number":198294,"url":"https://github.com/elastic/kibana/pull/198294","mergeCommit":{"message":"[Security
Solution] Revert `security_solution_common` package which is unnecessary
(#198294)\n\n## Summary\r\n\r\nThis PR reverts
https://github.com/elastic/kibana/pull/189633.\r\n\r\n###
Background\r\n\r\nPR : #189633 had
created a package\r\n`security_solution_common` so that security
components can be easily\r\nused in Discover plugins.\r\n\r\nBut because
of recent direction change, I have decided to revert that\r\nchange
which mainly moved `flyout` code to the\r\n`security_solution_common`
package.\r\n\r\nMost of the changes that you will see will be path
changes replacing\r\n`security_solution_common`.\r\n\r\n\r\n##
TL;DR\r\n\r\n`security_solution_common` is being removed as the reason
it was created\r\ndoes not exists any
more.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"641d0e2d477955c60ccfa290ba5c10601c7f453a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198294","number":198294,"mergeCommit":{"message":"[Security
Solution] Revert `security_solution_common` package which is unnecessary
(#198294)\n\n## Summary\r\n\r\nThis PR reverts
https://github.com/elastic/kibana/pull/189633.\r\n\r\n###
Background\r\n\r\nPR : #189633 had
created a package\r\n`security_solution_common` so that security
components can be easily\r\nused in Discover plugins.\r\n\r\nBut because
of recent direction change, I have decided to revert that\r\nchange
which mainly moved `flyout` code to the\r\n`security_solution_common`
package.\r\n\r\nMost of the changes that you will see will be path
changes replacing\r\n`security_solution_common`.\r\n\r\n\r\n##
TL;DR\r\n\r\n`security_solution_common` is being removed as the reason
it was created\r\ndoes not exists any
more.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"641d0e2d477955c60ccfa290ba5c10601c7f453a"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jatin Kathuria <[email protected]>
PhilippeOberti added a commit that referenced this pull request Nov 27, 2024
## Summary

Some code was added in [this
PR](#189633) to allow the
expandable flyout to be used in the OneDiscover context. Later on, [this
PR](#198294) reverted most of the
changes, but some files remained.

This PR cleans up all the files (that I could find) that are now
unnecessary and unused
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 27, 2024
…201477)

## Summary

Some code was added in [this
PR](elastic#189633) to allow the
expandable flyout to be used in the OneDiscover context. Later on, [this
PR](elastic#198294) reverted most of the
changes, but some files remained.

This PR cleans up all the files (that I could find) that are now
unnecessary and unused

(cherry picked from commit 7ebd150)
kibanamachine added a commit that referenced this pull request Nov 27, 2024
…201477) (#202047)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[Security Solution][Expandable flyout] - remove unused code
(#201477)](#201477)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-27T17:59:01Z","message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","backport:version","v8.17.0"],"title":"[Security
Solution][Expandable flyout] - remove unused
code","number":201477,"url":"https://github.com/elastic/kibana/pull/201477","mergeCommit":{"message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201477","number":201477,"mergeCommit":{"message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…201477)

## Summary

Some code was added in [this
PR](elastic#189633) to allow the
expandable flyout to be used in the OneDiscover context. Later on, [this
PR](elastic#198294) reverted most of the
changes, but some files remained.

This PR cleans up all the files (that I could find) that are now
unnecessary and unused
PhilippeOberti added a commit to PhilippeOberti/kibana that referenced this pull request Dec 13, 2024
…201477)

## Summary

Some code was added in [this
PR](elastic#189633) to allow the
expandable flyout to be used in the OneDiscover context. Later on, [this
PR](elastic#198294) reverted most of the
changes, but some files remained.

This PR cleans up all the files (that I could find) that are now
unnecessary and unused

(cherry picked from commit 7ebd150)
PhilippeOberti added a commit that referenced this pull request Dec 13, 2024
…01477) (#204153)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Expandable flyout] - remove unused code
(#201477)](#201477)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-27T17:59:01Z","message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting:Investigations","backport:version","v8.17.0"],"number":201477,"url":"https://github.com/elastic/kibana/pull/201477","mergeCommit":{"message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201477","number":201477,"mergeCommit":{"message":"[Security
Solution][Expandable flyout] - remove unused code (#201477)\n\n##
Summary\r\n\r\nSome code was added in
[this\r\nPR](#189633) to allow
the\r\nexpandable flyout to be used in the OneDiscover context. Later
on, [this\r\nPR](#198294) reverted
most of the\r\nchanges, but some files remained.\r\n\r\nThis PR cleans
up all the files (that I could find) that are now\r\nunnecessary and
unused","sha":"7ebd1506ff23828095f6bd3b131a22577ad960fe"}},{"branch":"8.17","label":"v8.17.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/202047","number":202047,"state":"MERGED","mergeCommit":{"sha":"a4b919479a733a6a97b2b35b49f99bed5589f3fa","message":"[8.17]
[Security Solution][Expandable flyout] - remove unused code (#201477)
(#202047)\n\n# Backport\n\nThis will backport the following commits from
`main` to `8.17`:\n- [[Security Solution][Expandable flyout] - remove
unused
code\n(#201477)](https://github.com/elastic/kibana/pull/201477)\n\n<!---
Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the
[Backport
tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT
[{\"author\":{\"name\":\"Philippe\nOberti\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-11-27T17:59:01Z\",\"message\":\"[Security\nSolution][Expandable
flyout] - remove unused code (#201477)\\n\\n##\nSummary\\r\\n\\r\\nSome
code was added
in\n[this\\r\\nPR](#189633) to
allow\nthe\\r\\nexpandable flyout to be used in the OneDiscover context.
Later\non, [this\\r\\nPR](#198294)
reverted\nmost of the\\r\\nchanges, but some files
remained.\\r\\n\\r\\nThis PR cleans\nup all the files (that I could
find) that are now\\r\\nunnecessary
and\nunused\",\"sha\":\"7ebd1506ff23828095f6bd3b131a22577ad960fe\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.18.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\"release_note:skip\",\"v9.0.0\",\"Team:Threat\nHunting:Investigations\",\"backport:version\",\"v8.17.0\"],\"title\":\"[Security\nSolution][Expandable
flyout] - remove
unused\ncode\",\"number\":201477,\"url\":\"https://github.com/elastic/kibana/pull/201477\",\"mergeCommit\":{\"message\":\"[Security\nSolution][Expandable
flyout] - remove unused code (#201477)\\n\\n##\nSummary\\r\\n\\r\\nSome
code was added
in\n[this\\r\\nPR](#189633) to
allow\nthe\\r\\nexpandable flyout to be used in the OneDiscover context.
Later\non, [this\\r\\nPR](#198294)
reverted\nmost of the\\r\\nchanges, but some files
remained.\\r\\n\\r\\nThis PR cleans\nup all the files (that I could
find) that are now\\r\\nunnecessary
and\nunused\",\"sha\":\"7ebd1506ff23828095f6bd3b131a22577ad960fe\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.17\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/201477\",\"number\":201477,\"mergeCommit\":{\"message\":\"[Security\nSolution][Expandable
flyout] - remove unused code (#201477)\\n\\n##\nSummary\\r\\n\\r\\nSome
code was added
in\n[this\\r\\nPR](#189633) to
allow\nthe\\r\\nexpandable flyout to be used in the OneDiscover context.
Later\non, [this\\r\\nPR](#198294)
reverted\nmost of the\\r\\nchanges, but some files
remained.\\r\\n\\r\\nThis PR cleans\nup all the files (that I could
find) that are now\\r\\nunnecessary
and\nunused\",\"sha\":\"7ebd1506ff23828095f6bd3b131a22577ad960fe\"}},{\"branch\":\"8.17\",\"label\":\"v8.17.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by:
Philippe Oberti <[email protected]>"}}]}] BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants