Commit graph

38158 commits

Author SHA1 Message Date
Thom Heymann 38fe9614aa
Update user management page (#87133) (#89139)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 16:23:10 +00:00
Sonja Krause-Harder 730daee9ac
Ignore missing asset errors on remove. (#89115) (#89145) 2021-01-25 17:06:04 +01:00
Aaron Caldwell f0f3820623
[7.x] [Docs] Add geo threshold and containment docs (#88783) (#89044)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-01-25 08:24:16 -07:00
Joe Reuter b69a384ffa
increase timeout on graph test for cloud (#88612) (#89099) 2021-01-25 16:14:54 +01:00
Shahzad e978834d52
[7.x] [Uptime] waterfall view reduce opacity for blocking/waiting color (#88611) (#89117)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 16:09:33 +01:00
Diana Derevyankina f7b288bd8f
Small multiples in vis_type_xy plugin (#86880) (#89127)
* Small multiples in vis_type_xy plugin

* Fix tooltip and formatted split chart values

* update advanced settings wording

* Remove React import in files with no JSX and change the extension to .ts

* Simplify conditions

* fix bar interval on split charts in vislib

* Fix charts not splitting for terms boolean fields

* fix filtering for small multiples

* Change tests interval values from 100 to 1000000

* Revert "Change tests interval values from 100 to 1000000"

This reverts commit 92f9d1b4b9.

* Fix tests for interval issue in vislib

(cherry picked from commit ef45b63c47da403399f76f00b49329531d445f31)

* Revert axis_scale changes related to interval

* Enable _line_chart_split_chart test for new charts library

* Move chart splitter id to const

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 18:00:04 +03:00
James Gowdy acea647b56
[ML] Adding jobs stats to functions shared in setup contract (#88673) (#89118)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:20:18 +00:00
Tiago Costa cf9d44a062
skip flaky suite (#89069) 2021-01-25 13:49:52 +00:00
Tiago Costa 32320681d5
skip flaky suite (#88639) 2021-01-25 13:37:08 +00:00
Daniil eab2dddd9d
[Data table] Add telemetry for table vis split mode (#88604) (#89112)
* Add telemetry for table vis

* Update telemetry schema

* Add unit tests

* Update license

* Use soClient instead of esClient, update tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 16:22:17 +03:00
Anton Dosov 9500c1930f
[Search Sessions] omit searchSessionId from the initialState, explicitly pause refreshInterval in restoreState (#88650) (#89101) 2021-01-25 13:44:12 +01:00
Stratoula Kalafateli 421053b9e5
[XY Axis] Fix bug on percentiles and percentiles ranks (#88576) (#89102)
* [XY Axis] Fix bug on percentiles and percentiles ranks

* Add unit tests to renderAllSeries

* make it simpler

* Minor change on test

* Fix license headers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:25:49 +02:00
Joe Reuter 0eee355981
[Lens] Add drag drop tests (#88660) (#89100) 2021-01-25 13:20:32 +01:00
Alejandro Fernández Haro ddcd8a2783
[7.x] [Functional tests] Drop legacyEs usage (#88939) (#89089)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:16:31 +00:00
Stratoula Kalafateli 93a3b56c1c
Update dependency vega to ^5.19.1 (#88984) (#89087)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:27:54 +02:00
Kevin Logan 0a54200c85
[Fleet] Add updateFleetRoleIfExists() in order to update fleet_enroll permissions if role already exists (#88000) (#89060)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-24 16:47:09 -05:00
John Schulz 539eb6ed59
[Fleet][EPM] If proxy url has username & password, add to Node's Agent options (#86807) (#89071)
## Summary

A user received a `407` response when using a `registryProxyUrl` format like `http://user:pass@host:port`

I believe the issue is we're not including the [`auth` property as described in this issue](https://github.com/TooTallNate/node-https-proxy-agent/issues/12#issuecomment-216098644). 

Add tests to ensure it only adds `auth` if username & password are given.

### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

```
  getProxyAgentOptions
    auth property
      present & correct if given username and password
        ✓ proxy url is http (1 ms)
        ✓ proxy url is https
      missing if not given username and password
        ✓ proxy url is http
        ✓ proxy url is https
```

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-24 08:12:10 -05:00
Peter Pisljar d4084f50e2
[examples] expressions explorer (#88344) (#89065) 2021-01-23 06:29:13 +01:00
Joe Portner 73d1f644cd
[7.x] Sharing saved objects, phase 2 (#80945) (#88917) 2021-01-22 16:53:47 -05:00
Anton Dosov 104fdb8f63
[Docs] Clean up state management examples (#88980) (#89005) 2021-01-22 10:22:13 +01:00
Dario Gieselaar 71a4715cc3
[7.x] decorateSnapshotUi: get file from stacktrace (#88950) (#89000) 2021-01-22 08:55:43 +01:00
Spencer 09ceaf3f0a
[7.x] [ftr/verbose_instance] check for .finally() before using it (#88998) (#89033)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 23:02:08 -07:00
Nathan Reese b94d3e18c5
[Maps] fix Filter shape stops showing feedback when data refreshes (#89009) (#89054)
* [Maps] fix Filter shape stops showing feedback when data refreshes

* update comment

* add curly braces around if
2021-01-21 22:06:12 -07:00
Nathan Reese 674590e30e
[Maps] fix setting "apply global time" switch not working with blended vector layer (#88996) (#89049)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 22:05:27 -07:00
Constance 9986211094
[App Search] Move generateEnginePath out from EngineLogic values to its own helper (#89022) (#89040)
* [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 17:02:43 -08:00
Matthew Kime f92e3957be
[7.x] Add runtime fields to index patterns and searchsource (#88542) (#89035)
* Add runtime fields to index patterns and searchsource (#88542)

* Add runtime fields to index patterns and searchsource

* left over from merge
2021-01-21 18:57:14 -06:00
Lisa Cawley a62c07b0ed
Use doc link service in Stack Monitoring (#88920) (#89019) 2021-01-21 15:16:25 -08:00
Aleh Zasypkin 22d85e7861
[7.x] Migrate authentication functionality to a new Elasticsearch client. (#89027)
# Conflicts:
#	x-pack/plugins/security/server/authentication/authentication_service.ts
#	x-pack/plugins/security/server/authentication/providers/base.mock.ts
#	x-pack/plugins/security/server/authentication/providers/saml.test.ts
#	x-pack/plugins/security/server/authentication/providers/saml.ts
2021-01-21 23:38:20 +01:00
Sandra Gonzales caa8e08ae0
add custom metrics to node tooltip (#88545) (#89021)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 17:02:01 -05:00
Matthew Kime 5b6c1c49b8
[index patterns] improve developer docs (#86416) (#88902)
* add index pattern docs
2021-01-21 15:48:03 -06:00
Pierre Gayvallet a8c21e0477
[7.x] add SavedObject export hooks (#87807) (#88973)
* 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

* fix data for 7.x
2021-01-21 22:01:31 +01:00
Nicolas Chaulet b368d35570
[Fleet] Remove support for shared_id during enrollment (#88897) (#89016) 2021-01-21 15:51:37 -05:00
Justin Kambic b886d6545e
[Uptime] Improve filter group (#88185) (#88964)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 15:45:50 -05:00
Constance 803ddaaed9
[App Search] Add generatePath helper for generating engine links (#88782) (#89017)
* 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 12:43:12 -08:00
James Gowdy 2b31b32b45
[ML] Fixing syncing of deleted job in the * space (#88968) (#89001)
* [ML] Fixing syncing of deleted job in the * space

* small refactor
2021-01-21 20:40:09 +00:00
Constance 4dfcd7ccf7
[7.x] [Workplace Search] Update routes to use new encodePathParams helper (#88899) (#88999)
* [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
# Conflicts:
#	x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.test.ts
#	x-pack/plugins/enterprise_search/server/routes/workplace_search/sources.ts

* Apply suggestions from code review
2021-01-21 12:01:27 -08:00
Chris Roberson 1b882f02c5
Stop using usingEphemeralEncryptionKey (#88884) (#89008)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 14:59:08 -05:00
Chris Cressman 9fd1df80a8
add enterpriseSearch.host (#88587) (#89012)
part of #76669

(cherry picked from commit f5c346cf1ebd22ba38d6b3058099b96dfbf4d7a7)

Co-authored-by: DanielHabenicht <daniel-habenicht@outlook.de>
2021-01-21 14:00:39 -05:00
Jonathan Budzenski 733940ec09 skip "run cancels expired tasks prior to running new tasks" 2021-01-21 12:11:44 -06:00
Aaron Caldwell 8c909d7346
[7.x] Update geo alerts index description: geo shape/point -> geo point (#88860) (#88991) 2021-01-21 11:07:55 -07:00
Angela Chuang ebad6ea4e0
[Security Solution] integration test failure on kpi hosts and kpi network (#88870) (#88982)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 17:47:02 +00:00
Spencer c7713f216d
[7.x] [functional_cors] use pre-defined unique port in CI (#88919) (#88978)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-21 10:46:28 -07:00
Mikhail Shustov 99cd66f72d
[Core] Explicit typings for request handler context (#88718) (#88975)
* 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
# Conflicts:
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.plugin.start.md
#	src/plugins/data/server/server.api.md
#	x-pack/plugins/monitoring/server/plugin.ts
2021-01-21 18:13:51 +01:00
Jonathan Budzenski d8ef1b4adb [build/fs] Fix copyAll default atime and mtime (#88921) 2021-01-21 10:33:36 -06:00
Dan Panzarella 58105aba9c
[7.x] [Fleet]: ignore 404, check if there are transforms in results. (#80721) (#88961) 2021-01-21 11:21:11 -05:00
Gidi Meir Morris 05981472a8
[Task Manager] Cleans up polling shift mechanism (#88210) (#88969)
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 16:13:48 +00:00
Gidi Meir Morris 7d0de97351
[Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669) (#88970)
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 16:13:33 +00:00
Robert Oskamp 2ad58138f7
Skip snapshot_restore API integration tests in cloud (#88841) (#88858)
This PR disables the snapshot restore API integration tests in cloud.
2021-01-21 16:38:06 +01:00
Joe Reuter 53b6575a2c
[Lens] Upgrade fixtures (#88838) (#88962) 2021-01-21 16:21:50 +01:00
Joe Reuter 7294d9cb6c
make drag drop test more stable (#88614) (#88963) 2021-01-21 16:21:26 +01:00