* Added CIT test for the fail processor.
* Fixed linter issues.
* Used new functions and helpers.
* Added common test to ensure that a processor type was selected before saving. Fixed some titles and nits from the PR feedback.
* Removed unused var.
* Merged in master and updated tests to remove repeat code.
Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
* Added first steps for append processor test and added data test subject for append processor input combo box.
* Added first steps for append processor test and added data test subject for append processor input combo box.
* Fixed assertion for processor.
* Merged in newer test functionality and used it in the append processor test.
* Fixed asssertion and form to use append box.
* Update snapshot.
* Fixed assertion for array.
* Made changes per notes in PR.
* Used common fields var in test.
* Fixed merge conflict.
* Fixed unused vars and added data test subject to helper file.
* Removed this snapshot that was erronously added to PR due to a merge conflict.
* Removed old common field var from uri tests.
* Fixed nits in PR in all tet files.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
* [SecuritySolution] Histogram IP legends error fixed (#99468)
* make sure stackByField exists
* fix types
* fix unit test
* skip extra request for non-ip queries
* elasticserach query changes to prevent corrupted data response bug
* client changes to split ip stacked histogram queries in two, inspect modal shows all requests and responses
* lint fixes
* test for useMatrixHistogramCombined added
* comment added on new multiple prop
* changed query to always contain value_type:ip for ip queries
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* test fixed
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Added test for setting common fields. All except the if field as it uses monaco text editor. Reaching out for help with this issue.
* Added assertion for the code editor.
* Added await to fix promise rejection.
* Added mockCodeEditor data test subject to correct file.
* Removed unneeded comment.
* Split out common processors test and fixed nits in PR feedback.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
* [SECURITY SOLUTION] Fix unmapped field timeline (#99130)
* add unmapped include_unmapped
* bringing back unmapped field timeline
* add unit test
* fix unit test
resolves https://github.com/elastic/kibana/issues/98933
Some vertical bars in text got interpreted as a table, but should have been a
code example. Changed to use commas instead of vertical bars.
* [CI] Create a ciGroup just for tests that use Docker (#98535)
# Conflicts:
# test/scripts/jenkins_xpack_build_kibana.sh
# x-pack/test/fleet_api_integration/apis/index.js
* Fix linting issues
* [Discover] Do not set fieldsFromSource when not using fields API (#98575)
* [Discover] Do not set fieldsFromSource when not using fields API
* Add Search Source unit test
* Add Search Source unit test
* Fix await error
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Adds info about the doc viewer of Discover
* Merges with the context view doc
Co-authored-by: Gail Chappell <gail.chappell@elastic.co>
Co-authored-by: Gail Chappell <gail.chappell@elastic.co>
The transform wizard can become very slow when used with indices with e.g. 1000+ fields.
This PR fixes it by prefetching 500 random documents to create a list of populated/used fields and passes those on to the data grid component instead of all available fields from the list derived via Kibana index patterns.
For example, for an out of the box metricbeat index, this reduces the list of passed on fields from 3000+ to ~120 fields. Previously, the page would freeze on load for tens of seconds and would freeze again on every rerender. With the applied update, the page loads almost instantly again and remains responsive.
Note this fix of reducing available fields is only applied to the data grid preview component. All fields are still available to create the configuration in the UI for groups and aggregations. These UI components, e.g. the virtualized dropdowns, can handle large lists of fields.
* [alerting] encode rule/connector ids in http requests made from alerting UI (#97854)
resolves: https://github.com/elastic/kibana/issues/97852
Adds `encodeURIComponent()` wrappers around references to rule, alert, and
connector ids. Without this fix, if an alert id (which can contain
customer-generated data) contains a character that needs to be URL
encoded, the resulting API call from the web UI will fail.
# Conflicts:
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/api.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/jira/api.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/api.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/api.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/servicenow/api.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/servicenow/api.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/delete.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/delete.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/execute.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/execute.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/action_connector_api/update.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/alert_summary.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/alert_summary.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/delete.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/delete.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/disable.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/disable.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/enable.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/enable.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/get_rule.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/get_rule.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/mute.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/mute.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/mute_alert.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/mute_alert.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/unmute.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/unmute.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/unmute_alert.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/unmute_alert.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/update.test.ts
# x-pack/plugins/triggers_actions_ui/public/application/lib/alert_api/update.ts
# x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/details.ts
* fix merge conflicts
In 7.13.0, the structure of the connector and rules API libraries in
triggers_actions_ui changed, where in 7.12 they were all in a single
file - one for connectors, one for rules - but in 7.13 they are split
out into separate files in a directory for connectors and one for rules.
To cut down on the noise, I decided to not use the `encodeURIComponent()`
wrappers on rule ids, just connector ids and alert ids, since it's not
possible in 7.12 to have rule ids which are not UUIDs, and so don't need
the encoding.
* fix prettier errors
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>