Commit graph

46999 commits

Author SHA1 Message Date
Pete Harverson 0b14195b69
[ML] Fix deletion of models that are not used by pipelines (#114107)
* [ML] Fix deletion of models that are not used by pipelines

* [ML] Edits from review

* [ML] Fix jest test for index switch in delete job modal

* [ML] Fix API test calls to createTestTrainedModels

* [ML] Remove unnecessary async from jest test
2021-10-07 21:08:13 +01:00
Patrick Mueller e62b752516
[actions] update doc on customHostSettings config (#101768)
Improved the doc on the Kibana config for actions customHostSettings

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-10-07 15:48:29 -04:00
Dominique Clarke c92610deeb
[Observability] [Exploratory View] limit breakdown to one series (#113888)
* observability - exploratory view - limit breakdown to one series

* adjust content

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 15:26:38 -04:00
Madison Caldwell 5e8b816bc5
Use 'max' agg instead of 'top_hits' as we just need the timestamp field now (#113667)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 14:49:24 -04:00
Thomas Watson 250e0d13e8
Bump immer, redux and @reduxjs/toolkit (#110962)
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-10-07 14:34:36 -04:00
garanews 58f6d9002a
Fix typos in docs & dev_docs (#113746) 2021-10-07 14:30:32 -04:00
Tyler Smalley 5e18fb1899 [ci] Fix setup_bazel permissions
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-07 11:27:52 -07:00
Tyler Smalley 4c66da4410
[Bazel] Only persist cache and create build invocations in on-merge pipeline (#114035)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-07 11:19:30 -07:00
Brian Seeders 62dfd2321d
[CI] Add failure count and github issue link to new failed test page (#114138) 2021-10-07 19:18:40 +01:00
Jonathan Budzenski e777ce9e3c add details to skipped test 2021-10-07 11:34:48 -05:00
Jonathan Budzenski 574a978227 skip flaky suite 2021-10-07 11:21:58 -05:00
Joe Portner 64f37e7414
Remove securityOss plugin (#113946) 2021-10-07 17:57:37 +02:00
Byron Hulcher 920ea03829
[App Search] General UX Improvements for Curations and Suggestions (#114213) 2021-10-07 11:32:24 -04:00
Mat Schaffer a5f4304672
Logstash view cleanup fixes (#114218)
* Fix route ordering/duplication

* Take out "IDK" comments

I remember we figured this out last week while pairing :)
2021-10-07 17:07:14 +02:00
Jonathan Budzenski dee9444dcc skip flaky suite, #114249, #114250 2021-10-07 09:51:27 -05:00
Josh Dover d33eb809a2
[Fleet] Report installing status while package install is in progress (#111875)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 16:49:41 +02:00
Thomas Watson 2eff6d0148
Ensure deprecation documentationUrl's point to correct doc branch (#114264)
This was made possible via PR #113600.
2021-10-07 09:57:28 -04:00
Kevin Lacabane 213c342820
[Stack Monitoring] use product names constants (#114096)
* use product names constants

* add missing productName property
2021-10-07 15:25:11 +02:00
Miriam a7fd1e2189
Fix undhandle promise rejection (#114233) 2021-10-07 14:17:04 +01:00
Stratoula Kalafateli 541090deb7
[Charts] Unskips the jest active cursor test suite (#114246) 2021-10-07 15:53:38 +03:00
Dominique Clarke 7f1adb8d95
[Observability] [Exploratory View] only show y axis label for a single series (#113989) 2021-10-07 08:10:46 -04:00
Maja Grubic d65715b6d7
[Field Formatters] Get rid of span ng-non-bindable (#113926)
* [Field Formatters] Get rid of span ng-non-bindable

* Remove span explicitly

* Remove span entirely

* Update src/plugins/field_formats/common/content_types/html_content_type.ts

Co-authored-by: Tim Roes <mail@timroes.de>

Co-authored-by: Tim Roes <mail@timroes.de>
2021-10-07 14:10:18 +02:00
Dario Gieselaar ea160a5072
[APM] Trace generation library (#113764) 2021-10-07 13:04:00 +02:00
Marta Bondyra f50345f8ef
[Lens] Chart is not updating with Refresh button (#114135) 2021-10-07 12:57:38 +02:00
Liza Katz 136eafe5a7
[Fullstory] Report mem usage (#114108)
* memory

* jest test

* typo
2021-10-07 13:49:03 +03:00
Alexey Antonov 3291e85119
[KIbana Utils] createGetterSetter should work with optional plugins (#114128) 2021-10-07 13:47:28 +03:00
Pierre Gayvallet 855d2f1094
Migrate routing and navigation docs to new developer guide (#113919)
* Migrate routing and navigation doc to new doc system

* address feedback
2021-10-07 12:45:15 +02:00
Diana Derevyankina 836abdfc16
Respect external URL allow list in vega (#113720)
* Respect external URL allow list in vega

* Add getExternalUrlsAreNotEnabledError

* Revert moving some code in vega_base_view

* Add externalUrl to vega_base_view.d.ts

* Add throwing errors to prevent from following the link

* Fix condition
2021-10-07 13:11:22 +03:00
Shahzad c2049ed754
[Observability] Move InspectContextProvider and utils to observability (#113842) 2021-10-07 06:05:15 -04:00
Shahzad 380c51ab33
[Exploratory view] Label field filters/breakdowns (#113766) 2021-10-07 11:49:51 +02:00
Dmitry Tomashevich dca5e1ca76
[Discover] persist columns selection after resetting state, taking into account _source column (#114178) 2021-10-07 12:23:55 +03:00
Robert Oskamp f7174809e1
Functional tests - fix retry.waitFor not timing out correctly (#113905)
This PR fixes bugs in test services, where retry.waitForWithTimeout and find.descendantExistsByCssSelector do not time out correctly.
2021-10-07 11:23:33 +02:00
Pablo Machado 95d53a28bb
Add Host Risk metadata data to alerts flyout (#113274)
* Filter out empty values from alert flyout overview

* Add Host Risk metadata data to alerts flyout

* Add feature flag to host risk data query

* Swap investigation guide and enrichment data places in the UI

* Migrate alert_summary_view.test to react testing library

* Refactor threat summary by extracting components and renaming
2021-10-07 11:06:24 +02:00
Bryan Clement a1849bba50
[Osquery] 7.15 osquery bug squash (#113325)
* integration policies fixes

* don't update scheduled query group name while importing pack if there's already a name set

* handle reseting form state on submission error

* nixed the console logging

* fix linting issues

* useFormData instead of getFields

* linter plz

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 10:23:07 +02:00
Anton Dosov 1b8ec4efa8
[Search] Reuse uiSettings within bsearch request (#114088) 2021-10-07 09:51:45 +02:00
Clint Andrew Hall 78021330c7
[fleet][unified integrations] Fix flaky test (#114202) 2021-10-07 09:51:18 +02:00
Shahzad e388648f9d
[Uptime] Move Monitor list histogram to async search (#113528)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 09:48:14 +02:00
David Sánchez 9a31e86c5c
[Security Solution][Endpoint] Display empty state UI on the artifacts subtab of policy details when no trusted application exist (#113802)
* Adds new empty prom when there is no TA or non already assigned one

* Adds policy name to text message

* Fix error in tabs component

* Fix mulilangs in empty state components

* API call that checks if any TA exists with actions and reducers

* Adds current policy id and name to the empty state component instead of a fake ones

* Adds unit test for layout

* Switch empty state depending on results and added unit test

* Fix multilang keys and join code into a hook to avoid duplications

* Fix TS error

* Canges icon

* Fixes pr comments

* Fix ts error in test
2021-10-07 09:33:46 +02:00
Uladzislau Lasitsa 280d1d84b4
Add savedSearchId when we update state with searchSource (#113938)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-07 10:30:03 +03:00
Spencer b9f0965381
[failed-test-reporter/es-config] add new sub-fields in mapping (#114200)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-07 00:12:46 -05:00
Matthew Kime 202980e887
[data views] clarify field subtype typescript types (#112499)
* separate out multi and nested subTypes

* separate out multi and nested subTypes

* add undefined checks

* remove expect error statements

* use helper functions in es-query

* simplify changes with helper functions

* checking existence instead of getting value x2

* simplify types and revert discover changes

* update discover sidebar with helper methods

* try helpers with group_fields file

* try different helper with group_fields file

* revert group field changes, try nested field helpers

* revert nested field changes, try field_name.tsx helpers

* fix maps jest test

* use helpers in discover instead of setting types

* fix field_name.tsx

* Update index_pattern_util.test.ts

* lint  fix

* fix common exports

* reduce data_views plugin bundle size

* reduce data_views plugin bundle size

* remove discover reliance on es-query package

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 23:13:21 -05:00
Nathan Reese a67eef4c31
[Maps] fix typings for optionalPlugins (#114103) 2021-10-06 18:24:28 -06:00
Nathan Reese c2aeac5141
[Maps] do not lazy load setup API methods (#114150)
* [Maps] do not lazy load setup API methods

* remove test code
2021-10-06 18:24:15 -06:00
Scotty Bollinger 758eb157f4
[Workplace Search] Update Source Frequency views to match new designs (#114157)
* Add schema for blocked_windows and blockedWindows type

* Update constants and types

Also changes the size of a spacer

* Update FrequencyItem to new design

* Update BlockedWindowItem to new design

* Update logic file for new designs

It was decided that we would omit the seconds from any API-submitted duration values.

* Add i18n for UTC tooltip

* Better function name

Also moved const closer to function declarations for easier readability

* Add reducers

CI was complaining about types since the method wasn’t used. Was going to add these in a future PR but will add them here so we can merge
2021-10-06 19:46:24 -04:00
Brandon Kobel a4ee087fd7
Reverting to legacy ES client behavior where maxSockets = Infinity (#113644)
* Reverting to legacy ES client behavior where maxSockets = Infinity

* Removing unnused type

* Specifying keepAlive: true by default

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 16:18:58 -07:00
Thom Heymann 94b2e30bd7
Interactive Setup UI enhancements (#113011) 2021-10-06 23:56:42 +01:00
Brian Seeders 4d8d7ee0ad
[buildkite] Several small tweaks and cleanup (#114006) 2021-10-06 18:56:30 -04:00
Jonathan Budzenski 9df3db075f
[config] Remove leading spaces from logging configuration (#114168)
* [config] Remove leading spaces from logging configuration

This is a consistency check with other areas of the stack and other
configurations in kibana.yml.

Part of https://github.com/elastic/kibana/issues/8268

* Update kibana.yml
2021-10-06 17:46:33 -05:00
Andrew Goldstein 530663217c
[Security Solution] Increases code coverage in the timelines plugin (#113681)
## [Security Solution] Increases code coverage in the `timelines` plugin

This PR is the first in a series that increases code coverage in the `timelines` plugin, as part of <https://github.com/elastic/kibana/issues/111581>

### Methodology

1. Code coverage is measured by running the following command:

```
cd $KIBANA_HOME/x-pack && node scripts/jest.js timelines --coverage
```

The above command outputs the following coverage report:

```
kibana/target/kibana-coverage/jest/index.html
```

2. The coverage report is used to determine which paths need coverage, and measure coverage before / after tests are updated, as illustrated by the screenshots below:

**Before (example)**

![file-summary-before](https://user-images.githubusercontent.com/4459398/135690108-f90839b1-1450-4083-b928-5c5d99f1151d.png)

![file-coverage-before](https://user-images.githubusercontent.com/4459398/135690178-be24e716-545f-425f-bcd5-480026fcad1f.png)

**After (example)**

![file-summary-after](https://user-images.githubusercontent.com/4459398/135690267-7e94655f-4852-42f7-8180-8c195dd77e8b.png)

![file-coverage-after](https://user-images.githubusercontent.com/4459398/135690232-63130180-3fa1-4989-ac69-d8af7cc8fc95.png)

### React Testing Library vs Enzyme

- New test files are created using [React Testing Library](https://github.com/testing-library/react-testing-library) by default

- [Enzyme](https://github.com/enzymejs/enzyme) tests will only be used as a fallback when it's not reasonably possible to express the test in React Testing Library

- Code will (still) be instrumented to use `data-test-subj` in alignment with the Kibana [STYLEGUIDE](https://github.com/elastic/kibana/blob/master/STYLEGUIDE.mdx#camel-case-id-and-data-test-subj)

- When possible, the `getByRole` and other [higher priority](https://testing-library.com/docs/queries/about#priority) query APIs will be used in Jest tests, as opposed to selecting via `getByTestId` + `data-test-subj`. This follows the [guidance from React Testing Library](https://testing-library.com/docs/queries/about#priority).

- Note: Jest was already configured to use the `getByTestId` API with `data-test-subj` [here](4a54188355/packages/kbn-test/src/jest/setup/react_testing_library.js (L20))
2021-10-06 16:18:48 -06:00
Brian Seeders 170ed4b0ac
[buildkite] Move PR config into the master branch (#113986) 2021-10-06 22:57:06 +01:00