Commit graph

37936 commits

Author SHA1 Message Date
Mikhail Shustov
83b3510da8
[DX] SavedObjectsManagement to TS project (#88240) (#88283)
* som to ts project

* global_search_providers to ts projecvt
2021-01-14 08:44:10 +01:00
Mikhail Shustov
4b650e9f5e
[DX] move some ES UI plugins to TS project (#88050) (#88276)
* es_ui_shared to ts project

* console to ts project

* console_extensions to ts project

* searchprofiler to ts project

* update includes
2021-01-14 08:43:10 +01:00
Søren Louv-Jansen
9079dcbb0d
[APM] Hide “Create configuration” for users without write access (#88149) (#88278)
* [APM] Hide “Create configuration” for read-only user

* also hide description

* disable create button

* fix ts error for EuiButton
2021-01-14 08:06:39 +01:00
Søren Louv-Jansen
4a73e6ac44
[APM] Hide recording setting from from RUM agents (#88152) (#88280) 2021-01-14 08:05:55 +01:00
spalger
b81af939d3 [kbn/es] start es with raised indices.query.bool.max_nested_depth
(cherry picked from commit e914a60ba8c335a187e8a269596e5072ed4502ee)
(cherry picked from commit 28beb60d79)
(cherry picked from commit 2fc6214627)
2021-01-13 22:07:25 -07:00
spalger
c6bb4366b0 skip suites failing es promotion (#88302)
(cherry picked from commit 850242cd42)
2021-01-13 22:04:25 -07:00
Nathan L Smith
eea466e8d7
Reset time range if either value changes (#88186) (#88241)
Previously we had `getStart` and `getEnd` methods used in `useUrlParams` that would give a new value if the respective `rangeFrom`/`rangeTo` had change.

This had the effect of sometimes making the end time sooner than the start time, causing errors on the page.

`getStart` and `getEnd` have been replaced with a `getDateRange` method that checks if *either* value has changed and recaluates the start/end, but leaves them the same if both values have not changed.

Fixes #85238.
2021-01-13 22:54:35 -06:00
Andrew Wilkins
022c132489
[Fleet] add "traces" type to data stream list (#87985) (#88300)
Update the index pattern uysed for populating
the list of data streams to include traces-*-*.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 12:23:17 +08:00
Tiago Costa
0c02d9136b
chore(NA): remove webpack as a prod dependency (#88284) (#88298) 2021-01-14 02:29:16 +00:00
Alison Goryachev
38df37b2c2
[ILM] Surface linked hidden indices for policies (#87960) (#88255) 2021-01-13 20:47:39 -05:00
Oliver Gupte
6d0e6a2451
[APM] Fixes inconsistent labels for throughput & latency (#88101) (#88264)
* Closes #87483. Updates several labels to be consistent accross views.

* Updates integration tests/snapshots with new term

* Changes "traffic" => "throughput" in the labels

* addresses feedback from PR

* includes tpm unit in Observability overview page and updates test
2021-01-13 17:28:19 -08:00
Madison Caldwell
499711cfb4
Fix timeline query for threshold rules (#88217) (#88269) 2021-01-13 18:40:34 -05:00
Justin Kambic
30d0cbefcc
[Uptime] Unskip jest tests for ExecutedStep component (#88105) (#88219)
* Revise skipped tests to use RTL.

* Rename a test.

* Add a test covering default status badge text.

* Refactor a test to remove redundant code.
# Conflicts:
#	x-pack/plugins/uptime/public/components/monitor/synthetics/executed_step.test.tsx
2021-01-13 16:42:18 -05:00
Constance
84f0579d2a
[App Search] EnginesLogic + minor UX fix (#87561) (#88230)
* [Misc cleanup] DRY out type def

EnginesTableData was made before we started importing more types over from ent-search; we should reuse the more complete EngineDetails instead of re-declaring our own

* Add EnginesLogic file + tests
- based on current state inside EnginesOverview

- Not a 1:1 translation from ent-search's EnginesLogic b/c the table component/view is different
- also missing engine creation which will be a separate PR

* Update EnginesOverview to use EnginesLogic

- should be significantly simpler
- tests no longer need mountAsync

* [Extra] Make up for lost icon.tsx coverage

- because we no longer use mount() in the engines overview tests, I'm adding an extra set of quick shallow render tests to cover the icon .tsx lines

* [Misc] Rename fetchX to loadY (copying Kea)
2021-01-13 13:32:27 -08:00
Constance
38e75a9b6e
[App Search] Set up Analytics router (#88095) (#88247)
* [Setup] Analytics routes & page title consts

* Add AnalyticsRouter
- with TODO views

* Update EngineRouter to use AnalyticsRouter

+ minor rearranging of import order

+ update EngineNav to show active flag for subroutes

* [Polish] Add 404 fallback to Analytics subroutes

+ add custom breadcrumb trail prop to NotFound component

* [PR feedback] DRY out typing
2021-01-13 13:32:14 -08:00
Joe Reuter
0247619e51
Migrate most kibana app plugins to TS projects (#87636) (#88205)
# Conflicts:
#	x-pack/tsconfig.json
2021-01-13 22:01:31 +01:00
Dominique Clarke
b2b830da47
[Uptime] update synthentics screenshot preview images (#87602) (#88181)
* update PingTimestamp caption and add spinner for loading images

* use FETCH_STATUS to determine render state for PingTimestamp

* add tests for ping timestamp

* adjust ping timestamp caption

* update screenshot to use EuiImage

* remove deprecated translations

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 15:48:25 -05:00
Nathan Reese
1a1ec6e7da
[Maps] create Elasticsearch search source layer descriptor (#87855) (#88222)
* [Maps] create Elasticsearch search source layer descriptor

* tslint

* tslint

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 13:38:54 -07:00
Quynh Nguyen
3a437d3799
[7.x] [ML] Fix Anomaly Explorer & Single Metric Viewer not plotting correctly for detectors with non zero count function (#87903) (#88226) 2021-01-13 14:38:00 -06:00
Nicolas Chaulet
4a1808b35b
[Fleet] Remove misleading information from enrollment token revoke modal (#88094) (#88178) 2021-01-13 16:15:26 -04:00
Matthew Kime
2a32d0e251
revert runtime fields editor plugin (#88132) (#88187) 2021-01-13 13:59:31 -06:00
gchaps
7f581ec714
[DOCS] Adds examples of date range queries (#88201) (#88243)
* [DOCS] Adds examples of date range queries

* Update docs/discover/kuery.asciidoc

Co-authored-by: Nicholas Bellerophon <github@nerophon.com>

Co-authored-by: Nicholas Bellerophon <github@nerophon.com>

Co-authored-by: Nicholas Bellerophon <github@nerophon.com>
2021-01-13 11:55:32 -08:00
gchaps
6ef0556877
[DOCS] Adds breaking changes for 7.11 (#87947)
* [DOCS] Adds breaking changes for 7.11

* [DOCS] Fixes typo

* [DOCS] Adds release tag
2021-01-13 11:16:46 -08:00
gchaps
d3e231be2b
[DOCS] Updates API changes doc (#88108)
* [DOCS] Updates API changes doc

* [DOCS] Minor edit to API changes doc
2021-01-13 11:06:15 -08:00
Constance
8629e28929
[App Search] Minor log retention refactors (#88140) (#88206)
* Move reused log retention components to own folder

- e.g., logic file, helpers used by other views & not just settings

* Update settings-specific views to reference top-level folder

- I'm leaving the panel and the confirmation modal within settings as that isn't used anywhere outside the settings page, but we can revisit this if needed or if people think it makes more sense to keep everything log related together

* [bug] Fix nested <p> error in log retention confirmation modal
2021-01-13 10:42:23 -08:00
Nick Partridge
2ace80b5d6
[Visualize] Fix color picker close on blur (#88067) (#88199) 2021-01-13 12:21:36 -06:00
ymao1
10237c7035
Fixes Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alerts_list·ts - Actions and Triggers app alerts list should display total alerts by status and error banner only when exists alerts with status error (#88119) (#88166)
* Unskipping test

* Adding refresh before checking status

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 13:03:44 -05:00
Corey Robertson
5b6c49e61a
[Canvas] Register addons async (#86977) (#87741)
* Make canvas registries accept async functions

* Remove some comments

* Remove comment

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Add ts error types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2021-01-13 13:01:43 -05:00
Christiane (Tina) Heiligers
9a12f16294
[7.x] Converts Telemetry Management Section to TS project refs (#88073) (#88191) 2021-01-13 10:50:03 -07:00
Devon Thomson
5d2f7b3a49
[Dashboard] Fix Blank Screen when Expanded Embeddable Not Found (#87925) (#88195)
* Fixed blank screen when expanded embeddable id is changed
2021-01-13 12:46:06 -05:00
Bohdan Tsymbala
0efc67cb3c
Extracted some parts of server side validation from schema into shared space. Changed the schema structure a bit to avoid casting inside validation code. (#87523) (#88021)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 18:17:04 +01:00
ymao1
8ce8077e7e
CSS fix for connector list (#87831) (#88170) 2021-01-13 12:07:27 -05:00
Robert Oskamp
5616bde63a
[ML] Functional tests - stabilize AD job delete test (#88148) (#88174)
This PR stabilizes the AD job delete tests by waiting for the job to not exist anymore before checking the job list.
2021-01-13 17:21:25 +01:00
Stratoula Kalafateli
ec4f53f3cc
[XY axis] Implement new palette service (#86876) (#88173)
* [XY Axis] New Palette service

* Calculate all Series to map the colors correctly

* remove commented out code

* syncColors on XY plugin

* Reset to false when no embeddable

* Add unit test for getAllSeries function

* Measure the usage of the selected palette

* Minor adjustments

* Update documentation for isSyncColorsEnabled method

* Fix bug on changing palette on charts with no split series

* Fix coloring for multiple y axis visualizations

* Call getPalettes function from the renderer

* Fullwidth palette picker

* Fetch palette registry on the component and not on the renderer

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 18:17:51 +02:00
spalger
34b6e79a65 skip flaky test (#75106)
(cherry picked from commit f4a348f762)
2021-01-13 09:15:01 -07:00
Jonathan Budzenski
f6646211ad [build] Migrate grunt license:csv_report to script (#86001)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 09:52:34 -06:00
spalger
59f223d79f skipping flaky suite (#87988)
(cherry picked from commit 05f5192d1d)
2021-01-13 08:52:01 -07:00
Jean-Louis Leysens
3ebce3c2b0
[Console] Add functional test to check for basic autocomplete functionality (#87331) (#88165)
* added first pass at functional test

* refactor console autocomplete test to be more robust

* remove unused variable

* refactored test to use data-test-subj where possible

* remove unused value

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 16:47:14 +01:00
spalger
bd2941d87f skip flaky suite (#88177)
(cherry picked from commit 3953f9647e)
2021-01-13 08:39:10 -07:00
Alexey Antonov
605516288b
Advanced input does not work for visualizations (#88154) (#88168)
* Advanced input does not work for visualizations

* Remove unnecessary imports and update tests

Co-authored-by: Diana Derevyankina <54894989+DziyanaDzeraviankina@users.noreply.github.com>
2021-01-13 18:28:49 +03:00
Joe Reuter
497892e300
make sure filter object is persistable (#87828) (#88164) 2021-01-13 16:06:25 +01:00
Joe Reuter
7152e02ada
close popover on repeated button click (#87834) (#88163) 2021-01-13 16:06:11 +01:00
Nicolas Chaulet
d5a116a788
[Fleet] Only display logs UI for agent >= 7.11 (#87926) (#88157) 2021-01-13 09:49:24 -04:00
Alejandro Fernández Gómez
86470ce09c
[7.x] [Logs UI] Add <LogStream/> documentation to the infra Storybook (#87169) (#88153)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-01-13 14:40:25 +01:00
Paul Tavares
bfbd584c0f
[Fleet] Show Count of Agent Policies on Integration Details (#86916) (#88068)
* component to show count of agent policies for integration
* API route and service to return stats of package usage
2021-01-13 08:20:23 -05:00
Justin Kambic
8dbe468ff4
[Uptime] Remove prototype overwrite in unit test (#73709) (#88090)
* Remove prototype overwrite in unit test.

* Wrap calls to prototype functions with jest.spyOn.

* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* Move updated test files to correct locations.

* Move other test file to correct location.

* Revert unintended changes from merge.

* Revert unintended changes from merge.

* update mock core

* combine wrappers into one custom render function

* Move mock helpers to helper file. Update snapshots.

* Refactor tests to use RTL over enzyme.

* Refactor \`PingHistogram\` component tests to prefer RTL to Enzyme.

* Drop obsolete snapshot file.

* Remove obsolete file leftover from merge error.

* Fix outdated import path.

* Prefer custom render to vanilla.

* Fix formatting issue uncovered by unit test, and update test assertion.

* Add test for single location.

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 07:43:04 -05:00
Shahzad
d5d39eb62c
[7.x] fix waterfall scroll color for dark theme (#87833) (#88146) 2021-01-13 13:39:13 +01:00
Pedro Jaramillo
49a55a091d
[Security Solution][Threshold Rules] Fixes for 7.11 (#88120) (#88151)
* Use OR for threshold timeline query (not AND)

* Speed up aggregatable fields filter with mutation

Co-authored-by: Madison Caldwell <madison.rey.caldwell@gmail.com>
2021-01-13 07:23:46 -05:00
Dima Arnautov
529bc1cec1
[7.x] [Transform] Functional tests for latest method (#86966) (#88143)
* [Transform] Functional tests for latest method  (#86966)

* [ML] create latest transform from index pattern

* [Transform] refactor, tests for saved search

* [Transform] cloning tests for latest transform

* [Transform] fix cloning test, add editing tests

* [Transform] fix typo

* [Transform] disable cloning tests

* [Transform] add assertion for selected tranform function

* [Transform] disable editing tests

* [Transform] disable editing and cloning tests for latest function

* [Transform] enable tests
2021-01-13 13:21:56 +01:00
Devin W. Hurley
b314354074
[Security Solution] [Detections] Fix bug to allow lower privileged users to close alerts (#87761) (#88126)
* remove canUserCRUD from signal actions and remove refresh param from open_close_signals route. 'refresh' requires maintenance / manage / all privileges for signals index

* adds 'maintenance' to privileges route

* fix unit teset typing

* update tests, updated lists e2e tests since it relies on the readPrivileges function of SIEM so any changes to the expected response from there must also be changed in the lists privileges route

* update scripts roles to include maintenance for roles that do not have privileges higher than 'maintenance'

* fix open-close signals integration test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 06:48:14 -05:00