Commit graph

13731 commits

Author SHA1 Message Date
Constance 474af9f3eb
[Enterprise Search] Add Kea test helper for directly accessing listeners (#89061)
* Add getListeners to Kea test helpers

* Update TelemetryLogic to use new getListeners helper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 11:56:42 -08:00
Nathan L Smith e5588a129b
Move EUI styled components integration to kibana_react (#86065)
...from xpack_legacy.

Remove the duplicated typings from the observability plugin and only use the ones from kibana_react.

Fixes #78248.
2021-01-25 13:48:35 -06:00
Nathan Reese 15a45e8c38
[Maps] fix users without access to Maps should not have the option to create them (#88830)
* [Maps] fix users without access to Maps should not have the option to create them

* fix test message

* wrap add geo field trigger in show capabilities check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:25:52 -07:00
Alison Goryachev edb5e35151
[Painless Lab] Update server to use new es-js client (#88704) 2021-01-25 13:26:53 -05:00
Tiago Costa 342f9fbac1
skip failing es promotion suite (#89181) 2021-01-25 17:11:52 +00:00
Tiago Costa 592d79c210
skip failing es promotion suite (#89180) 2021-01-25 17:07:13 +00:00
Alison Goryachev 43db7e365f
[Search Profiler] Migrate server to new es-js client (#88725) 2021-01-25 11:27:59 -05:00
Pete Harverson 4bc5f01428
[ML] Add ML deep links to navigational search (#88958)
* [ML] Add ML deep links to navigational search

* [ML] Refactor register helper files

* [ML] Edit import in search_deep_links

* [ML] Move register_feature out of register_helper

* [ML] Add comment about registerFeature

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 16:20:14 +00:00
Shahzad 6391ef9c45
[Observability] Lazy load shared components (#88802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 17:08:31 +01:00
Oliver Gupte e251ff4be5
[APM] Renames significant terms feature to "Correlations" (#88974) (#89028)
* [APM] Renames significant terms feature to "Correlations" (#88974)

* fix capitalizations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 08:05:32 -08:00
Gidi Meir Morris f6837a1f66
made unit test more reliable (#89094)
Made unit test more reliable by using resolving promises rather than timed `await`s that could be flaky when the node event loop is overwhelmed.
2021-01-25 15:57:50 +00:00
Christos Nasikas 1714b22de7
[Security Solution][Case] Improve cases and actions docs (#87817) 2021-01-25 17:41:25 +02:00
Shahzad e7e42a4711
[Uptime] Display networks requests total (#88672) 2021-01-25 16:07:53 +01:00
Pierre Gayvallet 93c46f5dfc
Remove tag name validation (#88800)
* Remove tag name validation

* remove i18n key

* add FTR test on searching for tag with special chars in name
2021-01-25 15:29:10 +01:00
Sonja Krause-Harder 77851e8382
Ignore missing asset errors on remove. (#89115) 2021-01-25 15:01:29 +01:00
Shahzad e8f338e78c
[Uptime] Added View performance breakdown button (#88658)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:56:55 +01:00
Thom Heymann aeb6df30d5
Update user management page (#87133)
* Update user management page

* Fixed i18n errors

* Fix linting errors

* Add ids required for accessability

* Added suggestions from code review

* Fix test errors

* Fix types in fleet

* fix translations

* Fix i18n

* Added suggestions from code review

* Fix i18n errors

* Fix linting errors

* Update messaging

* Updated unit tests

* Updated functional tests

* Fixed functional tests

* Fix linting errors

* Fix React warnings

* Added suggestions from code review

* Added tests and renamed routes

* Fix functional tests

* Simplified API integration tests

* Updated copy based on writing suggestions

* Fixed unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 13:51:57 +00:00
Tiago Costa a5bb86482d
skip flaky suite (#89069) 2021-01-25 13:49:20 +00:00
Marco Liberati 99ffbbe357
[Lens] Restore a11y flacky tests (#88954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:46:23 +01:00
Tiago Costa 50d8c69ea8
skip flaky suite (#88639) 2021-01-25 13:36:38 +00:00
James Gowdy f15a1e685c
[ML] Adding jobs stats to functions shared in setup contract (#88673)
* [ML] Adding jobs stats to functions shared in setup contract

* updating types

* adding datafeeds

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 11:36:48 +00:00
Shahzad 601d9fd018
[Uptime] waterfall view reduce opacity for blocking/waiting color (#88611)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:33:26 +01:00
Joe Reuter 9d7cac76f5
increase timeout on graph test for cloud (#88612) 2021-01-25 11:26:30 +01:00
Joe Reuter 02f24de899
[Lens] Add drag drop tests (#88660) 2021-01-25 11:25:46 +01:00
Peter Pisljar d81ab83c16
[examples] expressions explorer (#88344) 2021-01-22 19:52:47 +01:00
Kevin Logan 49d95f6fb1
[Fleet] Add updateFleetRoleIfExists() in order to update fleet_enroll permissions if role already exists (#88000)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-22 12:12:59 -05:00
Nathan Reese a0bfdf87fd
[Maps] fix Filter shape stops showing feedback when data refreshes (#89009)
* [Maps] fix Filter shape stops showing feedback when data refreshes

* update comment

* add curly braces around if
2021-01-21 19:35:40 -07:00
Nathan Reese 5908bd097f
[Maps] fix setting "apply global time" switch not working with blended vector layer (#88996)
* [Maps] fix setting "apply global time" switch not working with blended vector layer

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 18:27:27 -07:00
Scotty Bollinger 4281a347c6
[Workplace Search] Add tests for remaining Sources components (#89026)
* Remove history params

We already replace the history.push functionality with KibanaLogic.values.navigateToUrl but the history object was still being passed around.

* Add org sources container tests

* Add tests for source router

* Clean up leftover history imports

* Add tests for SourcesRouter

* Quick refactor for cleaner existence check

Optional chaining FTW

* Refactor to simplify setInterval logic

This commit does a refactor to move the logic for polling for status to the logic file. In doing this I realized that we were intializing sources in the SourcesView, when we are actually already initializing sources in the components that use this, which are OrganizationSources and PrivateSources, the top-level containers.

Because of this, I was able to remove the useEffect entireley, as the flash messages are cleared between page transitions in Kibana and the initialization of the sources ahppens in the containers.

* Add tests for SourcesView

* Fix type issue
2021-01-21 17:32:18 -06:00
Constance c495093f76
[App Search] Move generateEnginePath out from EngineLogic values to its own helper (#89022)
* [Feedback] Move generateEnginePath to its own standalone helper

- instead of living inside EngineLogic.values
- I forgot Kea lets us do this now!

* Update all components using generateEngineRouter to import helper directly
2021-01-21 14:39:14 -08:00
Aleh Zasypkin f6689729ea
Migrate authentication functionality to a new Elasticsearch client. (#87094) 2021-01-21 21:10:52 +01:00
Matthew Kime ae0bd2fbba
Add runtime fields to index patterns and searchsource (#88542)
* Add runtime fields to index patterns and searchsource
2021-01-21 14:10:19 -06:00
Sandra Gonzales 76b23f17e2
add custom metrics to node tooltip (#88545)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:32:35 -05:00
Lisa Cawley 17043d4f9d
Use doc link service in Stack Monitoring (#88920) 2021-01-21 11:25:02 -08:00
Constance 440238b051
[App Search] Add generatePath helper for generating engine links (#88782)
* Add a generatePath engineName helper to EngineLogic

* Create mockEngineValues reusable mock

* Update routes + EngineNav & EngineRouter to include ENGINE_PATH in all urls

- routes: remove get*Route fns in here as all routes should prefer to use generatePath from EngineLogic moving forward

- EngineRouter - add missing canViewEngineDocuments checks

- Engine tests - import base mock values +  update tests to point directly at files to work around the auto mock

* Update AnalyticsRouter to use new routes+generatePath

* Update DocumentDetailLogic to use new generatePath

+ Misc cleanup:
  - organize imports by shared > AS specific > docs specific
  - move delete-specific const's to directly before they're used, since they're only used in one place
  - deconstruct KibanaLogic.values

* Update all components using getEngineRoute to use new generatePath

+ misc import order cleanup - prefer shared > specific groupings

* [PR feedback] Change components that override the engineName param to just use default generatePath

* [PR feedback] Rename instances of EngineLogic's generatePath to generateEnginePath
2021-01-21 10:55:48 -08:00
Nicolas Chaulet 88be8a7148
[Fleet] Remove support for shared_id during enrollment (#88897) 2021-01-21 13:42:39 -05:00
Scotty Bollinger eaab783410
[Workplace Search] Add unit tests for top-level Sources components (#88918)
* Add full source mocks

The overview page recieves heavily annotated source data for display. This extends the existing mocks

* Refactor for easier readability

Uses optional chaining. Hide whitespace changes for easier reviewing of this commit

* Remove conditionals

The false case will never be true here because the line above only renders when there is a summary. Around line 109:

```
{!!summary &&
```

* Refactor GroupsSummary to variable

It was challenging to test the null in the original implementation so I refactored to cloer match the way we do this in other places by making the conditional rendering inline, rather than `null` in a function.

* Remove unused const

* Add overview test-subj attrs

* Add overview unit tests

* Add tests for SourceAdded

* Move meta to shared mock

* Add tests for SourceContent

* Add tests for SourceInfoCard

* Move redirect logic from component to logic file

We had this weird callback passing to trigger a redirect and we are already redirecting in the logic file for other things so I simplified this to have the logic file do the redirecting and not have to pass the callback around, which is hard to test and unnecessary complexity.

Also using the KibanaLogic navigateToUrl instead of history.push

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/source_logic.ts

* Add tests for SourceSettings

* Add tests for SourceSubNav

* I am the typo king

🤴🏼Prove me wrong.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 12:41:51 -06:00
Jonathan Budzenski 933d1b1471 skip "run cancels expired tasks prior to running new tasks" 2021-01-21 12:10:59 -06:00
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
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
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
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
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