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][Alert details] - extract panel keys to constant file to avoid weird webpack issue (circular dependency?) #181894

Merged

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Apr 26, 2024

Summary

While making a very small change to the note_previews component (see pending PR), I noticed some jest tests failing. Those tests seem to be completely unrelated to the changes made in the PR... After investigation, the issues comes from the DocumentDetailsRightPanelKey constant that we import. There must be some sort of circular dependency, or something Webpack isn't happy about...

This current PR only extracts those constants to a separate file. This fixes the jest tests failing in the PR mentioned above.
Absolutely no code changes are implemented, other than extracting the constants and updating all the imports.

Will help merge this, so indirectly addresses this bug

@PhilippeOberti PhilippeOberti added release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.14.0 labels Apr 26, 2024
@PhilippeOberti PhilippeOberti requested review from a team as code owners April 26, 2024 16:23
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@kapral18 kapral18 left a comment

Choose a reason for hiding this comment

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

LGTM

@PhilippeOberti PhilippeOberti force-pushed the alert-details-flyout-panel-keys branch from a22bf3f to bd93aca Compare April 26, 2024 18:04
…ile to avoid weird webpack issue (circular dependency?)
@PhilippeOberti PhilippeOberti force-pushed the alert-details-flyout-panel-keys branch from bd93aca to 3ec29d8 Compare April 26, 2024 19:35
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 5458 5459 +1

Async chunks

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

id before after diff
securitySolution 17.4MB 16.8MB -604.4KB

Page load bundle

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

id before after diff
securitySolution 82.7KB 82.7KB -14.0B
Unknown metric groups

async chunk count

id before after diff
securitySolution 93 92 -1

History

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

@PhilippeOberti PhilippeOberti merged commit 0a9ad29 into elastic:main Apr 26, 2024
34 checks passed
@PhilippeOberti PhilippeOberti deleted the alert-details-flyout-panel-keys branch April 26, 2024 22:00
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.14 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 181894

Questions ?

Please refer to the Backport tool documentation

@PhilippeOberti
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.14

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

Questions ?

Please refer to the Backport tool documentation

PhilippeOberti added a commit to PhilippeOberti/kibana that referenced this pull request Apr 26, 2024
…ile to avoid weird webpack issue (circular dependency?) (elastic#181894)

(cherry picked from commit 0a9ad29)

# Conflicts:
#	x-pack/plugins/security_solution/public/flyout/document_details/right/components/highlighted_fields_cell.test.tsx
PhilippeOberti added a commit that referenced this pull request Apr 29, 2024
…stant file to avoid weird webpack issue (circular dependency?) (#181894) (#181929)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Security Solution][Alert details] - extract panel keys to constant
file to avoid weird webpack issue (circular dependency?)
(#181894)](#181894)

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

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

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2024-04-26T22:00:34Z","message":"[Security
Solution][Alert details] - extract panel keys to constant file to avoid
weird webpack issue (circular dependency?)
(#181894)","sha":"0a9ad2956ebb77829ec860d8511d74244aceddc8","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat
Hunting:Investigations","v8.14.0","v8.15.0"],"number":181894,"url":"#181894
Solution][Alert details] - extract panel keys to constant file to avoid
weird webpack issue (circular dependency?)
(#181894)","sha":"0a9ad2956ebb77829ec860d8511d74244aceddc8"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"#181894
Solution][Alert details] - extract panel keys to constant file to avoid
weird webpack issue (circular dependency?)
(#181894)","sha":"0a9ad2956ebb77829ec860d8511d74244aceddc8"}}]}]
BACKPORT-->
yuliacech pushed a commit to yuliacech/kibana that referenced this pull request May 3, 2024
…ile to avoid weird webpack issue (circular dependency?) (elastic#181894)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting:Investigations Security Solution Investigations Team v8.14.0 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants