Commit graph

41403 commits

Author SHA1 Message Date
Kibana Machine 4f0781737c
[CI] For PRs, build TS refs before public api docs check (#100791) (#101128)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-06-01 23:20:47 -04:00
CJ Cenizal e044137bd4
Migrate CCR to new ES JS client. (#100131) (#101125)
* Update SectionError component to render error root causes correctly.
* Fix 404 error rendering.
* Add test for follower index update API route.
2021-06-01 21:24:18 -04:00
Nathan Reese d6cb25aeea
[Maps] fix line and polygon label regression (#101085) (#101124) 2021-06-01 21:22:20 -04:00
Wylie Conlon 1a2e46ba65
[Expressions] Use table column ID instead of name when set (#99724) (#101110)
* [Expressions] Use table column ID instead of name when set

* Update ID matching to match by name sometimes

* Add an extra case to prevent insertion of duplicate column

* Simplify logic and add test for output ID

* Respond to review comments

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 18:59:54 -04:00
Kibana Machine d252c4e794
Migrate kibana.autocomplete config to data plugin (#100586) (#101088)
* Migrate kibana.autocomplete config to data plugin

* Fix CI

* Fix tests

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

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-06-01 17:34:26 -04:00
gchaps e24af8c236
[DOCS] Updates docs landing page (#100749) (#101114)
* [DOCS] Updates docs landing page

* [DOCS] Cleans up docs landing page
2021-06-01 14:25:07 -07:00
Stacey Gammon 2cad521166
Ensure comments on parameters in arrow functions are captured in the docs and ci metrics. (#100823) (#101087)
* Make sure arrow functions capture parameter comments.

* Update docs
# Conflicts:
#	api_docs/apm.json
#	api_docs/core.json
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/licensing.json
#	api_docs/reporting.json
#	api_docs/spaces.json
2021-06-01 17:24:44 -04:00
gchaps 2cc6873e6c
[DOCS] Updates runtime example in Discover (#100926) (#101112)
* [DOCS] Updates runtime example in Discover

* [DOCS] Updates images

* [DOCS] Adds link to runtime fields
2021-06-01 14:20:47 -07:00
Kaarina Tungseth 4d9fcfdf59
[DOCS] Corrects typo in step 3 (#101079) (#101096) 2021-06-01 14:00:14 -07:00
Kibana Machine e99f42d848
[Uptime] New width/delay definition for waterfall sidebar item tooltip (#100147) (#101083)
* Add new width definition for waterfall sidebar item. Add delay to tooltip.

* Add default value for style if/when undefined.

* Create shared style for eui breakpoints to use by both waterfall tooltip types.

* Add a comment.

* Use viewport units instead of breakpoints.

* Rename a style.

* Add top margin to prevent tooltip from missing target item. Rename a style.

* Adjust custom `margin-top`.

* Add index to tooltip content.

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

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-06-01 20:56:12 +00:00
Sandra Gonzales 0a3e83aa10
Re-enable _mb suffixed stack monitoring func tests (#98354) (#101081)
* Reenabled _mb suffixed stack monitoring func tests

These tests were disabled temporarily in #98238 because of intermittent failures in master.

* use test_user instead of basic_monitoring_user

* remove security service

* remove logout and cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: neptunian <sandra.gonzales@elastic.co>

Co-authored-by: Jason Rhodes <jason.rhodes@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 16:53:44 -04:00
Kaarina Tungseth 4af061060a
[7.x] [DOCS] Adds the 7.13.1 release notes (#101092)
* [DOCS] Adds the 7.13.1 release notes

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: DeDe Morton <dede.morton@elastic.co>

* Corrects Sharing bug fix that was organized under Design

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
2021-06-01 15:19:16 -05:00
Kibana Machine b2766e9730
[Fleet] Better input for multi text input in agent policy builder (#101020) (#101077)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-01 19:27:33 +00:00
Jean-Louis Leysens 09129c8e38
[Reporting/Telemetry] Do not send telemetry if we are in screenshot mode (#100388) (#101076)
* do not send telemetry if isScreenshotMode

* Implement PR feedback:

* added another Jest test
* move Boolean() to make the opt-in value always boolean

* remove unused import and convert to import type

* fix type issues

* update jest snapshot

* Expanded test coverage

- added plugin functional test
- added jest test to check TelemetrySender behaviour
- exported the localStorage/window value that flags screenshot
  mode

* fix test plugin name in package.json and make sure to opt out of telemetry when the test finishes

* added missing type file to plugin_functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/telemetry/kibana.json
2021-06-01 15:27:05 -04:00
Kibana Machine 313a887d34
Create API keys with metadata (#100682) (#101074)
Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
2021-06-01 18:50:59 +00:00
Kibana Machine 491e90c362
[ML] Functional tests - disable categorization tests (#101057) (#101069)
This PR temporarily disables categorization tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-01 14:04:19 -04:00
Greg Thompson 0480fbc945
Upgrade EUI to v33.0.0 (#99382) (#101067)
* eui to 33.0.0

* resize observer type inclusion - revisit

* src snapshot updates

* x-pack snapshot updates

* table sort test updates

* code block language sh -> bash

* datagrid datetime sort inversion

* types

* kbn-crypto

* refractor yarn resolution

* refractor yarn resolution

* update cypress tests

* url state test

* trial

* Revert "trial"

This reverts commit adc3538145.

* trial anomaly timeout

* Revert "trial anomaly timeout"

This reverts commit 9a11711ba8.

* kbn-telemetry-tools

* Change a useMemo to useCallback so the code executes when intended

* Removed no-longer-used import

* exitOrFail already retries for longer than tryForTime

* Wait for loading indicator to disappear

* Intentionally adding `.only`

* Revert .only

* Increase wait time for the ML chart to load

* Remove unused var

* overflow

* chartWidth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2021-06-01 13:56:37 -04:00
Kibana Machine 4b9c159e57
[Lens] mock htmlIDGenerator to avoid messages when running tests (#101042) (#101066)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-06-01 17:54:54 +00:00
Jonathan Budzenski ff6a5a856d [docker] Set server.shutdownTimeout to match default docker stop timeout (#100494) 2021-06-01 11:28:00 -05:00
Kibana Machine f7b99c2278
[Logs UI] Replace legacy es client usage in category examples (#100716) (#101055)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-01 11:47:09 -04:00
Kibana Machine 8a205e3bb6
Allow for ID in create package policy request (#100908) (#101053)
E2E tests are failing because they include the ID field returned by the
package list endpoint. This just updates our request schema to accept an
ID, though we don't persist or deal with the ID anywhere.

Closes #100897

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

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-01 11:24:48 -04:00
Stratoula Kalafateli c18944f156
[Lens] By Value Migrations for 7.13 (#100622) (#101031)
* quick fix for 7.13 lens migration not being run on by value panels

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-01 10:23:48 -04:00
Alejandro Fernández Gómez 0a7f567e6a
remove CODEOWNERS (#101058) 2021-06-01 07:12:50 -07:00
Kibana Machine c0fe7d0834
[Index Patterns Field Formatter] Added human readable precise formatter for duration (#100540) (#101046)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-01 13:59:27 +00:00
Kibana Machine 3295128346
[Deprecations service] add deprecationType and use it in configs deprecations (#100983) (#101039)
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-06-01 09:05:09 -04:00
Tiago Costa 1faae80762
skip flaky suite (#90565) 2021-06-01 12:54:43 +01:00
Tiago Costa 7579ce6dfa
skip flaky suite (#64473) 2021-06-01 12:50:35 +01:00
Kibana Machine 4e5bc2118e
[Observability] Expose options to customize sidebar route matching (#100886) (#101036)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-01 07:17:59 -04:00
Stratoula Kalafateli 550d110244
[TSVB] By Value Migrations for 7.13 (#100746) (#101033)
* Created common TSVB migrations. Registered them in serverside embeddable factory so that by value panels receive them

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>

Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
2021-06-01 06:53:49 -04:00
Liza Katz 157e2cf140
[bfetch] compress stream chunks (#97994) (#101027)
* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* delete client side legacy msearch code

* ts

* override to sync search in search source

* delete more legacy code

* ts

* delete moarrrr

* deflate bfetch chunks

* update tests
use only zlib

* ts

* extract getInflatedResponse

* tests

* Use fflate in attempt to reduce package size

* use node streams, fflate and hex encoding.

* DISABLE_SEARCH_COMPRESSION UI Settings
Use base64 and async compression

* i18n

* Code review
Use custom header for compression
Promisify once

* use custom headers

* Update jest

* fix tests

* code review, baby!

* integration

* tests

* limit

* limit

* limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-06-01 05:13:52 -04:00
Kibana Machine e12b7f38f3
[so-migrationsv2] Use named arguments in migrationsv2 actions (#100964) (#101023)
* Use named arguments in migrationsv2 actions

* Addresses some optional review feedback

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-05-31 21:00:12 -04:00
Matthias Wilhelm 40c2990148
[Discover] Improve document selection menu (#101019)
- Change position of "Copy documents to clipboard (JSON)" and "Clear selection"
2021-05-31 14:37:44 -04:00
Alejandro Fernández Gómez 8a62b29374
[Fleet] Remove beats management plugin (#99789) (#101010)
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/deprecations.mdx
#	api_docs/security.json
#	api_docs/spaces.json
2021-05-31 13:33:12 -04:00
Kibana Machine 4f0e675d8b
[Lens] [Docs] Add more QA for Lens (#97142) (#101015)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-05-31 09:25:52 -07:00
Tiago Costa 72e71ad750
skip flaky suite (#98240) 2021-05-31 16:38:05 +01:00
Tiago Costa 0434764a5c
skip flaky suite (#100570) 2021-05-31 16:28:30 +01:00
Matthias Wilhelm 70543ade3a
[Discover] Fix infinite scrolling using Classic table (#97634) (#101003)
* Fix infinite scrolling

* Add functional tests
2021-05-31 11:21:48 -04:00
Cauê Marcondes 9856fda344
[7.x] [APM] Move APM tutorial from apm_oss to x-pack/apm (#100780) (#100967)
* [APM] Move APM tutorial from apm_oss to x-pack/apm (#100780)

* Register tutorial on APM plugin

* using files from apm

* removing tutorial from apm_oss

* removing export

* fixing i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/apm_oss/server/tutorial/instructions/apm_agent_instructions.ts

* fixing merge

* fixing merge
2021-05-31 11:00:42 -04:00
Kibana Machine 4c118d0afd
[Vega] fix redundant scrollbars in default vega config (#97210) (#100988)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-05-31 08:18:30 -04:00
Kibana Machine 4b09416ac2
[Lens][Dashboard] Share session between lens and dashboard (#100214) (#100985)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-05-31 07:25:23 -04:00
Kibana Machine 45c8744d08
[Security Solution] Add modified at and modified by fields to the trusted apps card (#100868) (#100981)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-05-31 06:09:46 -04:00
Kibana Machine e09cbcb48b
[ML] Functional tests - reenable DFA feature importance suite (#100850) (#100977)
This PR re-enables the data frame analytics feature importance test suite.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-05-31 09:49:59 +00:00
CJ Cenizal 66d63f384e
[7.x] Remove license check from Index Management (#100188) (#100971)
* Remove license check from Index Management (#100188)

# Conflicts:
#	x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts
#	x-pack/plugins/index_management/server/routes/api/templates/register_get_routes.ts

* Fix linting error.
2021-05-31 00:24:21 -04:00
CJ Cenizal fb14fb049d
Remove license check from Ingest Node Pipelines UI (#100189) (#100959)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-29 13:26:59 -04:00
Kibana Machine ad66f73729
[Security Solution][Detections] Update rule integration tests (#98512) (#100960)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-05-28 23:40:28 -04:00
Tyler Smalley 52dd72e0a2 Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#99980)"
This reverts commit be40e96806.
2021-05-28 17:21:51 -07:00
Kibana Machine 22b7991212
[ML] Fixing management app race condition (#100785) (#100949)
* [ML] Fixing management app race condition

* updating test id

* translation id

* adding link to license page

* fixing tests

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-05-28 18:13:46 -04:00
Kibana Machine 5747871a36
[ML] Severity control for Anomaly timeline (#99489) (#100945)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-05-28 17:36:23 -04:00
Pete Hampton 028b5f4563
Remove / Consolidate legacy usage adoption metrics (#100480) (#100941)
* Remove legacydetection rule stat summaries

* Remove ML usage summary and consolidate with ML metric telemetry.

* Remove ML usage summary and consolidate with ML metric telemetry.

* Move legacy helper constructs into index.

* Separate rule logic from ml logic. Add ml unit tests.

* Abstract types away into their own file.

* Update telemetry schema.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-28 16:57:35 -04:00
Garrett Spong 8ca9d3ffc8
[RAC][Security Solution] Register Security Detection Rules with Rule Registry (#96015) (#100940)
## Summary

This PR starts the migration of the Security Solution rules to use the rule-registry introduced in https://github.com/elastic/kibana/pull/95903. This is a pathfinding effort in porting over the existing Security Solution rules, and may include some temporary reference rules for testing out different paradigms as we move the rules over. See https://github.com/elastic/kibana/issues/95735 for details

Enable via the following feature flags in your `kibana.dev.yml`:

```
# Security Solution Rules on Rule Registry
xpack.ruleRegistry.index: '.kibana-[USERNAME]-alerts' # Only necessary to scope from other devs testing, if not specified defaults to `.alerts-security-solution`
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
```

> Note: if setting a custom `xpack.ruleRegistry.index`, for the time being you must also update the [DEFAULT_ALERTS_INDEX](9e213fb7a5/x-pack/plugins/security_solution/common/constants.ts (L28)) in order for the UI to display alerts within the alerts table.

---

Three reference rule types have been added (`query`, `eql`, `threshold`), along with scripts for creating them located in:

```
x-pack/plugins/security_solution/server/lib/detection_engine/reference_rules/scripts/
```

Main Detection page TGrid queries have been short-circuited to query `.alerts-security-solution*` for displaying alerts from the new alerts as data indices.

To test, checkout, enable the above feature flag(s), and run one of the scripts from the above directory, e.g.  `./create_reference_rule_query.sh` (ensure your ENV vars as set! :)

Alerts as data within the main Detection Page 🎉
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/119911768-39cfba00-bf17-11eb-8996-63c0b813fdcc.png" />
</p>

cc @madirey @dgieselaar @pmuellr @yctercero @dhurley14 @marshallmain

# Conflicts:
#	x-pack/plugins/security_solution/server/plugin.ts
2021-05-28 16:46:51 -04:00