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][Expandable flyout] - remove unused code #201477

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Nov 22, 2024

Summary

Some code was added in this PR to allow the expandable flyout to be used in the OneDiscover context. Later on, this PR 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

Checklist

@PhilippeOberti PhilippeOberti added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Threat Hunting:Investigations Security Solution Investigations Team backport:version Backport to applied version labels v8.17.0 labels Nov 22, 2024
@PhilippeOberti PhilippeOberti requested review from a team as code owners November 22, 2024 22:36
@elasticmachine
Copy link
Contributor

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

@PhilippeOberti PhilippeOberti force-pushed the expandable-flyout-with-provider-cleanup branch from 6681cc3 to 366dc57 Compare November 27, 2024 16:02
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6264 6263 -1

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/expandable-flyout 17 14 -3

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/expandable-flyout 3 2 -1
Unknown metric groups

API count

id before after diff
@kbn/expandable-flyout 44 41 -3

@PhilippeOberti PhilippeOberti merged commit 7ebd150 into elastic:main Nov 27, 2024
8 checks passed
@PhilippeOberti PhilippeOberti deleted the expandable-flyout-with-provider-cleanup branch November 27, 2024 17:59
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.17

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

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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.17

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

Questions ?

Please refer to the Backport tool documentation

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
Copy link
Contributor Author

💚 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 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:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants