Commit graph

9624 commits

Author SHA1 Message Date
Melissa Alvarez
31abd6dc28
[ML] DF Analytics creation: switch to includes table (#70009)
* update modelMemoryLimit when hyperParams change

* update functional clone tests

* switch excludes table to includes table

* Job configuration details update

* fix jest tests and types

* fix translations and validate includes fields

* fix functional test

* handle empty includes selection

* switch filter to field_value_toggle_group

* update clone functional test
2020-07-06 13:10:01 -04:00
Sonja Krause-Harder
89dcdbbbee
[Ingest Manager] Update package registry docker image for CI. (#70716)
* Update package registry docker image for CI.

* Adapt to new registry filesystem layout.

* Adjust tests to changed registry behavior.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 18:57:18 +02:00
Nicolas Chaulet
a4485c86c1
[Ingest Manager] Fix agent version check to work with SNAPSHOT versions (#70796) 2020-07-06 12:53:27 -04:00
Jen Huang
cbd39d98a6
[Ingest Manager] Implement concurrency control for package configs (#70680)
* Send SO version field as part of package configs, enforce it during package config update

* Fix typings, extend response error to include optional status code

* Revert unnecessary version fields in tests, fix schema

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 09:45:51 -07:00
Felix Stürmer
2399780d99
[Logs + Metrics UI] Add index names for the new indexing strategy (#70245)
This add support for the new index name patterns `logs-*` and `metrics-*` of the new indexing strategy to the Logs and Metrics UI source configurations in the form of a migration and changed defaults.
2020-07-06 17:37:28 +02:00
Tiago Costa
3250816d02
skip flaky suite (#70818) 2020-07-06 16:13:37 +01:00
Shahzad
353f33297b
[Uptime] Fix detail page down monitor location badge text color (#70778) 2020-07-06 17:09:30 +02:00
Alejandro Fernández
b172b5b777
[Logs UI] move ML job setup UI to a flyout (#68366)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 17:04:23 +02:00
Alison Goryachev
81bd66dcfd
[Rollups] Make telemetry code more resilient (#70152) 2020-07-06 10:58:54 -04:00
Tiago Costa
e0d3022dc9
skip flaky suite (#70727) 2020-07-06 15:56:01 +01:00
Larry Gregory
0673dbde1f
Feature Controls: addressing bugs for enterprise search (#70538)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 10:23:20 -04:00
Søren Louv-Jansen
e298317586
[APM] Fix flaky e2e’s (#70790) 2020-07-06 15:33:17 +02:00
Søren Louv-Jansen
d12a80e232
[APM] Update docs on running API tests (#70765)
* [APM] Update docs on running API tests

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2020-07-06 15:06:29 +02:00
patrykkopycinski
226b4e7067
[Security Solution] Refactor GlobalTime to useGlobalTime hook and cle… (#69345) 2020-07-06 13:36:11 +02:00
Pierre Gayvallet
04aaba80f7
[GS] add savedObjects result provider (#68619)
* create server-side skeleton

* add base implementation & tests

* add unit test for provider

* remove useless contracts

* add preference search option

* implement score from find results

* fix types

* add FTR test

* fix test plugin types

* address ome review comments

* add multi results test

* use `getVisibleTypes`
2020-07-06 13:04:43 +02:00
Madison Caldwell
e429670c35
[Security Solution][Endpoint] Update to new manifest format (without compression) (#70752)
* Stateless exception list translation with improved runtime checks

* use flatMap and reduce to simplify logic

* Update to new manifest format

* Fix test fixture SO data type

* Fix another test fixture data type

* Fix sha256 reference in artifact_client
2020-07-04 19:23:07 -04:00
Lee Drengenberg
c3cacba7e2
logout from transform_poweruser user in after method of transform tests (#70644)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 13:14:18 -05:00
Xavier Mouligneau
78fc9fb585
[SECURITY] Bug fix for topN on draggables (#70450)
* back to normal

* add unit test

* hover issue + indexToAdd issue

* fix unit test

* review II

* fix bug + review

* simplification

* do not update state when component is unmounted

* fix hover action on field name

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 14:08:22 -04:00
Kerry Gallagher
7ec48fd966
[Logs UI] Reorganise log rate anomaly table (#69516)
* Remove top level chart

Remove top level anomalies chart

* Refactor table columns to accomodate new formatting

* Tyical vs actual stats in expanded row

* Format message based on actual vs typical

* Start fleshing out log rate examples endpoint and lib methods

* Use the real document ID for expanded rows so React doesn't re-render content

* Add all data fetching resources for log entry rate examples

* Move log entry example and severity indicator components to a shared location

* Render examples for log rate

* Add severity indicator

* Styling tweaks

* Move horizontal button popover menu to a shared components so log rate table can use it

* Revert "Move horizontal button popover menu to a shared components so log rate table can use it"

This reverts commit f80db5984d.

* Add "view in stream" and "view in anomaly explorer" links

* Hook links into the new context menu component

* Add log column headers and add styling tweaks etc

* Fix translations

* Tweak comments

* Chart tweaks

* Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/expanded_row.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* PR amendments

- Pass href to context menu items
- Fix start and end times used for example logs
- Use "fewer" rather than "less"

* Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/table.tsx

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/log_analysis/results/log_entry_rate_examples.ts

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/log_analysis/results/log_entry_rate_examples.ts

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/log_analysis/results/log_entry_rate_examples.ts

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/log_analysis/results/log_entry_rate_examples.ts

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

* PR amendments

- Fix typechecking
- Add an empty log example column header to account for the context menu
- Add anomaly start time to rows

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2020-07-03 16:57:59 +01:00
Alejandro Fernández
f3573f3bfd
[Logs UI] Logs overview queries for the observability dashboard (#70413) 2020-07-03 16:59:02 +02:00
Joe Reuter
bbda3f99ef
[Lens] Fitting functions (#69820) 2020-07-03 16:15:06 +02:00
Nicolas Chaulet
72b300424b
[Ingest Manager] Improve agent unenrollment with unenroll action (#70031) 2020-07-03 08:23:12 -04:00
Corey Robertson
571a610c7e
Handle timeouts on creating templates (#70635)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 07:41:52 -04:00
Marta Bondyra
a916e0a7c2
[Lens] Add ability to set colors for y-axis series (#70311) 2020-07-03 13:22:47 +02:00
Shahzad
fa2f60e57b
[Uptime] Use elastic charts donut (#70364)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 12:58:42 +02:00
Nicolas Ruflin
d1e6aa7206
[Ingest Manager] Update registry URL to point to snapshot registry (#70687)
With https://github.com/elastic/package-storage/issues/86 we have now 3 registries available: production, staging, snapshot. Our current master snapshot build should point to the snapshot registry. The 7.x and 7.8 branch both should point to the production registry. It means, if someone runs the master snapshot builds, he always has the most recent packages available.

This also ensures, we don't accidentally ship with the production registry. The only time we need to be careful, is when we will branch of 8.x from master. At this stage, we need to switch over the registry in 8.x to prod again.

The registry URL used is: https://epr-snapshot.ea-web.elastic.dev The reasons is that the CDN URL is not deployed yet. As soon as the CDN is available, we should switch it over to : https://epr-snapshot.elastic.co The reason I'm already switching over is to make sure we can use the snapshot branch as soon as possible.
2020-07-03 12:27:33 +02:00
Sébastien Loix
bc1599ef6b
[Composable template] Create / Edit wizard (#70220) 2020-07-03 11:56:17 +02:00
Dario Gieselaar
8bc27ec7ef
[APM] Optimize services overview (#69648)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 11:37:17 +02:00
Jean-Louis Leysens
5159635d5b
[Ingest Pipelines] Load from json (#70297)
* WiP load from json modal ready, need to refactor more stuff

* First iteration of load from JSON functionality

- refactored the pipeline processsors editor components for
  portability
- added CIT for load from json component

* added comment

* update deserialize with tests and make it more fault tolerant

* use flyout footer

* remove console.error and make the json editor a lot shorter

* address PR feedback

- Update form schema and form schema types
- simplify the save handler
- refactor processors_title to processors_header

* remove unused translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 10:43:33 +02:00
Shahzad
f1888cd978
[Rum Dashbaord] Rum selected service view (#70579)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 10:24:40 +02:00
Shahzad
169147ba8c
[Uptime] Prevent duplicate requests on load for index status (#70585) 2020-07-03 10:24:15 +02:00
James Gowdy
97ad58c529
[ML] Changing shared module setup function parameters (#70589)
* [ML] Changing shared module setup function parameters

* changes based on review

* adding comments for documentation

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-03 08:30:17 +01:00
Jen Huang
54348a761e
[Ingest Manager] Add ability to sort to agent configs and package configs (#70676)
* Add sorting params to list endpoints; allow sorting on agent config and package config tables; normalize casing of 'desc' and 'asc'

* Fix es archiver data

* Fix tests
2020-07-02 23:26:56 -07:00
Patrick Mueller
5226ea2112
[Alerting] document requirements for developing new action types (#69164)
* [Alerting] document requirements for developing new action types

resolves https://github.com/elastic/kibana/issues/67864

Adding this to the actions README.md, it should be published as asciidocs at GA.
2020-07-02 23:27:40 -04:00
Yuliia Naumenko
21efd235f7
Fixed adding an extra space character on selecting alert variable in action text fields (#70028)
* Fixed adding an extra space character on selecting alert variable in action text fields.

* Made components for variables to be able to insert the variable by the cursor position

* cleanup

* Added variables support for all components

* update on handle selections for text

* Fixed functional tests
2020-07-02 18:08:14 -07:00
Nathan Reese
ebcec3a904
[Maps] show vector tile labels on top (#69444)
* [Maps] show vector tile labels on top

* experiment with new sort algorithm

* clean up

* remove old sort method

* add unit test for sort layer

* tslint

* clean up

* make labelsOnTop configurable

* tslint

* more tslint

* add another test case for single layer move

* clarify should messages

* fix assert not null operators

* review feedback

* update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 18:50:50 -06:00
Tiago Costa
6c62c686cf
chore(NA): upgrade to lodash@4 (#69868)
* chore(NA): upgrade oss to lodash4

chore(NA): migrate cli, cli_plugin, cli_keystore,  dev, test_utils and apm src script to lodash4

chore(NA): missing file for cli plugin

chore(NA): add src core

chore(NA): es archiver and fixtures

chore(NA): try to fix functional test failure

chore(NA): migrate src/legacy entirely to lodash4 except src/legacy/core_plugins

chore(NA): move legacy core plugins to lodash4

chore(NA): upgrade optimize to lodash4

chore(NA): upgrade to lodash4 on advanced_settings, charts, console and dashboard

chore(NA): migrate to lodash4 on dev_tools, discover, embeddable, es_ui)shared, expressions, home plugins

chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4

chore(NA): missing data upgrades to lodash4

Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4"

This reverts commit 137055c5fed2fc52bb26547e0bc1ad2e3d4fe309.

Revert "Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4""

This reverts commit f7e73688782998513d9fb6d7e8f0765e9beb28d1.

Revert "chore(NA): missing data upgrades to lodash4"

This reverts commit 92b85bf947a89bfc70cc4052738a6b2128ffb076.

Revert "chore(NA): upgrade data plugin to lodash4"

This reverts commit 88fdb075ee1e26c4ac979b6681d8a2b002df74c6.

chore(NA): upgrade idx_pattern_mgt, input_control_vis, inspector, kbn_legacy, kbn_react, kbn_usage_collections, kbn_utils, management and maps_legacy to lodash4

chore(NA): map src plugin data to lodash3

chore(NA): missing lodash.clonedeep dep

chore(NA): change packages kbn-config-schema deps

chore(NA): update renovate config

chore(NA): upgrade vis_type plugins to lodash4

chore(NA): move vis_type_vislib to lodash3

chore(NA): update visualizations and visualize to lodash4

chore(NA): remove lodash 3 types from src and move test to lodash4

chore(NA): move home, usage_collection and management to lodash 3

Revert "chore(NA): move home, usage_collection and management to lodash 3"

This reverts commit f86e8585f02d21550746569af54215b076a79a3d.

chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3

chore(NA): update x-pack test to mock lodash4

Revert "chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3"

This reverts commit 2d10fe450533e1b36db21d99cfae3ce996a244e0.

* chore(NA): move x-pack and packages to lodash 4

* chore(NA): remove mention to lodash from main package.json

* chore(NA): remove helper alias for lodash4 and make it the default lodash

* chore(NA): fix last failing types in the repo

* chore(NA): fix public api

* chore(NA): fix types for agg_row.tsx

* chore(NA): fix increment of optimizer modules in the rollup plugin

* chore(NA): migrate `src/core/public/http/fetch.ts` (#5)

* omit undefined query props

* just remove merge usage

* fix types

* chore(NA): fixes for feedback from apm team

* chore(NA): recover old behaviour on apm LoadingIndeicatorContext.tsx

* chore(NA): fixes for feedback from watson

* Platform lodash4 tweaks (#6)

* chore(NA): fix types and behaviour on src/core/server/elasticsearch/errors.ts

* Canvas fixes for lodash upgrade

* [APM] Adds unit test for APM service maps transform (#7)

* Adds a snapshot unit test for getConnections and rearranges some code to make testing easier

* reverts `ArrayList` back to `String[]` in the painless script within `fetch_service_paths_from_trace_ids.ts`

* chore(NA): update yarn.lock

* chore(NA): remove any and use a real type for alerts task runner

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* chore(NA): used named import for triggers_actions_ui file

* chore(NA): fix eslint

* chore(NA): fix types

* Delete most uptime lodash references.

* Simplify. Clean up types.

* [Uptime] Delete most uptime lodash references (#8)

* Delete most uptime lodash references.

* Simplify. Clean up types.

* chore(NA): add eslint rule to avoid using lodash3

* chore(NA): apply changes on feedback from es-ui team

* fix some types (#9)

* Clean up some expressions types.

* chore(NA): missing ts-expect-error statements

* Upgrade lodash 4 vislib (#11)

* replace lodash 3 with lodash 4 on vislib plugin

* Further changes

* further replacement of lodash3 to 4

* further work on upgrading to lodash 4

* final changes to update lodash

* chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade data plugin public to lodash4

chore(NA): fix typecheck task

chore(NA): fix agg_config with hasIn

chore(NA): assign to assignIn and has to hasIn

chore(NA): upgrade data plugin server to lodash4

chore(NA): new signature for core api

fix(NA): match behaviour between lodash3 and lodash4 for set in search_source

* chore(NA): remove lodash3 completely from the repo

* chore(NA): fix x-pack/test/api_integration/apis/metrics_ui/snapshot.ts missing content

* chore(NA): fix lodash usage on apm

* chore(NA): fix typecheck for maps

* Patch lodash template (#12)

* Applying changes from https://github.com/elastic/kibana/pull/64985

* Using isIterateeCall, because it seems less brittle

* Also patching `lodash/template` and `lodash/fp/template`

* Reorganizing some files...

* Revising comment

* Ends up `_` is a function also... I hate JavaScript

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2020-07-03 01:30:13 +01:00
CJ Cenizal
67c70e762c
Add Snapshot Restore README with quick-testing steps. (#70494) 2020-07-02 16:00:05 -07:00
Jonathan Buttner
20237b8d5b
[EPM] Use higher priority than default templates (#70640)
* Use higher priority than default templates

* Fixing the jest tests
2020-07-02 18:40:39 -04:00
Nathan Reese
23ea7acb15
[Maps] Fix cannot select Solid fill-color when removing fields (#70621)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 16:35:16 -06:00
Spencer
f5b280007f
[kbn/optimizer] only build specified themes (#70389)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-02 15:06:32 -07:00
patrykkopycinski
5fcf803d3d
Fix saved query modal overlay (#68826) 2020-07-02 23:48:41 +02:00
CJ Cenizal
113962e12a
Update component templates list to render empty prompt inside of content container. Show detail panel when deep-linked, even if there are no component templates. (#70633)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 14:47:08 -07:00
Andrew Goldstein
81d26fc9f8
[Security Solution] Renames the Investigate in Resolver Timeline action (#70634)
## [Security Solution] Renames the `Investigate in Resolver` Timeline action

- Renames the `Investigate in Resolver` Timeline action, a follow-up item from the `What's next?` section of https://github.com/elastic/kibana/pull/70111
- Fixes a CSS issue where the icon didn't align with the others on non-default row-heights

## Before

![before-investigate-in-resolver](https://user-images.githubusercontent.com/4459398/86393038-a97eeb80-bc59-11ea-9ba4-449ab20ddd25.png)

## After

![after-analyze-event](https://user-images.githubusercontent.com/4459398/86393050-ad127280-bc59-11ea-8040-7f254b0255b0.png)

Desk tested in:
- Chrome `83.0.4103.116`
- Firefox `78.0.1`
- Safari `13.1.1`
2020-07-02 15:37:42 -06:00
Yara Tercero
6a33a78f31
fix 400 error on initial signals search (#70618)
### Summary

On initial render of the SIEM pages, a 400 error was showing for POST http://localhost:5601/api/detection_engine/signals/search. This PR is a temporary fix for this bug. This initial call is being used to populate the Last alert text that shows at the top of a number of the pages. The reason the size was 0 is because we weren't interested in the signals themselves, just the timestamp of the last alert. Teamed up with @XavierM and it seems to us that the issue is the server side validation. It may be Hapi misreading the 0 as false or our updated validation not accepting size 0.
2020-07-02 17:04:48 -04:00
Nathan Reese
e7749210b4
[Maps] fix unable to edit heatmap metric (#70606)
* [Maps] fix unable to edit heatmap metric

* add comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 14:48:04 -06:00
Søren Louv-Jansen
fa70afb5ef
[APM] Disable flaky useFetcher test (#70638) 2020-07-02 22:34:53 +02:00
Kevin Logan
a921bbf4c2
[SECURITY SOLUTION] Remove unneeded options from default policy, remove Notify user option from UI (#70546) 2020-07-02 16:18:52 -04:00
Chris Cowan
a3e9f39aff
[Metrics UI] Register function for Observability homepage (#70529)
* [Metrics UI] Register function for Observability homepage

* Updating types; removing relative path from appLink

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-02 13:01:18 -07:00
Nicolas Ruflin
5b8fb95d00
Remove the base package from the default packages (#70437)
As the base assets will be shipped by ES directly, the base package is not needed anymore. https://github.com/elastic/elasticsearch/pull/57629

In the future we might reintroduce it to update the installed assets.
2020-07-02 15:46:57 -04:00