Commit graph

42656 commits

Author SHA1 Message Date
Spencer 9e2e8b9f19
[ftr/esArchiver] disable geo_shape field of maps saved objects in archives (#99119)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 10:36:28 -07:00
Cauê Marcondes b8ba6eaa81
[APM] e2e tests (#99098)
* adding e2e tests

* adding e2e tests

* adding e2e tests

* fixing ci

* fixing ci

* fixing e2e and jest
2021-05-04 13:05:52 -04:00
ymao1 a17d26132a
[Alerting] Handling connectors with missing secrets during rule creation and action execution (#98618)
* [Connectors][API] Updated connectors with enabledAfterImport flag

* fixed functional tests

* added new field to connectors API docs

* added update unit test

* fixed test

* renamed enableAfterImport to isMissingSecrets

* removed onExport

* revert the logic of true/false for isMissingSecrets

* fixed test

* fixed tests

* added unit test

* fixed docs

* fixed import text and button labels

* fixed import text

* fixed text

* Showing placeholder message when connector is missing secrets

* Throwing error on isMissingSecrets = true before executing actions

* Hiding connectors with missing secrets from dropdown

* Checking for connectors with missing secrets during action validation on rule creation/update

* Updating error wording

Co-authored-by: Yuliia Naumenko <yuliia.naumenko@elastic.com>
2021-05-04 12:32:30 -04:00
Sandra Gonzales 886295fc09
update es archive data to not include metrics data (#98495)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 12:09:38 -04:00
Jean-Louis Leysens 27e3657b6f
[Remote clusters] Migrate to new ES client (#98747)
* migrate add cluster route and jest tests

* migrated delete remote clusters route

* migrated the get route

* migrated the update route

* added shared types file

* reduce some test boilerplate

* fix type issues introduced by new types from ES client

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 18:05:09 +02:00
Chris Cowan 83fd34d41c
[Metrics UI] Use the normalized field for CPU usage for Observability Overview (#98995)
* [Metrics UI] Use the noramlized field for CPU usage for Observability Overview

* fixing overview page as well

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 07:40:56 -07:00
Walter Rafelsberger dfcb1794d4
[ML] Transforms: Fix handling of fields with keyword mapping available (#98882)
- For groupby/agg configs, removes the .keyword postfix for the agg name and field name being displayed. The config itself will still use the field name including .keyword.
- For histogram charts, if available, query data using the .keyword field. This enables support for charts for terms when there's both a text and keyword variant.
- Fixes isKeywordDuplicate check for field names with multiple dots in them.
2021-05-04 16:21:27 +02:00
Maja Grubic bc352c033c
[Discover] Request docvalue fields from fields (#98874)
* [Discover] Request docvalue fields from fields

* [Discover] Mimic search source behavior when requesting docvalue fields

* Make typescript play nicely

* Fix failing unit test

* Replace ts-ignore with ts-expect error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 14:56:07 +01:00
Paul Tavares b770a64d67
[Security Solution][Endpoint] Display list of Endpoint Event Filters (#98675)
* PaginatedContent: Show pagination only if we have items
* Updated trusted apps and event filters about info displayed in page title
* Include Add button on page header if entries exist
* EventFilters: Show items using the ExceptionItem component
* Enhance ExceptionItem Card so that optionally we can show Name as well as Modified information on the card
* new set of builders for async resources
* Fix circular dependency causing tests to fail - moved function from inside of `pages/index.tsx`
  (used by outside component that is `import`ed by this same pageto a common pace. Error was:

```
Cannot create styled-component for component: undefined.
```
2021-05-04 09:49:48 -04:00
Thomas Neirynck 55f22da592
[Maps][Alerts] Do not show error when re-opening alert (#98930) 2021-05-04 09:43:36 -04:00
Tiago Costa 9a6c774a3c
skip flaky suite (#98562) 2021-05-04 13:58:31 +01:00
Jean-Louis Leysens 921943c41a
[Inspector] Fix requests JSON editor height on Safari (#99032)
* fix code editor height on safari

* move style to appropriate file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 14:33:16 +02:00
Aleh Zasypkin 5ca77de98e
Pin underscore version to ^1.13.1. (#99170) 2021-05-04 13:56:46 +02:00
Dominique Clarke 16b4f7176d
[Uptime][Synthetics] fleet managed monitor telemetry (#97502)
* add fleet monitor telemetry

* add changes to telemetry json file

* add functional tests

* document telemetry fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 07:48:43 -04:00
Alejandro Fernández Haro 6d22f6f552
[API DOCS] Usage Collection (#98656) 2021-05-04 12:32:11 +01:00
Anton Dosov 6fb2b4ad83
[Search Sessions] Fix display of expired session state in management (#98915) 2021-05-04 12:02:17 +02:00
Mikhail Shustov c815e4cd9b
Use PiT for outdated document search (#98797)
* use PiT for OUTDATED_DOCUEMENT_SEARCH step

* update tests

* fix typo

* fix so migrations unit tests

* TEMP: use wait_for when transformin docs

* add a step to refresh target index if transformed outdated docs

* add unit tests

* refresh before searching outdated docs

* add integration test for outdated docs migration

* add a step to refresh target index if transformed outdated docs

* make query required

* address comments
2021-05-04 05:53:43 -04:00
Marco Liberati d03176e1c3
[Lens] Avoid to have fieldless operations by restored last valid state (#98588)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 11:25:16 +02:00
Ester Martí Vilaseca 8426024f6e
[Metrics UI] Don't mount AlertFlyout and NodeContextPopover when they aren't visible (#99039) 2021-05-04 10:50:12 +02:00
Anton Dosov fda2ad4575
[Search Sessions] Fix search sessions docs link (#98918) 2021-05-04 10:46:45 +02:00
Matthias Wilhelm a67f011212
[Discover] Fix horizontal scrolling of legacy table (#98770)
* Add CSS class to fix scrolling of legacy table

* Add functional test
2021-05-04 10:18:44 +02:00
Liza Katz a2c13a76b6
[Search] use core's sha256, fix cached search abort bug (#98720)
* use core's sha256

* fix bug with aborting first request

* fix types

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 10:35:47 +03:00
Jason Rhodes 7ede7a8eca
Fixes assignment v comparison and null type check in metrics detail page (#95102)
* Fixes assignment v comparison and null type check in metrics detail page

* Updated docs to specify new optional TS generic

* Switches new generic to extending the interface

* Removes previously added core generic type and defaults to unknown

* Reverts unknown change, saves for later

* Reverts unknown/any change for now

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 02:23:54 -04:00
Gloria Hornero 218abe41fe
[Security Solution] adds 'Alert details with unmapped fields' test (#98800)
* adds 'Alert details with unmapped fields' test

* fixes test

* improvements

* fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-04 08:00:36 +02:00
Xavier Mouligneau 8b8d4d83b6
[SECURITY SOLUTION] Fix unmapped field timeline (#99130)
* add unmapped include_unmapped

* bringing back unmapped field timeline

* add unit test
2021-05-04 00:02:38 -04:00
Nathan L Smith f736df990c
Observability alerting flyout and page layout improvements (#99103)
* Make the flyout `s` instead of `m` size
* Remove flyout tabs
* Make flyout description list `compressed`
* Make spacer before description list `s` size
* Use `EuiPageTemplate` on alerts and cases pages.
2021-05-03 20:53:33 -05:00
Constance 992ff93a6e
[Enterprise Search] Refactor shared SchemaErrorsAccordion component (#99069)
* Move SchemaErrorsAccordion to its own folder

+ give it its own export

* Move errors-specific copy to its own file

+ Capitalize ID heading

* [UI polish] Accordion header tweaks

- Fix responsive behavior
- Make Review button more accessible (a within a button is not semantically correct)
- Add <code> markup for field type

* [UI polish] CSS tweaks

- use OOTB EUI CSS classes for borders (see https://elastic.github.io/eui/#/layout/accordion#styled-for-forms)
- tweak spacing
- misc fixes

* [Code polish] Misc cleanup

- Simplify / DRY out props types
- Prefer unique IDs/names over map indexes for React keys
- Improve var names

* Simplify conditional "view" column + misc fixes

- Rename prop to match AS's generateSomePath helpers
- Remove need for itemId - AS should be able to generate its own URL route without it
- Fix accessibility for view column - should be totally hidden to screen readers if not present
- Fix semantics of view link - should be an <a> link not a button

* Update WS's use of SchemaErrorsAccordion
2021-05-03 19:24:52 -04:00
ymao1 582c6c7ae3
[Alerting][Docs] Adding query to identify long running rules to docs (#98773)
* Adding query to identify long running rules to docs

* Wording suggestsion from PR review

* Adding event.provider to query. Allowing copy to console

* Adding note for system privileges

* Adding runtime field to query

* Removing extra dollar sign

* PR fixes
2021-05-03 19:18:13 -04:00
Liza Katz 4d3499822d
[Bug] Fix saved query parsing (#99014)
* Fix saved query parsing

* handle null string
2021-05-04 01:58:06 +03:00
Aaron Caldwell 7a92ea3e10
[Maps][File upload] Add validation check that ensure index name has been provided (#99118) 2021-05-03 18:42:01 -04:00
Jonathan Budzenski c7977614ed
[docs/build] Update build dependencies list (#98545)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 17:04:34 -05:00
Nicolas Chaulet b2a20fc9af
[Fleet] Fix fleet server host port during settings creation (#99084) 2021-05-03 17:42:07 -04:00
Tiago Costa 4af6e9c691
chore(NA): moving @kbn/analytics into bazel (#98917)
* chore(NA): moving @kbn/analytics into bazel

* chore(NA): fix type check for package migration

* chore(NA): fix type check for package migration

* chore(NA): fix type check for package migration

* chore(NA): separate type generating from server code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 22:34:53 +01:00
Aaron Caldwell 58b3c1bf13
Fix malformed geo alerts call to transformResults (#98094)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 17:30:19 -04:00
Constance 292b6d2638
[Enterprise Search] Refactor shared SchemaAddFieldModal component (#99096)
* Move SchemaAddFieldModal to its own folder

+ misc test cleanup - remove unnecessary jest.spyOn in individual tests, it's already in the beforeEach

* i18n fixes

- Move constants to subfolder
- Fix various i18n IDs/var names - modal titles is not a fieldNote title
- Fix an i18n string that should be a FormattedMessage (could have grammar issues otherwise)
- Add missing i18n strings - labels (shared, AS will also use these as column headers) & placeholder
- Import order

* Move formatFieldName util to its own file

- simplify leading/trailing trimming regex
- add unit tests - primarily for documenting regexes & providing examples

* Refactor modal form submission

- See https://elastic.github.io/eui/#/layout/modal#forms-in-a-modal for documentation - form should be submitted via ID & EuiModalFooter form={id}

* Misc props cleanup

- Move optional props to bottom of type list
- Remove unnecessary props (default EUI behavior)
- Data test subj cleanup
- Add missing `disabled` passed prop, add unit test for disableForm prop
2021-05-03 14:29:36 -07:00
Yara Tercero ae2e0766f9
[Security Solution][Timeline] - update flakey timeline cypress tests (#99097)
###Summary

Removes some anti-patterns I introduced in my last PR and makes use of Cypress' chainable pattern that will hopefully help with the flakiness.
2021-05-03 13:34:16 -07:00
Nicolas Chaulet 0401d2f5c8
[Fleet] Remove Agent events saved object and unused types (#98739) 2021-05-03 15:45:01 -04:00
Justin Ibarra 28168714f0
[Detection Rules] Add 7.13 rules (#98975) 2021-05-03 11:43:41 -08:00
Spencer a5c7f6cfdc
[x-pack/build] exclude plugins/*/target when copying source to build (#99009)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-05-03 12:34:16 -07:00
CJ Cenizal 9acdfaaf66
Reintroduce 96111: Provide guidance of "Custom" allocation behavior in ILM (#99007) 2021-05-03 12:29:57 -07:00
Jason Stoltzfus ad9f1c3155
Fixed Search UI route (#99065) 2021-05-03 13:57:39 -04:00
Brian Seeders f404305eaa
[CI] Create a ciGroup just for tests that use Docker (#98535) 2021-05-03 13:53:22 -04:00
Poff Poffenberger da785eae04
Revert "Revert "Add essql search strategy and integrate in canvas (#94754)" (#98841)
* Revert "Revert "Add essql search strategy and integrate in canvas (#94754)""

This reverts commit 0f15a12420.

* Update squel usage to safe-squel

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 12:42:26 -05:00
Tim Sullivan 1ce0cf6f5d
Reporting/Docs: update version of reporting_user deprecation (#98988) 2021-05-03 10:35:12 -07:00
Dima Arnautov 4da34bb0f3
[ML] Fix pagination and sorting on trained models list page (#99061) 2021-05-03 19:28:34 +02:00
Constance 49b6583946
[Enterprise Search] Refactor out IndexingStatus to just a SchemaErrorsCallout (#98969)
* Create new SchemaErrorsCallout component
- will replace IndexingStatus and IndexingStatusErrors

- The concept of "indexing status"/loading no longer really exists, now that schema updates instantly

* Update views to use new SchemaErrorsCallout
- instead of IndexingStatus component

* Remove remaining concepts of an indexing job/loading progress

+ remove /status reindex_job routes, since we no longer need to poll for indexing status

* Remove IndexingStatus components

* Update i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 12:50:27 -04:00
Patryk Kopyciński 3f39f5e275
[Osquery] Fix Live query form errors handling (#99015) 2021-05-03 18:50:07 +02:00
Nathan Reese 85b78711c6
[Maps] add attribution to layer editor (#98328)
* [Maps] add attribution to layer editor

* update sources to getAttributionProvider

* remove attribution UI from EMS_XYZ source

* remove attribution UI from WMS source editor

* clean up

* tslint

* AttributionFormRow jest test

* add migration

* tslint

* i18n fixes

* attribution

* [Maps] Improving design and a11y for attribution layer settings (#38)

* Design and a11y improvements

* Buttons aria labels

* Addressing PR review

* tslint and i18n fixes

* update jest snapshots

* remove placeholder for url

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elizabet Oliveira <elizabet.oliveira@elastic.co>
2021-05-03 10:42:07 -06:00
Tiago Costa 24fd3a1e18
fix(NA): @kbn/babel-code-parser bazel build to link to the local .babelrc config (#99003)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 17:29:14 +01:00
Cauê Marcondes f1365eaa80
[APM] Creating e2e test for Comparison Feature (#98291)
* creating e2e test comparison feature

* fixing test

* comparison e2e tests

* addressing comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 11:59:42 -04:00