mirror of
https://github.com/elastic/kibana.git
synced 2025-04-20 16:03:20 -04:00
# Backport This will backport the following commits from `main` to `8.16`: - [[Security Solution] Fix redux action being fired because of unused react-router value (#217055)](https://github.com/elastic/kibana/pull/217055) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kevin Qualters","email":"56408403+kqualters-elastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-16T14:13:44Z","message":"[Security Solution] Fix redux action being fired because of unused react-router value (#217055)\n\n## Summary\n\nThis pr fixes a bug with the RouteCapture component, used at a high\nlevel in the security solution component tree, to reflect url changes\ninto redux. The code previously used the full result of\n'react-router-dom' 's useLocation hook as the payload, which contains 4\nparameters, pathname, search, hash that we make use of, and a 4th that\nwas added sometime later by the library that is essentially a random id\ngenerated every time the hook is called, called key. We have never used\nthis, and it was being inadvertently copied into the redux state, and\nalso causing some other actions or hooks based listeners to run I think\nas well.\n\nBelow is the contrived example of going from the home page to an empty\nalerts page, and you can see 4 actions in the after, and 5 in the\nbefore, with 1 updating only the key. May reduce more unneeded actions\nwith more going on in the page, but exactly how many is not known.\nBefore:\n\n![image]( |
||
---|---|---|
.. | ||
actions | ||
aiops | ||
alerting | ||
banners | ||
canvas | ||
cases | ||
cloud | ||
cloud_defend | ||
cloud_integrations | ||
cloud_security_posture | ||
cross_cluster_replication | ||
custom_branding | ||
dashboard_enhanced | ||
data_quality | ||
data_usage | ||
data_visualizer | ||
discover_enhanced | ||
drilldowns | ||
ecs_data_quality_dashboard | ||
elastic_assistant | ||
embeddable_enhanced | ||
encrypted_saved_objects | ||
enterprise_search | ||
entity_manager | ||
event_log | ||
features | ||
fields_metadata | ||
file_upload | ||
fleet | ||
global_search | ||
global_search_bar | ||
global_search_providers | ||
graph | ||
grokdebugger | ||
index_lifecycle_management | ||
index_management | ||
inference | ||
ingest_pipelines | ||
integration_assistant | ||
kubernetes_security | ||
lens | ||
license_api_guard | ||
license_management | ||
licensing | ||
lists | ||
logstash | ||
maps | ||
ml | ||
monitoring | ||
monitoring_collection | ||
notifications | ||
observability_solution | ||
osquery | ||
painless_lab | ||
remote_clusters | ||
reporting | ||
rollup | ||
rule_registry | ||
runtime_fields | ||
saved_objects_tagging | ||
screenshotting | ||
search_assistant | ||
search_connectors | ||
search_homepage | ||
search_indices | ||
search_inference_endpoints | ||
search_notebooks | ||
search_playground | ||
searchprofiler | ||
security | ||
security_solution | ||
security_solution_ess | ||
security_solution_serverless | ||
serverless | ||
serverless_observability | ||
serverless_search | ||
session_view | ||
snapshot_restore | ||
spaces | ||
stack_alerts | ||
stack_connectors | ||
task_manager | ||
telemetry_collection_xpack | ||
threat_intelligence | ||
timelines | ||
transform | ||
translations | ||
triggers_actions_ui | ||
upgrade_assistant | ||
watcher |