Commit graph

33000 commits

Author SHA1 Message Date
Angela Chuang 537065a977
[SIEM] Fix auto save for template timeline (#65001)
* update save timeline

* fix types

* allow template timeline to be updated via import

* fix unit tests

* fix for review

* handle update timeline

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 09:42:17 +01:00
MadameSheema eae92e34c3
[SIEM] Adds Cypress 'Exports custom rule' test (#64099)
* changes default browser download folder

* adds 'exportRuleAction' data-test-subj attribute

* implements 'Exports a custom rule' test

* changes headless browser to chrome

* updates path

* updates 'EXPECTED_RULE_FILE_PATH'

* gives time to the file to be downloaded

* adds downloads folder

* updates download directory

* updates paths

* captures API call to check the content of the file

* removes browser launch hook since is not needed anymore

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 10:26:45 +02:00
Walter Rafelsberger 4f66dfd661
[ML] Transforms: Single Column Wizard. (#64436)
Rearranges the layout of the transform wizard pivot configuration step into a single-column. This allows us to have the data grids for source index and pivot preview having the full width. The advanced editors for source query and pivot configuration also cover a wider width.
2020-05-05 10:20:38 +02:00
Alexey Antonov 6349575ec1
[data.search.aggs]: Expression functions for bucket agg types (#64772)
* [data.search.aggs]: Expression functions for bucket agg types - ranges agg types + significant terms

* new portion of changes

* add geo_tile_fn

* add geo_hash_fn

* Update src/plugins/data/public/search/aggs/buckets/filter_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/geo_tile_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/geo_hash_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/ip_range_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/geo_hash_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/geo_hash_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/data/public/search/aggs/buckets/geo_hash_fn.ts

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* create BaseAggParams

* add filters_fn

* add histogram / date_histogram expression functions

* cleanup

* terms - order should be optional

* add custom label params

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 11:11:21 +03:00
Vadim Dalecky d77d2e4b77
Remove legacy "interpreter" plugin (#61263)
* chore: 🤖 delete legacy interpreter registries

* chore: 🤖 completely delete legacy "interpreter" plugin

* chore: 🤖 remove dependencies on legacy "interpreter" plugin

* chore: 🤖 revert back Canvas global registries

* test: 💍 fix Lens test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 08:35:05 +02:00
Andrea Del Rio cf64454574
[Alerting] Alert Details and Alert List design improvements (#64839)
* added labels

* cleaned up flex elements in alert details view

* replace eye icon with mute switch

* removed Actions columns from Connectors list

* fix keypadmenuitems layout in action selection section

* fixed error

* more cleanup

* added back Actions column for Connectors List but with new name

* fix some tests

* fix another test

* removed unneeded lodash from  test file

* fix  test in details.ts

* removed unused translations

* removed Alerts (Actions) column from Connectors table"

* removed translation

* removed EuiBadge from connectors list

* updated test in connectors.ts

* fix function tests

* fix more function tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
2020-05-04 23:03:24 -07:00
István Zoltán Szabó aad9dafb3d
[ML] Amends New job from index pattern UI text (#64667)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2020-05-05 08:02:21 +02:00
Henry Harding fc6c78f53e
remove beaker icon, show text instead (#65153) 2020-05-04 21:06:09 -04:00
Sandra Gonzales bab70fbd88
add updates available to overview (#65193) 2020-05-04 20:16:19 -04:00
Jen Huang 86332e2bb8
Fix password field showing as null instead of empty string (#65183) 2020-05-04 17:07:44 -07:00
Justin Kambic 6d78489c14
[Uptime] TLS alerting (#63913)
* Refactor settings form event handling and modify certs fields.

* Fix/improve broken types/unit/integration/api tests.

* Modify default expiration threshold.

* Rename test vars.

* Implement PR feedback.

* Refresh snapshots, fix broken tests/types.

* Remove unnecessary state spreading.

* Add type for settings field errors.

* Refresh test snapshots.

* Improve punctuation.

* Add TLS alert type.

* Add cert API request and runtime type checking.

* Add api test for cert api.

* Add unload command to certs test.

* Extract API params interface to io-ts type.

* Add TLS alert type on server.

* WIP - add state for changing selected alert type.

* Finish adding alert type for client, add server alert summary.

* Add some state variables.

* Update certs summary function to create required values.

* Refresh test snapshots.

* Clean up message generator function.

* Add a comment.

* Update formatting for alert messages, add flags denoting presence of age/expiration data.

* Add relative date information to tls alert messages.

* Clean up more logic in certs request function.

* Fix broken unit tests.

* Move tests for common function to new file.

* Fix logic error in test and add common state fields to tls alerts.

* Extract common state field translations from status check alert.

* Add a comment.

* Add nested context navigation for uptime alert selection.

* Clean up types.

* Fix translation key typo.

* Extract translations from tls alert factory.

* Extract summary messages to translation file.

* Change default tls alert time window from 1w to 1d.

* Remove unnecessary import.

* Simplify page linking.

* Extract a non-trivial component to a dedicated file.

* Simplify create alert copy.

* Fix broken functional test.

* Fix busted types.

* Fix tls query error.

* Allow for alerts toggle button to receive a set of types to display.

* Add alerts toggle button to certs page.

* Fix copy.

* Fixup punctuation in default message to avoid double-period symbols.

* Refresh snapshots.
2020-05-04 20:01:40 -04:00
Nicolas Chaulet 418804d6ec
[Ingest] Fix config creation when fleet is not enabled (#65158) 2020-05-04 19:59:00 -04:00
Larry Gregory fb79865aa0
Import space selector styles (#64656) 2020-05-04 19:56:38 -04:00
Marco Vettorello 2d4dc801c3
Update dependency @elastic/charts to v19.1.2 (#64759)
* build: upgrade @elastic/charts to 19.0.0

* refactor: onBrushEnd breaking changes

* fix: missing onBrushEnd argument changes

* fix: update ech to 19.1.1

* fix: lens onBrushEnd breaking changes

* update to 19.1.2
2020-05-04 18:42:58 -05:00
Corey Robertson bd73d967c9
[Canvas] Finish moving UI to Kibana Platform (#64831)
* Finish Canvas platform migration

* Revert inadvertent change

* Import Canvas .scss directly

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 19:40:18 -04:00
Corey Robertson 869f314697
Adds saved objects to Management (#64926)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 19:39:04 -04:00
Corey Robertson 03920249a6
[Canvas] Moves canvas Server to NP completely (#65148)
* Moves canvas Server to NP completely

* Fix typecheck
2020-05-04 19:38:46 -04:00
Dima Arnautov 76df143d70
[ML] Embeddable Anomaly Swimlane (#65180)
* [ML] Embeddable Anomaly Swimlane (#64056)

* [ML] embeddables setup

* [ML] fix initialization

* [ML] ts refactoring

* [ML] refactor time_buckets.js

* [ML] async services

* [ML] extract job_selector_flyout.tsx

* [ML] fetch overall swimlane data

* [ML] import explorer styles

* [ML] revert package_globs.ts

* [ML] refactor with container, services with DI

* [ML] resize throttle, fetch based on chart width

* [ML] swimlane embeddable setup

* [ML] explorer service

* [ML] chart_tooltip_service

* [ML] fix types

* [ML] overall type for single job with no influencers

* [ML] improve anomaly_swimlane_initializer ux

* [ML] fix services initialization, unsubscribe on destroy

* [ML] support custom time range

* [ML] add tooltip

* [ML] rollback initGetSwimlaneBucketInterval

* [ML] new tooltip service

* [ML] MlTooltipComponent with render props, fix warning

* [ML] fix typo in the filename

* [ML] remove redundant time range output

* [ML] fix time_buckets.test.js jest tests

* [ML] fix explorer chart tests

* [ML] swimlane tests

* [ML] store job ids instead of complete job objects

* [ML] swimlane limit input

* [ML] memo tooltip component, loading indicator

* [ML] scrollable content

* [ML] support query and filters

* [ML] handle query syntax errors

* [ML] rename anomaly_swimlane_service

* [ML] introduce constants

* [ML] edit panel title during setup

* [ML] withTimeRangeSelector

* [ML] rename explorer_service

* [ML] getJobs$ method with one API call

* [ML] fix groups selection

* [ML] swimlane input resolver hook

* [ML] useSwimlaneInputResolver tests

* [ML] factory test

* [ML] container test

* [ML] set wrapper

* [ML] tooltip tests

* [ML] fix displayScore

* [ML] label colors

* [ML] support edit mode

* [ML] call super render

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit f62df99ae3)

* [ML] fix typing issues
2020-05-05 01:22:43 +02:00
Jen Huang f9be590d51
[Fleet] Agent details page UI (#64983)
* Fix empty host name column in agent list

* Fix empty version column in agent list

* Consolidate page header styling inconsistencies

* Add tabs to agent details

* Add right-side header content and actions menu

* Give headers more spacing when there are tabs present

* Add details tab

* Use ECS formatted metadata

* Make activity log table pretty

* Return agent event SO id from list API

* Fix i18n

* Add types for new agent events and differentiate from stored agent events

* Adjust test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 16:06:34 -07:00
Jen Huang bda8309864
Fix data streams returning 500 when there are no matching indices (#65152) 2020-05-04 16:04:04 -07:00
Ryland Herrick 02bdb50c82
Remove references to the actionsClient in our routes (#64966)
All of our actions management is happening via the triggers_actions_ui
plugin, so this code is (and will be) unused.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 17:44:54 -05:00
Tim Sullivan 044f89ed14
[Reporting] Improve TS and update Reporting usage data model (#64841)
* Stricter types for Reporting Usage data

* Allow more type inference

* remove lastDay filter

* update ts and add test

* fix tests

* fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 15:19:58 -07:00
Spencer 99aed58fe2
[ui-shared-deps] only compress in production build mode (#65151) 2020-05-04 15:09:44 -07:00
Tim Roes 09deb23b7c
Fix issue with navigating in firefox/safari (#65163) 2020-05-05 00:06:18 +02:00
Jean-Louis Leysens fd99deb397
[Dev Tools] Ability to disable app (#62944)
* Disable-able Dev Tools

* Undo faux disables

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 23:22:19 +02:00
Jean-Louis Leysens f801f8bae0
Do not suggest deprecated ordering key (#65040)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 23:21:56 +02:00
Thomas Neirynck 7bf7174a2d
[Maps] Code split Maps app (#64594)
Code-split the maps-plugin to reduce the initial `maps.plugin.js` size.

There were two main code dependencies in the plugin initialization that were the root cause of the large bundle size.

- `GisMap` wraps the entire application UX, including the add-layer-wizard. The layer wizards only need to be available there. This PR moves the `load_layer_wizard` dependency from the plugin-initialization to the `GisMap` component. 
- The `MapEmbeddableFactory` needs to be registered at plugin-initialization. However, this module imports a lot of core-application code. By code-splitting here, we avoid pulling in the entire Maps-app in the main bundle.

This also  introduces a lazy-initialization of the `GisMap` itself as an additional split to further reduce size of the bundles.
2020-05-04 16:48:31 -04:00
Daniil Suleiman f126e6130b
[NP][Discover] Move discover into new platform (#63473)
* Move discover into NP

* Convert doc_table tests to jest

* Move rows_headers to use jest

* Move fixed_scroll.test

* Clean up

* Revert jest changes

* Pass down deps into IndexPatternFieldList

* Fix conflicts

* Pass env vars

* Remove LegacyCoreStart

* Update generated doc

* Fix canvas type

* Fix i18n

* Improve stub_index_pattern code

* Add fieldFormats to mocked services

* Skip failing tests
- while still working on them, to find out if other tests fail in jenkins

* Unskip sidebar test

* Move mocha tests to legacy

- delete jest tests, can be converted later on

* Fix Scss imports
- Seems functional tests didn't build because of them?

* Remove another invalid SCSS import

* Pass deps as last argument

* Move field list into data start contract

* Move create field into data start contract, fix tests

* Update docs

* Fix duplicating fields

* Update snapshots in management

* Fix review comments

* Update docs

* Fix angular compilation

* Update docs

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 23:34:24 +03:00
spalger dccb1dcca1 Revert "[ML] Embeddable Anomaly Swimlane (#64056)"
This reverts commit f62df99ae3.
2020-05-04 12:59:10 -07:00
Nathan Reese e3b9b946a9
[Maps] initial location map settings (#64336)
* [Maps] initial location map settings

* fix tslint

* add button to set to current view

* move button to bottom of form

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 13:57:25 -06:00
Cauê Marcondes 497398e8ff
fixing unit test (#65068) 2020-05-04 21:23:44 +02:00
Cauê Marcondes 91b27570c1
[APM] Ensure that /api/apm/security/indices_privileges doesn't fail when security is disabled (#64627)
* logging when security api is disable

* logging when security api is disable

* checking statuc code 400

* adding security plugin

* checking if security plugin is enabled before calling it

* fixing unit test

* show apm ui when index is empty

* addressing PR comments

* refactoring

* refactoring

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 21:22:06 +02:00
nnamdifrankie 99a5db6aab
EMT-339: add policy response index and documents (#65004)
* EMT-339: add policy response index and documents

* EMT-339: add routes, unit and integration tests

* EMT-339: review comments, change types, url, update tests
2020-05-04 14:58:12 -04:00
Poff Poffenberger 6c1f5ec81b
[Canvas] Reduce report generation time by re-using headless browser page in background (#63301)
* Rough first pass at reusing page for multiple links in report generation

* Some adjustments to handling the events coming from CDP

* Add new data-share-page selector for jobs with multiple urls

* Cleanup

* PR feedback

* Adding tests for Canvas export app and multi user observable jobs

* Adding a short blurb describing the data-shared-page attribute requirement

* PR feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 13:55:13 -05:00
Alison Goryachev 85539ee855
Reorder ES management nav (#65082) 2020-05-04 14:47:47 -04:00
Henry Harding 8813114e94
Update epm illustration (#64975)
* update EPM header illustration

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 14:41:24 -04:00
Nathan L Smith 63121fb47e
Service map anomaly indicators (#64718)
Get an aggregation of the anomaly scores and show style the ring around the node icon.
2020-05-04 13:40:03 -05:00
James Gowdy 33b2b5c92c
[ML] Enabling mml estimation in data recognizer module setup (#64900)
* [ML] Enabling mml estimation in data recognizer module setup

* small refactor

* adding functional tests

* increasing uptime test timeout

* tiny refactor

* checking for default setting

* testng flakey uptime test

* catching erros in mml estimation

* lowering timeout

* ensuing data is present for ML tests

* adding await

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 19:30:36 +01:00
Patrick Mueller 4788754419
[Alerting] only show trial upgrade when running with basic license (#64865)
resolves https://github.com/elastic/kibana/issues/64245

Prior to this PR, the "Upgrade your license" banner in the connectors list
was displayed for gold licenses because the Service Now action requires
platinum, and the check only looked for any actions disabled by license.

Rather than display a different message for gold users, this PR changes the
banner display logic to check for any actions disabled by license that
also have a minimum required license of gold.  That means gold+ users
won't see the message, even for actions with a minimum required license of
platinum+.  Another perk of the gold license!

This will continue to display the banner for basic users, but will no longer
display it for gold users.  It also continues to not display it for trial,
platinum and enterprise users.
2020-05-04 14:23:35 -04:00
Brian Seeders fb30a822b3
Add 2 flaky retries to es snapshot jobs (#64553) 2020-05-04 14:08:50 -04:00
gchaps a3a915ab66
[DOCS] Adds information about query timeout (#64970)
* [DOCS] Adds information about query timeout

* [DOCS] Adds image to search doc

* [DOCS] Improves organization

* Update docs/discover/search.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/search.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-05-04 11:08:35 -07:00
CJ Cenizal f1d1b8c195
Fix CCR search bug caused by paused follower indices (#64717) 2020-05-04 11:05:14 -07:00
Mikhail Shustov f98f4f27e0
mock the whole ES client in the integration tests (#65081)
* mock the whole ES client to prevent real requests

* mock the whole client

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 19:57:51 +02:00
Oliver Gupte d94e6d38b7
[APM] Fix inconsistencies from patching backport conflicts from NP migration (#64977)
* [APM] addresses inconsistencies from patching backport conflicts from NP migration

* removes `indexManagementStore` form the '@elastic/apm-rum-react' module declaration
2020-05-04 10:31:09 -07:00
Tiago Costa bf95b30785
chore(NA): skip failing functional test for kerberos login (#65121) 2020-05-04 18:30:30 +01:00
Nathan Reese a80f2582c3
[Maps] fix remove layer (#65093) 2020-05-04 11:23:47 -06:00
Shahzad cc6a676c4c
[Uptime] Fix flaky Cert test (#65056) 2020-05-04 19:23:08 +02:00
Dima Arnautov f62df99ae3
[ML] Embeddable Anomaly Swimlane (#64056)
* [ML] embeddables setup

* [ML] fix initialization

* [ML] ts refactoring

* [ML] refactor time_buckets.js

* [ML] async services

* [ML] extract job_selector_flyout.tsx

* [ML] fetch overall swimlane data

* [ML] import explorer styles

* [ML] revert package_globs.ts

* [ML] refactor with container, services with DI

* [ML] resize throttle, fetch based on chart width

* [ML] swimlane embeddable setup

* [ML] explorer service

* [ML] chart_tooltip_service

* [ML] fix types

* [ML] overall type for single job with no influencers

* [ML] improve anomaly_swimlane_initializer ux

* [ML] fix services initialization, unsubscribe on destroy

* [ML] support custom time range

* [ML] add tooltip

* [ML] rollback initGetSwimlaneBucketInterval

* [ML] new tooltip service

* [ML] MlTooltipComponent with render props, fix warning

* [ML] fix typo in the filename

* [ML] remove redundant time range output

* [ML] fix time_buckets.test.js jest tests

* [ML] fix explorer chart tests

* [ML] swimlane tests

* [ML] store job ids instead of complete job objects

* [ML] swimlane limit input

* [ML] memo tooltip component, loading indicator

* [ML] scrollable content

* [ML] support query and filters

* [ML] handle query syntax errors

* [ML] rename anomaly_swimlane_service

* [ML] introduce constants

* [ML] edit panel title during setup

* [ML] withTimeRangeSelector

* [ML] rename explorer_service

* [ML] getJobs$ method with one API call

* [ML] fix groups selection

* [ML] swimlane input resolver hook

* [ML] useSwimlaneInputResolver tests

* [ML] factory test

* [ML] container test

* [ML] set wrapper

* [ML] tooltip tests

* [ML] fix displayScore

* [ML] label colors

* [ML] support edit mode

* [ML] call super render

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 19:09:53 +02:00
Catherine Liu 058044065c
[Canvas] Updates function reference docs (#64741) 2020-05-04 10:07:23 -07:00
Ross Wolf 9db27dba56
[SIEM] Remove forgotten rules that weren't deleted (#64974)
* Remove stray rules that should've been deleted
* Update rule.ts and tests
* Remove deleted prebuilt rules from cypress ES archive (#1)
2020-05-04 11:07:09 -06:00