Commit graph

55638 commits

Author SHA1 Message Date
Kibana Machine
cae62e11b4
adding retry loop for stack_monitoring kibana_overview a11y test (#137997) (#138130)
(cherry picked from commit 3b0fc945aa)

Co-authored-by: Bhavya RM <bhavya@elastic.co>
2022-08-04 08:58:22 -07:00
Kibana Machine
8e0ce152bf
Fix line visibility for area chart (#138112) (#138126)
(cherry picked from commit eab053dc5f)

Co-authored-by: Uladzislau Lasitsa <vlad.lasitsa@gmail.com>
2022-08-04 08:28:21 -07:00
Kibana Machine
580dacabe2
[Fleet] Fix error pop up on kibana update (#138094) (#138123)
(cherry picked from commit 73805c5457)

Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
2022-08-04 08:21:50 -07:00
Kibana Machine
4c136a5e65 skip failing test suite (#138129) 2022-08-04 11:17:55 -04:00
Kibana Machine
ef222ba128
[ML] Explain Log Rate Spikes: Fix error handling. (#137947) (#138115)
- Errors on the application level were not correctly surfaced in the UI. This PR fixes it by combining "transport" stream errors and application errors in a callout above the analysis results table.
- This also fixes the problem where a partly populated results table would turn empty again when used with the error prop of EUI's table. We now keep the table on display an show the errors above it in the callout.

(cherry picked from commit 70efbf0ea3)

Co-authored-by: Walter Rafelsberger <walter@elastic.co>
2022-08-04 07:35:34 -07:00
Kibana Machine
f3dde77478
Fix unable to open host or user detail pages when their names conflict with tabs (#137719) (#138109)
* Fix Unable to open user detail pages when user names conflict with tabs

* Fix Unable to open host detail pages when host names conflict with tabs

* Preserve tab name on user and host compatibility redirect

(cherry picked from commit 4c690bb3a2)

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
2022-08-04 06:48:53 -07:00
Kibana Machine
a39486710b
rename remediate to self_healing (#137774) (#138103)
(cherry picked from commit 025f6f3ccd)

Co-authored-by: Daniel Ferullo <56368752+ferullo@users.noreply.github.com>
2022-08-04 06:22:49 -07:00
Kibana Machine
3f29c77a9f
[Security Solution] Removes flakiness from Inspect tests (#137959) (#138100)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 19749ded87)

Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2022-08-04 06:14:07 -07:00
Gloria Hornero
eb09e1e936
[Security Solution] Removes flakiness from Inspect tests (#137959) (#138098)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 19749ded87)
2022-08-04 06:07:57 -07:00
Kibana Machine
c9c51fbfba
[ML] Fix the Dashboard saving indicator with Anomaly Swim Lane embeddable (#137989) (#138085)
(cherry picked from commit bd2361d2a4)

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2022-08-04 03:12:30 -07:00
Kibana Machine
19ea9a4ce2
[Security Solution][Detections] fixes timeline setting to None functional test for bulk edit (#137980) (#138079)
## Summary

Improves timeline removal functional test for bulk edit, by setting default timeline properties for rule, that being tested

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

(cherry picked from commit fc4a49532f)

Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
2022-08-04 02:38:07 -07:00
Kibana Machine
73cd3a4fc5
[Security Solution] ML rule preview results button is disabled when ML job is running (#137878) (#138078)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 6e1cac8dad)

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
2022-08-04 02:35:13 -07:00
Kibana Machine
e9a2150547
[Enterprise Search] Don't include hidden/nested documents in document counts for Indices (#137900) (#138066)
(cherry picked from commit 5df2801625)

Co-authored-by: Byron Hulcher <byron.hulcher@elastic.co>
2022-08-03 18:56:43 -07:00
Kibana Machine
4ce946a71c
Fix parallel enable/disable requests ending up in limbo. (#138021) (#138065)
(cherry picked from commit d03c6b5fd6)

Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com>
2022-08-03 18:00:19 -07:00
Kibana Machine
55665bcc42 skip failing test suite (#138050) 2022-08-03 20:51:36 -04:00
Kibana Machine
f9e313b724
Disable analyzer alerts if feature flag disabled (#138032) (#138062)
(cherry picked from commit 1693569ef4)

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
2022-08-03 16:54:57 -07:00
Kibana Machine
4429f3c859
[Enterprise Search] 8.4 copy fixes (#138033) (#138059)
* Fix API integration tile copy

* DRY out new index steps

(cherry picked from commit 9c36b9ac20)

Co-authored-by: Byron Hulcher <byron.hulcher@elastic.co>
2022-08-03 16:40:37 -07:00
Kibana Machine
f8fb5ba0d9
[Security Solution][Alerts] Add new terms rule type telemetry (#137795) (#138057)
* Add new terms rule type ID for telemetry

* Add new_terms in more places, update tests

* Add new_terms to collector

(cherry picked from commit c4407569cd)

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2022-08-03 15:26:51 -07:00
Kibana Machine
59718ce477
[Fleet] Fix flaky package install version integration test (#138034) (#138049)
(cherry picked from commit 319cba32f3)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-08-03 14:59:55 -07:00
Kibana Machine
b625e9ae40
[Actionable Observability] [ResponseOps] Remove view rule details link from the alerts table in the rule details page (#137576) (#138048)
* Remove view rule details link in rule details page

* Renaming and bringing back eslint comment

* Rename id to pageId

* Add missing id in AlertsTableFlyoutBaseProps interface

* Fixing the types to match reality. Not everything is string[]

* Splitting ObservabilityActions from table t-grid; adding tests for AlertsFlyoutBody and ObservabilityActions

* Fixing more mappings

* removing unnecessary reduce

* Changing to unknown type instead of listing all the possible options to match the ES Typescript interface.

* reverting all the type changes

* reverting all the type changes

* Forcing the fixture data to be TimelineNonEcsData[]

* Aliasing id to pageId

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Chris Cowan <chris@elastic.co>
(cherry picked from commit 7f46fde188)

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
2022-08-03 14:18:18 -07:00
Kibana Machine
cfeef835e8
[Fleet][Tests] Add package policy API package verification tests (#138024) (#138047)
* add package policy package verification tests

* Fix types

(cherry picked from commit 02e92387cb)

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2022-08-03 14:16:52 -07:00
Kibana Machine
44d60ef9e8
Reload engines when an Elasticsearch index based engine is deleted (#138001) (#138046)
(cherry picked from commit 595a048128)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-03 14:13:57 -07:00
Kibana Machine
9e9e0d6a68
hasData service fixes and improvements (#137824) (#138043)
* fix has data

* clean up remote cluster comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit e2b85258bf)

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2022-08-03 13:59:28 -07:00
Kibana Machine
a909f16ea3
[Security Solution][Exceptions] - Fix scroll on edit exception flyout (#137492) (#138031)
## Summary

Addresses issue #136942 - when editing exception items with numerous entries, flyout was not scrolling properly.

(cherry picked from commit 8e002ced89)

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
2022-08-03 12:34:57 -07:00
Kibana Machine
2e81f4c1ef
[Fleet] Generate dynamic template mappings for field with wildcard in name (#137978) (#138025)
(cherry picked from commit 88eae3ef40)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-08-03 12:34:26 -07:00
Kibana Machine
b242ba6b8d
[build/canvas] Fix runtime generation (#137972) (#138029)
This fixes an issue with the CI stats plugin using `tapAsync` instead of
`tapPromise`.  It appears that if callback() is not called in
`tapAsync`, the entrypoint is not written to disk.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit af58ee866d)

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2022-08-03 12:26:11 -07:00
Mark Hopkin
7679ff4576
[Fleet][Tests] Package install signature verification API tests (#136947) (#138027)
* add valid signature test package

* add test signatures and readme for signature generation

* mount zip packages as part of tests

* amend README

* Verified package test working

* Rename valid to verified

* Add test for unverified content

* add test for package verified with wrong key

* Check error types in 400 response

* Check saved object keys as part of tests

* Remove wrong_ keys

* use release docker image

* update package path for v2 registry

* force install endpoint package

* fix package policy upgrade on setup test

* formatting

* move back to production registry

* Update all registry configs to use new package directory

* use specific docker image not tag

* fix agent policy tests

* Get latest experimental endpoint version

* skip impossible fleet test

* update synthetics to use same registry image as fleet

* fix telemetry tests

* remove experimental flag from test config

* add force install confirm to synthetics tests

* add origin to expected policy data

* add test subj to force install modal

* Install latest fleet_server package not fixed version

* install latest system pkg

* fix types

* fix deprecated API calls

(cherry picked from commit 9f8a2c603d)

# Conflicts:
#	x-pack/test/fleet_api_integration/config.ts
#	x-pack/test/functional_synthetics/config.js
2022-08-03 12:20:48 -07:00
Kibana Machine
fa022348a6
[Fleet] Add force to upgrade openAPI (#138000) (#138023)
(cherry picked from commit 6bd3c73cec)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2022-08-03 12:04:09 -07:00
Kibana Machine
30bd13db5e
Fix table layout issues on indices list (#138013) (#138022)
(cherry picked from commit a52d8b31db)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-03 11:58:04 -07:00
Kibana Machine
4922f5da53
[Security Solution] Additional look-back time is not working correctly under preview results for advanced query preview (#137517) (#138017)
* [Security Solution] Alerts are not displayed in rule preview graph for custom rule (#137422)

* Review feedback

* Fix CI

* Remove timeframe shifting

* Review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit e36870bdfd)

Co-authored-by: Ievgen Sorokopud <ievgen.sorokopud@elastic.co>
2022-08-03 11:21:44 -07:00
Kibana Machine
01287cbccc
[Enterprise Search] Add missing pagination to documents (#137998) (#138010)
* Adds base FE implementation for documents list

* Add backend for pagination.

* Add tests

* Use pagination instead of meta

* Use 0 indexed pagination

* Fix axe error

(cherry picked from commit e3760c580a)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
2022-08-03 10:21:26 -07:00
Kibana Machine
77678c4c0f
[ML] Explain log rate spikes: Fix data out of date when brush selection changes (#137791) (#138009)
* update run analysis button content when selection changges

* fix brush overlap causing endless rerender

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix resize triggering rerun analysis prompt

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* add comments to getSnappedWindowParameters function

* use memo instead of using component state

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix eslint error and simplify usememo callback

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b17579afa3)

Co-authored-by: Melissa Alvarez <melissa.alvarez@elastic.co>
2022-08-03 10:19:49 -07:00
Kibana Machine
4a7a4d658f
[Security Solution][Endpoint] Fix Responder page so that it displays correctly when opened on top of full screen content (ex. data grid) (#137918) (#138007)
* Additional hooks for checking if content is being displayed in full screen mode

* Add css adjustments to PageOverlay for when it is displayed over full screen content

* new security solution top level stylesheet with overrides for full screen content

* PageOverlay: Ensure that flyouts are displayed correctly in full screen mode

* move css class

(cherry picked from commit 8231e0f47f)

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2022-08-03 10:15:49 -07:00
Kibana Machine
90136903b8
[Infra Monitoring UI] fix query suggestions, add and comment in tests (#137908) (#138006)
* fix query suggestions, add and comment in tests

* test commenting out failing test

* comment out the tooltip test for now

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 73702ee857)

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2022-08-03 09:58:00 -07:00
Kibana Machine
a953c139a4
catch telemtery error (#137986) (#137999)
(cherry picked from commit db53455252)

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2022-08-03 09:05:27 -07:00
Kibana Machine
ab50d01d17
feat: remove empty state from insight accordion (#137872) (#137994)
Since the UI can get quite cluttered with some insight accordions greyed out and some not, we decided (with the design team) to remove the dedicated empty space for now.

(cherry picked from commit 041bd90826)

Co-authored-by: Jan Monschke <jan.monschke@elastic.co>
2022-08-03 09:02:32 -07:00
Kibana Machine
468e8050e7
[ML] Explain Log Rate Spikes: Fix loading behavior. (#137873) (#137996)
- Fixes API messages and loading state to always finish with 100% except when a user cancels the request.
- Fix to never apply loading={true} to the analysis table because it disables hovering events. To indicate loading we have the overall progress bar anyway.
- When the analysis returns no results, instead of an empty table and just the "no data" message, this now hides the table and displays an EuiEmptyPrompt.

(cherry picked from commit cd7578a26e)

Co-authored-by: Walter Rafelsberger <walter@elastic.co>
2022-08-03 08:52:43 -07:00
Kibana Machine
f085a9d39a
feat: add rule.name to global highlighted fields (#137949) (#137985)
This enables quick checks of malware signatures for the new vulnerable driver protection we're shipping in 8.4

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 4e853e028d)

Co-authored-by: Jan Monschke <jan.monschke@elastic.co>
2022-08-03 07:48:46 -07:00
Kibana Machine
863ae32239
Fix check privileges tests (#137936) (#137983)
(cherry picked from commit c5391dc253)

Co-authored-by: Thomas Watson <watson@elastic.co>
2022-08-03 07:38:02 -07:00
Kibana Machine
6fb0959791
[Security Solution] [Analyzer] Use more correct ids from alerts for entity request, clean up some tests (#137370) (#137894)
* Use more correct ids from alerts for entity request, clean up some tests

* Fix cypress tests

* Remove cypress config change

* Update failing cypress tests, address pr comment

* Address pr comment in reality

* Update cypress data to work with analyzer api

* Update alert count in rule tests

* Delete commented code

(cherry picked from commit 2a4c473fdb)

Co-authored-by: Kevin Qualters <56408403+kqualters-elastic@users.noreply.github.com>
2022-08-03 07:09:20 -07:00
Kibana Machine
c01a9c9609
[RAM] replaces savedObjectClient.bulkUpdate with bulkCreate method in RulesClient.bulkEdit (#137593) (#137976)
## Summary

`savedObjectClient.bulkUpdate` method  uses ES _bulk API with `update` action, which doesn’t allow to delete fields from Saved Objects(SO), i.e. overwrite them with undefined
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html

Instead, in this PR it replaced by `savedObjectClient.bulkCreate` with `overwrite=true`, that allows to remove existing fields by complete overwrite of SOs. It results in _bulk API query `index` action

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

(cherry picked from commit ff062cea07)

Co-authored-by: Vitalii Dmyterko <92328789+vitaliidm@users.noreply.github.com>
2022-08-03 06:56:20 -07:00
Kibana Machine
88971dde15
[Stack Monitoring] Add metricbeat errors to Health API response (#137288) (#137975)
* Add metricbeat erros to Health API response

* Fix unit test

* Add integration test scenario

* Small fix

* Small fixes and improving integration test data

* Small refactor of fetchMetricbeatErrors

* Add logging

* Unload metricbeat archive after test finishes up

* Fix data_stream setup function

* Remove manual metricbeat data stream deletion in test teardown in favor of archiver unload

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 62ce378b25)

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
2022-08-03 06:41:25 -07:00
Kibana Machine
1da8d682c5
[Security Solution] Fix issue where Endpoint list page crashes on missing Policy Id (#137788) (#137971)
* [Security Solution] Fix issue where Endpoint list page crashes on missing Policy Id

* pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit b8aaf561da)

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2022-08-03 06:33:22 -07:00
Kibana Machine
46166da467
[Uptime] Un-skip rest api test (#137676) (#137968)
(cherry picked from commit 40ce451d72)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-03 06:08:13 -07:00
Jatin Kathuria
aa34e2e41f
fix add field popover visibility issue (#137588) (#137967)
(cherry picked from commit 4912f3b8dc)
2022-08-03 06:05:57 -07:00
Kibana Machine
988b6eb558
[Lens] Fixes a bug in gauges number palette (#137813) (#137965)
(cherry picked from commit c0fbd11a8c)

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-08-03 05:31:24 -07:00
Kibana Machine
cea98120d2
[Synthetics] prevent origin from being included on legacy Synthetics integration policies (#137919) (#137962)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
(cherry picked from commit eea8f5e1f9)

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2022-08-03 05:16:00 -07:00
Kibana Machine
277b87c8b7
[RAM] Fix alert table with new props cases (#137728) (#137952)
* Remove cases props and try to get it directly inside of the components by passing casesFeatureId instead

* add cases to apm

* fix unit test

* skip test until we are bringingt them back without adding dependency in trigger action UI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit fb49ff39b1)

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2022-08-03 04:45:36 -07:00
Shahzad
be5fe0b665
[Synthetics] Fix license flaky fetch (#137828) (#137953)
(cherry picked from commit c03820a9c0)
2022-08-03 04:34:33 -07:00
Kibana Machine
849b4d67d0
[User Experience App] Pass filters down to page view and page load charts (#137822) (#137951)
(cherry picked from commit cc328ff6d5)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-03 04:09:16 -07:00