a75909eecb
* partial failure if unmapped timestamp override field or unmapped @timestamp field * fixes unit tests * fix threat match rules integration tests * unskip integration test for partial failure when not all indices have timestamp override field * replace ts-expect-error in test with a partial type * use destructured param and != null for ternary * fix typo in utils.test.ts * remove unnecessary optional chaining * replace logger.debug with logger.error and update test case for threat match integration test to search auditbeat-* instead of empty index causing it to search wrong indicies like .kibana, etc.. * adds unit test to write a success when all shard failure messages are no mapping found for a timestamp field, moves privilege check and timestamp field cap check into utility functions and updates code to be more functional * need to write an error, not a partial failure, if the rule cannot read ANY of the indices provided * use isEmpty for checking timestamp override field param and remove let from hasReadIndexPrivileges util function * replace references to helpers/toPromise | toError to use common/fp_utils, remove unnecessary flow wrappers, no need for checking if timestampField is null since it is typed as string and we do the checking beforehand, add a const bool to clean up logic for getting timestampFieldOverride * replace usage of flow with pipe to make arguments explicit |
||
---|---|---|
.. | ||
accessibility | ||
alerting_api_integration | ||
api_integration | ||
api_integration_basic | ||
apm_api_integration | ||
case_api_integration | ||
common | ||
detection_engine_api_integration | ||
encrypted_saved_objects_api_integration | ||
endpoint_api_integration_no_ingest | ||
fleet_api_integration | ||
functional | ||
functional_basic | ||
functional_cors | ||
functional_embedded | ||
functional_enterprise_search | ||
functional_vis_wizard | ||
functional_with_es_ssl | ||
licensing_plugin | ||
lists_api_integration | ||
observability_api_integration | ||
plugin_api_integration | ||
plugin_api_perf | ||
plugin_functional | ||
reporting_api_integration | ||
saved_object_api_integration | ||
saved_object_tagging | ||
saved_objects_field_count | ||
security_api_integration | ||
security_functional | ||
security_solution_cypress | ||
security_solution_endpoint | ||
security_solution_endpoint_api_int | ||
send_search_to_background_integration | ||
spaces_api_integration | ||
stack_functional_integration | ||
ui_capabilities | ||
upgrade_assistant_integration | ||
usage_collection | ||
visual_regression | ||
tsconfig.json |