Commit graph

42129 commits

Author SHA1 Message Date
Angela Chuang 3a7155eaa1
retry users integration test (#96772) 2021-04-13 09:58:26 +01:00
Angela Chuang 1ec21a5d88
wrap tests with retry (#96764) 2021-04-13 09:53:54 +01:00
Jean-Louis Leysens f31e13c426
[Ingest Pipelines] Migrate to new ES client (#96406)
* - migrated use of legacy.client to client
- removed use of isEsError to detect legacy errors
- refactored types to use types from @elastic/elasticsearch
  instead (where appropriate)

tested get, put, post, delete, simulate and documents endpoints
locally

* remove use of legacyEs service in functional test

* fixing type issues and API response object

* remove id from get all request!

* reinstated logic for handling 404 from get all pipelines request

* clarify error handling with comments and small variable name refactor

* updated delete error responses

* update functional test

* refactor use of legacyEs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 10:51:43 +02:00
Marco Liberati ec62be7ca8
[Graph] Map request failure for text fields with better error message (#96777) 2021-04-13 10:42:19 +02:00
Joe Reuter ebfbe6fc8c
close popover on dragging (#96784) 2021-04-13 09:45:21 +02:00
Christos Nasikas d7a09e4dc5
[Security Solution][Cases] Fix create case flyout on timeline. (#96798) 2021-04-13 09:54:40 +03:00
Shahzad 0da5578182
[Data] Pass field meta to value suggestions api (#96239)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-13 08:19:26 +02:00
Andrew Pease 9a10bcb652
Update README.md - broken params env link (#95820)
## Summary

The link to set the params env was broken.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2021-04-12 20:57:04 -06:00
ymao1 4f6bd31c91
[Alerting] Fixing notifyWhen terminology (#96490)
* Updating terminology

* Updating wording

* Updating wording
2021-04-12 21:12:45 -04:00
Tiago Costa e3f5249c88
chore(NA): @kbn/pm new commands to support development on Bazel packages (#96465)
* chore(NA): add warnings both to run and watch commands about Bazel built packages

* chore(NA): add new commands to build and watch bazel packages

* docs(NA): add documentation about how to deal with bazel packages

* chore(NA): addressed majority of the feedback received except for improved error logging

* chore(NA): disable ibazel info notification.

* chore(NA): remove iBazel notification

* chore(NA): remove iBazel notification - kbn pm dist

* chore(NA): move show_results option to kbn-pm only

* chore(NA): patch build bazel command to include packages target list

* chore(NA): add pretty logging for elastic-datemath

* chore(NA): remove double error output from commands ran with Bazel

* fix(NA): include simple error message to preserve subprocess failure state

* docs(NA): missing docs about how to independentely watch non bazel packages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 20:24:19 -04:00
Nathan Reese c218ba8397
[Maps] only allow sorting on numeric fields for tracks (#96877) 2021-04-12 17:02:03 -06:00
Constance f4bc0d61a1
Update create meta engine button to match create engine (#96884) 2021-04-12 18:55:04 -04:00
Ryland Herrick 39f87f4560
[Security Solution][Timeline] Rebuild nested fields structure from fields response (#96187)
* First pass at rebuilding nested object structure from fields response

* Always requests TIMELINE_CTI_FIELDS as part of request

This only works for one level of nesting; will be extending tests to
allow for multiple levels momentarily.

* Build objects from arbitrary levels of nesting

This is a recursive implementation, but recursion depth is limited to
the number of levels of nesting, with arguments reducing in size as we
go (i.e. logarithmic)

* Simplify parsing logic, perf improvements

* Order short-circuiting conditions by cost, ascending
* Simplify object building for non-nested objects from fields
  * The non-nested case is the same as the base recursive case, so
    always call our recursive function if building from .fields
* Simplify getNestedParentPath
  * We can do a few simple string comparison rather than building up
    multiple strings/arrays
* Don't call getNestedParentPath unnecessarily, only if we have a field

* Simplify if branching

By definition, nestedParentFieldName can never be equal to fieldName, which means
there are only two branches here.

* Declare/export a more accurate fields type

Each top-level field value can be either an array of leaf values
(unknown[]), or an array of nested fields.

* Remove unnecessary condition

If fieldName is null or undefined, there is no reason to search for it
in dataFields. Looking through the git history this looks to be dead
code as a result of refactoring, as opposed to a legitimate bugfix, so
I'm removing it.

* Fix failing tests

* one was a test failure due to my modifying mock data
* one may have been a legitimate bug where we don't handle a hit without
  a fields response; I need to follow up with Xavier to verify.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 17:52:42 -05:00
Scotty Bollinger 4d593bbc08
[Workplace Search] Design polish: Groups, Security and Custom source (#96870)
* Add missing i18n

Oops

* Change button color

* Fix custom source created screen

* Add better empty state to groups

* Align toggle to right side of table

* Update design for security page
2021-04-12 18:27:23 -04:00
Dominique Clarke 22b53029e5
[Uptime] Feature/migrate synthetics to ecs fields (#96369)
* update get_network_events to use ecs fields
2021-04-12 17:49:54 -04:00
Ece Özalp e7ecad7c3b
[CTI] Filters alerts table by presence of threat (elastic/security-team#907) (#96096)
[CTI] Filters alerts table by presence of threat (elastic/security-team#907)
2021-04-12 17:10:36 -04:00
Thomas Neirynck 465734ae99
[Maps] Enable distance filtering on geo_shape (#96832) 2021-04-12 16:34:41 -04:00
Lisa Cawley 5f16bcc155
[docs] minor typo in word (#96684) (#96866)
Co-authored-by: Peter Dyson <peter.dyson@geekpete.com>
2021-04-12 13:31:17 -07:00
Tiago Costa 3f131f5966
skip flaky suite (#89550) 2021-04-12 21:19:26 +01:00
Tiago Costa fb24006545
skip flaky suite (#96788) 2021-04-12 20:54:03 +01:00
Ece Özalp 8bf9e86942
[Security-Solution] Adds Threat Summary and Threat Details tabs to Alert Side Panel (#909) (#95604)
[Security Solution] Adds Threat Summary and Threat Info views to Alert Side Panel (elastic/security-team/909)
2021-04-12 15:31:39 -04:00
Scotty Bollinger 31c1a08384
[Workplace Search] Design polish: Configure and connect source (#96851)
* Update ‘How to add’ view

* Update config completed view

* Update add source connect page

* Remove padding on how to add card

Original had no padding.
2021-04-12 15:28:12 -04:00
Rashmi Kulkarni cf2c62edf8
ccs_discover additional tests (#96669)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:23:46 -07:00
Anton Dosov c4b3dfddcd
[Search Sessions] Implement cancel on search session monitoring task, fetch and process sessions page by page (#96321) 2021-04-12 21:23:22 +02:00
Constance 171f39821a
[App Search] Results follow-up (#96709)
* CSS cleanup

* Refactor ResultActions component + DRY out link behavior

- Create new separate ResultActions component
- Pass actions array through to header and have haeder in charge of conditional visibility / FlexItem wrapper (this matches the other header items)
- shouldLinkToDetailPage: instead of generating custom JSX, just have it be a standard action and append it to the actions array

Link behavior:
- ResultHeaderItem - switch to EuiLinkTo, no need for extra wrapper
- ResultHeader - DRY out unnecessary extra path generation - instead pass down a conditional documentLink instead of a bool

* PR feedback: Fix test name

* PR feedback: unshift

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 15:12:33 -04:00
Mikhail Shustov c2b1769687
Migration v2 waits for yellow cluster (#96788)
* migrator waits for source index to be yellow

otherwise the next  request to Elasticsearch can fail

* unskip integration tests that failed due to a red cluster

* log how much the every step lasts

* use Date.now instead of performance.now migration cannot finish in ms

* update tests

* clean log file before running tests

* fix wrong type

* add an integration test for waitForIndexStatusYellow
2021-04-12 14:38:47 -04:00
John Schulz cb3c4e3a21
[Fleet] support force flag to add/remove package_policies (#96713)
## Summary

Can now pass a `force=true` parameter to add & remove integrations on hosted policies as originally intended [1] & [2]

 * Add `force` param for `POST` `/api/fleet/package_policies` & `/api/fleet/package_policies/delete` to a policy. Update tests to confirm
 * Not strictly required, but "while I was in there"
   * Updated a few places to throw `IngestManagerError` vs `Error` for `400` response vs `500`. Updated tests.
   * removed a few unnecessary `await`s of sync function

[1] https://github.com/elastic/kibana/issues/92426#issuecomment-785092670
[2] https://github.com/elastic/kibana/issues/90445

### Checklist
- [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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 14:05:39 -04:00
Quynh Nguyen e7f5d07963
[ML] Add runtime support for anomaly charts & add composite validations (#96348) 2021-04-12 12:59:57 -05:00
Luca Belluccini 92b98e740f
[DOC] Painless lab enable/disable flag (#95392)
* [DOC] Painless lab enable/disable flag

* Update docs/settings/dev-settings.asciidoc

* Update docs/settings/dev-settings.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:52:04 -05:00
Jason Stoltzfus b4d330219a
[App Search] Add header details to the Result Settings page (#96623) 2021-04-12 13:38:44 -04:00
Jason Stoltzfus baac478ff3
[Enterprise Search] Allow jest script to run on individual files (#96589) 2021-04-12 13:33:45 -04:00
Luca Belluccini 0836e4d67b
[DOC] Index pattern and cluster exclusion examples with CCS (#61256)
* [DOC] Index pattern and cluster exclusion examples with CCS

Providing some examples of using Index Pattern and cluster exclusions with CCS

* Update docs/management/index-patterns.asciidoc

* Update docs/management/index-patterns.asciidoc

* Update docs/management/index-patterns.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:14:03 -05:00
Walter Rafelsberger 9b239f64cd
[ML] Data Frame Analytics: Fix scatterplot matrix boilerplate visibility with no fields selected. (#96590)
Fixes the problem where deselecting all fields for the scatterplot would also hide the UI to do the actual selection. Now, when all fields are removed from the combo box, the UI stays visible, just the scatterplot itself will be hidden.
2021-04-12 13:04:37 -04:00
Vadim Yakhin 47df866223
[Enterprise Search] Add missing and remove redundant breadcrumbs (#96636)
* Workplace Search: Remove redundant Overview breadcrumb from Sources

There is "Source name" breadcrumb that is used for Overview page

* App Search: remove "Overview" breadcrumb from Engine page

So instead of `engines / national-parks-demo / overview (greyed)`
we will have just
`engines / national-parks-demo (greyed)`

* App Search: Add "Engines" breadcrumb to the main App Search page

This needs to be added to 3 states of the page: Normal, Empty and Loading

* Fix failing WS test

* App Search: DRY out SetPageChrome declaration by putting it in header

* Fix failed test "ShallowWrapper::dive() can only be called on components"

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 13:04:06 -04:00
Oliver Gupte eb25c69340
[APM] Moves the transaction type selector to the search bar (#96685)
* [APM] Moves the Transaction type selector to the search bar (#91131)

* - Replaces the prepend label on the search bar with the transaction type selector
- Adds the transaction type selector to the service overview page
- Removes title from the Transactions list page

* removes unused i18n items

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:57:22 -04:00
Luke Elmers c9cd4a0a99
[telemetry] Adds cloud provider metadata. (#95131) 2021-04-12 12:55:44 -04:00
spalger 5879d1fdf7 Revert "docs: ✏️ improve UI actions plugin readme (#96030)"
This reverts commit 7448238444.
2021-04-12 09:35:44 -07:00
Melissa Alvarez 987e9b879e
fix training quick filters (#96500) 2021-04-12 12:29:05 -04:00
Larry Gregory 7e2ffc054e
RFC: Object level security, Phase 1 (#93115)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-04-12 12:27:56 -04:00
Corey Robertson b645fec8b8
[Dashboard] Move all dashboard extract/inject into persistable state (#96095)
* Move all dashboard inject/extract to be part of embeddable persistable state

* Fixes typescript errors

* Remove comments

* Fixes test

* API Doc changes

* Fix integration tests

* Fix functional testS

* Fix unit tests

* Update Dashboard plugin API to get dashboard embeddable renderer

* Fix Types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:25:03 -04:00
Rudolf Meijering f544d8d458
Migrations v2 ignore fleet agent events (#96690)
* migrationsv2: ignore fleet agent events and tsvb telemetry

* migrationsv1: ignore tsvb-validation-telemetry

* Skip fleet test that depends on fleet-agent-events

* Fix typescript errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 18:19:42 +02:00
Paul Tavares b33022f680
[Security Solution][Artifacts] Artifact creation for Endpoint Event Filtering (#96499)
* generate endpoint event filters artifacts
* Add ExperimentalFeature object to the initialization params of ManifestManager
* create event filters artifacts if feature flag is on
* change artifact migration to be less chatty in the logs (also: don't reference Fleet)
2021-04-12 11:58:19 -04:00
Vadim Dalecky 7448238444
docs: ✏️ improve UI actions plugin readme (#96030)
* docs: ✏️ improve UI actions plugin readme

* docs: improve trigger description

* docs: remove unnecessary comma
2021-04-12 17:55:50 +02:00
John Schulz d338f1c3de
Allow integrations of hosted policies to be updated (#96705)
## Summary

Remove the restriction against updating integrations on hosted policies.

I described the current behavior and asked if it should change in [1]. Based on the responses in [2] & [3] and looking back at prior discussion around hosted policies, I don't think updates should be restricted.

Adding or removing integrations is still blocked for hosted policies. Updated API tests to confirm behavior. 


[1] https://github.com/elastic/kibana/issues/76843#issuecomment-816096760
[2] https://github.com/elastic/kibana/issues/76843#issuecomment-816153871
[3] https://github.com/elastic/kibana/issues/76843#issuecomment-816538672

## Screenshots
<details><summary>Current behavior</summary>

<h3>Error about updating integrations of a managed policy</h3>

<img width="1208" alt="Screen Shot 2021-04-08 at 3 23 37 PM" src="https://user-images.githubusercontent.com/57655/114084750-87686880-987e-11eb-91a9-081c45dbe871.png">

<details><summary>via flow A</summary>
<img width="1223" alt="Screen Shot 2021-04-08 at 3 01 32 PM" src="https://user-images.githubusercontent.com/57655/114082826-3a839280-987c-11eb-94d0-151ae93ab523.png">

<img width="1205" alt="Screen Shot 2021-04-08 at 3 13 24 PM" src="https://user-images.githubusercontent.com/57655/114083728-5c314980-987d-11eb-92be-195d7d44c037.png">
</details>

<details><summary>via flow B</summary>
<img width="1221" alt="Screen Shot 2021-04-08 at 3 19 52 PM" src="https://user-images.githubusercontent.com/57655/114084502-3fe1dc80-987e-11eb-8879-57718586ac95.png">
<img width="1198" alt="Screen Shot 2021-04-08 at 3 20 06 PM" src="https://user-images.githubusercontent.com/57655/114084503-3fe1dc80-987e-11eb-9fa9-512210b938cd.png">
</details>

</details>

<details><summary>This PR</summary>
<h3>Successful updates using either form</h3>
<img width="1301" alt="Screen Shot 2021-04-09 at 1 21 02 PM" src="https://user-images.githubusercontent.com/57655/114219370-8f84de80-9938-11eb-9b94-dfbeb18535b2.png">
<img width="1320" alt="Screen Shot 2021-04-09 at 1 05 10 PM" src="https://user-images.githubusercontent.com/57655/114219408-9f9cbe00-9938-11eb-96d2-2918332d1539.png">

</details>


### Checklist
- [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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 11:01:38 -04:00
Marco Liberati 3cf5995022
[Lens] Fix transferable logic to handle newer operations on datasource change (#96617)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 16:56:44 +02:00
Marco Liberati 9bbf1faf4e
[Lens] Rename table dimensions (#96602)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 16:56:24 +02:00
Anton Dosov 60d8fab88d
Document more "xpack.data_enhanced.search.sessions.*" settings (#96542) 2021-04-12 16:49:49 +02:00
Vadim Dalecky 1f9700ec65
feat: 🎸 enable drilldown actions in "edit" mode (#96023)
* feat: 🎸 enable drilldown actions in "edit" mode

* style: 💄 remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 16:44:48 +02:00
Matthew Kime 2ab94f05e1
Index pattern management - fix refresh of index pattern list after delete (#92619)
* refresh id and title list

* add functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 09:27:44 -05:00
Maja Grubic 2d0b32a40a
[Discover] Integration of Runtime Fields editor - edit operation (#95498)
* [Discover] Updating a functional test

* [Discover] Support for edit operation

* Fix unit tests

* Fix typescript

* Fixing failing functional test

* Fixing wrongly commented line

* Uncomment accidentally commented line

* Reintroducing accidnetally removed unit test

* Trigger data refetch onSave

* Remove refreshAppState variable

* Bundling observers together

* Clean state before refetch

* Update formatting in data grid

* [Discover] Updating a functional test

* Adding a functional test

* Fixing package.json

* Reset fieldCount after data fetch

* [Discover] Updating a functional test

* Don't allow editing of unmapped fields

* Fix issues with mobile display

* Allow editing if it's a runtime field

* [Discover] Updating a functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 15:25:50 +01:00