kibana/x-pack/test
Ryland Herrick 52787e9379
[Security Solution][Detections]Alerts migrations can be finalized/cleaned up in all spaces (#93809)
* Retrieve SOs by ID in a space-aware manner by using bulkGet

We were previously using a manual invocation of find(), which was a)
tied to the current implementation of how SOs generate their _ids, and
b) didn't respect spaces.

By replacing this with a call to bulkGet, which automatically respects
the space of the current request, and which abstracts away the building
of the actual _id based on the SO ID and type, we address the issues
above.

* Surface SO errors to the finalize/delete APIs

Now that we're using bulkGet, we receive an object with errors if the
object is not found, which by default breaks our subsequent validation.
In order to provider better UX, we re-raise the first of these errors
that we find, if present, and return that to the user.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 15:10:16 -06:00
..
accessibility [ML] Data Frame Analytics creation wizard: add validation step (Part 1) (#93478) 2021-03-05 21:48:39 -05:00
alerting_api_integration [Alerts] Fix broken alert's actions when upgrading from 7.10 to 7.11 (#93611) 2021-03-05 19:03:45 -05:00
api_integration Support for number, date and IP range data types (#76971) 2021-03-08 15:50:36 -05:00
api_integration_basic
apm_api_integration Fix service map for All environment single service (#93517) 2021-03-03 17:30:08 -06:00
case_api_integration [Security Solution][Case][Bug] Only update alert status in its specific index (#92530) 2021-03-03 13:28:59 -05:00
common
detection_engine_api_integration [Security Solution][Detections]Alerts migrations can be finalized/cleaned up in all spaces (#93809) 2021-03-08 15:10:16 -06:00
encrypted_saved_objects_api_integration
endpoint_api_integration_no_ingest
fleet_api_integration [Fleet] Remove fleetServerEnabled feature flag and use fleet system indices (#92422) 2021-03-08 07:40:09 -05:00
fleet_functional [Fleet] Bootstrap functional test suite (#91898) 2021-02-18 16:34:50 -05:00
functional Support for number, date and IP range data types (#76971) 2021-03-08 15:50:36 -05:00
functional_basic
functional_cors
functional_embedded
functional_enterprise_search
functional_vis_wizard
functional_with_es_ssl Rename alerts plugin to alerting (#92898) 2021-03-05 13:59:34 -05:00
licensing_plugin
lists_api_integration [Security Solution][Lists] Escape quotes in list ids and quote the id in KQL query (#93176) 2021-03-03 15:02:08 -05:00
load
observability_api_integration
plugin_api_integration [HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541) 2021-02-18 17:31:18 +00:00
plugin_api_perf
plugin_functional
reporting_api_integration [Reporting] Remove unused priority field (#92552) 2021-03-01 10:41:08 -07:00
saved_object_api_integration Speed up spaces tests by letting v2 migrations do less work (#91829) 2021-02-22 08:44:41 -05:00
saved_object_tagging
saved_objects_field_count
security_api_integration Unify Kibana & Elasticsearch logging config keys (#90764) 2021-02-16 20:27:25 +01:00
security_functional
security_solution_cypress [Security Solution] Remove unused mock data (#92357) 2021-03-01 15:25:12 +00:00
security_solution_endpoint [Security Solution][Endpoint][Admin] Fixes policy sticky footer save test (#92919) 2021-03-01 15:31:05 -05:00
security_solution_endpoint_api_int
send_search_to_background_integration [Search Sessions] Fix Discover doesn't clean session when navigating to Context (#91874) 2021-02-23 08:14:54 -05:00
spaces_api_integration Speed up spaces tests by letting v2 migrations do less work (#91829) 2021-02-22 08:44:41 -05:00
stack_functional_integration
ui_capabilities
upgrade Upgrade smoke tests (#92893) 2021-03-04 20:22:20 -07:00
upgrade_assistant_integration
usage_collection
visual_regression
tsconfig.json Rename alerts plugin to alerting (#92898) 2021-03-05 13:59:34 -05:00