Commit graph

39876 commits

Author SHA1 Message Date
Chris Roberson d1e3ee98e5
Stop using usingEphemeralEncryptionKey (#88884)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 13:08:25 -05:00
Anton Dosov 7727ab74d2
[Docs] Clean up state management examples (#88980) 2021-01-21 18:45:13 +01:00
James Gowdy b5d2d89c14
[ML] Fixing syncing of deleted job in the * space (#88968)
* [ML] Fixing syncing of deleted job in the * space

* small refactor
2021-01-21 17:21:28 +00:00
Dario Gieselaar fde408545d
decorateSnapshotUi: get file from stacktrace (#88950) 2021-01-21 18:16:04 +01:00
Constance ed811e332d
[Workplace Search] Update routes to use new encodePathParams helper (#88899)
* Fix createRequest typing to correctly report errors if incorrect args are passed

+ simplify out generic which was causing problems w/ checking - I'd rather check for unnecessary args than hasValidData, which we're not using much anymore

* Update WS settings routes

* Update WS groups routes

* Update WS sources routes
2021-01-21 09:01:42 -08:00
DanielHabenicht 1236834dd4
add enterpriseSearch.host (#88587)
part of #76669

(cherry picked from commit f5c346cf1ebd22ba38d6b3058099b96dfbf4d7a7)
2021-01-21 09:59:08 -07:00
Jonathan Budzenski f6813b855f
[build/fs] Fix copyAll default atime and mtime (#88921) 2021-01-21 10:32:27 -06:00
Aaron Caldwell 4f62bf1f88
Update geo alerts index description: geo shape/point -> geo point (#88860) 2021-01-21 09:19:42 -07:00
Angela Chuang 92f0b7cade
[Security Solution] integration test failure on kpi hosts and kpi network (#88870)
* integration test failure

* integration test failure

* integration test failure

* kpi_network integration test failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 15:55:31 +00:00
Spencer 208ae0d2a4
[functional_cors] use pre-defined unique port in CI (#88919)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-21 08:34:03 -07:00
Alejandro Fernández Haro 07002d691b
[Functional tests] Drop legacyEs usage (#88939)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:49:18 +00:00
Pierre Gayvallet 477d0bbe21
add SavedObject export hooks (#87807)
* initial POC

* fix spaces UT

* address POC feedback, add tests for applyExportTransforms

* add sorting for transforms

* add type validation in SOTR

* add FTR tests

* update documentation

* add explicit so type export for client-side

* update generated doc

* add exporter test

* update license headers

* update generated doc

* fix so import... imports

* update generated doc

* nits

* update generated doc

* rename test plugins

* adding FTR tests on export failures
2021-01-21 15:27:28 +01:00
Mikhail Shustov b3a9754394
[Core] Explicit typings for request handler context (#88718)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
2021-01-21 15:20:22 +01:00
Patrick Mueller d3fa06b268
updates doc on action parameter variable mustache escaping (#88521)
Provides more detail on mustache variable escaping within action parameter templates.
2021-01-21 09:06:30 -05:00
Gidi Meir Morris c89f1f18d3
[Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669)
When something causes an exception in `TaskRunner.markTaskAsRunning()` its execution fails, but this happens before we update the SO, which means that this failure does not count towards the `attempts` on the task. Task Manager will continue to try running this task for ever.

This PR increments the `attempts` when a failure occurs during `TaskRunner.markTaskAsRunning()` to ensure such a task doesn't continue to run to infinity.
Note that this fix will not affect `scheduled` tasks, as they are designed to _ignore_ their `attempts` and run for ever. In such a case this task will continue to consume Task Manager resources until canceled, but these failures will be logged and could be identified when needed.
2021-01-21 14:04:42 +00:00
Gidi Meir Morris b3bec0d6ef
[Task Manager] Cleans up polling shift mechanism (#88210)
Cleanup work
1. Replaced naive initialisation of `last_polling_delay`
2. Changes values in `delayOnClaimConflicts` unit tests to make the values less confusing (it was easy to misunderstand the worker count for being the percentage of workers
3. Added comment explaining the usage of modulo
2021-01-21 14:03:26 +00:00
Robert Austin c3a69fe28b
Remove plugin circular deps between actions -> case and case -> securitySolution (#88106) 2021-01-21 08:47:15 -05:00
Justin Kambic f0be0ade19
[Uptime] Improve filter group (#88185)
* Unskip "Observer location" test block.

* Commit temp "describe.only" to make flaky test runner go faster.

* Add optional chain for some potentially-null props.

* Make overview filters type partial.

* Repair broken types.

* Remove only call from test.

* Add unit tests and mark areas for improvement in \`FilterGroup\` component.

* Add aria-label translations and new labels.

* Refactor existing tests and add tests for new labels.

* Fix bug in event handler and update tests.

* Delete a comment.

* Delete a comment.

* Add some line breaks to help readability.

* Add additional tests, fix a bug.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 08:33:49 -05:00
Joe Reuter 0b798f7d10
make drag drop test more stable (#88614) 2021-01-21 14:29:23 +01:00
Joe Reuter 248ed420e2
[Lens] Upgrade fixtures (#88838) 2021-01-21 14:05:32 +01:00
Gidi Meir Morris dfd96d62c4
ebsure we always select the correct index (#88876)
At times we find the driver controlling the ComboBox in our UI tests can select the wrong item, this ensures we always select the correct index in the Connector tests.
2021-01-21 12:09:19 +00:00
Cauê Marcondes d997f20708
[APM] Service overview: Introduce time-series comparison (#88665)
* adding comparision select option

* adding time comparison field on some pages

* removing unused files

* fixing unit test

* adding unit tests

* enabling comparison for more than 8 days

* removing tooltip

* refactoring search bar

* moving useBreakPoint to common hooks folder, removing useShouldUSeMobileLayout hook

* addressing PR comments

* addressing PR comments

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 12:13:52 +01:00
Rudolf Meijering bfcd990dee
Handle another node already having deleted the temporary index (#88332)
* Handle another node already having deleted the temporary index

* Make run_multiple_kibana_nodes.sh script more generic

* Add note about dependency on jq

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 12:10:10 +01:00
James Gowdy 1709c704d9
[ML] Improving model snapshot revert UI experience (#88588)
* [ML] Improving model snapshot revert UI experience

* removing button disabling

* updating component is mounted check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 10:54:28 +00:00
Anton Dosov 05fcdd8a56
[Search Sessions] Add searchSessionId to Vega's inspector (#88839) 2021-01-21 11:31:28 +01:00
Joe Reuter ab1d97e441
[Lens] Restart session if fixed now becomes outdated (#88575) 2021-01-21 11:00:57 +01:00
Dario Gieselaar b93042e7e3
[APM] Exclude cypress from APM-only tsconfig (#88837) 2021-01-21 10:50:39 +01:00
Walter Rafelsberger 922abfa21e
[ML] Transforms: Fixes available fields for sort options for latest configuration (#88617)
- Fixes the transform preview header to display the heading text in any case and the copy-to-clipboard button for latest configurations (the copy-to-clipboard option for pivot is displayed within the form).
- Fix to avoid listing all fields for the sort option for latest configuration and only show date fields
- Fixes ambiguous form field labels
2021-01-21 08:11:59 +01:00
Aleh Zasypkin c7267b63df
Reject authentication requests if license is not available. (#88850) 2021-01-21 07:59:00 +01:00
spalger d28fa36e8a skip flaky suite (#88928) 2021-01-20 21:01:57 -07:00
spalger 97c7f5c8a1 skip flaky suite (#88926) (#88927) (#88929) 2021-01-20 20:51:18 -07:00
Scotty Bollinger 8008261060
[Workplace Search] Add tests for Custom Source Schema (#88785)
* Add tests for Schema components

* Convert components to use clearFlashMessages helper

* Remove unused action types

These aren’t actually used anymore

* Fix type

This is actually a string from the server

* Move mock to shared mocks

* Add tests for logic file

* Fix App Search tests

Server actually sends back a string for `activeReindexJobId`

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-20 21:15:47 -06:00
Nicolas Chaulet 3b728b73cf
[Fleet] Use fleet server indices for enrollment keys and to list agents with a feature flag (#86179) 2021-01-20 19:29:04 -05:00
Joe Portner 25f16db4d9
Sharing saved objects, phase 2 (#80945) 2021-01-20 17:39:21 -05:00
Brian Seeders 82c1501924
[CI] [TeamCity] Move PR commit status publishing gate to accommodate PR bot (#88911) 2021-01-20 16:55:29 -05:00
Nathan Reese da8abdaf75
[Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened (#88849)
* [Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened

* only set tags if newTags are provided
2021-01-20 14:29:47 -07:00
Dominique Clarke 954c887006
[Uptime] waterfall add fallback support for uncommon mime types (#88691)
* uptime waterfall add fallback support for uncommon mime types

* update data_formatting test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-20 15:25:45 -05:00
Matthew Kime 1edc799894
[index patterns] improve developer docs (#86416)
* add index pattern docs
2021-01-20 14:21:38 -06:00
Jason Stoltzfus 15f05b51ff
[App Search] Wired up configurable Sort and Facets in Documents View (#88764) 2021-01-20 14:57:37 -05:00
Constance f4f6cb687c
[App Search] Add new encodePathParams helper (fixes unencoded document IDs) (#88648)
* Add encodePathParams helper to EnterpriseSearchRequestHandler

This helper accomplishes two things:

- Fixes 404s from the Enterprise Search server for user-generated IDs with special characters (e.g. ? char)

- Allows us to simplify some of our createRequest calls - no longer will we have to grab request.params to create paths, this helper will do so for us

* Update AS document route to use new helper

- This was the primary view/API I was testing to fix this bug

* Update remaining AS routes to use new helper

- shorter, saves us a few lines
+ remove unnecessary payload: params that doesn't actually validate params

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-20 11:07:32 -08:00
Yuliia Naumenko 8b1a228c29
[Alerting] Migrate Actions, Alerts, Stack Alerts and TriggersActionsUI plugins to TS project references (#88556)
* [Alerting] Migrate Actions plugin to TS project references

* alerts plugin ts migration

* triggers_actions_ui plugin ts migration

* fixed build

* fixed build
2021-01-20 10:53:01 -08:00
Chris Roberson c9002a25c5
[Monitoring] Convert Elasticsearch-related server files that read from _source to typescript (#88212)
* A good chunk of server-side ES changes

* CCR files

* More areas where we just pass down the source to the client

* Some more

* Fix tests

* Fix tests and types
2021-01-20 13:43:53 -05:00
Nathan Reese f0f192c654
[Maps] fix Maps should display better error message instead of EsError when there is no data for tracks data source (#88847) 2021-01-20 11:25:48 -07:00
Pierre Gayvallet edb338a8ad
Add SO import hook / warnings API (#87996)
* initial commit

* adapt client-side signatures

* more type fixes

* adapt api IT asserts

* fix some unit tests

* fix more test usages

* fix integration tests

* fix FT test assertions

* fix FT test assertions

* add FTR API integ test suite

* create the plugin_api_integration test suite

* adapt and fix flyout tests

* update documentation

* update generated doc

* add unit tests for `executeImportHooks`

* wire resolve_import_errors and add unit tests

* move hooks registration to SO type API

* update generated doc

* design integration

* update generated doc

* Add FTR tests for import warnings

* deletes plugins api integ tests

* self review

* move onImport to management definition

* update license header

* rename actionUrl to actionPath
2021-01-20 19:25:32 +01:00
Brian Seeders 466d83c6d1
[CI] [TeamCity] Enable job triggers in TeamCity (#88869) 2021-01-20 13:15:59 -05:00
Nick Partridge 2e878f59f7
Sync search query with url in advanced settings (#81829) 2021-01-20 11:29:07 -06:00
Gidi Meir Morris e21defa448
[Task Manager] Reject invalid Timeout values in Task Type Definitions (#88602)
This PR adds the following:
1. We now validate the interval passed to `timeout` when a task type definition is registered.
2. replaces usage of `Joi` with `schema-type`
2021-01-20 17:23:02 +00:00
Gidi Meir Morris 4878554cc9
[Task Manager] cancel expired tasks as part of the available workers check (#88483)
When a task expires it continues to reside in the queue until `TaskPool.cancelExpiredTasks()` is called. We call this in `TaskPool.run()`, but `run` won't get called if there is no capacity, as we gate the poller on `TaskPool.availableWorkers()` and that means that if you have as many expired tasks as you have workers - your poller will continually restart but the queue will remain full and that Task Manager is then in capable of taking on any more work. This is what caused `[Task Poller Monitor]: Observable Monitor: Hung Observable...`
2021-01-20 17:22:16 +00:00
Brian Seeders a0af6bdea6
[CI] [TeamCity] Add more default ci groups and build usage_collection plugin (#88864) 2021-01-20 12:21:11 -05:00
Dan Panzarella fd9697c813
Rename test spec file (#88842) 2021-01-20 12:20:24 -05:00