Commit graph

40751 commits

Author SHA1 Message Date
Kibana Machine
6ea81a35fd
[Fleet] Handle dashboard not found in datastream API (#98622) (#98654)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-04-28 18:35:02 +00:00
Brandon Morelli
8e759783e7
docs: remove apm_user (#98401) (#98663) 2021-04-28 11:06:28 -07:00
Nick Partridge
6b6952388f
Update dependency @elastic/charts to v29.1.0 (#98242) (#98647)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2021-04-28 14:01:23 -04:00
Kibana Machine
55cc3f0cef
[App Search] Small route fixes/updates (#98556) (#98646)
* Various route URL updates

- Snake case Kibana routes
- Remove unnecessary extra subdirectory pathing

* Fix missing ability check

- There isn't currently a role that would fail the check, but since the nav link is wrapped in the role, we might as well copy it and look at our role checks in the 8.0 refactor

* fix test

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-04-28 13:53:37 -04:00
Kibana Machine
3af882c27a
[ML] Fix columns alignment on the Anomaly Detection jobs list (#98598) (#98643)
* [ML] fix columns alignment

* [ML] remove redundant styles

* [ML] fix test subj attr

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-04-28 13:47:05 -04:00
Kibana Machine
2c64065a00
[Canvas] Replace squel with safe-squel (#97169) (#98633)
* Replace squel with safe-squel

* Update squel import name

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

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
2021-04-28 13:16:23 -04:00
Kibana Machine
d4b50fedf2
[CI] Use a new helper library for consistently cloning the repo (#98555) (#98630)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-04-28 13:12:41 -04:00
Candace Park
1bc57e88a6
[Security Solution][Host Isolation] Host Isolation Flyout UI only (#96077) (#98627)
Co-authored-by: pzl <dan@panzarel.la>

Co-authored-by: pzl <dan@panzarel.la>
2021-04-28 13:09:42 -04:00
Kibana Machine
90c72ac276
chore(NA): moving @kbn/logging into bazel (#98564) (#98626)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-28 13:06:48 -04:00
Walter Rafelsberger
dc17e4822e
Transforms/Data Frame Analytics: Fix populated fields sorting used for data grid columns. (#98596) (#98619)
Missed sorting the columns ids based on populated fields. If not all fields are populated in all documents equally, this could result in not correctly sorted columns, also resulting in flaky tests.
2021-04-28 12:22:24 -04:00
Kibana Machine
2ffe391c86
[Exploratory View] Polish design and layout fixes (#98123) (#98613)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-04-28 12:13:14 -04:00
Kibana Machine
6548268951
Replace lodash template with static react renderer for discover's row formatter (#98072) (#98600)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-04-28 11:41:14 -04:00
Kibana Machine
6e27588d28
update chromedriver & ms-edge-driver (#98590) (#98607)
Co-authored-by: dmlemeshko <dzmitry.lemechko@elastic.co>
2021-04-28 11:29:42 -04:00
David Sánchez
2bf2a545fb
[Security Solution] User can add new event filter from event filter list (#98118) (#98604)
* New flyout with event filters form

* Changes on event filters form to allow OS selector. Add new error on state for OS. Add created entry to the entries list

* Fixes typo

* Adds empty page with an add button that opens flyout. Alos added route and path management

* Fixes type and adds a TODO comment. Also removes ESlit rule for useCallback deps

* Fixes unit test. Adds consts for default page size and page index

* Fixes warning state update on an unmounted component

* Fixes infinite useEffect loop useFetchIndex hook because non memoized value

* Adds policy:all to eventFilter.tag and disables or button on exception builder

* Changes component name and simplify hook using useCallback without a custom callback

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-28 11:06:36 -04:00
Kibana Machine
ab54ff6d52
[Logs UI] Don't break log stream on syntactically invalid KQL (#98191) (#98599)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-04-28 10:35:18 -04:00
Anton Dosov
119eb06553
[Search] Unify search plugin step 2 — Search Interceptor (#97845) (#98595)
Unify search interceptor
Deprecate TimeoutErrorMode.UPGRADE
2021-04-28 10:11:09 -04:00
Tyler Smalley
b52b032c23 skip flaky suite (#98562) 2021-04-28 06:27:08 -07:00
Stratoula Kalafateli
8d89dae29d
[Visualize] Fixes V8 theme issues (#97090) (#98591)
* [Visualize] Fixes K8 theme issues

* Fix ci

* Make it work for v7 too

* Fix

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-28 09:05:00 -04:00
Jorge Sanz
a8a8dc88ed
[Maps] Updated documentation for Elastic Maps Server 7.13 (#98310) (#98593)
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-28 05:17:24 -07:00
Felix Stürmer
af55767bab
[Logs UI] Pass dashboard filters to log stream embeddable (#91850) (#98586)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-28 07:18:24 -04:00
Alejandro Fernández Haro
17dda21f6b
[Telemetry] Remove all usages of any (#98338) (#98583)
# Conflicts:
#	src/plugins/telemetry/server/collectors/usage/ensure_deep_object.ts
2021-04-28 06:22:37 -04:00
Mikhail Shustov
d64cdca3b1
Fix SO migration integration tests (#98478) (#98582)
* do not restart Kibana server on integration tests writing logs

* unskip tests

* do not write to ended stream to avoid a race condition

* revert changes to the File appender

* fix race condition on the logging_system level

enforce buffer usage for all the logs created during  disposal phase
# Conflicts:
#	src/core/server/saved_objects/migrationsv2/integration_tests/rewriting_id.test.ts
2021-04-28 06:19:08 -04:00
Kibana Machine
c4dacd0046
always load test fixtures (#98464) (#98580)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-04-28 06:13:28 -04:00
Pierre Gayvallet
c7982fd1ff
change config reload message (#98455) (#98577)
* change config reload message

* change function name
2021-04-28 06:03:36 -04:00
Pierre Gayvallet
022f62a295
SO MigV2: fix logStateTransition (#98445) (#98574)
* SO MigV2: fix logStateTransition

* extract func

* use info directly

* improve tests & impl
2021-04-28 05:57:12 -04:00
Pierre Gayvallet
ab3fed7906
[7.x] SOM: hide actions for hidden types (#98290) (#98568)
* SOM: hide actions for hidden types (#98290)

* SOM: hide actions for hidden types

* fix FTR tests

* add and fix tests

* fix unit tests

* fix test types

* fix FTR test assertions

* add more FTR tests

* delete old file

* fix data set
2021-04-28 05:36:17 -04:00
igoristic
9f4dbd7b43
[7.x] [Monitoring] Added ability to possibly distinguish between Agent type metrics in APM (#95129) (#98387)
* [Monitoring] Added ability to possibly distinguish between Agent type metrics in APM (#95129)

* Added version and cloud check

* Fixed tests

* Code review feedback

* Fixed tests

* added versions

* added version

* ...

* Removed default version

* ..

* Fixed test

* fixed tests
# Conflicts:
#	x-pack/plugins/monitoring/server/lib/apm/_apm_stats.js
#	x-pack/test/api_integration/apis/monitoring/apm/fixtures/cluster.json

* Update cluster.json

* Update _apm_stats.js
2021-04-28 04:55:08 -04:00
Walter Rafelsberger
47a7142d2a
[ML] Transforms/Data Frame Analytics: Fix freezing wizard for indices with massive amounts of fields. (#98259) (#98571)
The transform wizard can become very slow when used with indices with e.g. 1000+ fields.

This PR fixes it by prefetching 500 random documents to create a list of populated/used fields and passes those on to the data grid component instead of all available fields from the list derived via Kibana index patterns.

For example, for an out of the box metricbeat index, this reduces the list of passed on fields from 3000+ to ~120 fields. Previously, the page would freeze on load for tens of seconds and would freeze again on every rerender. With the applied update, the page loads almost instantly again and remains responsive.

Note this fix of reducing available fields is only applied to the data grid preview component. All fields are still available to create the configuration in the UI for groups and aggregations. These UI components, e.g. the virtualized dropdowns, can handle large lists of fields.
2021-04-28 04:22:41 -04:00
Yara Tercero
afda47a1ca
[Security Solution][Tech Debt] - Fix flakey notes tab cypress test (#98439) (#98569)
Fix flakey cypress test related to notes_tab before/after hooks.
2021-04-28 04:15:47 -04:00
Kibana Machine
0480fccafc
Adds documentation about a painless script (#98509) (#98554)
## Summary

Adds dev documentation about a painless script in our code and when we could remove it. See:
https://github.com/elastic/elasticsearch/issues/72276
https://github.com/elastic/kibana/pull/78912

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-04-27 19:45:28 -04:00
Yuliia Naumenko
a0e981788f
[Connectors][API] Updated connectors with isMissingSecrets flag (#98223) (#98552)
* [Connectors][API] Updated connectors with enabledAfterImport flag

* fixed functional tests

* added new field to connectors API docs

* added update unit test

* fixed test

* renamed enableAfterImport to isMissingSecrets

* removed onExport

* revert the logic of true/false for isMissingSecrets

* fixed test

* fixed tests

* added unit test

* fixed docs

* fixed import text and button labels

* fixed import text

* fixed text
2021-04-27 19:14:52 -04:00
Nathan Reese
93a5100eef
[Maps] convert FeaturesTooltip to TS (#97920) (#98548)
* [Maps] convert FeaturesTooltip to TS

* tslint

* pass addFilters to method to keep not null check closer to check for undefined

* FeaturesTooltip

* convert test to ts

* fix snapshot

* clean up cast

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-27 18:59:48 -04:00
Kibana Machine
6aa49d4435
Update best_practices.mdx (#98032) (#98551)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-04-27 22:52:44 +00:00
Kibana Machine
6dcfd99896
[Fleet] Add troubleshooting link to setup instructions (#98531) (#98550)
* [Fleet] Add troubleshooting link to setup instructions

* Add troubleshooting link to Fleet Server instructions

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-04-27 18:50:06 -04:00
Tiago Costa
04a382769d
[7.x] chore(NA): moving @kbn/apm-config-loader into bazel (#98323) (#98528)
* chore(NA): moving @kbn/apm-config-loader into bazel (#98323)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/developer/getting-started/monorepo-packages.asciidoc
#	packages/BUILD.bazel
#	packages/kbn-apm-config-loader/package.json

* docs(NA): fix docs merge head
2021-04-27 18:33:24 -04:00
Nick Peihl
899fd68e47
Fetch geojson using ems-client (#97908) (#98547)
* Fetch geojson using ems-client

* Review feedback
2021-04-27 18:26:06 -04:00
Spencer
d773e4f78a
[kbn/es] disable geoip downloader at the root (#98372) (#98533)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-04-27 16:34:23 -04:00
Kibana Machine
a255398153
chore(NA): moving @elastic/safer-lodash-set into bazel (#98187) (#98214)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-27 20:17:35 +00:00
Kibana Machine
f040d9cf1a
Cleanup UI settings client API (#98248) (#98529)
* remove unused overrideLocalDefault method

* remove unused getSasved$ method

* fix dashboard unit test

* update docs

* fix Security Solution unit test

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-04-27 16:06:30 -04:00
Aleh Zasypkin
096be61d6a
Handle 401 Unauthorized errors in a more user-friendly way (#94927) (#98526)
# Conflicts:
#	x-pack/plugins/security/server/authentication/providers/saml.ts
#	x-pack/plugins/security/server/routes/authentication/saml.ts
2021-04-27 15:42:27 -04:00
Melissa Alvarez
946cca4491
ensure map supports old source index metadata (#98483) (#98523) 2021-04-27 15:31:30 -04:00
Kibana Machine
cb90d66faa
[Fleet] Use default port for fleet server cloud url (#98492) (#98518)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-04-27 15:07:12 -04:00
Byron Hulcher
522da47e5b
[App Search] Empty shell view for engine source engines view (#96896) (#98502)
* Add route to get source engines for meta engines

* New empty SourceEngines component

* Add SourceEngines to EngineRouter

* New SourceEnginesLogic file

* Hook up SourceEngines component to SourceEnginesLogic

* Update EngineNav link to manage source engines to point internally

* PR Feedback:
- Copy fixes
- Markup improvements
- Spleling erors
- Test improvements

* Move EnginesAPIResponse to shared types file

* Use existing mock for EngineLogic

* setSourceEngines -> onSourceEnginesFetch

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/engine/engine_router.test.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/engine/engine_router.tsx
2021-04-27 14:01:29 -04:00
Kaarina Tungseth
383b696069
[DOCS] Adds the security update to 7.12.1 release notes (#98527) 2021-04-27 10:58:52 -07:00
Alexey Antonov
3fd8cfbde7
[visTypeTimeseries] Reduce page load bundle to under 100kB #95873 (#97972) (#98477)
* [visTypeTimeseries] Reduce page load bundle to under 100kB #95873

Closes: 95873

* ts-ignore -> ts-expect-error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-04-27 10:50:38 -07:00
Kibana Machine
fcc3f10838
[ML] Transforms: Adds a link to discover from the transform list to the actions menu. (#97805) (#98491)
Adds a link to discover from the transform list to the actions menu. Conditions for the link to be enabled:
- Kibana index pattern must be available
- Transform must have been started once and done some progress so there's the destination index available

Co-authored-by: Walter Rafelsberger <walter@rafelsberger.at>
2021-04-27 13:37:53 -04:00
Kibana Machine
828420ebb1
[DOCS] Fix development tests table (#98309) (#98522)
* Fix visualization of consecutive inline code blocks
* Remove trailing '_' from the correct script name

Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-04-27 10:22:48 -07:00
Dave Snider
8aa25a6245
Fix widths/paddings of first two columns in dsc grid (#98251) (#98369)
* Fix widths of first columns

* clean up gutters

* Fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-04-27 09:33:20 -07:00
Kibana Machine
f5ac56bf4f
do not debounce chart (#98451) (#98480)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-04-27 11:54:03 -04:00
Kaarina Tungseth
340c98928d
[DOCS] Removes coming tags from 7.12.1 release notes (#97295) 2021-04-27 10:45:38 -05:00