kibana/x-pack/plugins
Frank Hassanabad 2abbd808c7
[Security Solutions][Detection Engine] Removes duplicate API calls (#88420)
## Summary

This removes some duplicate API calls to reduce pressure on the backend and speed up querying times within the application for the front end. This fixes some of the issues of https://github.com/elastic/kibana/issues/82327, but there are several performance improvements that are going to be needed to help reduce the slowness when you have a system under a lot of pressure.

So far this removes duplication for these API calls when you are on the manage detection rules page:

```ts
api/detection_engine/rules/_find
api/detection_engine/rules/_find_statuses
api/detection_engine/tags
```

<img width="2465" alt="Screen Shot 2021-01-14 at 3 53 21 PM" src="https://user-images.githubusercontent.com/1151048/104662295-c031e080-5687-11eb-92d7-18b9ad355646.png">

* This hides the tags and searches while the page is loading to avoid duplicate calls when the pre-packaged rules counts come back
* This untangles the refetchRules from the refetchPrePackagedRulesStatus as two separate calls to avoid issues we have with re-rendering and re-calling the backend.
 
### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-01-17 09:18:34 -07:00
..
actions Bumped axios to 0.21.1 (#87776) 2021-01-13 19:41:31 +00:00
alerting_builtins
alerts Remove dependency between alerts and infra (#88342) 2021-01-15 08:44:28 -06:00
apm [APM] Explicitly set environment for cross-service links (#87481) 2021-01-15 22:34:54 +01:00
audit_trail
beats_management chore(NA): move beats_management plugin tests out of __tests__ folder (#87530) 2021-01-06 19:56:38 +00:00
canvas chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
case [Security Solution][Case] Attach alerts to cases: Tests (#86305) 2021-01-11 17:44:35 +02:00
cloud
code
console_extensions [DX] move some ES UI plugins to TS project (#88050) 2021-01-13 21:58:34 +01:00
cross_cluster_replication
dashboard_enhanced Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
dashboard_mode
data_enhanced Fix log msg (#88370) 2021-01-17 00:05:06 +02:00
discover_enhanced Migrate most kibana app plugins to TS projects (#87636) 2021-01-13 17:15:41 +01:00
drilldowns Remove dynamic mapped types from UiActions (#87075) 2021-01-05 10:11:05 +01:00
embeddable_enhanced Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
encrypted_saved_objects Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
enterprise_search Porting fixes 1 (#88477) 2021-01-15 16:04:45 -06:00
event_log [Alerting] Migrate Event Log plugin to TS project references (#81557) 2021-01-15 19:07:45 -08:00
features [Search][Sessions] Rename Background Sessions to Search Sessions (#87500) 2021-01-07 17:28:27 +02:00
file_upload [Maps][File upload] Fix geojson upload diacritic handling (#83122) 2020-12-15 17:31:49 -07:00
fleet Don't retry if icon isn't in initial response (#88403) 2021-01-15 09:33:19 -05:00
global_search
global_search_bar [GS] adding tags UI to search results (#85084) 2020-12-10 11:16:21 -06:00
global_search_providers [DX] SavedObjectsManagement to TS project (#88240) 2021-01-13 22:23:06 +01:00
graph [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
grokdebugger chore(NA): move grokdebugger plugin test fixtures out of __tests__ folder (#87765) 2021-01-08 16:23:55 +00:00
index_lifecycle_management [ILM] Absolute to relative time conversion (#87822) 2021-01-15 13:32:16 +01:00
index_management [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
infra [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
ingest_manager
ingest_pipelines [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
lens [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
license_management Use documentation link service for security links (#87409) 2021-01-12 08:40:10 -08:00
licensing Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
lists [Security Solution] [Detections] Fix bug to allow lower privileged users to close alerts (#87761) 2021-01-12 21:16:06 -05:00
logstash [logstash] remove "upgrade" functionality now that .logstash is a system index (#87056) 2020-12-31 12:16:33 -07:00
maps [Maps] fix zooming while drawing shape filter logs errors in console (#88413) 2021-01-15 19:05:45 -07:00
maps_legacy_licensing
ml [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
monitoring [Monitoring] Change cloud messaging on no data page (#88375) 2021-01-15 13:43:27 -05:00
observability [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
painless_lab
remote_clusters [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
reporting chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888) 2021-01-12 02:44:07 +00:00
rollup Switches rollup usage collector's fetch es client to the new client (#86684) 2021-01-04 11:32:14 -07:00
runtime_fields revert runtime fields editor plugin (#88132) 2021-01-13 08:34:30 -06:00
saved_objects_tagging [SO Tagging] Update tag delete modal confirmation title (#85997) 2020-12-15 21:41:47 +01:00
searchprofiler [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
security Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
security_solution [Security Solutions][Detection Engine] Removes duplicate API calls (#88420) 2021-01-17 09:18:34 -07:00
snapshot_restore [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
spaces Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
stack_alerts Change some UI copy to reflect guidelines and feedback (#88215) 2021-01-14 14:13:03 -05:00
task_manager [Alerting] Shift polling interval by random amount when Task Manager experiences consistent claim version conflicts (#88020) 2021-01-12 23:34:07 +00:00
telemetry_collection_xpack
transform [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
translations [Monitoring] Change cloud messaging on no data page (#88375) 2021-01-15 13:43:27 -05:00
triggers_actions_ui Change some UI copy to reflect guidelines and feedback (#88215) 2021-01-14 14:13:03 -05:00
ui_actions_enhanced Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
upgrade_assistant
uptime [Uptime] clear ping state when PingList component in unmounted (#88321) 2021-01-15 13:37:30 -05:00
vis_type_timeseries_enhanced Migrate most kibana app plugins to TS projects (#87636) 2021-01-13 17:15:41 +01:00
watcher [Watcher] Update skipped jest tests (#88225) 2021-01-14 09:00:18 -05:00
xpack_legacy Migrates elasticsearch client in the settings usage collector (#86397) 2020-12-18 10:53:34 -07:00