Skip to content

[8.x] [Security Solution] remove isDraggable props + various related cleanups (#207959)#210116

Merged
PhilippeOberti merged 1 commit intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-207959
Feb 7, 2025
Merged

[8.x] [Security Solution] remove isDraggable props + various related cleanups (#207959)#210116
PhilippeOberti merged 1 commit intoelastic:8.xfrom
PhilippeOberti:backport/8.x/pr-207959

Conversation

@PhilippeOberti
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…ps (elastic#207959)

## Summary

This PR removes the `isDraggable` prop throughout Security Solution.
Unless I'm mistaken, this property isn't necessary anymore, as we do not
use those draggable elements anymore. From what I could see, we had its
value set to `false` everywhere.

This lead to a lot of files impacted, but most of them have only a
couple of lines changed. In some files though, removing the
`isDraggable` prop allowed to remove more code than became obsolete.

**No UI changes should have been introduced in this PR!**

### What this PR does

- removes `isDraggable` everywhere
- performs the extra small cleanup when obvious
- updates all corresponding unit e2e and tests

### What this PR does

- rename files or component names to limit the already extensive impact
of the code change

(cherry picked from commit ebb31d2)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detections/components/alerts_kpis/severity_level_panel/columns.tsx
#	x-pack/solutions/security/plugins/security_solution/public/one_discover/cell_renderers/cell_renderer.test.tsx
#	x-pack/solutions/security/plugins/security_solution/public/one_discover/cell_renderers/cell_renderers.tsx
#	x-pack/solutions/security/plugins/security_solution/public/timelines/components/netflow/__snapshots__/index.test.tsx.snap
#	x-pack/solutions/security/plugins/security_solution/public/timelines/components/timeline/body/renderers/netflow/__snapshots__/netflow_row_renderer.test.tsx.snap
#	x-pack/test/security_solution_cypress/cypress/e2e/investigations/alerts/alerts_cell_actions.cy.ts
@PhilippeOberti PhilippeOberti merged commit 8c14955 into elastic:8.x Feb 7, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6728 6726 -2

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
timelines 190 189 -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 18.8MB 18.7MB -157.2KB
Unknown metric groups

API count

id before after diff
timelines 234 233 -1

History

  • 💔 Build #274348 failed 65bf0b2ba565fe8312ec735e0c039a690ff2a0f7
  • 💔 Build #274165 failed 34521f6b67e6c0d6336d36b6ae91f0f63cb9d5aa
  • 💔 Build #274160 failed 9719405347b874ab2d8af988d371ae0f8844aa49

@PhilippeOberti PhilippeOberti deleted the backport/8.x/pr-207959 branch February 7, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants