Commit graph

42162 commits

Author SHA1 Message Date
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
Alexey Antonov 98f40a216a
[TSVB] Visualize runtime fields (#95772)
* [TSVB] Visualize runtime fields

* fix CI

* Update visualization_error.tsx

* Update build_request_body.ts

* fix group by for table view

* fix issue on switching the index pattern mode

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 09:56:28 -04:00
Shahzad a2c47ef5f5
[Exploratory View]Additional metrics for kpi over time (#96532) 2021-04-12 15:53:53 +02:00
John Schulz c40121151f
[Fleet] UI changes on hosted policy detail view (#96337)
## Summary

Fixes several items from https://github.com/elastic/observability-design/issues/32

- Agent policy detail page
  - [x] Integrations tab: 1a) Show a lock icon with hover tooltip next to host policy name
  - [x] Integrations tab: 7a) hide the "Add integration" button
  - [x] Integrations tab: 7b) hide the "delete integration" action which appears in the [...] actions menu
  - [x] Settings tab: 5a) Do not show the “Delete policy” section for Hosted agent policies
  - [x] Settings tab: 5b) Disable the "name" and "description" inputs
 - Agents detail page
   - [x] 2b) remove the "actions" button in the page header (top right)

## Screenshots

<details><summary>Agent policy detail page - Integrations tab</summary>
<ul>
<li>1a) Show a lock icon with hover tooltip next to host policy name</li>
<li>7a) hide the "Add integration" button</li>
<li>7b) hide the "delete integration" action which appears in the [...] actions menu</li>
</ul>

<h3>Non-hosted policy</h3>
<img width="1186" alt="Screen Shot 2021-04-08 at 1 30 24 PM" src="https://user-images.githubusercontent.com/57655/114071393-0eade000-986f-11eb-847f-0c64c7d2aa5e.png">

<h3>Hosted policy</h3>
<img width="1184" alt="Screen Shot 2021-04-08 at 1 29 26 PM" src="https://user-images.githubusercontent.com/57655/114071389-0eade000-986f-11eb-9501-332509b0a85d.png">

</details>

<details><summary>Agent policy detail page - Settings tab</summary>

<ul>
<li>5a) Do not show the “Delete policy” section for Hosted agent policies</li>
<li>5b) Disable the "name" and "description" inputs</li>
</ul>

<h3>non-hosted policy: items available</h3>
<img width="1209" alt="Screen Shot 2021-04-07 at 1 24 39 PM" src="https://user-images.githubusercontent.com/57655/114069262-cdb4cc00-986c-11eb-84c8-926c98a75d47.png">

<h3>Hosted policy: items hidden / disabled</h3>
<img width="1228" alt="Screen Shot 2021-04-07 at 1 24 23 PM" src="https://user-images.githubusercontent.com/57655/114069259-cdb4cc00-986c-11eb-82fc-39509c6ef9fe.png">

</details>

<details><summary>Agents detail page: 2b) remove the "actions" button in the page header (top right)</summary>

<h4>shown on non-hosted policy</h4>
<img width="1408" alt="Screen Shot 2021-04-08 at 9 55 06 AM" src="https://user-images.githubusercontent.com/57655/114068747-38193c80-986c-11eb-9fb6-b8f9eb77a1d6.png">

<h4>hidden on hosted policy</h4>
<img width="1345" alt="Screen Shot 2021-04-08 at 9 55 31 AM" src="https://user-images.githubusercontent.com/57655/114068748-38b1d300-986c-11eb-9eee-ee15f8acd718.png">

</details>

### Checklist
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)


Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 09:43:06 -04:00
Uladzislau Lasitsa 886d7e0140
Stacked line charts incorrectly shows one term as 100% (#96203)
* set "stacked" mode metric if the referenced axis is "percentage"

* Fixed CI

* Move logic inside chart_option component

* Fixed CI

* Update utils.ts

* Update index.tsx

* Update index.tsx

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 16:16:47 +03:00
Nicolas Chaulet 1de77ccb4e
[Fleet] Create enrollment API keys as current user (#96464) 2021-04-12 08:27:54 -04:00
Marco Liberati d2012c0ce3
[Lens] Make table and metric show on top Chart switcher (#96601)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 14:25:15 +02:00
Tiago Costa a05a66ccce
skip flaky suite (#96691) 2021-04-12 12:49:47 +01:00
Marco Liberati 9946125ab4
[Lens] Hide "Show more errors" once expanded (#96605)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-12 12:30:11 +02:00
Matthias Wilhelm 5a9fc21415
[Discover] Unskip histogram hiding test (#95759)
- improves the test to be no longer flaky
2021-04-12 11:22:07 +02:00
Jonathan Budzenski 51ba5f106d skip flyout test, add linked issue #96708 2021-04-09 13:12:11 -05:00
Jonathan Budzenski d6fa48b2e8 skip copy_to_space_flyout_internal.test.tsx #96708 2021-04-09 13:09:09 -05:00
Pierre Gayvallet 1eea903269
fix config validation (#96502) 2021-04-09 18:27:24 +02:00
Larry Gregory 6970b30f0c
Document telemetry fields for stack security features (#96638) 2021-04-09 16:43:58 +01:00
Liza Katz b099a0bba2
[Partial Results] Move inspector adapter integration into search source (#96241)
* Move inspector adapter integration into search source

* docs and ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-09 18:29:15 +03:00
Dario Gieselaar dfaf3ac8f5
[RAC] Rule registry plugin (#95903)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-09 10:35:44 +02:00
Dario Gieselaar 012f1c199b
[APM] Run precommit tasks sequentially (#96551)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-09 08:57:13 +02:00
Nathan Reese ec070d34ed
[Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert (#96633)
* [Maps] fix Kibana does not recognize a valid geo_shape index when attempting to create a Tracking Containment alert

* tslint

* instead of forcing refresh on getIdsAndTitles, update index pattern service to add saved object to cache when index pattern is created

* simplify title check

* revert unneeded changes

* tslint

* api doc updates

* fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 20:08:10 -06:00