kibana/x-pack/plugins
Ryland Herrick e60cfa09ae
[Security Solution][Detections] Convert EQL validation to use search strategy (#79538)
* Rename types from the top-level plugin

These are the same types with a different name. However, the benefit is
that they exist in a non-restricted path (the top level of the plugin).

* Convert our validation function to use the EQL search strategy

Rather than calling our custom EQL validation endpoint, we can instead
leverage the EQL search strategy. The downside is that we have to move
our response parsing logic to the frontend, but the benefit is that
there's no backend to maintain.

* Remove server code related to our EQL validation endpoint

We're keeping our io-ts schemas for now since they're still being used
to type the I/O of our client function.

* Add the data contract to our KibanaServices

I'm not aware of a way to pass react context to the form lib validator
functions, so for now we have to pass this the ugly way :(

* Remove io-ts types corresponding to our defunct validation endpoint

We were keeping these around for the types, but they're so simple that
it's really not worth the overhead. The tests are similarly for
functionality that is no longer used, so no hard feelings there.

* Ensure that our validation does not bother generating hits

We only care about the query's validity, so we can tell the response
handler to do less work here.

* Pass transport options when retrieving an existing search

Without passing transport options to .get, a query with an `ignore`
would succeed if it completed in the `waitForCompletionTimeout` window,
but fail (with the ignored error) on the subsequent request if it became
async.

* Use constant for our strategy key

* Export search strategy constants for client consumption

Common values cannot be consumed directly by client code (compilation
error), so we need to re-export them from data_enhanced's public module.
2020-10-06 20:45:57 -05:00
..
actions [Security Solutions][Case] Settings per case per connector (#77327) 2020-10-06 20:03:46 +03:00
alerts
apm [UX] Update url filter (#79497) 2020-10-06 19:29:41 +02:00
audit_trail
beats_management
canvas Re-enable canvas storyshots (#79750) 2020-10-06 16:59:56 -05:00
case [Security Solutions][Case] Settings per case per connector (#77327) 2020-10-06 20:03:46 +03:00
cloud
code
console_extensions
cross_cluster_replication
dashboard_enhanced
dashboard_mode
data_enhanced [Security Solution][Detections] Convert EQL validation to use search strategy (#79538) 2020-10-06 20:45:57 -05:00
discover_enhanced
drilldowns/url_drilldown
embeddable_enhanced
encrypted_saved_objects
enterprise_search Revert "Temporarily remove Layout from App Search plugin for 7.10 release (#79506)" (#79702) 2020-10-06 13:24:27 -07:00
event_log
features
file_upload
global_search
global_search_bar
global_search_providers
graph [Core UI] Kibana Overview Page (#75827) 2020-10-06 09:13:31 -07:00
grokdebugger
index_lifecycle_management [ILM] Add index_codec to forcemerge action in hot and warm phases (#78175) 2020-10-06 14:54:11 +02:00
index_management Revert "Add support for runtime field types to mappings editor. (#77420)" (#79611) 2020-10-06 06:48:47 -07:00
infra Show callout for K8s jobs (#79610) 2020-10-06 17:27:30 -05:00
ingest_manager send protocol separately to agent as part of full agent policy (#79781) 2020-10-06 19:40:28 -04:00
ingest_pipelines remove duplicate tab states (#79501) 2020-10-06 09:24:29 -04:00
lens [Lens] Break long titles into multiple lines (#79580) 2020-10-06 11:50:44 -04:00
license_management
licensing
lists
logstash
maps [Maps] fix use correct mount-context (#79688) 2020-10-06 15:48:50 -06:00
maps_legacy_licensing
ml [ML] Fix jobs so it limit job menu actions for jobs that are closing (#79303) 2020-10-06 17:07:08 -05:00
monitoring Remove license refresh from setup (#79518) 2020-10-05 21:04:49 -04:00
observability [Core UI] Kibana Overview Page (#75827) 2020-10-06 09:13:31 -07:00
painless_lab
remote_clusters
reporting
rollup
searchprofiler
security Rename namespaces to initialNamespaces for create operations (#79682) 2020-10-06 17:01:26 -04:00
security_solution [Security Solution][Detections] Convert EQL validation to use search strategy (#79538) 2020-10-06 20:45:57 -05:00
snapshot_restore
spaces Give user the option to log out if they encounter a 403 (#75538) 2020-10-06 20:40:28 +02:00
stack_alerts Renames "Built-In Alerts" feature to "Stack Alerts" and "Actions" feature to "Actions and Connectors" (#79513) 2020-10-06 17:51:05 +01:00
task_manager
telemetry_collection_xpack
transform [Transform] Check for source indexPattern before opening clone wizard (#79383) 2020-10-06 12:22:04 -04:00
translations [Security Solutions][Case] Settings per case per connector (#77327) 2020-10-06 20:03:46 +03:00
triggers_actions_ui Renames "Built-In Alerts" feature to "Stack Alerts" and "Actions" feature to "Actions and Connectors" (#79513) 2020-10-06 17:51:05 +01:00
ui_actions_enhanced
upgrade_assistant
uptime [Uptime] Add callout for synthetics UI (#79563) 2020-10-06 20:05:41 -04:00
watcher
xpack_legacy