Commit graph

36661 commits

Author SHA1 Message Date
Spencer 3c85d3d2af
[kbn/es] use a basic build process (#78090)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 11:14:17 -07:00
Spencer c8731205d7
[kbn/optimizer] fix .json extension handling (#78524)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 11:13:58 -07:00
Nathan L Smith 33e3aa2563
Fix APM lodash imports (#78438)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:37:33 -05:00
Nathan Reese 54a2c75097
Add deprecated message to tile_map and region_map visualizations. (#77683)
* Add deprecation message to coordinate map and region map

* clean up text

* add default distro link and view in maps link

* move url generation into onClick handler

* create tile map layer descritor

* set metrics and color and scaling

* lazy load createTileMapLayerDescriptor

* tslint fixes

* tslint cleanup for OSS code

* add region map deprecation message

* tslint cleanup

* consolidate logic into LegacyMapDeprecationMessage

* fix jest test

* fix tile-map and region_map in OSS distro

* tslint fixes

* assert urlGenerator exists

* update message text

* ensure legacy-ids get correctly evaluated (#37)

* handle 6.x region map saved objects

* turn off field meta

* fix type

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2020-09-28 11:31:53 -06:00
Marco Liberati c285287da3
Fix Lens smokescreen flaky tests (#78566)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 18:50:48 +02:00
ncheckin 37d49b0052
updated discover with alt text (#77660)
* Update context.asciidoc

* Update document-data.asciidoc

* Update field-filter.asciidoc

* Update search.asciidoc

* Update set-time-filter.asciidoc

* Update viewing-field-stats.asciidoc

* Update canvas-edit-workpads.asciidoc

* Update canvas-expression-lifecycle.asciidoc

* Update canvas-present-workpad.asciidoc

* Update canvas-share-workpad.asciidoc

* Update canvas-tutorial.asciidoc

* Update docs/canvas/canvas-share-workpad.asciidoc

* Update docs/canvas/canvas-share-workpad.asciidoc

* Update docs/canvas/canvas-tutorial.asciidoc

* Update docs/canvas/canvas-tutorial.asciidoc

* Update docs/canvas/canvas-tutorial.asciidoc

* Update docs/canvas/canvas-tutorial.asciidoc

* Update docs/discover/search.asciidoc

* Update docs/discover/set-time-filter.asciidoc

* Update docs/discover/viewing-field-stats.asciidoc

* Update docs/discover/field-filter.asciidoc

* Update docs/discover/document-data.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-28 10:53:38 -05:00
Daniil Suleiman 93248808b3
Fix types (#78619) 2020-09-28 16:47:53 +01:00
ncheckin 68912875c4
Update tutorial-visualizing.asciidoc (#76977)
* Update tutorial-visualizing.asciidoc

adds alt text to images

* Update docs/getting-started/tutorial-visualizing.asciidoc

* Update docs/getting-started/tutorial-visualizing.asciidoc

* Update docs/getting-started/tutorial-visualizing.asciidoc

* Update docs/getting-started/tutorial-visualizing.asciidoc

* Update docs/getting-started/tutorial-visualizing.asciidoc

* Update docs/getting-started/tutorial-visualizing.asciidoc

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-28 10:41:03 -05:00
ncheckin 8ce96e3ce4
Update tutorial-discovering.asciidoc (#76976)
* Update tutorial-discovering.asciidoc

Adds alt text to images in doc.

* Update docs/getting-started/tutorial-discovering.asciidoc

* Update docs/getting-started/tutorial-discovering.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-28 10:35:33 -05:00
Liza Katz 689e1e32f1
[Search] Error notification alignment (#77788)
* OSS error alignemnt

* Adjust error messages in xpack

* Add getErrorMessage

* Use showError in vizualize
Add original error to expression exception

* Cleanup

* ts, doc and i18n fixes

* Fix jest tests

* Fix functional test

* functional test

* ts

* Update functional tests

* Add unit tests to interceptor and timeout error

* expose toasts test function

* doc

* typos

* review 1

* Code review

* doc

* doc fix

* visualization type fix

* fix jest

* Fix xpack functional test

* fix xpack test

* code review

* delete debubg flag

* Update texts by @gchaps

* docs and ts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 18:33:48 +03:00
ncheckin 97fd0dfbef
Update tutorial-define-index.asciidoc (#76975)
* Update tutorial-define-index.asciidoc

Forgot to update alt text in previous pr. Additionally, it is unclear in the image where the "time field" dropdown is located.

* Update docs/getting-started/tutorial-define-index.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-28 10:27:27 -05:00
Wylie Conlon 0ebaf92a6a
[Lens] Fieldless operations (#78080)
* [Lens] Fieldless operations

* Overhaul types

* Fix invalid state and add tests

* Fix types

* Small cleanup

* Add additional error message

* Reset field selector to empty state when invalid

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 11:22:03 -04:00
Alejandro Fernández Haro db78d70df3
[Usage Collection] [schema] Explicit "array" definition (#78141)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 16:13:21 +01:00
ncheckin e111c2ab3e
Update tutorial-define-index.asciidoc (#76973)
* Update tutorial-define-index.asciidoc

* Update docs/getting-started/tutorial-define-index.asciidoc

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

Co-authored-by: Raya Fratkina <raya.fratkina@elastic.co>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-28 09:57:13 -05:00
Pierre Gayvallet ca48c80c38
Fix --no-basepath references in doc (#78570) 2020-09-28 16:27:53 +02:00
Luke Elmers 786a2d0f4f
Move StubIndexPattern to data plugin and convert to TS. (#78518) 2020-09-28 08:14:33 -06:00
Matthew Kime f0a5ec9877
Index pattern class - remove unused methods (#78538)
* remove unused methods
2020-09-28 09:08:21 -05:00
Steph Milovic 8374f13652
[Security Solution] [ALL] Eliminates all console.error and console.warn from Jest output (#78523) 2020-09-28 07:59:18 -06:00
Gidi Meir Morris 8547b32bab
[Actions] avoids setting a default dedupKey on PagerDuty (#77773)
The PagerDuty Action currently defaults to a dedupKey that's shared between all action executions of the same connector.
To ensure we don't group unrelated executions together this PR avoids setting a default, which means each execution will result in its own incident in PD.

As part of this change we've also made the `dedupKey` a required field whenever a `resolve` or `acknowledge` event_action is chosen. This ensure we don't try to resolve without a dedupKey, which would result in an error in PD.

A migration has been introduced to migrate existing alerts which might not have a `dedupKey` configured.
2020-09-28 14:56:20 +01:00
Rudolf Meijering 8841757874
First stab at developer-focussed saved objects docs (#71430)
* First stab at developer-focussed saved objects docs

* Don't introduce spelling mistakes

* Add docs for SO migrations

* Link to HTTP API documentation

* Grammar fixes

* Rendering fixes

* Migrations should be tested, remove nested migration docs for now

* Drop subtitle field in migration, add notes about migration version, behaviour for corrupt documents and emphasize testing

Co-authored-by: Josh Dover <me@joshdover.com>
2020-09-28 15:53:24 +02:00
Mikhail Shustov e0755a7458
remove unnecessary config validations (#78527) 2020-09-28 15:51:36 +02:00
Jason Stoltzfus 378b8c80ea
[Enterprise Search] Added Logic for the Credentials View (#77626) 2020-09-28 09:39:46 -04:00
Shahzad d7a8641f3a
[CSM] Js errors (#77919)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:36:38 +02:00
Pierre Gayvallet aa9774faa0
Add the @kbn/apm-config-loader package (#77855)
* first shot of the apm configuration loader

* revert changes to kibana config

* remove test files for now

* remove `?.` usages

* use lazy config init to avoid crashing integration test runner

* loader improvements

* add config value override via cli args

* add tests for utils package

* add prod/dev config handling + loader tests

* add tests for config

* address josh's comments

* nit on doc
2020-09-28 15:30:59 +02:00
Patryk Kopyciński 2defe88a2c
[Security Solution] Refactor useSelector (#75297) 2020-09-28 15:28:11 +02:00
Daniil Suleiman 53d49381c8
Implement tagcloud renderer (#77910)
* Implement toExpressionAst for tagcloud

* Implement tagcloud vis renderer

* Use resize observer

* Use common no data message

* Update build_pipeline.test

* Update tag cloud tests

* Revert "Use common no data message"

This reverts commit fddf019575.

* Update interpreter functional tests

* Add tests for toExpressionAst fn

* Use throttled chart update

* Update renderer

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 16:14:30 +03:00
Cauê Marcondes 966f00ac59
[APM] Alerting: Add global option to create all alert types (#78151)
* adding alert to service page

* sending on alert per service environment and transaction type

* addressing PR comment

* addressing PR comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:12:58 +02:00
Alison Goryachev 88df93bed5
[Ingest pipelines] Upload indexed document to test a pipeline (#77939) 2020-09-28 08:47:05 -04:00
Tim Roes a71d0693dc
TypeScript cleanup in visualizations plugin (#78428)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 14:33:48 +02:00
Daniil Suleiman 3f6c0d688c
Lazy load metric & mardown visualizations (#78391)
* Lazy load metrics vis

* Use common chart spinner

* Simplify markdown renderer

* Update tests

* Update types for metric vis

* Fix tests

* Fix merge conflict

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:43:34 +03:00
Marshall Main faf4b04004
[Detections][EQL] EQL rule execution in detection engine (#77419)
* First draft of EQL rules in detection engine

* Reorganize functions to separate files

* Start adding eventCategoryOverride option for EQL rules

* Add building block alerts for each event within sequence

* Use eql instead of eql_query for rule type

* Remove unused imports

* Fix tests

* Add basic tests for buildEqlSearchRequest

* Add rulesSchema tests for eql

* Add buildSignalFromSequence test

* Add threat rule fields to buildRuleWithoutOverrides

* Fix buildSignalFromSequence typecheck error

* Add more tests

* Add tests for wrapBuildingBlock and generateSignalId

* Use isEqlRule function and fix import error

* delete frank

* Move sequence interface to types.ts

* Fix import

* Remove EQL execution placeholder, add back language to eql rule type

* allow no indices for eql search

* Fix unit tests for language update

* Fix buildEqlSearchRequest tests

* Replace signal.child with signal.group

* remove unused import

* Move sequence signal group building to separate testable function

* Unbork the merge conflict resolution

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-25 16:23:25 -04:00
ncheckin 500ad8baf0
Update tutorial-full-experience.asciidoc (#75836)
add powershell alternative for curl -O commands at beginning of doc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-25 16:03:57 -04:00
ncheckin cf18e4637e
Update tutorial-define-index.asciidoc (#75754)
adds windows alternative for curl

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-25 16:03:32 -04:00
CJ Cenizal 0dc89cb716
Add support for runtime field types to mappings editor. (#77420)
* Add support for runtime field types to mappings editor.
* Add tests for getTypeLabelFromField util.
* Refine callout appearance in term vector and alias parameters.
2020-09-25 08:25:49 -07:00
Chris Roberson a88c27258e
[Monitoring] Usage collection (#75878)
* First stab at some internal telemetry

* Add missing files

* mbCount telemetry

* Include more data

* Remove unused field

* This file isn't used

* Mock in tests

* Add schema

* Store schema

* Use sample cluster instead

* Fix telemetry schema

* Fix type issues

* Updates

* Fix schema and tests

* Add tests

* Add tests

* Go back to using an array

* Fix schema

* Add page view data

* Remove debug

* Handle loading scenario here

* Add delay tracking too

* Add clicks for setup mode

* Add clicks for setup mode

* Fix beats/apm page views

* Fix typings
2020-09-25 10:19:53 -04:00
Christos Nasikas f2fc48dec8
[Docs][Actions] Add docs for Jira and IBM Resilient (#78316) 2020-09-25 16:45:19 +03:00
Michael Olorunnisola 82ceb87475
[Security Solution][Resolver] Update @timestamp formatting (#78166)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-25 08:33:24 -04:00
Patryk Kopyciński 012fa42ee1
[Security Solution] Fix app layout (#76668) 2020-09-25 14:15:41 +02:00
Brent Kimmel 341c1ace0d
[Security Solution][Resolver] 2 new functions to DAL (#78477)
* Added 2 new functions to DAL, adjusted old one to use new API

* update mocks to work with interface

* change to optional params

Co-authored-by: oatkiller <robert.austin@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 22:34:48 -04:00
Christiane (Tina) Heiligers d512b5aba4
Adds new elasticsearch client to telemetry plugin (#78046)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 18:32:55 -07:00
spalger b3d9809b7d skip flaky suite (#78512) (#78511) (#78510) (#78509) (#78508) (#78507) (#78506) (#78505) (#78504) (#78503) (#78502) (#78501) (#78500) 2020-09-24 17:00:36 -07:00
spalger e53fcbff66 skip flaky suite (#78496) 2020-09-24 14:42:00 -07:00
spalger 9d8a389e21 skip flaky suite (#78288) 2020-09-24 14:37:02 -07:00
spalger ace38b4ad4 skip flaky suite (#78494) 2020-09-24 14:34:19 -07:00
Constance 4dbc30bc08
[Enterprise Search] Move externalUrl helper out of React Context (#78368)
* Add new/simpler externalUrl helper and initialize it on renderApp

- This uses a simple JS obj to store the enterpriseSearchUrl reference (once on plugin init)
  - This is vs. a class, which needs to be instantiated and passed around - the new obj can be imported flatly at any time
  - I also opted to not convert this into a Kea logic file - after some deliberation I decided against it because it felt really weird as one. It's not storing "state" per se that ever needs to be updated, it's simply a one-time set obj that contains helper functions.
  - There's also some hope that we might eventually not need this helper after the full migration, so the simpler it is to delete the better
- Uses a getter & setter to ensure that we don't accidentally mutate said obj after initialization

* Update all components using get*SearchUrl helpers

* Update tests for updated components

- Mostly just consists of mocking externalUrl and importing that mock

* Remove old ExternalUrl class/context

TODO in next commit: Address kibana_header_actions

* Update Workplace Search Header Actions to use new externalUrl helper

NOTE: this requires a temporary workaround of initializing externalUrl.enterpriseSearch in plugin.ts rather than in renderApp, because renderApp loads *after* the header app does.

I plan on fixing this in a future PR so that setHeaderActionMenu is called AFTER renderApp has done loading (to ensure all the state in headerActions we need is available).
2020-09-24 14:22:11 -07:00
Melissa Alvarez 846300d5b6
[ML] DF Analytics exploration: ensure search bar still visible when error caused by search bar query (#78356)
* show querybar on search error so user can search again

* check errorMessage defined. update translation name
2020-09-24 15:44:26 -04:00
Nathan Reese c9e0c717ea
[Maps] lazy load maps_legacy, tile_map, and region_map bundle (#78027)
* [Maps] lazy load maps_legacy bundle

* tslint

* lazy load leaflet

* try to get lodash out of maps_legacy bundle and work on tile_map bundle

* lazy load service settings

* lazy load region_map and fix vega unit tests

* tslint fixes

* remove lodash from region_map bundle

* review feedback

* remove unused file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 12:45:43 -06:00
Tim Sullivan a23a5c3864
[Reporting/Fn Tests] Wait longer for reports to finish (#78190)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 11:07:18 -07:00
MadameSheema 276dab40cc
fixes alerts flaky test (#78424)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 19:57:55 +02:00
Constance 22c1427353
Fix plugin.ts order causing initial config data not being passed correctly to props (#78447) 2020-09-24 10:55:26 -07:00