Commit graph

39570 commits

Author SHA1 Message Date
Jonathan Budzenski
c079d76c13
[7.12] [deb/rpm] Fix SysV init scripts (#95018) (#100477)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-24 14:54:32 -04:00
Dzmitry Lemechko
c9cc89b861
[status_page test] use navigateToApp (#100146) (#100178)
# Conflicts:
#	.github/CODEOWNERS
2021-05-14 20:24:50 -04:00
Kibana Machine
22a34602b7
[Uptime] Fix overview flaky tests (#99781) (#100155)
* add retry logic and add describe.only to prepare for flaky test runner

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-05-14 16:37:38 -04:00
igoristic
0da82b0d6f
[7.12] [Monitoring] Checking source node and aggregations before accessing its properties (#98255) (#99428)
* [Monitoring] Checking source node and aggregations before accessing its properties (#98255)

* checking source node

* Fixed types

* Added aggregations check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_ccr_read_exceptions.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_disk_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_memory_usage_node_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_nodes_from_cluster_stats.ts
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_thread_pool_rejections_stats.ts
#	x-pack/plugins/monitoring/server/lib/elasticsearch/shards/get_shard_stats.ts

* Fixed tests
2021-05-12 18:07:27 -04:00
Anton Dosov
d35b8e16cc
[7.x][DOCS] Add a known issue (#96123) to 7.12 release notes (#99617) (#99965)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-05-12 19:42:26 +02:00
Kibana Machine
677cb6dea3
Added CIT test for the fail processor. (#95261) (#99845)
* 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>
2021-05-11 18:42:10 -04:00
Kibana Machine
dac56c149a
Add Component Integration Test for Append Processor (#95001) (#99829)
* 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>
2021-05-11 16:29:05 -04:00
Kibana Machine
7629570c8d
[docs] Remove extraneous backslash (#99802) (#99804)
Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-05-11 09:06:57 -07:00
Vadim Dalecky
164b428484
chore: 🤖 bump numeral-js dependency (#99609) (#99770)
Fixes bing integer formatting bug.

 Closes: #59415
2021-05-11 08:31:43 -04:00
Sergi Massaneda
fb75f67d1c
[7.12] [SecuritySolution] Histogram IP legends error fixed (#99468) (#99650)
* [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>
2021-05-11 07:21:42 -04:00
Jean-Louis Leysens
a6efbb1d09
[Data] Require non-empty object when editing query as dsl (#99366) (#99751)
* require non-empty object when editing query as dsl

* added test for filter editor behaviour

* fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-11 06:10:32 -04:00
Kibana Machine
e3dc563707
[Data] Require non-empty object when editing query as dsl (#99366) (#99752)
* require non-empty object when editing query as dsl

* added test for filter editor behaviour

* fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-05-11 06:08:48 -04:00
gchaps
35c1574154
[DOCS] Adds link between security docs (#99669) (#99721) 2021-05-10 14:53:18 -07:00
Robert Oskamp
cc689700ba
[ML] Functional tests - stabilize slider value selection (#94313) (#99600)
This PR stabilizes the slider value selection during ML functional tests.
2021-05-10 10:46:07 +02:00
Spencer
18a2def754
[ftr] auto assign ciGroupDocker to suites with dockerServers (#99393) (#99540)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/fleet_api_integration/apis/index.js
2021-05-06 18:07:50 -04:00
Kibana Machine
c8f54ee81c
Add Component Integration Test For Common Processor Fields (#97194) (#99530)
* 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>
2021-05-06 17:31:21 -04:00
Vadim Dalecky
9aa071e8fb
fix: 🐛 show string transforms when string type field is picked (#99356) 2021-05-06 13:22:03 +02:00
Kibana Machine
ce04d27ee9
[ftr] validate that suites are not in multiple ciGroups (#99398) (#99417)
* [ftr] validate that suites are not in multiple ciGroups

* remove unused import

* include filename in error message

* remove redundant ciGroup tags

* fix more duplicate ciGroups

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-06 02:02:08 +00:00
igoristic
99a92d4b3b
Fixed aggs parsing error (#99159) (#99422)
# Conflicts:
#	x-pack/plugins/monitoring/server/lib/alerts/fetch_index_shard_size.ts
2021-05-05 20:13:39 -04:00
Christiane (Tina) Heiligers
74c9a34440
Add known issues to saved-objects migrations (#99388)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-05-05 12:43:16 -07:00
James Rodewig
c0b9f973cc
[DOCS] Update Docker run instructions (#99340) (#99364)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
# Conflicts:
#	docs/index.asciidoc
2021-05-05 08:58:00 -07:00
Kibana Machine
7d46d7c93f
[CI] Always set checkoutInfo after git checkout (#99265) (#99294)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-05-04 21:24:05 -04:00
gchaps
1870be1022
[DOCS] Fixes error in examples for migrating plugin code (#99261) (#99292)
* [DOCS] Fixes error in examples for migrating plugin code

* [DOCS] Fixes error in docs update
2021-05-04 16:14:34 -07:00
Melissa Alvarez
f433d5e85c
[ML] Data Frame Analytics results: ensure model evaluation stats are shown (#97486) (#99256)
* ensure we check for NaN and Infinity in eval response

* add unit test
2021-05-04 18:11:10 -04:00
Kibana Machine
a0c87bfcd7
upload artifact when building building Kibana to verify ES (#99254) (#99266)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-04 14:03:53 -07:00
Xavier Mouligneau
c487f7f8da
[7.12] [SECURITY SOLUTION] Fix unmapped field timeline (#99130) (#99213)
* [SECURITY SOLUTION] Fix unmapped field timeline (#99130)

* add unmapped include_unmapped

* bringing back unmapped field timeline

* add unit test

* fix unit test
2021-05-04 16:55:13 -04:00
Patrick Mueller
7166137751
[actions] fix broken doc for responseTimeout setting (#99146) (#99259)
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.
2021-05-04 13:47:25 -07:00
Jean-Louis Leysens
c5be449b59
[Inspector] Fix requests JSON editor height on Safari (#99032) (#99198)
* fix code editor height on safari

* move style to appropriate file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 10:56:06 -04:00
Anton Dosov
2e2afdec48
[Search Sessions] Fix display of expired session state in management (#98915) (#99183)
# Conflicts:
#	x-pack/test/search_sessions_integration/tests/apps/management/search_sessions/sessions_management.ts
2021-05-04 08:35:20 -04:00
Anton Dosov
a4b87bda72
[Search Sessions] Fix search sessions docs link (#98918) (#99169)
# Conflicts:
#	x-pack/plugins/data_enhanced/public/search/sessions_mgmt/components/main.test.tsx
#	x-pack/plugins/data_enhanced/public/search/sessions_mgmt/lib/documentation.ts
2021-05-04 06:55:31 -04:00
Jonathan Budzenski
f47a42d1c5 [docs/build] Update build dependencies list (#98545)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 17:07:17 -05:00
Brian Seeders
fbe6377ccc
[7.12] [CI] Create a ciGroup just for tests that use Docker (#98535) (#99091)
* [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
2021-05-03 16:21:44 -04:00
Dima Arnautov
fb52647084
[ML] Fix pagination and sorting on trained models list page (#99061) (#99082) 2021-05-03 15:29:57 -04:00
Sergi Massaneda
59b716db72
check data present for apm indices to consider it exists on seach strategy (#98940) (#99057)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 13:23:36 -04:00
Michael Olorunnisola
a527dc8e55
[Security_Solution][ Fix alert details table and resolver scroll bug (#98546) (#99053) 2021-05-03 13:02:07 -04:00
Maja Grubic
f8beb1e43b
[7.12] [Discover] Do not set fieldsFromSource when not using fields API (#98575) (#98755)
* [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>
2021-04-30 06:48:59 -04:00
Matthias Wilhelm
8453993f6c
[Discover][doc] Add view document (#92472) (#98717)
*  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>
2021-04-29 01:59:21 -07:00
Poff Poffenberger
f0fa66734f
[Canvas] Replace squel with safe-squel (#97169) (#98659)
* Replace squel with safe-squel

* Update squel import name

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-04-28 15:21:27 -04:00
Kibana Machine
edcbaa146e
[CI] Use a new helper library for consistently cloning the repo (#98555) (#98628)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-04-28 13:13:39 -04:00
dmlemeshko
e8be3204f2
update chromedriver & ms-edge-driver (#98590) (#98616)
# Conflicts:
#	yarn.lock
2021-04-28 12:16:56 -04:00
Walter Rafelsberger
72b7c20e4f
[ML] Transforms/Data Frame Analytics: Fix freezing wizard for indices with massive amounts of fields. (#98259) (#98573)
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.
2021-04-28 08:55:10 -04:00
Kibana Machine
fc39f0a667
always load test fixtures (#98464) (#98578)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-04-28 10:15:09 +00:00
Tiago Costa
2ac7969aad
chore(NA): bump version to 7.12.2 (#98537)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-27 17:17:24 -04:00
Kaarina Tungseth
f9332ca856
[DOCS] Adds the security update to 7.12.1 release notes (#98515) 2021-04-27 12:44:54 -05:00
Kibana Machine
58584017a7
[DOCS] Fix development tests table (#98309) (#98520)
* Fix visualization of consecutive inline code blocks
* Remove trailing '_' from the correct script name

Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-04-27 10:22:27 -07:00
Kaarina Tungseth
09d14520ce
[DOCS] Removes coming tags from 7.12.1 release notes (#97293) 2021-04-27 10:45:30 -05:00
Devon Thomson
45d6133461
Fixed copyTo by only copying explicit input (#98083) (#98371) 2021-04-26 17:52:15 -04:00
Patrick Mueller
61f7cf9225
[7.12] [alerting] encode rule/connector ids in http requests made from alerting UI (#97854) (#98211)
* [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>
2021-04-26 13:56:25 -04:00
Larry Gregory
b468ed7b75
Forbid setting the Location and Refresh custom response headers (#98129) (#98206)
# Conflicts:
#	src/core/server/http/http_config.ts
2021-04-23 17:09:08 -04:00
Jean-Louis Leysens
2860c95fcf
[Console] Fix handling of switching modes & handling of non JSON data (#97983) (#98166)
* fix handling of switching modes, fix handling of non JSON data

* remove json guard since this updates the expandLiteralStrings API
2021-04-23 13:32:38 -04:00