Commit graph

38644 commits

Author SHA1 Message Date
Olivier V
5420177485
Update create.asciidoc (#84046)
The url templates provided for call of the API with space information was missing the /api/ section in it.

(cherry picked from commit 35f1cc16eaa29666d7212402f57ab17858ebc96d)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-01 08:06:19 -08:00
Christos Nasikas
636f91c29a
[Security Solution][Detections] Fix labels and issue with mandatory fields (#84525)
* Fix labeling and bugs

* Improve naming
2020-12-01 18:01:37 +02:00
Joe Portner
a65c12ffa2
Fix flaky test suite (#84602) 2020-12-01 11:01:06 -05:00
Devin W. Hurley
6e80d9fe09
[Security Solution] [Detections] Create a 'partial failure' status for rules (#84293)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-01 10:15:51 -05:00
Tyler Smalley
0b5c55c597 Revert "[Alerting] renames Resolved action group to Recovered (#84123)"
This reverts commit 7dcaff5ddd.
2020-12-01 07:10:09 -08:00
Thomas Watson
920e4fa280
Update code-comments describing babel plugins (#84622) 2020-12-01 15:55:54 +01:00
Steph Milovic
99ea48f401
[Security Solution] [Cases] Cypress for case connector selector options (#80745) 2020-12-01 07:26:01 -07:00
Matthias Wilhelm
7a779007bf
[Discover] Unskip doc table tests (#84564) 2020-12-01 15:16:02 +01:00
Marta Bondyra
9d25669db1
[Lens] (Accessibility) Improve landmarks in Lens (#84511) 2020-12-01 15:03:38 +01:00
Marta Bondyra
a9845c6fc2
[Lens] (Accessibility) Focus mistakenly stops on righthand form (#84519) 2020-12-01 15:02:59 +01:00
Sonja Krause-Harder
c9fc876da1
Return early when parallel install process detected (#84190) 2020-12-01 15:00:15 +01:00
Georgii Gorbachev
80e88cec4d
[Security Solution][Detections] Support arrays in event fields for Severity/Risk overrides (#83723)
This PR changes the behavior of severity and risk score overrides in two ways:

- adds support for arrays in the mapped event fields (so a rule can be triggered by an event where e.g. `event.custom_severity` has a value like `[45, 70, 90]`)
- makes the logic of overrides more flexible, resilient to the incoming values (filters out junk, extracts meaningful values, does its best to find a value that would fit the mapping)
2020-12-01 14:57:53 +01:00
Georgii Gorbachev
c0d7ce7de1
[Security Solution][Detections] Fix grammatical error in validation message for threshold field in "Create new rule" -> "Define rule" (#84490)
Just a simple tweak of the default translation.
2020-12-01 14:50:13 +01:00
Nicolas Chaulet
0ba7d9ca1a
[Fleet] Update agent details page (#84434) 2020-12-01 08:46:57 -05:00
Bill McConaghy
4a7071ea90
adding documentation of use of NODE_EXTRA_CA_CERTS env var (#84578) 2020-12-01 08:03:57 -05:00
Anton Dosov
4cb44d9e33
[Search] Integrate "Send to background" UI with session service (#83073) 2020-12-01 14:01:46 +01:00
Paul Tavares
39ceadd96d
[Fleet] Fix initialization of history instance provided to react-router (#84585) 2020-12-01 07:55:48 -05:00
Søren Louv-Jansen
ba7918a486
[APM] Minor API improvements (#84614) 2020-12-01 13:46:10 +01:00
Matthias Wilhelm
8b2f0cf9d3
[Discover] Fix double fetching of saved search embeddable (#84060) 2020-12-01 12:04:30 +01:00
Gidi Meir Morris
7dcaff5ddd
[Alerting] renames Resolved action group to Recovered (#84123)
This PR changes the default term from “Resolved” to “Recovered”, as it fits most use cases and we feel users are most likely to understand its meaning across domains.
2020-12-01 10:38:28 +00:00
Rudolf Meijering
4507865d10
SavedObjectsRepository.incrementCounter supports array of fields (#84326)
* SavedObjectsRepository.incrementCounter supports array of fields

* Fix TS errors

* Fix failing test

* Ensure all the remarks make it into our documentation

* SavedObjectsRepository.incrementCounter initialize option

* Move usage collection-specific docs out of repository into usage collection plugins readme

* Update api docs

* Polish generated docs
2020-12-01 11:28:45 +01:00
Alexey Antonov
d4c02bb664
[Vega] Filter bar in Vega is not usable with non default index pattern. (#84090)
* [Vega] Filtering is not working

Closes: #81738

* fix CI

* some work

* some work

* add tests for extract_index_pattern

* simplify extract_index_pattern

* fix type error

* cleanup

* Update vega_base_view.js

* Update extract_index_pattern.test.ts

* fix PR comments

* fix some comments

* findByTitle -> getByTitle

* remove getByTitle

* fix vega_base_view

* fix jest

* allow to set multiple indexes from top_nav

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-01 12:10:38 +03:00
Yuliia Naumenko
67564b9776
Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (#84598)
* Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents.

* fixed type check
2020-11-30 19:23:26 -08:00
Constance
5ed39f2fe1
[Enterprise Search] Minor update to Elastic Cloud instructions copy per feedback (#84584)
* Update Elastic Cloud instructions copy

* this is what happens when you go OOO for a week

* Update tests
2020-11-30 15:30:05 -08:00
Josh Dover
d93e21133f
Add application deep links to global search (#83380) 2020-11-30 15:54:52 -07:00
Tiago Costa
6e8895403a
chore(NA): tool to find plugins circular dependencies between plugins (#82867)
* chore(NA): update gitignore to include first changes from moving into a single package.json

* chore(NA): update gitignore

* chore(NA): move all the dependencies into the single package.json and apply changes to bootstrap

* chore(NA): fix types problems after the single package json

* chore(NA): include code to find the dependencies used across the code

* chore(NA): introduce pure lockfile for install dependencies on build

* chore(NA): update clean task to not delete anything from xpack node_modules

* chore(NA): update gitignore to remove development temporary rules

* chore(NA): update notice file

* chore(NA): update jest snapshots

* chore(NA): fix whitelisted licenses to include a new specify form of an already included one

* chore(NA): remove check lockfile symlinks from child projects

* chore(NA): fix eslint and add missing declared deps on single pkg json

* chore(NA): correctly update notice

* chore(NA): fix failing jest test for storyshots.test.tsx

* chore(NA): fix cypress multi reporter path

* chore(NA): fix Project tests check

* chore(NA): fix problem with logic to detect used dependes on oss build

* chore(NA): include correct x-pack plugins dep discovery

* chore(NA): discover entries under dynamic requires on vis_type_timelion

* chore(NA): remove canvas

* chore(NA): add initial code to find circular deps

* chore(NA): ground work to integrate the circular deps scripts

* chore(NA): add correct filtering to find circular dependenices feature

* chore(NA): add ci mode flag into circular deps script

* chore(NA): feature complete circular dependencies detect script

* chore(NA): merge and solve conflicts with master

* chore(NA): remove unwanted changes

* chore(NA): remove unwanted changes on kbn storybook

* chore(NA): hook find circular deps tool into ci

* chore(NA): remove previous find plugin circular deps script

* chore(NA): add type for circular dep list

* chore(NA): add type for circular dep list for allowed list

* chore(NA): allow CI to fail check

* chore(NA): update deps allowed list

* chore(NA): run search circular deps script over examples too

* docs(NA): adds cli description

* chore(NA): use plugin search paths to build entries to find circular deps

* chore(NA): update allowed list

* chore(NA): snapshot update for kbn optimizer test

* chore(NA): update dpdm version

* chore(NA): remove thirdParty flag

* chore(NA): update docs to include info about the new tool

* docs(NA): update to link PR instead of the issue

* chore(NA): update debug logs to always output allowedList

* fix(NA): correctly list found differences number

* chore(NA): remove quiet flag

* fix(NA): correctly fail the CI if circular deps are found

* chore(NA): complete list of found circular deps

* chore(NA): used named capturing group into the regex

* docs(NA): update typescript best practices docs and styleguide

* chore(NA): introduce quick filter option flag

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 22:19:32 +00:00
Matthew Kime
e97aa520c5
[visualizations] get index pattern via service instead of saved object (#84458)
* embeddable - get index pattern via service instead of saved object
2020-11-30 14:34:01 -06:00
Paul Tavares
7ba6c73a71
[Fleet] Default Integration Policy Configuration section is only shown if no UI extension is registered (#84534)
* Do not render out-of-box integration policy configuration step if a custom UI extension is registered
* Remove endpoint specific logic from fleet and move it to UI extension
2020-11-30 14:17:19 -05:00
ymao1
69845cc161
Fixes Failing test: X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts - alerting api integration security and spaces enabled Alerts alerts "before all" hook in "alerts" (#84255)
* Unskipping update test

* Changing order of tests

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 13:41:41 -05:00
Mikhail Shustov
cb0a3595a3
[Core] mark legacy ES client methods deprecated (#84358)
* mark context ES client & ES client methods deprecated

* update docs

* improve comment
2020-11-30 19:15:17 +01:00
Mikhail Shustov
1ec2f1d078
Cleanup tsconfig files (#84396)
* remove unused "paths" from tsconfig

* remove unused test utils, import get-url from kbn/test

* dont pollute globals with jest when importing getUrl

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 19:12:00 +01:00
Bill McConaghy
614c85828d
[DOCS] better explanation of backup/key rotation for encryption key (#84529)
* better explanation of backup/key rotation for encryption key

* clarifying failure reason in lost key scenario

* fixing typo
2020-11-30 13:04:42 -05:00
Dima Arnautov
f39da3e680
[ML] Persisted URL state for Data Frame Analytics Exploration page (#84499)
* [ML] store query string in the URL state

* [ML] query state for the config step

* [ML] pagination in the URL state

* [ML] persisted URL state for outlier results exploration

* [ML] update URL generator

* [ML] do not update the url state when query string hasn't been changed

* [ML] store expandable panels state in the URL

* [ML] fix TS issue

* [ML] fix TS issue
2020-11-30 18:54:15 +01:00
renovate[bot]
647b9914c9
Update dependency @elastic/charts to v24.2.0 (#84223)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-30 18:42:34 +01:00
Gidi Meir Morris
bc1fd6ceb8
[Alerting] fixes buggy default message behaviour (#84202)
This PR addresses some weird UX we've identified with default values in Action Params components and their inferred defaults when placed inside of an Alerts flyout.
Key changes:

1. Typing of these components has been corrected to reflect that we expect these parameters to only be _partial_, as the form is used to set these values (for example, the `message` field of the Server Log action, might or might not be set, so it should be nullable, but in the typing we treated it as the _final_ valid state, which is message not being nullable).
2. When a default message is set by the params components, the are tracked against the value of the default, which means that if the default changes, then so will the value in the field. Custom values provided by the user will not be overridden when the default changes. This has to be handled by the component itself at the moment (hopefully in the future we can make this a concern of the flyout and not each component).
3. The concept of the "Recovered" action group has been removed from these components - that's an Alerting concern, not actions, and shouldn't appear in the action components' code.
2020-11-30 17:16:04 +00:00
Tim Roes
c48428ed22
[Graph] Use new ES client and change license API (#84398)
* Remove deprecated Graph licensing methods

* Use new elasticsearch client

* fix typing error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 18:08:58 +01:00
Kaarina Tungseth
7ea2645704
[DOCS] Adds redirect to known plugins page (#84001) 2020-11-30 10:44:26 -06:00
Nathan Reese
a8d5b778ee
Update IndexPatternSelect to get fields from indexPatternService instead of savedObject attributes (#84376)
* Update indexPatternSelect to get fields from indexPatternService instead of savedObject attributes

* keep original search implemenation

* import from public

* remove unused code

* API updates

* review feedback
2020-11-30 09:40:45 -07:00
Jonathan Buttner
a82ebf8b25
Adding timestamps to created events so the sorting is stable (#84515) 2020-11-30 11:20:23 -05:00
Kaarina Tungseth
480a99381d
[DOCS] Redirects for drilldown links (#83846)
* Fixes lGo to URL links

* Fixes links pt 2

* Added redirects

* Added Lens and reformatted redirects

* Removed lens and fixed broken links

* Fixes to URL drilldowns link

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 10:18:11 -06:00
Paul Tavares
707dbcd2b1
[Fleet] Support for showing an Integration Detail Custom (UI Extension) tab (#83805)
* Support for rendering a custom component in Integration Details
* Refactor Fleet app initialization contexts in order to support testing setup
* New test rendering helper tool
* refactor Endpoint to use mock builder from Fleet
2020-11-30 11:12:39 -05:00
Scotty Bollinger
eee05ad82a
[Enterprise Search] Migrate shared Schema components (#84381)
* Migrate shared Schema components

These components were not changed, with the exception of lint fixes and TypeScript changes (adding types). The only exceptions are:

1. The `formatFieldName` in `SchemaAddFieldModal`. In `ent-search`, this was a shared util, but since it was not used anywhere else, I just added the method as a function in this component.

2. The `IFieldCoercionErrors` interface is only used here so I did not add it to the shared types file and instead jut added it to this component.

* Use EuiLinkTo instead of Link

* Add unit tests

* Better test for `hideName`

Coverage was fine but wasn’t actually testing correctly

* Add i18n

* FIx test that didn’t pass eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 10:03:47 -06:00
Matthias Wilhelm
0017c2df1c
[Discover] Unskip date_nanos and shard links functional tests (#82878) 2020-11-30 16:56:50 +01:00
Cauê Marcondes
416dbde54b
[APM] ML anomaly detection integration: Displaying anomaly job results in the Transaction duration chart is not as intended (#84415)
* adding anomalies to transaction duration chart

* removing extra :

* fixing test

* addressing pr comments

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 16:18:34 +01:00
Alison Goryachev
7691184184
Support for painless language autocomplete within monaco (#80577) 2020-11-30 10:14:33 -05:00
Joe Reuter
6828859cac
[Lens] Time scale ui (#83904) 2020-11-30 16:08:19 +01:00
Bill McConaghy
3af64cac34
removing beta callouts (#84510) 2020-11-30 09:56:00 -05:00
Marta Bondyra
f23d2e6ea1
[Lens] (Accessibility) add aria-label to chart type icon (#84493) 2020-11-30 15:45:26 +01:00
Bohdan Tsymbala
de5edaa278
Trusted Apps signer API. (#83661)
* Separated out service layer for trusted apps.

* Improved the type structure a bit to avoid using explicit string literals and to add possibility to return OS specific parts of trusted app object in type safe manner.

* Added support for mapping of trusted app to exception item and back.

* Changed schema to support signer in the API.

* Renamed utils to mapping.

* Exported some types in lists plugin and used them in trusted apps.

* Added tests for mapping.

* Added tests for service.

* Switched deletion to use exceptions for not found case.

* Added resetting of the mocks in service layer tests.

* Added handlers tests.

* Refactored mapping tests to be more granular based on the case.

* Restored lowercasing of hash.

* Added schema tests for signer field.

* Removed the grouped tests (they were split into tests for separate concerns).

* Corrected the tests.

* Lowercased the hashes in the service test.

* Moved the lowercasing to the right location.

* Fixed the tests.

* Added test for lowercasing hash value.

* Introduced OperatingSystem enum instead of current types.

* Removed os list constant in favour of separate lists in places that use it (each place has own needs to the ordering).

* Fixed the missed OperatingSystem enum usage.
2020-11-30 15:42:31 +01:00
Pierre Gayvallet
b99abe301a
increase stdout max listeners for legacy logging (#84497)
* increase stdout max listeners for legacy logging

* add missing packages to CODEOWNERS
2020-11-30 15:32:59 +01:00