Commit graph

34383 commits

Author SHA1 Message Date
Oliver Gupte
7d44d022c9
[APM] Adds 'Anomaly detection' settings page to create ML jobs per environment (#70560)
* Adds 'Anomaly detection' settings page along with require API endpoints
to list and create the apm anomaly detection jobs per environment.
Some test data is hardcoded while the the required changes in the ML
plugin are in flight.

* Converts the environment name to a compatible ML id string and persist
in groups array. Also adds random token to the job ID to prevent
collisions for job ids where diffferent environment names convert to the
same string

* - Improve job creation with latest updates for the `apm_transaction` ML module
- Implements job list in settings by reading from `custom_settings.job_tags['service.environment']`
- Add ML module method `createModuleItem` for job configuration
- Don't allow user to type in duplicate environments

* Update x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/add_environments.tsx

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* Update x-pack/plugins/apm/public/components/app/Settings/anomaly_detection/index.tsx

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* UX feedback, adds i18n, and handles failed state for ML jobs fetch.

* - Moves get_all_environments from agent_configuration dir to common dir
- makes the 'all' environment name ALL_OPTION_VALUE agent configuration-specific
- replace field literals with constants

* PR feedback

* Adds support to create jobs for environment which are not defined.

* Fixes description copy, rearranges settings links, and makes sure the 'Not defined' option is disabled if it already exists.

* Only show "Not defined" in environment selector if there are actually
documents without service.environment set

* get the indexPatternName for the ML job from the set of user-definned indices

* updated job_tags type definition

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-07 13:30:14 +02:00
Tim Roes
aa99a702fb
Forbid timezones not working in Elasticsearch (#70780)
* Permit timezones not working in Elasticsearch

* Fix functional tests

* Use timezone without summer time for test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-07 12:33:37 +02:00
James Gowdy
f18002c3cd
[ML] Adding peak_model_bytes to model size stats type (#70825)
* [ML] Adding peak_model_bytes to model size stats type

* adding formatter
2020-07-07 09:24:40 +01:00
Sébastien Loix
053b922b7c
[Composable template] Details panel + delete functionality (#70814) 2020-07-07 09:58:00 +02:00
Shahzad
77e40199b8
[Uptime] Ping list body scroll (#70781) 2020-07-07 09:22:09 +02:00
Peter Pisljar
dfeb60b5ee
moving indexPattern.delete() to indexPatterns.delete(indexPattern) (#70430) 2020-07-07 09:21:00 +02:00
Matthias Wilhelm
4257afad1b
Adapt expected response of advanced settings feature control for cloud tests (#70793) 2020-07-07 07:27:12 +02:00
Tiago Costa
f62f3e3727
skip flaky suite (#70885) 2020-07-07 05:34:02 +01:00
Tiago Costa
468201acf3
skip flaky suite (#67814) 2020-07-07 05:22:48 +01:00
Tiago Costa
79e5a07bdc
skip flaky suite (#70906) 2020-07-07 05:16:58 +01:00
Melissa Alvarez
c5eab1021f
Revert "reenable regression and classification functional tests (#70661)" (#70908)
This reverts commit a9b543d9bc.
2020-07-06 23:09:26 -04:00
Yuliia Naumenko
438e905800
Added UI validation when creating a Webhook connector with invalid URL (#70025)
* Added UI validation when creating a Webhook connector with invalid URL

* fixed tests

* Fixed due to comments

* fixed type check and extended error message for invalid URL

* Fixed whitelisting of URL

* fixed failing tests

* fixed str
2020-07-06 17:35:47 -07:00
Robert Austin
610bff1269
[Security Solution] Change default index pattern (#70797)
* [Security Solution] Change default index pattern

Add `logs-*` to the Security Solution default index pattern. This should
allow the app to recognize events from the Elastic Endpoint.
2020-07-06 19:52:58 -04:00
Yuliia Naumenko
57915e1641
ServiceNow push to Incident generic implementation (supporting both Case specific and generic Alerts) (#68464)
* Draft ServiceNow generic implementation

* simple working servicenow incident per alert

* fixed running times

* rely on externalId for update incident on the next execution

* Added consumer to the action type to be able to split ServiceNow for Cases and Alerts

* Added subActions support for ServiceNow action form

* Basic version for Alerts part for ServiceNow

* Keep Case ServiceNow functionality working

* Revert changes on app_router

* Fixed type checks

* Fixed language check issues

* Fixed actions unit tests

* Fixed functional tests

* Fixed jest tests

* fixed tests

* Copied case mappings to alerting plugin

* made consumer optional

* Cleanup tests

* more cleanup

* Fixed jest tests and type checks

* fixed tests

* fixed servicenow validation tests

* Added ServiceNow unit tests

* Removed consumer for actions

* fixed client side isCaseOwned support

* fixed failing tests

* fixed jest tests

* Fixed URL validation

* fixed due to comments

* fixed tests

* fixed jest tests

* Fixed due to comments. Moved ServiceNow filtering in case plugin to server side

* fixed mock for ServiceNow

* fixed consumer config

* fixed test

* fixed type check

* Fixed jest test

* fixed type check
2020-07-06 16:38:45 -07:00
Candace Park
5992424312
add button link to ingest (#70142)
update security solution empty page
2020-07-06 18:52:00 -04:00
Melissa Alvarez
a9b543d9bc
reenable regression and classification functional tests (#70661) 2020-07-06 18:40:12 -04:00
Alison Goryachev
e35a42aa07
[Component templates] Form wizard (#69732) 2020-07-06 18:14:59 -04:00
Sandra Gonzales
2eb0896415
[Ingest Manager] Copy changes (#70828)
* update overview page

* remove streams column from config table

* fleet name chanegs

* remove unused component

* update translations
2020-07-06 18:07:29 -04:00
Bhavya RM
94a18fda5d
Adding test user to maps functional tests - PR 1 (#70649)
adding test user to pr 1 of maps functional tests.
2020-07-06 17:51:27 -04:00
Jen Huang
7debf4dd9f
[Ingest Manager] Support limiting integrations on an agent config (#70542)
* Add API endpoint and hook for retrieving restricted packages

* Filter out restricted packages already in use from list of integrations available for an agent config

* Allow list agent configs to optionally return expanded package configs, re

* Filter out agent configs which already use the restricted package already from list of agent configs available for an integration

* Allow more than 20 agent configs to be shown

* Rename restricted to limited; add some common methods to DRY

* Add limited package check on server side

* Adjust copy wording

* Fix typings

* Add some package config api integration tests, update es archive mappings

* Move test to dockerized integation tests directory; move existing epm tests to their own directory

* Remove extra assignPackageConfigs() - already handled in packageConfigService.create()

* Review fixes

* Fix type, reenabled skipped test

* Move new EPM integration test file
2020-07-06 14:12:15 -07:00
Tiago Costa
c5dd942b72
Merge remote-tracking branch 'upstream/master' 2020-07-06 22:09:54 +01:00
Tiago Costa
ad20a17bc6
skip flaky suite (#70880) 2020-07-06 22:09:19 +01:00
Zacqary Adam Xeper
11cfe80020
[Metrics UI] Fix a bug in Metric Threshold query filter construction (#70672)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 15:33:27 -05:00
Spencer
eb84503d8a
upgrade caniuse-lite database (#70833)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-06 12:56:26 -07:00
John Schulz
ee0653658d
Remove the legacy Ingest Manager plugin. (#65534)
The last thing we were using from it was configuring a static assets directory (which is only use for the EPM Integrations header graphic).

This is now provided by platform and is not configurable da28df5b15/src/core/MIGRATION.md (L1344)

Moved the header assets to the new directory & updated the `toAssets` helper
2020-07-06 15:49:14 -04:00
Sandra Gonzales
984ea0700e
[Ingest Manager ] prepend kibana asset ids with package name (#70502)
* prepend asset ids with package name

* fix type

* cleanup

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 15:46:30 -04:00
Sandra Gonzales
b8591bc948
change user facing text Data streams to datasets (#70840) 2020-07-06 15:38:21 -04:00
MadameSheema
cd50899493
fixes and unskips 'export rule' test (#70699)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 21:26:34 +02:00
MadameSheema
7b0e9dfe9a
[SIEM] Unskips and fixes 'Detection rules, custom' test (#70693)
* unskips and fixes 'Detection rules, custom' test

* deletes comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 21:25:52 +02:00
Melissa Alvarez
a4340f0ece
[ML] DF Analytics: add ability to edit job for fields supported by API (#70489)
* wip: add edit action to dfanalytics table

* add update endpoint and edit flyout

* show success and error toasts. close flyout and refresh on success

* show permission message in edit action

* update types

* disable update button if mml not valid

* show error in toast, init values are config values

* fix undefined check for allow lazy start

* prevent update if mml is empty
2020-07-06 15:10:01 -04:00
Jonathan Buttner
321fb871cc
[EPM][Security Solution] Implementing dataset component templates (#70517)
* Implementing dataset component templates

* Fixing test

* Temporary fix to include timestamp with any component template created

* Update package registry docker image for CI.

* Adapt to new registry filesystem layout.

* Adjust tests to changed registry behavior.

* Adding a test for mappings and settings overrides

* Wrap all the tests in the docker check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sonja Krause-Harder <sonja.krause-harder@elastic.co>
2020-07-06 15:09:35 -04:00
Xavier Mouligneau
da602fc783
fix nav link to be hidden and update access tag (#70607) 2020-07-06 14:25:56 -04:00
Spencer
44925311fc
Fix kbn/optimizer tests (#70827)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-06 11:13:17 -07:00
Diana Derevyankina
bd952721a4
Convert tag cloud tests to jest (#70066)
* Convert tag cloud tests to jest

* Add mocks to test_utils and remove tests from legacy

* Revert changes made by accident

* Update tag_cloud_visualization.test.js

* Update tag_cloud.test.js

* Update jsdom_svg_mocks.ts

* Add restoring previous value to window.SVGElement.prototype.transform

* Get rid of some deep imports

* Reimport jsdom_svg_mocks functions from test_utils/public

* Get rid of ExprVis by inlining some of its params to vis object

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-07-06 21:02:26 +03:00
Octavio Ranieri
21af99c9b9
[Canvas] Fix falsey/null value bug for dropdown choices (#69290)
* Fixed falsey/null value bug for dropdown choices

* Filter only null and undefined values

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-06 14:49:56 -03:00
Brandon Morelli
5b5aa70df7
docs: add annotation user docs (#70265) 2020-07-06 10:36:44 -07:00
Melissa Alvarez
93bae2284c
[ML] DF Analytics: adds prompt for destination index pattern creation (#70651)
* add warning if create index not selected

* create indexPrompt component and set needsDestIndexPattern

* translation for prompt text and link

* create indexPattern text to warning color
2020-07-06 13:23:28 -04:00
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
Vadim Dalecky
f28d4e920e
Clean-up expression "run" methods (#70795)
* chore: 🤖 remove legacy "interpret" methods in expressions

* fix: 🐛 correctly use the moved "interpret" method

* feat: 🎸 pass through execution context to sub-expressions

* chore: 🤖 remove not used imports
2020-07-06 18:40:07 +02: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
Joe Reuter
3bddc4aba9
[Lens] Improve no data popover styles (#70594) 2020-07-06 16:57:15 +02: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