Commit graph

32203 commits

Author SHA1 Message Date
Tyler Smalley 22c539f96f
[7.x] [build] Removes commonjs transforms (#66506) (#67375)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 14:44:21 -07:00
spalger 6c1250f359 skip flaky suite (#51942)
(cherry picked from commit fcbcc63b07)
2020-06-04 14:39:59 -07:00
Melissa Alvarez d6028c1f14
[ML] DF Analytics: Creation wizard part 1 (#67564) (#68296)
* create newJob route and start of wizard

* wip: create configStep component

* finish configStep form and details

* wip: create andvanced step components

* create details step component

* createStep component

* ensure advanced options are correct for each job type

* add validation to each step

* use custom table for excludes

* move customSelectionTable to shared components

* form validation for advanced fields

* wip: source index selection modal

* add source index preview

* update details

* ensure advanced parameters added to config on creation

* can create job from savedSearch. can set source query in ui

* validate source object has supported fields

* eslint updates

* update tests. comment out clone action for now

* add create button to advanced editor

* remove deprecated test helper functions

* fix translation errors

* update help text. read only once job created.

* fix functional tests

* add nextStepNav to df service for tests

* fix excludes table page jump and hyperParameter not showing in details

* fix checkbox width for custom table
2020-06-04 17:26:45 -04:00
Pierre Gayvallet 2632b6c752
implements extends to ObjectSchema (#68067) (#68301)
* implements `extends` to `ObjectSchema`

* add unit tests

* use expectType for types assertions

* allow to extends options

* add comment about deep extend
2020-06-04 23:08:28 +02:00
Xavier Mouligneau 3bec71e53e
[SECURITY] Rename siem plugin to security_solution (#67902) (#68246)
* rename siem to security_solution

* rename siem to security solution inside of code

* rename translation keys

* fix snapshot

* replace siem for security solution in tutorial

* missing translation to be renamed

* fix types for api test integration

* updates runner file to match the new path

* change category for kibana settings

* miss renaming in advance settings

* fixes cypress tests

* fix api integration test

* fix new translation

* fix unit test

* update translation i18n

* update translation i18n II

Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>

Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2020-06-04 15:12:05 -04:00
Søren Louv-Jansen 3dda974fd1
[APM] Don’t run eslint on cypress snapshots (#67451) (#68180)
* [APM] Don’t run eslint on cypress snapshots

* ignore cypress videos

* Fix interactive command

* Fix gitignore

* Use echo everywhere

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.gitignore
2020-06-04 21:10:05 +02:00
Larry Gregory 112b80b751
[7.x] Record security feature usage (#67526) (#68283)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 15:04:27 -04:00
EamonnTP a777f1f478
Commit during backport (#68286) 2020-06-04 19:43:58 +01:00
CJ Cenizal 80168c45cd
[7.x] Update ILM UI to support presence of searchable snapshot options (#68047) (#68285) 2020-06-04 11:29:12 -07:00
James Gowdy f7c8f7ee8f
[ML] Adding annotations_enabled to model plot config (#68228) (#68252) 2020-06-04 19:14:48 +01:00
Quynh Nguyen 38b0d968eb
[7.x] [ML] Extend population preview chart to show actual and typical value (#67569) (#68279)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 13:05:08 -05:00
Quynh Nguyen ec95c46fd8
[7.x] [ML] Keep the edit rule flyout open if there are multiple rules (#68174) (#68281) 2020-06-04 13:04:43 -05:00
Pierre Gayvallet 29c0acfb2f
Add globalSearch x-pack plugin (#66293) (#68259)
* add skeleton for global_search plugin

* base implementation of the server-side service

* add utils tests

* add server-side mocks

* move take_in_array to common folder

* implements base of client-side plugin

* add tests for server-side service

* fix server plugin tests

* implement `navigateToUrl` core API

* extract processResults for the client-side

* fetch server results from the client side

* factorize process_results

* fix plugin start params

* move things around

* move all server types to single file

* fix types imports

* add basic FTR tests

* add client-side service tests

* add tests for addNavigate

* add getDefaultPreference & tests

* use optional for RequestHandlerContext

* add registerRoutes test

* add base test for context

* resolve TODO

* common nits/doc

* common nits/doc on public

* update CODEOWNERS

* add import for declare statement

* add license check on the server-side

* add license check on the client-side

* eslint

* address some review comments

* use properly typed errors for obs

* add integration tests for the find endpoint

* fix unit tests

* use licensing start contract

* translate the error message

* fix eslint rule for test_utils

* fix test_utils imports

* remove NavigableGlobalSearchResult, use `application.navigateToUrl` instead.

* use coreProvider plugin in FTR tests

* nits

* fix service start params

* fix service start params, bis

* I really need to fix this typecheck oom error

* add README, update missing jsdoc

* nits on doc
# Conflicts:
#	.github/CODEOWNERS
#	rfcs/text/0011_global_search.md
2020-06-04 19:12:06 +02:00
Jean-Louis Leysens feb91c16a1
[ES UI Shared] Monaco XJSON (#67485) (#68234)
* First iteration of xjson in monaco

* Throwaway implementation in painless lab - THIS MUST BE REVERTED

* WiP on build process for new kbn-lang package

* new @kbn/langs package and update ui-shared-deps

* Update jest config for new work files

* Update painless lab -- REVERT THIS COMMIT

* Create shared useXJson mode hook

* Final update to using the new shared useXJsonMode hook -- REVERT

* Created @kbn/monaco and share through shared deps

* always access monaco through `@kbn/monaco`

* use path.resolve to create path

* add basic readme

* remove console.log call

* remove typescript support from ui-shared-deps webpack config

* use `@kbn/babel-preset`

* include the monaco styles in the kbn-ui-shared-deps

* sort package.json

* build worker at bootstrap rather than commiting to repo

* only build worker, don't pre-bundle monaco

* fix type check errors

* remove section from readme about committed dist

* keep editor.worker.js postfix

* forgot to save update to import

* license package as apache-2.0

* Added regenerator runtime for worker bundle

* revert changes to painless lab

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 18:08:58 +02:00
Jean-Louis Leysens ce1eb50cbc
[Index Management] Add data streams functionality to indices tab (#67940) (#68233)
* First iteration of data streams in index management

- Added the data streams column
- Moved state down to component (using withRouter)
- Removed previous middleware for syncing url hash param
- call history.push to update the url in the component

* Updated jest tests

* refactor: includeHidden -> includeHiddenIndices

* Fix types

* Fix jest test and remove getting filter param from parent

* Small refactor to read url params in render function

* Clean up old data streams code

* Fix sorting on data stream field in table

* dataStream -> data_stream

* qs > * as qs
2020-06-04 18:08:48 +02:00
Robert Austin 2ca71b1ced
[Endpoint][SIEM] Adjust types related to subplugin's redux (#67768) (#68249) 2020-06-04 11:55:35 -04:00
Constance e46beca751
Update documentation examples of AppMountParams to AppMountParameters (#68042) (#68196) 2020-06-04 08:40:14 -07:00
Brandon Morelli 55297968f2
[apm] docs: add deployment annotation example (#67408) (#68210) 2020-06-04 08:04:46 -07:00
Dima Arnautov 1b41ea0374
[ML] Transforms: Filter aggregation support (#67591) (#68239)
* [ML] WIP filter support

* [ML] value selector

* [ML] only supported filter aggs as options

* [ML] WIP apply config

* [ML] fix form persistence

* [ML] refactor

* [ML] support clone

* [ML] validation, get es config

* [ML] support "exists", fixes for the term form, validation

* [ML] fix ts issues

* [ML] don't perform request on adding incomplete agg

* [ML] basic range number support

* [ML] filter bool agg support

* [ML] functional tests

* [ML] getAggConfigFromEsAgg tests

* [ML] fix unit tests

* [ML] agg name update on config change, add unit tests

* [ML] update snapshot

* [ML] range selector enhancements

* [ML] improve types

* [ML] update step for range selector to support float numbers

* [ML] range validation

* [ML] term selector improvements

* [ML] fix switch between advanced editor

* [ML] prefix test ids

* [ML] support helper text for aggs item
2020-06-04 16:17:04 +02:00
Jonathan Budzenski 6cff2c9afc Support api_integration/kibana/stats against remote hosts (#53000)
* Support api_integration/kibana/stats against remote hosts

The stats API integration tests run under the assumption of a fixed
kibana.yml.  This is the case when running against a
default FTR configuration, but not when running against remote servers.
This relaxes a few assertions and conditionally runs in cases that can't be
relaxed.

Resolves #37386

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 08:53:57 -05:00
Kevin Logan 761ecd3825
[Endpoint] add new policy fields (#67323) (#68077)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 09:41:09 -04:00
Matthias Wilhelm fc6f013adc
[Discover] Fix renaming of saved search not displayed in breadcrumb (#67577) (#68229) 2020-06-04 14:42:55 +02:00
Nicolas Chaulet 4e5cb6a942
[Ingest Manager] Fix datasource validation for streams without vars (#67950) (#68150) 2020-06-04 08:42:24 -04:00
Alexey Antonov 7c06af67e0
[Data plugin] Add configuration property to enable / disable autocomplete (#67847) (#68222)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 13:49:11 +03:00
Steph Milovic 681f2d652a
[Security] [Cases] Manage timeline UI API (#67719) (#68185) 2020-06-04 05:56:16 -04:00
Mikhail Shustov e9d45605f9
remove scripts. prettire update has been done (#68130) (#68215) 2020-06-04 11:47:23 +02:00
Oliver Gupte ca538abf38
Closes #68055 by detecting the local Kibana version and using that as (#68198) (#68212)
the stack version for e2e tests.
2020-06-04 01:27:29 -07:00
Joel Griffith 48001fc3c9
[7.x] [Reporting] Move code out of Legacy (#67904) (#68201)
* [Reporting] Move code out of Legacy (#67904)

* [Reporting] Move code out of Legacy

* Elasticsearch is not a plugin dep

* add data as plugin dependo

* diff cleanup 1

* log the browser download

* Update paths in outside code for new Reporting home

* fix download test

* add numeral typing for x-pack/test

* Fix jest tests for np migration

* Shorten import paths

* remove this file, add typings to the node module

* remove local typing that has been provided by node module

* Add optional security plugin dep

* revert conflicting apm typings removal

* fix i18n

* fix snakecase whitelist

Co-authored-by: Joel Griffith <joel.griffith@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.ci/packer_cache.sh
#	src/dev/code_coverage/ingest_coverage/__tests__/transforms.test.js
#	src/dev/code_coverage/ingest_coverage/integration_tests/mocks/jest-combined/coverage-summary-manual-mix.json
#	x-pack/plugins/reporting/server/export_types/printable_pdf/server/create_job/index.ts

* Add back in legacy bwc route

* Kill code_coverage since it's not supposed to be here...

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2020-06-03 20:50:23 -07:00
Justin Kambic c0fabc1a54
[Uptime] Add loading message for monitor list no items (#67378) (#68186)
* Add loading message for monitor list no items.

* Add tests.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 22:31:06 -04:00
CJ Cenizal d0fbf65692
Refactor index management client integration tests for scalability (#67917) (#68200) 2020-06-03 19:05:12 -07:00
Tiago Costa 8ffa2ba972
chore(NA): remove config arg from os packages (#67871) (#68192)
* chore(NA): remove config arg from os packages

* chore(NA): remove args from exec on init d

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 02:05:44 +01:00
Candace Park 34d70101e4
[ENDPOINT][INGEST]Task/endpoint ingest update (#67234) (#68181)
Custom endpoint Datasource configuration in ingest

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2020-06-03 20:48:02 -04:00
Constance 9d59b46953
Update documentation/examples of deprecated namespaceAgnostic field (#68039) (#68194)
* Update documentation/examples of deprecated namespaceAgnostic field to namespaceType

* Update src/core/CONVENTIONS.md

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-06-03 16:37:11 -07:00
Tiago Costa cd791164e6
chore(NA): avoids imports of server or public code into common (#67231) (#68168)
* chore(NA): avoids imports of server or public code into common

* chore(NA): fix imports from public or server into common

* chore(NA): fix typechecking for data plugin stubs

* chore(NA): fix types and tests related with licensing plugin

* chore(NA): fix problems on infra plugin

* chore(NA): fix typo on .eslintrc.js

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>

* chore(NA): migrate to license mock usage on security plugin licensing module

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2020-06-03 22:16:33 +01:00
nnamdifrankie 3b3647a92e
[Endpoint]EMT-395: add policy configuration and reenable tests (#67967) (#68011)
[Endpoint]EMT-395: add policy configuration and tests
2020-06-03 17:06:03 -04:00
patrykkopycinski 2de596fe99
[SIEM] Fix GetOneTimeline graphql type (#68137) (#68164) 2020-06-03 22:48:57 +02:00
CJ Cenizal 6738516d3d
[7.x] Clean up doc title when navigating away from Snapshot Restore. (#67906) (#68138)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 13:32:35 -07:00
Jen Huang dae28ceb6d
[Ingest Manager] Remove default namespace toggle (#66298) (#68148)
* Remove default namespace toggle

* Fix i18n

* Add namespace validation

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 13:10:09 -07:00
Nathan L Smith 8423f24e61
[APM] Fix query bar Japanese translation (#68037) (#68145)
The order of the `select` statement items were reversed in the translation for `xpack.apm.kueryBar.placeholder`, causing an error in the KueryBar component which caused the page to fail to load.

Fix the translation, which fixes the error.

Fixes #67082.
2020-06-03 14:56:22 -05:00
Nathan L Smith 27ea7d7f58
APM-specific Jest configuration (#67858) (#68144)
Update the x-pack `createJestConfig` function to take the `rootDir` as an argument, which allows for easier overriding of the Jest configuration for a specific directory.

Previously we would run Jest in development from the x-pack directory by running something like:

```
node scripts/jest.js --testPathPattern=plugins/apm --watch
```

Currently (for me anyway) this is failing with:

```
Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)
```

and it would sometimes not correctly test only the changed files when a change in APM was made. It was also difficult to configure correctly with the [VSCode Jest extension](https://marketplace.visualstudio.com/items?itemName=Orta.vscode-jest).

Add a jest.config.js for APM. This makes running with `--watch` better about which files it chooses to re-run and makes the VSCode extension work (including coverage mapping) with minimal configuration.
# Conflicts:
#	x-pack/dev-tools/jest/create_jest_config.js
2020-06-03 14:55:38 -05:00
Spencer da1e5596ba
[7.x] upgrade elastic/numeral and complete migration away from numeral (#68035) (#68140)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-03 12:31:54 -07:00
Nicolas Chaulet e4b9ef0983
[Ingest Manager] Fix invalidating agent output api key (#68021) (#68134) 2020-06-03 14:34:26 -04:00
Alexey Antonov e7cd99693c
[New Platform Migration]: Management - Implement NP API (#66781) (#68119)
* [New Platform Migration]: Management - Implement NP API
2020-06-03 13:22:28 -05:00
Jen Huang ebccb36dd6
[Ingest Manager] Change agent config YAML view to flyout (#67918) (#68034)
* Consolidate context menu/row action components and usage, and some export/imports

* Missed export

* Move agent config yaml tab to flyout, add and consolidate agent config action menus

* Fix i18n

* Add download config YAML endpoint and link from flyout, add common config->yaml service

* Actually remove the tab lol

* Fix i18n
2020-06-03 11:14:54 -07:00
Garrett Spong fb85d669b9
[SIEM] [Detections] Renames Signals to Alerts (#67731) (#68123)
## Summary

Resolves https://github.com/elastic/kibana/issues/65944

Renames `Signals` -> `Alerts` on the main Detection Engine page. Including:
* Timeline Event Selector
* Alerts Histogram
* Alerts Table

Does not include:
* `Detections` -> `Alerts` navigation rename
* `SignalsByCategory` rename as there already exists an `AlertsByCategory`, verify changing to `ExternalAlertsByCategory`
* Anything server-side or related to `siemSignalsIndex`


### Checklist

- [X] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [X] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-03 11:53:27 -06:00
Victor Martinez 473ca5af8d
[7.x] [APM][E2E] remove unnecessary video (#67362) #67949 2020-06-03 18:50:46 +01:00
Jonathan Buttner c81afb50d7
Pointing kibana to master epr (#68112) 2020-06-03 13:49:04 -04:00
Alexey Antonov 6e54cf4863
Kibana 7.7.0: Chart split orientation is wrong (#67840) (#68098)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-03 19:32:41 +03:00
Garrett Spong bff539c1cd
[SIEM][Exceptions] Add success/error toast component on alert state change (#67406) (#68095)
## Summary

Adds a success and error toast on open or close of alert(s). #65947

<img width="1035" alt="Screen Shot 2020-05-26 at 2 28 57 PM" src="https://user-images.githubusercontent.com/56367316/82947446-5086ae00-9f5d-11ea-848a-9edae48c47dc.png">

<img width="1022" alt="Screen Shot 2020-05-28 at 12 01 03 PM" src="https://user-images.githubusercontent.com/56367316/83176760-3f63ab80-a0db-11ea-9f4d-7b745d0b4bf0.png">


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)

Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2020-06-03 10:14:01 -06:00
James Gowdy 1fca14270b
[ML] Adding per_partition_categorization to job interface and schema (#67953) (#68091)
* [ML] Adding per_partition_categorization to job interface and schema

* adding new fields to Category interface
2020-06-03 17:11:02 +01:00