Commit graph

41414 commits

Author SHA1 Message Date
gchaps e42fa7a501
[DOCS] Adds server.uuid to settings docs (#101121) (#101179) 2021-06-02 09:13:10 -07:00
Pierre Gayvallet 0c57d8d0a0
Fix newsfeed unread notifications always on when reloading Kibana (#100357) (#101163)
* fix the implementation

* add unit tests

* add API unit tests

* fix public interface

* address review comments

* name convertItem to localizeItem

* use fetch instead of core.http and add tests
2021-06-02 12:01:28 -04:00
Kibana Machine 654e46ccab
[Lens] Use a setter function for the dimension panel (#101123) (#101138)
* [Lens] Use a setter function for the dimension panel

* Remove copy+paste issue

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-02 15:46:52 +00:00
Adam Locke eb81b29276
[DOCS] Clarify when to use kbn clean (#101155) (#101173)
When building a PR locally, I ran into an issue where the server kept crashing. I ran `yarn kbn clean`, and saw this message in my terminal:
>warn This command is only necessary for the rare circumstance where you need to recover a consistent state when problems arise. If you need to run this command often, >please let us know by filling out this form: https://ela.st/yarn-kbn-clean

I think it makes sense to add this information to the docs so that if users are reading it, they know that this command is not typically necessary.
2021-06-02 11:46:25 -04:00
Ahmad Bamieh 3e755ccf1f
[7.x] [Deprecations service] make correctiveActions.manualSteps required (#100997) (#101156)
* merge conflicts

* update deprecation message
2021-06-02 11:28:22 -04:00
spalger 5a296a3a28 skip flaky suite (#101126)
(cherry picked from commit ef9d2bfb01)
2021-06-02 08:17:57 -07:00
Kaarina Tungseth ef6bc40ddc
[DOCS] Removes 7.13.1 coming tags (#101094) 2021-06-02 09:31:32 -05:00
Kibana Machine 137a720b97
[Maps] spatially filter by all geo fields (#100735) (#101153)
* [Maps] spatial filter by all geo fields

* replace geoFields with geoFieldNames

* update mapSpatialFilter to be able to reconize multi field filters

* add check for geoFieldNames

* i18n fixes and fix GeometryFilterForm jest test

* tslint

* tslint

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-02 10:19:52 -04:00
Kibana Machine 54b8d288b3
[Exploratory view] Core web vitals (#100320) (#101144)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-02 08:33:23 -04:00
Anton Dosov 4202cb42dc
[7.x] [Index Patterns] Fix return saved index pattern object (#101051) (#101134)
* [Index Patterns] Fix return saved index pattern object (#101051)

* update docs
2021-06-02 07:38:47 -04:00
Yaroslav Kuznietsov abaa442a0f
[TSVB] Fix color rules are not applied for null series (#100404) (#101135)
* Fixed color rules behaviour on empty metrics data.

Refactored function `getLastValue`, which was providing unexpected result on empty arrays. It was returning string, instead of null/undefined value.
Created two useful functions, which are providing possibility to handle empty result and get default value, which is expected.

* Tests added.

Tests for getLastValue refactored.
Tests for getLastValueOrDefault and getLastValueOrZero written.

* Removed console.log

* Added default value for empty operator.

Added default value for empty operator, which will compare statistics to empty array.
Added conditional render of colorRuleValue field, if operator doesn't require some specified value to be chosen ( as default, in this case ).

* Added empty data handling.

Added empty value var and way of displaying in widgets.
Added way of handling empty results and prevented comparing null, empty array and numeric rules.

* Prettier fixes.

* Added the same logic of displaying data to gauge.

Added displaying of empty data to gauge module.
Fixed label color styles (before, it was ignoring, because of setting colorValue out of default scope while reactcss(...) call).

* Added empty data handling in Top N chart.

* Removed getLastValueOrZero.

Removed getLastValueOrZero and replaced by getLastValueOrEmpty.

* Added isEmptyValue function.

Added isEmptyValue function, which is able to check equality. It provides a possibility to encapsulate the logic of empty value and flexible changing of its' behavior.

* Fixed and refactor.

Fixed hidden value input, if no operator selected.
Removed useless DEFAULT_VALUE and getLastValueOrDefault.

* Color rules Tests.

Changed from js to ts last_value_utils. Updated tests for color_rules component.

* Replaces isEqual rule with eq.

* Migrations added.

* Fixed types, EMPTY_VALUE, empty method.

Removed type definition for methods in last_value_utils.ts.
Changed EMPTY_VALUE from array to null. Removed default value.
Added logic for handling empty value handling and comparison methods.

* Fixed comparing null and numeric rules.

* Changed migrations.

* Added test for migrations.

* Migration fix.

* Updated code, based on nits and fixed reasons of pipeline errors.

* Moved actions, connected to operators to the separate file. Reduced duplication of code.

* Type names changed.

* Test for operators_utils added.

* Fixed based on nits.

* Added vis_type_timeseries to tsconfig references.

* Changed version and added migrations.

* Small fix in migrations.

* Fixes based on review.

* Revert "Fixes based on review."

This reverts commit 35af7b2b6a.

* Fixes based on review.

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-02 03:44:52 -07:00
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