Commit graph

55254 commits

Author SHA1 Message Date
Jonathan Budzenski
af58ee866d
[build/canvas] Fix runtime generation (#137972)
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>
2022-08-03 14:14:40 -04:00
Nicolas Chaulet
88eae3ef40
[Fleet] Generate dynamic template mappings for field with wildcard in name (#137978) 2022-08-03 14:04:07 -04:00
Nicolas Chaulet
6bd3c73cec
[Fleet] Add force to upgrade openAPI (#138000) 2022-08-03 10:57:52 -07:00
Efe Gürkan YALAMAN
a52d8b31db
Fix table layout issues on indices list (#138013) 2022-08-03 10:49:38 -07:00
Mark Hopkin
9f8a2c603d
[Fleet][Tests] Package install signature verification API tests (#136947)
* 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
2022-08-03 10:34:32 -07:00
Joe Reuter
4c43e9bf3d
[Lens] Add reduced time range option (#136706)
* add window option

* fix bug

* formula integration

* fix stuff and adjust label

* fix bugs in formula

* rename to reduced time range

* add tests and turn warning into an error

* fix i18n

* adjust default phrase

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-08-03 10:32:17 -07:00
Ievgen Sorokopud
e36870bdfd
[Security Solution] Additional look-back time is not working correctly under preview results for advanced query preview (#137517)
* [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>
2022-08-03 19:13:42 +02:00
Christiane (Tina) Heiligers
f5e81ac61f
Migrate core's browser-side saved objects service to packages (#137921) 2022-08-03 10:08:07 -07:00
Efe Gürkan YALAMAN
e3760c580a
[Enterprise Search] Add missing pagination to documents (#137998)
* 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
2022-08-03 18:13:09 +02:00
Melissa Alvarez
b17579afa3
[ML] Explain log rate spikes: Fix data out of date when brush selection changes (#137791)
* 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>
2022-08-03 12:11:15 -04:00
Paul Tavares
8231e0f47f
[Security Solution][Endpoint] Fix Responder page so that it displays correctly when opened on top of full screen content (ex. data grid) (#137918)
* 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
2022-08-03 11:54:24 -04:00
Sandra G
73702ee857
[Infra Monitoring UI] fix query suggestions, add and comment in tests (#137908)
* 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>
2022-08-03 11:48:31 -04:00
Nathan Reese
71eac22b33
[Maps] set border width to zero for points only document layers (#137758)
* [Maps] set border width to zero for points only document layers

* top hits layer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 09:47:57 -06:00
Luke Gmys
eff12ec4d3
[TIP] Support indicator highlight #4463 (#137877) 2022-08-03 17:24:13 +02:00
Julia Bardi
db53455252
catch telemtery error (#137986) 2022-08-03 07:56:39 -07:00
Walter Rafelsberger
cd7578a26e
[ML] Explain Log Rate Spikes: Fix loading behavior. (#137873)
- 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.
2022-08-03 16:43:35 +02:00
Spencer
249b1648b0
[docs] write docs page summarizing the current state of the IDM project (#137915) 2022-08-03 09:19:54 -05:00
Dmitry Tomashevich
dcdb7ca6dd
[Discover] hide cancelled request error (#137690)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 17:19:36 +03:00
doakalexi
05f2072586
[ResponseOps][Alerting] Provide indication of how many rules are using connector on Connector List view (#137181)
* Adding warning message to delete connector pop up

* Adding tests

* Fixing check types error

* Removing field in delete modal

* Cleaning up some of the code

* Updating the text and adding a callout

* Updating copy

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 10:13:24 -04:00
Stratoula Kalafateli
e6ea0a406f
[Lens] Dimension editor design changes (#136544)
* [Lens] Dimension editor design changes

* Add none to timeshift as an option

* Fix tests

* Fix date_histogram test

* Rest changes

* Update gauge viz unit test

* Fix heatmap viz unit test

* Address PR comments

* Some of the changes

* Fix jest test

* Further fixes

* Move to summary to additional row

* Final changes

* Fix hover on advanced accordions

* Replace with eui variables

* Address PR comments

* Fix CI failure

* Fix the translation key

* Update packages/kbn-coloring/src/shared_components/coloring/color_ranges/color_ranges_item.tsx

Co-authored-by: Michael Marcialis <michael@marcial.is>

* Fixed height in terms multifields drag drop

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Michael Marcialis <michael@marcial.is>
2022-08-03 17:02:51 +03:00
Jonathan Budzenski
497e6c36b1
Compress screenshots in home plugin assets (#137689)
* Compress screenshots in home plugin assets

Currently the home plugin provides screenshots of what integrations will
look like when installed.  These are png files with a default (large)
color profile and a width of ~2500.  This converts these screenshots to
webp and a width of 1280, preserving the current aspect ratio.

This drops our distribution size by ~30mb (10%) and improves load times.
In practice these images are asynchronously loaded when an integration
is selected, there's only a marginal impact on specific workflows.  The
cost is somewhat less fidelity on screenshots.

WebP is supported by all browsers we support: https://caniuse.com/webp

I looked into automaing this task, but the more popular libraries appear
to be unmaintained:
https://github.com/imagemin/imagemin
https://github.com/GoogleChromeLabs/squoosh

`exec` on a native package looks like a better option, but requires
updating CI base images and not as easy to integrate in a development
environment.

These screenshots aren't updated frequently, so in the interim I ran the
conversions locally to demo and gather feedback.

```
apt-get install imagemagick
convert screenshot.png -resize 1280x -strip screenshot.webp

convert -version:
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib

```

* remove build globs
2022-08-03 08:40:08 -05:00
Jan Monschke
4e853e028d
feat: add rule.name to global highlighted fields (#137949)
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>
2022-08-03 15:38:58 +02:00
Anton Dosov
3d5632310b
Allow to configure roundUp in date helper of url drilldown (#137874) 2022-08-03 15:33:05 +02:00
Thomas Watson
c5391dc253
Fix check privileges tests (#137936) 2022-08-03 15:28:41 +02:00
Lee Drengenberg
148381bd19
[Archive Migrations] don't use es_archiver/empty_kibana in Shakespeare tests (#137797)
* don't use es_archiver/empty_kibana, speed up steps

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

* revert change to listing page

* revert this change and do in another PR

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 08:17:46 -05:00
Philippe Oberti
47417118fd
[TIP] Add barchart for Indicators page (#137308)
- retrieve aggregated data for barchart
- reuse timeRange and indexPatterns from QueryBar
- add field selector and barchart components

https://github.com/elastic/security-team/issues/4145
2022-08-03 15:07:28 +02:00
Vitalii Dmyterko
ff062cea07
[RAM] replaces savedObjectClient.bulkUpdate with bulkCreate method in RulesClient.bulkEdit (#137593)
## 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
2022-08-03 13:48:46 +01:00
Dzmitry Lemechko
31ad4a3489
delete kbn-scalability-simulation-generator package (#137940) 2022-08-03 14:47:02 +02:00
Dzmitry Lemechko
007e6c5d98
[scalability testing] get ES queries for each single user performance journey (#137895)
* [kbn-performance-testing-dataset-extractor] fetch & save ES queries

* run apm extractor for all journeys

* fix array name

* cleanup ES query, update namings according review

* update naming
2022-08-03 14:46:39 +02:00
Carlos Crespo
62ce378b25
[Stack Monitoring] Add metricbeat errors to Health API response (#137288)
* 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>
2022-08-03 14:29:35 +02:00
suchcodemuchwow
adddf89b38 skip failing test (#137934) 2022-08-03 15:29:06 +03:00
Kevin Logan
b8aaf561da
[Security Solution] Fix issue where Endpoint list page crashes on missing Policy Id (#137788)
* [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>
2022-08-03 05:24:56 -07:00
Liza Katz
af45ef831e
add flexible EBT Performance Metric Schema (#136395) 2022-08-03 15:21:24 +03:00
Jan Monschke
041bd90826
feat: remove empty state from insight accordion (#137872)
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.
2022-08-03 05:17:11 -07:00
Shahzad
40ce451d72
[Uptime] Un-skip rest api test (#137676) 2022-08-03 05:00:27 -07:00
Kurt
5f27051c31
Addressing post-merge feedback on PR #136899 for removing calls to cat APIs and adding functional tests (#137524)
* PR Feedback changes

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

* Changing functional test to use es api instead of esArchiver

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

* Removing unnecessary override

* adding retry

* Changing to use `filter_path` for the api client

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 07:34:44 -04:00
Stratoula Kalafateli
5625156d7f
[Unified search] Removes the tour component of the dataview picker (#137816)
* [Unified search] Removes the tour component which introduces the new dataview picker layout

* Removes unused translations
2022-08-03 14:23:03 +03:00
Stratoula Kalafateli
c0fbd11a8c
[Lens] Fixes a bug in gauges number palette (#137813) 2022-08-03 14:21:56 +03:00
Dominique Clarke
eea8f5e1f9
[Synthetics] prevent origin from being included on legacy Synthetics integration policies (#137919)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2022-08-03 12:05:45 +01:00
Kevin Lacabane
1fcd391d06
account for ccs in indices regex (#137790) 2022-08-03 12:51:59 +02:00
Xavier Mouligneau
fb49ff39b1
[RAM] Fix alert table with new props cases (#137728)
* 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>
2022-08-03 03:22:01 -07:00
Shahzad
c03820a9c0
[Synthetics] Fix license flaky fetch (#137828) 2022-08-03 11:09:23 +01:00
Shahzad
cc328ff6d5
[User Experience App] Pass filters down to page view and page load charts (#137822) 2022-08-03 10:58:00 +01:00
rahuldimri
f048036170
release_note:skip Issue #97976 (#137839)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 11:07:55 +02:00
Miriam
12481bd80b
[APM] Create kibana package for shared svg (#137559)
* [APM] Create kibana package for shared svg

* fix types and build, added readme
2022-08-03 08:12:58 +01:00
Christiane (Tina) Heiligers
b0f5a63c7e
Move deprecations getters test helpers to package (#137793) 2022-08-03 00:10:19 -07:00
Kibana Machine
70b8b56562
[api-docs] Daily api_docs build (#137931) 2022-08-03 14:13:09 +09:30
Jiawei Wu
871cd980ec
Fix rule schedule interval input invalid values (#137632)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-02 17:52:20 -07:00
Nicolas Chaulet
76c55a2d01
[Fleet] Support dynamic_template mappings from object field (#137772) 2022-08-02 20:49:15 -04:00
DeDe Morton
755fad11be
Update Filebeat tutorials to instruct users to enable filesets (#137803) 2022-08-02 16:00:46 -07:00