Commit graph

19204 commits

Author SHA1 Message Date
Pierre Gayvallet 0e406d167e
add coreOverall$ to internal status contract (#113729)
* add coreOverall$ to internal status contract

* add unit tests

* re-patch flaky tests

* add and improve tests
2021-10-06 13:49:46 +02:00
Kevin Logan dc07c06fa7
[Security Solution] New Add Data Page (#112142)
* [Security Solution] New Add Data Page

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2021-10-06 07:37:58 -04:00
Pierre Gayvallet 58bab9105c
Expose current branch and version to config deprecation providers (#113600)
* Expose deprecation context to config deprecations

* fix import

* add correct doc annotations

* fix another test file

* update generated doc

* fix yet another test file

* fix more types

* add proper mock

* fix import
2021-10-06 10:58:34 +02:00
Dmitry Tomashevich 2c8686770e
[Discover] Redirect to main page when route not found (#113678)
* [Discover] redirect to main page on route not found discover error

* [Discover] remove services from dependencies

* [Discover] apply suggestions

* [Discover] return invalid link, but make it not clickable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 10:59:28 +03:00
Stratoula Kalafateli 12dcc9e7b3
[TSVB] Removes unused css (#113751)
* [TSVB] Removes unused css

* Use size l for the tabs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-06 09:15:21 +03:00
Lisa Cawley 0d176e4d3d
Add client URLs to documentation link service (#114010) 2021-10-05 16:48:18 -07:00
Christiane (Tina) Heiligers 67be0a8e68
Removes unused and renamed deprecated core settings and deprecated settings from core plugins (#113653)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 12:30:49 -07:00
Chris Roberson 3f4240bdf1
[Alerting] Prevent our plugins from being disabled (#113461)
* No more disable

* Fix types

* Add event log and docker

* Fix test

* Remove unnecessary method

* Fix types, again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 14:30:28 -05:00
Clint Andrew Hall 4f85f5e841
[Unified Integrations] Create Services, Storybook, Replacements Card; add to Fleet (#113816)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 15:29:05 -04:00
Tim Sullivan e55593f2ed
[Reporting] Breaking: Remove setting for Reporting index (#113803) 2021-10-05 11:21:47 -07:00
CJ Cenizal 35200bea1f
Add test to useRequest hook to verify ability to cancel poll. (#113947) 2021-10-05 10:43:44 -07:00
Thomas Neirynck f46393d616
[Fleet] Add language clients (#113666) 2021-10-05 13:27:34 -04:00
Devon Thomson ac39f94b75
[Controls] Control Group Embeddable and Management Experience (#111065)
* built control group embeddable featuring inline control creation and editing, and DndKit based drag and drop.

Co-authored-by: andreadelrio <delrio.andre@gmail.com>
2021-10-05 12:34:13 -04:00
Yuliia Naumenko b204b911e7
[Alerting] Allow rule types to specify custom timeout values (#113487)
* [Alerting] Allow rule types to specify custom timeout values

* fixed tests and docs

* -

* fixed due to comments

* Update x-pack/plugins/alerting/README.md

Co-authored-by: ymao1 <ying.mao@elastic.co>

* fixed tests and docs

* Update plugin.test.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-10-05 08:55:13 -07:00
Stratoula Kalafateli 65df961b5c
[Dashboard] Adding timelion panel without asking for the index pattern (#113896)
* [Dashboard] Adding timelion panel without asking for the index pattern

* Adds a functional test
2021-10-05 16:31:39 +03:00
Dario Gieselaar 79f841e5d3
[APM] Display all properties by default in flyout (#113221)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 13:38:51 +02:00
Pierre Gayvallet a4b74bd398
[8.0] Remove legacy logging (#112305)
* remove kbn-legacy-logging package

* remove legacy service

* remove legacy appender

* remove LegacyObjectToConfigAdapter

* gix types

* remove @hapi/good / @hapi/good-squeeze / @hapi/podium

* remove `default` appender validation for `root` logger

* remove old config key from kibana-docker

* fix FTR config

* fix dev server

* remove reference from readme

* fix unit test

* clean CLI args and remove quiet option

* fix type

* fix status test config

* remove from test config

* fix snapshot

* use another regexp

* update generated doc

* fix createRootWithSettings

* fix some integration tests

* another IT fix

* yet another IT fix

* (will be reverted) add assertion for CI failure

* Revert "(will be reverted) add assertion for CI failure"

This reverts commit 78d5560f9e.

* switch back to json layout for test

* remove legacy logging config deprecations

* address some review comments

* update documentation

* update kibana.yml config examples

* add config example for `metrics.ops`

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-05 13:30:56 +02:00
Dmitry Tomashevich 158b396ae1
[Discover] Fix navigation to a new from saved search and saved query, fix discover:searchOnPageLoad (#112262)
* [Discover] fix saved search become active

* [Discover] add another fix to be consistent with data fetching code

* [Discover] simplify solution

* [Discover] add functionals

* [Discover] fix saved query bug, add functionals

* [Discover] fix functionals

* [Discover] fix functional test

* [Discover] split saved query tests

* [Discover] preselect logstash index pattern

* [Discover] remove saved query after test complete

* [Discover] change query fill order

* [Discover] try to fix unrelated functional test

* [Discover] one more fix

* [Discover] try to fix one more problem

* [Discover] fix commonly used time range test

* [Discover] revert uisettings init in before statement, do small adjustments

* [Discover] fix unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-05 14:08:54 +03:00
Liza Katz b62566da33
[ci-stats] Collects additional timings for cli tools (#113030)
* [ci-stats] Collects additional metrics about bootstrap

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* test reporting

* [ci-stats] Collects additional metrics about bootstrap

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Move ts timing to build_ts_refs_cli script

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Add timings to run

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* info debug level

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* fix build

* Move report function to dev-utils
align name of tests
report from functional test runner

* report snapshot install \ ready times
fix event names

* Report memory usage and branch hash

* fix eslint

* fix integration test

* build

* mergy merge

* mergy merge 2

* eslint

* eslint

* ready events

* Update packages/kbn-es/src/cli_commands/snapshot.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-es/src/cluster.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-es/src/cli_commands/snapshot.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/functional_tests/cli/start_servers/cli.js

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update src/dev/run_check_published_api_changes.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/jest/run.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update src/dev/run_i18n_check.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* Update packages/kbn-test/src/functional_test_runner/cli.ts

Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>

* code review

* pm

* merge

* dist

* jest fix

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@gmail.com>
2021-10-05 12:57:40 +03:00
Caroline Horn 2fad6e92c6
[Getting Started] Added “Add data” button to Global Nav Drawer (#113648)
* Adding EUI as code-owners to KibanaPageTemplate
2021-10-04 15:25:24 -04:00
CJ Cenizal 257e33a50e
Partial forward-port of dacf0c2a6c. (#113672)
- Add Authorization type to ES UI shared.
- Add convertPrivilegesToArray, patch to also accept privileges that might contain dots in its name, and add tests.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:11:05 -07:00
Joe Portner 006e3713a6
Fix bulkResolve for duplicate requests (#113798) 2021-10-04 14:20:39 -04:00
Stacey Gammon eddbc8db6f
Update doc slugs to improve analytic tracking, move to appropriate folders (#113630)
* Update the slugs to improve google analytics drilldown tracking

* more slug updates

* Fix some formatting issues in building blocks

* update paths

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 13:36:45 -04:00
Diana Derevyankina 51df1e58a3
[TSVB] Rename Index pattern to Data view (#110253)
* [TSVB] Rename Index pattern to Data view

* Update some labels

* Make asterisk bold to indicate it's text input

* Remove redundant translation

* Remove "now" from TSVB callout notification title

* Update variable name to match the text

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 20:15:57 +03:00
Matthew Kime bbb2e96dd5
[data views] Move data views api from data plugin and into its own (#113497)
* initial pass at moving data views into own plugin

* require expressions plugin, fix META_FIELDS reference

* bundle limits and localization

* fix integration test

* update plugin list and jest config

* type fixes

* search fixes

* fix localization

* fix mocks

* fix mocks

* fix stub

* type fixes

* fix import on test file

* path fixes

* remove shorted dotted from data plugin

* more todo removal

* eslint fixes

* eslint fix

* simplify data views server plugin

* simplify data views server plugin

* simplify data views server plugin

* fix imports on api routes

* fix imports on api routes

* update plugin list

* ts fixes

* ts fixes

* add deprecation notice

* fix circular dependency and api integration test

* fix circular dependency and api integration test

* rename types for better clarity

* path fixes

* jest.config and tsconfig cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:05:22 -05:00
Michael Dokolin 0d9825d03c
[Expressions] Remove the any type usages (#113477)
* Update ESLint config to disallow usage of the any type
* Remove the any type usages from the expressions plugin
* Update plugins using expressions according to the updated public API
2021-10-04 18:30:10 +02:00
spalger 2b401d06df Revert "Lint git index content on commit (#113300)"
This reverts commit 92fe7f8ab3.
2021-10-04 15:59:36 +00:00
spalger 9df5051817 Revert "Revert "chore: add modifications to staging automatically after eslint fix (#113443)""
This reverts commit cc73577f84.
2021-10-04 15:59:36 +00:00
Sébastien Loix 4693c3812e
[console] Deprecate "proxyFilter" and "proxyConfig" on 8.x (#113555) 2021-10-04 16:19:03 +01:00
Stratoula Kalafateli c558f26dd1
[TSVB] Update the series and metrics Ids that are numbers to strings (#113619)
* [TSVB] Update the series and metrics Ids that are numbers to strings

* Minor changes

* Adds a unit test to TSVB plugin to test this case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 17:55:49 +03:00
Matthias Wilhelm c868cd5c81
[Discover] Extract fetch observable initialization to separate function (#108831)
* Don't trigger autorefresh when there's no time picker
- because there's no UI for that

* Refactor and add test

* Add doc and test

* Refactor

* Remove index pattern without timefield filtering

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 16:00:08 +02:00
Uladzislau Lasitsa 9b7b3228ec
[TSVB] Removes less support from markdown editor (#110985)
* Remove less from markdown

* Fix migration script

* Fix migration script

* fix lint

* Fix test

* Fix comments

* Fix lint

* Fix comments

* Fix yarn.lock file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:55:29 +03:00
Stratoula Kalafateli 7162f16f7a
[Vislib] Removes fontAwesome usage (#113516)
* [Vislib] Removes fontAwesome usage

* Fix CI

* Fix types

* Update src/plugins/vis_types/vislib/public/vislib/components/tooltip/_tooltip.scss

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 08:53:40 +03:00
Patryk Kopyciński 4b89e14884
Bump eslint@7 (#94347) 2021-10-02 17:38:40 +02:00
renovate[bot] 17d3cb844f
Update babel (master) (#113352)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-01 15:07:55 -07:00
Christiane (Tina) Heiligers a75003dc47
Annotates beats tutorials with custom integration categories (#113565) 2021-10-01 13:03:14 -04:00
Luke Elmers b58e7218ad
[logging] Upgrade ECS to 1.12 (#113583) 2021-10-01 12:56:54 -04:00
Tyler Smalley cc73577f84 Revert "chore: add modifications to staging automatically after eslint fix (#113443)"
This reverts commit 5df9d41dbc.
2021-10-01 09:07:57 -07:00
Dmitry Tomashevich 88fa27debe
[Discover] Fix doc viewer table columns (#113124)
* [Discover] fix doc viewer table columns

* [Discover] apply suggestions

* [Discover] apply suggestion

* [Discover] fix action column

* [Discover] do not apply min-width to actions column

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-01 18:14:10 +03:00
Jonathan Budzenski 8928a1ef98
[systemd] Use a private /tmp directory (#112372)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-01 09:18:23 -05:00
Dmitry Tomashevich 56e17cd39c
[Discover] Save collapse sidebar state in local storage (#113287)
* [Discover] fix selected fields persist

* [Discover] apply solution for entire sidebar instead of "Selected fields" collapse button

* [Discover] update unit tests

* [Discover] update unit tests

* [Discover] improve tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-01 15:17:19 +03:00
Thomas Neirynck a565eaa39d
[Fleet] Show beats replacements in integration browser (#113291)
Display both beats and epr-packages in the integration browser. When there is overlap, the EPR-package equivalent is displayed. When the EPR-package is not yet ga, the beat-equivalent is displayed.
2021-10-01 08:11:25 -04:00
Baturalp Gurdin 5df9d41dbc
chore: add modifications to staging automatically after eslint fix (#113443)
After precommit hook runs with --fix flag changes are not added to staging. However it also does not
validate staging area since eslint is only looking for last changes on file not staging area this
results fellows to commit with linting errors which fails in CI. This commit resolves this issue by
adding fixed files right after linting to staging area.

Closes #52722

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-01 13:51:58 +02:00
Pierre Gayvallet e443f5180b
[8.0] Remove --plugin-dir cli option (#113367)
* Remove `--plugin-dir` cli option

* remove deprecation

* remove usage from test servers

* remove import

* remove last text usages

* removes --plugins alias
2021-10-01 07:58:14 +02:00
Domenico Andreoli 92fe7f8ab3
Lint git index content on commit (#113300)
This fixes two fundamental issues:
* the list of files to be linted is built looking at the diffs of the ref
  specified with `--ref` (or otherwise the current index) with those on
  the filesystem
* the content to be linted is read from the filesystem instead of the
  specified `ref` or the one in the index
2021-10-01 07:03:36 +02:00
Spencer 6cccf69451
[eslint] forbid trailing slashes in package imports (#113455)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-30 12:02:56 -05:00
Shahzad fe9b5332e1
[Uptime] Run Sample uptime tests using @elastic/synthetics (#112128)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 13:58:38 +02:00
Sébastien Loix 50134cbec6
[Mappings editor] Remove boost parameter from field types (#113142) 2021-09-30 10:18:09 +01:00
Alexey Antonov 48315da1e1
Revert [Vega] Fix: Scrollbars are appearing in default Vega configurations (#113110)
* Revert [Vega] Fix: Scrollbars are appearing in default Vega configurations

Revert: #97210

* update screens

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 12:11:32 +03:00
Stratoula Kalafateli a9d80ac46a
Cleanup of the kibanaLegacy unused functions and remove unecessary dependencies from Analytics plugins (#113358)
* [Discover][Table] Remove unused dependencies of the kibanaLegacy plugin

* More removals of kibanaLegacy plugin dependencies

* Revert discover changes

* Remove the unused functions from the kibana_legacy plugin

* Removes unused translations
2021-09-30 09:54:53 +03:00
Stratoula Kalafateli 24bbf2cdfc
[TSVB] Gather stats for the usage of the aggregate function in table viz (#113247)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 09:15:32 +03:00
Thomas Neirynck 1090a356f3
[Fleet] Register Sample Data (#113200) 2021-09-29 18:21:04 -04:00
Patryk Kopyciński a7874ff8a5
[Fix] Replace Osquery query parser lib (#113425) 2021-09-29 20:07:13 +02:00
Joe Portner a4d4e5b316
Fix bulkResolve for aliasMatch outcomes (#113188) 2021-09-29 13:01:26 -04:00
Nathan L Smith f4a95f9b97
Alert creation and freeform selection (#111883)
Allow selecting any service name, transaction type (where appropriate), and environment when creating and editing rules, both in APM and Stack Management.

- Create /internal/apm/suggestions endpoint that uses `terms_enum`
- Use combo box for environment, service name, and transaction type with suggestions endpoint on all alerts
- Remove "Go to APM" callouts on new alert creation
- Wrap calls to `createCallApmApi` in alert triggers with `useEffect`
- Use `getEnvironmentLabel` for value in environment field expression
- Make all `AlertParams` fields optional (except in latency threshold alert)
- Add e2e tests for creating an alert
- Remove `NewAlertEmptyPrompt` component and `isNewApmRuleFromStackManagement` helper
- Replace `maxServiceEnvironments` and `maxServiceSelections` config options with `maxSuggestions` advanced setting.


![CleanShot 2021-09-28 at 10 35 58](https://user-images.githubusercontent.com/9912/135119948-e247615a-d235-4feb-b197-b803f165ad1e.gif)

Fixes #106786
2021-09-29 11:18:44 -05:00
Trevor Pierce 7e0e8a4912
Bumping EUI to 38.0.1 (#112462)
* Bumping EUI to 38.0.0

* Updating storyshots.test.tsx snapshot

* Removing unneeded ID mock and updating snapshot.

* Fixing panel titles by splitting visible labels.

* Updating one functional test for Discover > Data Grid

* Fixing one test on a Lens > Smokescreen accessible label

* Updating four tests to use visible labels only.

* Adding helper function to retrieve visual text only and fixing three tests.

* Dashboard > Panel Cloning all tests pass.

* Fixing accessible label test

* Fixing data_shared_attributes, two tests

* Updating tests for Discover > Data Grid

* Reverting tests ahead of EUI 38.0.1 backport
* Reverted the SR-only class behavior to use `left: -10000px;`
* Reverting tests to previous assertions

* Bumping configuration files to EUI 38.0.1
* package.json
* package-lock.json
* license-checker

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 10:25:15 -05:00
Rudolf Meijering aea6daa177
Wait for a yellow source before starting reindex (#113382) 2021-09-29 10:22:47 -04:00
Pierre Gayvallet 9217be3287
add title to kibana.index and telemetry deprecations (#113259)
* add title to kibana.index deprecation

* add title to telemetry deprecation

* use i18n for kibana.index deprecation

* fix bundle key
2021-09-29 14:10:59 +02:00
Tiago Costa bc504b65ec
skip flaky suite (#103231) 2021-09-29 12:14:38 +01:00
Stratoula Kalafateli c63f4be4ca
Fixes error with percentiles on index with many docs (#113216)
* Fixes error with metric viz and percentiles on index with many docs

* Unskip the metric viz suite

* Adds a unit test
2021-09-29 13:47:41 +03:00
Diana Derevyankina a8084b7f19
[Visualize] Wizard rename Index pattern to Data view (#110251) 2021-09-29 12:02:55 +03:00
Tyler Smalley d20a696e95
[ci-stats] Collects additional timings about bootstrap (#112919)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-28 20:56:49 -04:00
Jonathan Budzenski e54950177d
[build/docker] Fix beats architecture (#113340)
Beats ARM artifacts use arm64 as the identifier.  This fixes the
architecture passed to docker.
2021-09-28 15:46:11 -07:00
Devon Thomson bd699aceb2
Compare intervals for unsaved changes on dashboard (#112592) 2021-09-28 16:48:11 -04:00
Christiane (Tina) Heiligers 8d8b40075e
Removes support for unused optimize.* settings from core deprecations (#113296)
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
2021-09-28 13:08:52 -07:00
Stacey Gammon 20202f7e7d
Add a plugin directory page to the docs build (#112862)
* Write plugin directory doc as part of api docs build.

* Replace service folder with the new name for index patterns

* Updated docs

* small update

* update docs
2021-09-28 13:17:12 -04:00
Maxwell Borden 18930d64a8
[FieldFormatters] Use default values for URL formatter (#113141)
* [FieldFormatters] Use default values for URL formatter
2021-09-28 09:10:10 -07:00
Anton Dosov 3311910736
[embeddable] Don’t include test samples into initial bundle (#113126) 2021-09-28 17:45:34 +02:00
Christiane (Tina) Heiligers c647929eeb
Removes misc unused so/server/es config deprecations (#113173)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-28 08:01:22 -07:00
Jean-Louis Leysens 7a49851bc3
[AppServices] Fix unhandled promise rejections in search tests (#112849)
* updated jest tests to avoid generating unhandled promise rejections

* rather use throwError

* remove unused imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-28 15:40:13 +02:00
Rudolf Meijering c361a56013
Fix flaky migrations integration test 103231 (#113127) 2021-09-28 14:44:13 +02:00
Pierre Gayvallet daaa6f8c19
add SavedObjectType.management.displayName (#113091)
* add `SavedObjectType.management.displayName`

* fix unit tests

* add FTR test

* update generated doc

* also update labels

* fix unit tests
2021-09-28 13:49:00 +02:00
Matthias Wilhelm c4ddb01d77
[Discover] Add "Chart options" menu (#112453)
Co-authored-by: Tim Roes <mail@timroes.de>
2021-09-28 10:53:29 +02:00
Vadim Kibana c0bf0540dc
Short URLs (#107859) 2021-09-28 10:34:25 +02:00
Diana Derevyankina 3e5d5f4415
[Viz] legend duplicates percentile options when chart has both left & right Y axes (#113073)
* [Viz] legend duplicates percentile options when chart has both left & right Y axes

* Update comment for isPercentileIdEqualToSeriesId

* Remove Dimension interface

* Replace partial aspect with whole aspect value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 22:15:54 +03:00
Christiane (Tina) Heiligers 96379a5be3
Decouples saved objects management from legacy saved objects loaders (#113031)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 13:36:05 -04:00
Michael Dokolin 16aa9bf85f
[Expressions] Partial results example plugin (#113001)
* Update mapColumn expression function implementation to support partial results
* Add partial results example plugin
2021-09-27 18:54:05 +02:00
Thomas Neirynck be1ee57a03
[Fleet] Add custom integrations API (#112481)
Add a new plugin `custom_integrations`. This plugin allows for the registration of data-integrations tutorials. The Fleet-integrations app will display these alongside the existing Elastic Agent integrations.
2021-09-27 11:54:43 -04:00
Maja Grubic c0d68aac32
[Saved Search Embeddable] Add view action (#112396)
* [Saved Search Embeddable] Add view action

* Fix typescript and lint errors; add tests

* Add a functional test

* Fix a unit test

* Renaming action

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 16:14:49 +02:00
Diana Derevyankina 6a950a3c27
[TSVB] Series hidden via click reappear on auto refresh (#112807)
* [TSVB] Series hidden via click reappear on auto refresh

* Move mainAxisGroupId back to render

* Remove blank line in vis.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 12:38:25 +03:00
Pierre Gayvallet d2bd7f8487
Throw error during startup if scripting is disable in ES (#113068) 2021-09-27 11:35:25 +02:00
Marta Bondyra cfe084829f
[Visualize] [Lens] remove warning and logs from console when testing (#113070)
* date_ranges console.warn removed

* lens app console info remved

* percentailize i18n & generate id removed

* vega_parser.test canvas mock warning removed

* vega console logs removed from tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 11:32:47 +02:00
Stratoula Kalafateli dece5fd01d
Remove all kibana.yml deprecations from visEditors plugins (#112643)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 12:26:01 +03:00
Jonathan Budzenski 0484e6c17e skip test blocking es promotion. #113012 2021-09-23 12:23:54 -05:00
Lisa Cawley acf6a0296c
Update more doc links for ingest pipelines app (#112767) 2021-09-23 09:29:02 -07:00
Jonathan Budzenski b3bb48f0d6
[docker] Tag cloud images to kibana-ci (#112978) 2021-09-23 10:41:40 -05:00
Nick Peihl 1e25d199cd
Add license querystring to EMS requests in Vega (#112765)
This fixes a regression in Vega Maps that limits users to max zoom 10 regardless of distribution

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 08:32:11 -07:00
Patryk Kopyciński 854e0d4d85
Fix navigateToApp behavior when openInNewTab is true (#110712) 2021-09-23 10:48:16 -04:00
Matthew Kime 7ecae91e64
[data views] reduce any usage on server side service (#112750)
* remove some any instances from data view
2021-09-23 06:59:33 -05:00
Vadim Kibana 7f7c0b4ed5
Add Kibana version to URL (#112528)
* add utility to set current kibana version

* set kibana version on dashboard

* move setVersion function into separate file

* improve setVersion method

* add test mocks

* remove unnecessary any

* narrow down history type

* use new formatting settings

* remove version integration on dashboard

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 13:23:30 +02:00
Marco Liberati 9dcacf77f7
[Vega] Better error explanation for EsErrors and inspector now showing error responses (#112634)
* 🐛 Fix EsError not showing info

* 🐛 Record error response in the inspector

* 🏷️ Fix type issue

* 👌 Integrate feedback

* 👌 Integrated latest feedback

* 👌 i18n unknwon message

* 👌 Integrate feedback

* 🐛 Fix syntax error

* 🏷️ Fix type issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 10:54:31 +02:00
Michael Dokolin c06d604785
[Expressions] Fix setup and start contracts (#110841)
* Refactor executor forking to implement state inheritance
* Fix setup and start contracts typings
* Add support of named forks
* Add expressions service life-cycle assertions
2021-09-23 08:44:16 +02:00
Adam Locke 5b73ab1432
[DOCS] Update remote cluster and security links (#112874)
* [DOCS] Update remote cluster and security links

* Updating test link

* Update URL for failing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 20:44:12 -07:00
Lukas Olson 02b2a4d086
[data.search.aggs] Use fields instead of _source in top_hits agg (#109531)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

* [data.search.aggs] Use fields instead of _source in top_hits agg

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 13:36:39 -07:00
Lukas Olson f4c2a934f0
[Search sessions] Don't show incomplete warning if search requests aren't in session (#112364)
* [Search sessions] Don't show incomplete warning if search requests aren't in session"

* Update src/plugins/data/public/search/search_interceptor/search_interceptor.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fix lint

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 13:36:27 -07:00
Lukas Olson 791fed5b82
[data.search] Do not send ignore_throttled when search:includeFrozen is disabled (#112755)
* Do not send ignore_throttled when search:includeFrozen is disabled

* Fix tests
2021-09-22 13:36:17 -07:00
Luke Elmers 878b1eeae9
Log deprecation warnings for plugins which won't be disable-able in 8.0 (#112602) 2021-09-22 15:58:57 -04:00
Lisa Cawley 4c3f48fcbd
Add ILM URLs to documentation link service (#112748) 2021-09-22 12:41:42 -07:00
Alexey Antonov 61410a30a5
[vega] Handle removal of deprecated date histogram interval (#109090)
* [vega] Handle removal of deprecated date histogram interval

Fixes: #106352

* fix CI

* add deprecation_interval_info

* add test

* Update vega_info_message.tsx

* fix types

* Update es_query_parser.ts

* apply comments

* fix error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <vlad.lasitsa@gmail.com>
2021-09-22 19:08:33 +03:00
Matthew Kime 4b71c435a9
[data views] Rename a bunch of index pattern code references to data views (#112770)
* rename a bunch of index pattern references to data views
2021-09-22 09:50:05 -05:00
Nathan Reese 84e42e42bc
[vega] fix vega map validation errors crashing vega (#112700)
* [vega] fix vega map validation errors crashing vega

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 07:17:53 -06:00
Rudolf Meijering 68fb9f6d84
Rename REINDEX_SOURCE_TO_TEMP_INDEX to REINDEX_SOURCE_TO_TEMP_TRANSFORM (#112727) 2021-09-22 15:12:18 +02:00
Rudolf Meijering e39a9d495b
Fix unhandled promise rejection in socket tests (#112806) 2021-09-22 09:04:58 -04:00
Matthew Kime 525d3a5920
[data views] remove some any instances from service (#112632)
* remove some any instances from data view

* lint fix

* simplify scripted field type
2021-09-22 07:04:15 -05:00
Peter Pisljar 3907d53df5
persistable state docs (#105202) 2021-09-22 13:22:38 +02:00
Stratoula Kalafateli 9b410ce544
Fixes bug with nested terms, one with other bucket and the other disabled (#112636) 2021-09-22 11:21:53 +03:00
Marco Liberati 914f2b7429
🔧 Make Timelion server send error details to client (#112663) 2021-09-22 10:14:43 +02:00
Diana Derevyankina abdb7a4c49
[TSVB] Disables the input string mode (#110571)
* [TSVB] Remove the input string mode

* Fix some tests

* Add some functional tests and fix failing CI

* Update telemetry mappings

* Rename useStringIndices to allowStringIndices, move it from TSVB to Data constants and refactor test

* Apply text suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply formatting and remove unused translations

* Fix labels

* Remove unused import

* Move popover toggling  to checkIndexPatternSelectionModeSwitchIsEnabled function to prevent flakiness

* Update some visual_builder_page functions

* Remove accidentally added newlines

* Move TSVB ui settings to constants, remove tooltip and update popover text

* Handle the case of editing advanced settings is restricted

* Add requiresPageReload to UI setting and condition for the case the setting is already enabled

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-09-22 11:13:53 +03:00
Christiane (Tina) Heiligers 8cf0efe2f1
Changes edit view to json read-only view (#112034)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 16:10:53 -04:00
Jean-Louis Leysens 25bf795099
[Reporting/Discover/Search Sessions] Only use relative time filter when generating share data (#112588)
* only use relative time filter when generating share data

* Added comment on absolute time filter.

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>

* improve discover search session relative time range test

* update discover tests and types for passing in data plugin to getSharingData function

* updated reporting to pass in data plugin to getSharingData, also updates jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-09-21 12:42:32 -07:00
Pierre Gayvallet 65ec86da66
handle source index without any mappings (#112664) 2021-09-21 20:19:34 +02:00
Devon Thomson 5408a3e301
[Dashboard] Retain Viewmode State in Session (#112302)
* Made dashboard retain viewmode state in session. This means filters and query will be kept over reloads and navigations
2021-09-21 11:45:56 -06:00
Devon Thomson 126b87bd55
[Dashboard] [Visualize] Add Search to Legacy Redirect (#112365)
added search to legacy redirect URL
2021-09-21 11:39:23 -06:00
Tyler Smalley c76082e006 Fix eslint error
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-21 09:44:56 -07:00
James Rodewig fd0f42386f
Update index settings link for Snapshot and Restore (#112597)
Updates the docs help link for index settings  in the Snapshot and Restore feature.

Currently, the link points to https://www.elastic.co/guide/en/elasticsearch/reference/7.14/snapshots-restore-snapshot.html#change-index-settings-during-restore, which primarily documents related restore snapshot API parameters.

With elastic/elasticsearch#76929, this section was removed. The new link covers all available index settings, which is a bit more relevant.
2021-09-21 12:03:23 -04:00
Matthew Kime 119c742185
Data views - saved object client use resolve instead of get (#108637)
* so client - use resolve instead of get

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 09:41:47 -05:00
Clint Andrew Hall b1d6779d43
[fleet] Introduce Storybook to Fleet (#112611)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 08:23:13 -05:00
Stratoula Kalafateli 60500c20af
Move timeseries to vis_types folder (#112228)
* Move timeseries to vis_types folder

* Fix jest

* Fix types

* Fix more types

* Fix types

* fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 13:45:49 +03:00
Pierre Gayvallet bb4f1360a8
remove last usages of plugin async lifecycles (#112111)
* remove last usages of plugin async lifecycles

* fix contract type

* fix types. again.

* remove unused import
2021-09-21 10:34:57 +02:00
Pierre Gayvallet 221ee74c6b
[SOM] Add visibleInManagement option to management metadata (#112073)
* implement SavedObjectsTypeManagementDefinition.visibleInManagement

* update generated doc

* improve FTR tests

* fix FTR test
2021-09-21 10:30:30 +02:00
Jean-Louis Leysens 0af821aaf9
[kibana_react] Clean up any in public non-test files (#111261)
* first pass at any cleanup

* fix types on TableListView

* change generic constraint

* fix lint

* fix TS in no data card

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 10:16:29 +02:00
Jonathan Budzenski 1fb0982e00 fix prettier errors 2021-09-20 09:28:48 -05:00
Marco Liberati 5f994b1d9d
[Lens][Visualize] Align inspector header in Lens and Visualize (#112443)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-20 15:54:37 +02:00
Vadim Kibana 38f3f3f308
Remove any in embeddables (#110023)
* remove anys in embeddable

* fix typescript errors

* generate autogenerated docs

* Update src/plugins/embeddable/public/lib/reference_or_value_embeddable/types.ts

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-09-20 14:09:02 +02:00
Tyler Smalley 4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Mikhail Shustov 4a1a060f25
remove deprecated header support (#112505) 2021-09-18 15:53:00 +02:00
Rudolf Meijering 7040b47840
Re-enable & fix flaky test (#112260)
* Fixes #87968 Re-enable & fix flaky test

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-18 15:52:36 +02:00
Yaroslav Kuznietsov c63fff99a8
[Canvas] TagCloud arguments. (#107729)
* Added arguments to Tagcloud at Canvas.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-17 07:34:15 -04:00
Greg Thompson 160abb8e05
Treat react-beautiful-dnd as .essentialAnimation in accessibility:disableAnimations contexts (#112429)
* react-beautiful-dnd with disableAnimations

* add comment
2021-09-16 19:05:49 -05:00
Joe Portner 1ca8771d67
Add SavedObjectsClient.bulkResolve (#112025) 2021-09-16 17:12:17 -04:00
Jonathan Budzenski d6bf274286
Remove grunt (#111882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 15:24:42 -04:00
Spencer eaf70a0b4e
[kbn/ui-shared-deps] split into two packages (#110558)
* [kbn/ui-shared-deps] split into two packages

* fix asset categorizer

* update snapshots

* reference npm dll from optimizer

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-16 12:06:46 -07:00
Vadim Kibana 708e235457
Redirect endpoint compression (#111471)
* add ability to lz-encode redirect url params

* move redirect param utils to /common

* improve error message

* add getRedirectUrl() to locators

* wire in version into locator redirect method

* make redirect url default to compressed

* fix typescript errors

* pass throuh initialization context to share plugin

* fix test mocks

* improve locators mocks usage

* fix typescript types

* use getRedirectUrl in example plugin

* make redirect url options optional

* add locator tests

* deprecate geturl

* load redirect app UI on demand
2021-09-16 18:45:24 +02:00
Brian Seeders 2c9484b266
Fix .buildkite casing ignore 2021-09-16 11:47:06 -04:00
Thom Heymann 117e076200
Added product header check (#112180)
* Added product header check

* Added suggestions from code review
2021-09-16 16:14:26 +01:00
Matthew Kime 3c0e5e5876
[data views] rename files from index patterns to data view (#112047)
* rename directories

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 06:56:59 -05:00
Yaroslav Kuznietsov dbcc75b0dc
[Canvas] Fixes Error 500 on the workpad update. (#111683)
* Fixed bug with treating null argument as the expression function.

* Added a test for checking if a null argument is processeded correctly.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 06:58:03 -04:00
Diana Derevyankina 410a0ac907
Fix and re-enable Vega test to be consistent with development/CI (#110971)
* Fix and re-enable Vega test to be consistent with development/CI

* Remove skip comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-16 11:42:02 +03:00
Jonathan Budzenski 17a4186ce8
[timelion] Move grammar to package (#111881)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 20:22:15 -04:00
Cauê Marcondes 2711e7b1cc
Removing old e2e (#112170)
* removing old e2e

* removing e2e

* removing e2e

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 16:33:54 -04:00
Matthew Kime ce2aac3763
convert deep imports to top level imports (#112199) 2021-09-15 11:46:31 -05:00
Matthew Kime 5ba4f7115d
convert deep imports to top level imports (#112202)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-15 11:29:23 -05:00
Stratoula Kalafateli 8f70030386
[Lens] [TSVB] Fixes the brushing of the last bucket for timeseries visualizations (#112068)
* Enable allowBrushingLastHistogramBucket for timeseries visualizations

* Cleanup
2021-09-15 15:20:44 +03:00
Tim Roes fa1e9a6aee
Change missing fields label (#112232) 2021-09-15 14:16:45 +02:00
Stratoula Kalafateli 34d7f68375
[Pie] Loads the no results screen if all slices have zero value (#111931)
* [Pie] Loads the no results screen if all slices have zero value

* Add a functional test

* Apply PR changes

* Display no results component if the chart metric has negative values

* Nits

* Apply some of the PR comments

* Change the negative values text

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Update src/plugins/vis_types/pie/public/pie_component.test.tsx

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-09-15 15:11:09 +03:00
Matthew Kime 51b2d53bd9
[discover] convert deep imports to top level imports for 'index_pattern' items (#112208)
* convert deep imports to top level imports

* fix test
2021-09-15 07:09:23 -05:00
Stratoula Kalafateli e20f530762
Move to vis_types folder part 3 (#112084)
* Move to vis_types folder part 3

* Fix jest tests
2021-09-15 14:46:48 +03:00
Tim Roes a4b28a61ef
Better formatting document summary with images (#111987)
* Better formatting document summary with images

* Improve styling

* Address review feedback
2021-09-15 12:06:46 +02:00
Matthias Wilhelm 13de9f598e
[Discover] Improve sidebar performance by memoizing (#111843)
* Improve sidebar editField function by useCallback

* Reduce re-renderings
2021-09-15 12:00:25 +02:00
Thom Heymann db5cf95724
Verification code CLI (#111707)
* Add verification code CLI

* Added suggestion from code review

* Fixed types

* Added extra test

* Added CLI dist scripts

* Fixed typo

* Write code to data instead of config directory
2021-09-14 21:58:25 +01:00
Spencer 2976f33618
[eslint] add rule to forbid async forEach bodies (#111637)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-14 13:20:53 -07:00
Rudolf Meijering 9b9286fc57
Remove executionLog to reduce memory consumption (#111911)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 19:20:10 +02:00
Pierre Gayvallet 138371e50c
Add deprecation warning when unknown SO types are present (#111268)
* Add deprecation warning when unknown types are present

* fix and add service tests

* remove export

* plug deprecation route

* add integration test for new route

* add unit test for getIndexForType

* add unit tests

* improve deprecation messages

* add FTR test

* fix things due to merge

* change the name of the deprecation provider

* improve message

* improve message again
2021-09-14 15:55:30 +02:00
Ahmad Bamieh b74f154903
[core.metrics] Add support for multiple processes in ops metrics & stats API; deprecate process field (#109820)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 16:50:45 +03:00
Tim Roes 4bca9b05bb
Fix wrong timepicker range when brushing (#111989) 2021-09-14 15:47:43 +02:00
Jean-Louis Leysens 4e4afc7503
[Discover/Reporting] Fix export that does not contain relative time filter (#110459)
* version 1 of fix: we set the time range on the search source at CSV generation time

* updated jest tests and updated API for getSharingData

* make time range optional for getSharingData

* pivot to updating "getTime" functionality by introducing a new flag

* update jest snapshots

* update comment

* refactored coerceToAbsoluteTime -> coerceRelativeTimeToAbsoluteTime and updated behaviour to be more specific

* fix jest test

* do not change createFilter API, rather create new createRelativeFilter API, also only use this in one place in discover

* update jest tests

* update mock

* update jest test mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 14:40:06 +02:00
Uladzislau Lasitsa 6e7e5155f5
[TSVB] Doesn't work correctly with pipeline aggregations in "entire time range" mode (#105073)
* Use date_histogram instead of auto_date_histogram in pipeline aggregations

* Fix ci

* Fix eslint

* start disable parent pipeline aggs and show error

* Fix CI

* Fix eslint

* Fix CI

* Add functional tests

* Some fixes

* Fix lint

* Use agg_utils

* Fix lint

* Fix text

* Fix lint

* Fix tests

* Fixed condition

* Fix math aggregation

* math should pass panel type as prop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 14:38:51 +03:00
Stratoula Kalafateli 8a4355b353
[Visualize] Removes dimming opacity setting (#111704)
* [Visualize] Removes the dimming opacity setting

* Remove from docs

* Fix 18n

* Address PR comments

* More cleaning

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 12:36:08 +03:00
Stratoula Kalafateli 182533f565
[Datatable] Removes the old implementation (#111339)
* [Datatable] Removes the angular implementation

* Fix i18n errors

* Fix types

* Remove unecessary funtional tests

* Fix documentation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-14 11:57:42 +03:00
Lukas Olson fbeefedd98
Make saved queries share-capable (#111462)
* Use resolve instead of get for saved query service

* Update tests

* Update src/plugins/data/public/query/saved_query/saved_query_service.ts

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Revert step 4

* Make saved queries share-capable

* Fix test

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-09-13 21:17:43 -04:00
Lukas Olson a8f9468fe8
Use savedObjectsClient.resolve in saved query service (#111229)
* Use resolve instead of get for saved query service

* Update tests

* Update src/plugins/data/public/query/saved_query/saved_query_service.ts

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Revert step 4

* Fix test

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-09-13 16:00:27 -07:00
Michael Marcialis 4dc72140be
Account for presence of top banner when EuiDataGrid and Canvas are full screen (#111038)
* account for banners when data grid is full screen

* account for banner when canvas is full screen

* change height per feedback

* add withKibana

* rm withKibana; move vars out of Fullscreen

* Use hasHeaderBanner$

* add banner height var comments

* fix ts error

Co-authored-by: Catherine Liu <catherine.liu@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:58:01 -04:00
Matthew Kime 3fd7dbe455
[data views] allow fields that start with an underscore in the field list (#111238)
* stop filtering out fields that start with underscore
2021-09-13 10:45:34 -05:00
Anton Dosov d6badd8715
[FieldFormats] Reduce any usage (#111530) 2021-09-13 17:01:51 +02:00
Uladzislau Lasitsa bfe1c556d0
[TSVB] Shows wrong labels when we get only one series after splitting (#111736)
* use correct styles when after split we have only one series

* Fix lint

* Fix comments

* remove unused styles

* Update _vis_with_splits.scss

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 13:30:08 +03:00
Pierre Gayvallet 200efcaaa3
Add deprecation warning when inline scripting is disabled (#111865)
* initial implementation

* extract isScriptingDisabled to own file

* add unit tests for scripting deprecation

* add unit tests
2021-09-13 12:15:27 +02:00
Diana Derevyankina 33cfc4183a
[TSVB] Support custom field format (#101245)
* [TSVB] Support custom field format

Add format_label response processor for series vis data and bucket key formatting to process_bucket for table vis data

* Add ignore_field_formatting for series to support value formatting for all panel types except markdown

* Fix type issue for visData and rename getCustomFieldFormatter to createCustomFieldFormatter

* Update vis.test to cover custom field formats logic and add a migration script to set ignore_field_formatting to true for the series

* Move createCustomFieldFormatter to a separate file, make formatting respect only active metrics field name, refactor vis files and fix label formatting only for grouped by terms series

* Remove services, add getFieldFormatsService  to use it in format_label and get_table_data, replace getCustomFieldFormatter with createCustomFieldFormatter

* Update plugin.ts

* Update start for plugin.ts

* Add formatting for annotations and markdown values

* Refactor some code

* Update some naming and conditions

* Fix formatting of data type labels

* In process_bucket fix case for no getFieldFormatByName

* Add field formatting functional tests for all panel types

* Update tests to make them run correctly for firefox

* Update _tsvb_markdown test setup

* Move series ignoreFieldFormatting check to a separate file, change convertSeriesToVars signature, update migration script and refactor a bit functional tests

* Fix type check for timeseries_visualization.tsx

* Update migrations.js test expected version to 7.15

* Fix tests in _tsvb_chart.ts

* Fix merge conflict remove process_bucket.js

* Update process_bucket.test.ts

* Fix markdown labels formatting

* Add ignore_field_formatting for annotations, enhanced migration script to set that flag to true, refactor data_format_picker

* Fix migration script and add disabling for ignore component when string index pattern is used

* Add supporting URL and color formatters in tsvb table

* Fix eslint

* Remove ignore formatting component, add field formatting option to TSVB data format picker and make it default, remove migration script, update tests and refactor some files

* Fix failing tests, refactor create_field_formatter and add test to it, update some other files

* Fix series formatting for top hit when it has not numeric result

* Handle no fieldFormatMap case for table/vis.js

* Remove "Default" option form DataFormatPicker when index pattern is string, fix markdown variables issue and refactor some code

* Chore(TSVB): Replace aggregations lookup with map

* Fix types, update test expected data and remove unused translations

* Fix i18 check and useEffect in agg.tsx

* Handle aggregations field formatting case

* Fix agg_utils, vis and check_if_numeric_metric tests

* Correct typo and refactor condition in std_metric

* Fix type check

* Get rid of IFieldType

* Add URL and color formatting for topN and metric tabs, fix setting initial custom formatter and switching formatter in agg.tsx

* Update tsvb.asciidoc

* Remove link icon from Date format field help text, update click logic for top N in case of custom field format and fix CI

* Remove unused import

* Revert top N bar extra logic for click

* Refactor some code in agg.tsx

* Add URL and color formatting to Gauge

* Fix bug with terms formatting, refactor some code, update create_field_formatter

* Add comments to _gauge.scss

* Remove unnecessary await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-09-13 11:51:32 +03:00
Marta Bondyra f9f90705f2
[Graph] Make Graph saved object share-capable (#111404)
* [graph] Make Graph saved object share-capable

Step 4 of https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-faq-changing-object-ids

* bump migration version to fix the test

* test

* Revert "bump migration version to fix the test"

This reverts commit 04d2f49386.

* Revert "test"

This reverts commit 7b0a74d431.

* Fix Core migration integration tests

The existing tests incorrectly asserted an object's `migrationVersion`
solely based on the registered type's `migration` field; in reality, the
`convertToMultiNamespaceTypeVersion` field is also used when determining
an object's `migrationVersion`. This commit simply updates the test to
reflect that.

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 08:42:07 +02:00
Ahmad Bamieh 13560c01fc
[Usage collection] refactor cloud detector collector (#110439) 2021-09-10 15:42:24 -04:00
Oliver Gupte 5fbc1d4c27
[APM] Removes the beta label from APM tutorial (#111499) (#111828) 2021-09-10 10:38:10 -04:00
Nathan Reese a779ea3818
[Maps] Remove * exports (#111003)
* [Maps] Remove * exports

* update extraPublicDirs

* clean up some more imports

* tslint

* eslint

* eslint

* fix import in functional tests

* eslint

* eslint take 2

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 06:16:37 -06:00
Uladzislau Lasitsa 70090e326c
Timelion App removal (#110255)
* Remove timelion app and stuff which related to it

* Fix CI

* Fix lint

* Fix tests

* Fix tests

* Fis tests

* Fix some comments

* Clean up

* fix CI

* fix some comments

* Fix deprecation examples

* Return `enabled` property in config for timelion vis

* Remove unused angular lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 14:53:07 +03:00
Matthias Wilhelm 53ba2c42df
[Discover] Set ownfocus to false when displaying the document flyout (#108646) 2021-09-10 11:52:36 +02:00
Pierre Gayvallet c78121ce5a
[SOM] Improve warning when trying to delete hidden objects (#111698)
* improve warning message when trying to delete hidden saved objects

* improve message

* fix pluralize

* fix title
2021-09-10 10:51:57 +02:00
Tim Roes b9f3fceea5
Improve async loading doc tabs (#111582) 2021-09-10 10:37:02 +02:00
Yulia Čech 544d4f6eaa
[Console] Added information about autocomplete definitions (#105112)
* [Console] Added information about autocomplete definitions to the README.md

* [Console] Updated README.md

* Added code review suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 09:46:14 +02:00
Jonathan Budzenski 163fa7d2e0
[build] Add cloud docker images (#107949)
Co-authored-by: Przemysław Hejman <przemyslaw.hejman@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 20:40:09 -05:00
Jonathan Budzenski 5763a2f25a
[config] Remove deprecated environment variables CONFIG_PATH and DATA_PATH (#111535) 2021-09-09 19:31:46 -04:00
Greg Thompson 6803fb362a
Upgrade EUI to v37.6.0 (#110998)
* eui to 37.6.0

* update snapshots

* grid cell text

* update snapshot

* Revert "grid cell text"

This reverts commit 1721e83939.

* grid cell text

* update tsvb baseline

* update area_chart baseline

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 14:54:30 -05:00
Jonathan Budzenski 3f83259db7
[config] Deprecate KIBANA_PATH_CONF in favor of KBN_PATH_CONF (#111550) 2021-09-09 14:22:48 -05:00
Nick Peihl 4b60458c4b
[Maps] Remove deprecated maps.manifestServiceUrl configuration (#111656)
* Remove deprecated maps.manifestServiceUrl

* Remove unused catalogue route

* Remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 11:37:57 -07:00
Lisa Cawley 4d933c7d98
Replace hard-coded links in infra alerting (#111072) 2021-09-09 11:27:29 -07:00
István Zoltán Szabó cac4957ef2
[APM] Changes link version to master in APM links. (#111685)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:10:12 +02:00
Ahmad Bamieh b001830d58
[Deprecations service] Expose level field to config deprecations (#111516) 2021-09-09 08:59:44 -04:00
Dmitry Tomashevich 9792c1079e
[Discover] Fix pagination when applying filter (#110763)
* [Discover] fix pagination when applying filter

* [Discover] refactoring to forward ref usage

* [Discover] remove console log debug

* [Discover] hide pagination on empty result

* [Discover] add usePager test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:48:20 +03:00
Dzmitry Lemechko b324ca3115
[jest] update config files to get coverage per plugin (#111299)
* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 08:14:56 +02:00
Rudolf Meijering 5464af6923
legacy dashboards import/export API: deprecation logs and usage data (#111283)
* Move legacy dashboards API to core and adds usage data

* More legacy_export plugin removal

* Log a warning for deprecated dashboard import/export API

* Review comments
2021-09-08 16:15:52 -04:00
Jonathan Budzenski f2c00fdd5a
[os/kibana.yml] Use new logger (#111192)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 14:43:34 -05:00
Brian Seeders 7971283bbe
[CI] Buildkite ES Snapshots Pipelines / attempt 2 (#111565) 2021-09-08 14:31:04 -04:00
Matthias Wilhelm 284bc6663c
[Discover] Cleanup legacy code fragments (#110646) 2021-09-08 19:55:40 +02:00
Andrew Goldstein 99ee803459
[Security Solution] Enable schema-driven sorting descriptions in column headers (#111232)
## Summary

This PR resolves issue <https://github.com/elastic/kibana/issues/110041> reported by @snide to enable schema-driven sorting descriptions in column headers.

@chandlerprall recommends obtaining a **+1** from the Machine Learning and Observability solutions, because the fix updates an `i18n` constant in Kibana common to all consumers of `EuiDataGrid`.

## Details

Thanks @chandlerprall for paring on this!

The Alerts table, `Host > Events`, and other `EuiDataGrid`-based views in the Security Solution make use of the default [`EuiDataGrid` schemas](https://elastic.github.io/eui/#/tabular-content/data-grid-schemas-and-popovers).

The default schemas enable `EuiDataGrid` to automatically display, for example, `Old-New` and `New-Old` sorting descriptions for datetime fields, as opposed to generic `A-Z` and `Z-A` descriptions.

The following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` is expected to be rendered a `string` at runtime:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) =>
      i18n.translate('core.euiColumnActions.sort', {
        defaultMessage: 'Sort {schemaLabel}',
        values: { schemaLabel },
      }),
```

But the constant was rendered in `EuiDataGrid` column headers as `[object Object]` when schemas were enabled, as shown in the screenshot below:

![column-header-object-object](https://user-images.githubusercontent.com/4459398/132079843-a8b0f5e5-9d47-4816-8baa-e29577511bf1.png)

_Above: The `sortTextAsc/Desc` text was rendered as `[object Object]`_

The temporary workaround described by [#110041](https://github.com/elastic/kibana/issues/110041) ensured that `Sort A-Z` and `Sort Z-A` labels were always displayed (in lieu of `[object Object]`), as shown in the screenshot below:

![image](https://user-images.githubusercontent.com/324519/130789326-bfe67cae-e4f7-469a-9b57-320cbf733cc8.png)

_Above: `Sort A-Z` and `Sort Z-A` labels were always displayed as a workaround_

The fix in this PR updates the following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` to use a `FormattedMessage`:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => (
      <FormattedMessage
        id="core.euiColumnActions.sort"
        defaultMessage="Sort {schemaLabel}"
        values={{ schemaLabel }}
      />
    ),
```

, which ensures a schema-specific sorting label is displayed as-expected.

It also removes the workaround, as shown in the animated gif below:

![after](https://user-images.githubusercontent.com/4459398/132080352-1ee41a7e-8884-45ad-ae3c-daa9a0127aac.gif)

_Above: Schema-specific sorting descriptions are displayed for `datetime`, `text`, and `numeric` column headers_
2021-09-08 11:54:39 -06:00
Lisa Cawley e16736416a
Replace hard-coded doc links in uptime (#111075) 2021-09-08 09:27:08 -07:00
Stratoula Kalafateli 6f4d8a52dc
[Vislib] Removes old implementation of xy chart (#110786)
* [Vislib] Remove xy chart

* Update i18n

* Remove uncecessary file

* Fix types

* More fixes

* Fix functional tests part 1

* Fix functional tests part 2

* Fix bug with shard-delay

* Fix functional tests part 3

* fix functional tests part4

* Fix async_serch FT

* Fix functional dashboard async test

* REplace screenshot area chart image

* Cleanup vislib from xy charts

* Remove unused fixtures

* Address PR comments

* Remove miaou :D

* Address PR comments

* Fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 18:35:51 +03:00
Dmitry Tomashevich c94c4e653a
[Discover] Fix opening the same saved search (#111127)
* [Discover] fix opening the same saved search

* [Discover] fix functional test

* [Discover] apply suggestion

* [Discover] apply suggestion

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:33:29 +03:00
Alexey Antonov d717521ad0
[TSVB] Fix pinned filters not showing in TSVB (#109223)
Closes: #17025

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:29:02 +03:00
Devon Thomson 70632e2a9e
[Dashboard] Retain Tags on Quicksave (#111015)
* fixed missing tags api when loading saved dashboard. Added tests
2021-09-07 14:20:15 -04:00
Nathan Reese daf860c701
[sample data] update web log geo.src field to match country code of geo.coordinates (#110885)
* [sample data] update web log geo.src field to match country code of geo.coordinates

* fix functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 10:40:46 -06:00
Jonathan Budzenski 173bb47563
[build] Remove empty optimize directory (#111393)
This folder is no longer used.
2021-09-07 12:19:35 -04:00
Dmitry Tomashevich ca79fb1d1e
[Discover] Fix hide chart button (#110779)
* [Discover] fix hide chart button

* [Discover] update tests

* [Discover] fix functional

* [Discover] remove hideChart from the URL it is not true

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 18:24:58 +03:00
Vadim Kibana 95b88cc2fe
add descriptions to plugin manifests (#111306) 2021-09-07 17:24:02 +02:00
Vadim Kibana 05d9bc53fb
Remove any in ui_actions_enhanced (#110018) 2021-09-07 17:23:30 +02:00
Christiane (Tina) Heiligers b1a81bb5e0
Remove unused legacy import code (#111071)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 07:01:35 -07:00
Pierre Gayvallet dec6125402
add hasHeaderBanner$ API to chrome (#111248)
* add hasHeaderBanner$ API to chrome

* update generated doc
2021-09-07 15:54:26 +02:00
Rudolf Meijering cf45c39e0f
Fix flaky migrations tests (#111365) 2021-09-07 09:49:51 -04:00
Søren Louv-Jansen 2cda9a9302
[APM] Deprecate apm_oss.indexPattern config option (#111133)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-07 13:26:52 +02:00
Matthias Wilhelm 1a1ae6c1bc
[Discover] Fix infinite scrolling of classic table (#110944) 2021-09-07 10:57:01 +02:00
Aleh Zasypkin 1eed669095
Make interactive setup work properly in Docker container. (#110629) 2021-09-07 10:22:58 +02:00
István Zoltán Szabó 07f49853cd
[APM] Uses doc link service instead of ElasticDocsLink for linking custom links (#111149) 2021-09-07 08:33:42 +02:00
Thom Heymann 219ff6c37b
Add verification code protection (#110856)
* Add verification code protection

* Fix bug where verification code could be less than 6 digits

* Added suggestions from code review

* fix type errors

* Added suggestions from code review
2021-09-06 20:04:38 +01:00
István Zoltán Szabó 705fe22088
[APM] Uses doc link service instead of ElasticDocsLink for linking dropped transaction spans (#110964) 2021-09-06 17:15:00 +02:00
István Zoltán Szabó 4eefa8531c
[APM] Uses doc link service instead of ElasticDocsLink for linking upgrading info (#111155) 2021-09-06 14:52:46 +02:00
Jean-Louis Leysens 02a6eeb69f
[Canvas/Reporting] Migrate Canvas to V2 reporting (#109860)
* first iteration of canvas reporting using v2 PDF generator

* updated jest test

* made v2 report URLs compatible with spaces and simplified some code

* remove non-existent import

* updated import of lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 13:44:47 +02:00
István Zoltán Szabó 00fac96d37
[APM] Uses doc link service instead of ElasticDocsLink for linking metadata (#110992) 2021-09-06 12:20:35 +02:00
Yaroslav Kuznietsov eef094bafb
[Canvas] TagCloud (#106858)
* Added `tagCloud` to canvas.

* Added `icon` to the `tagCloud` element.

* Added column name support at `tag_cloud`.

* Added condition to `vis_dimension` not to pass invalid index.

Added check of accessor index, if such column exists at vis_dimension.
Removed checks of column existance from TagCloudChart.
Added test for accessing data by column name in addition to a column number.
Updated tag_cloud element in Canvas.
Fixed types. Removed almost all `any` and `as` types.

* Added test suites for `vis_dimension` function.

* Added tests for DatatableColumn accessors at tag_cloud_fn and to_ast.

* Refactored metrics, tagcloud and tests.

Added valid functional tests to metrics and tag_cloud.
Fixed types of metrics_vis.
Added handling of empty data at tag_cloud renderer.

* Added storybook ( still doesn't work ).

* Fixed some mistakes.

* Added working storybook with mocks.

* Added clear storybook for tag_cloud_vis_renderer.

* Updated the location of vis_dimension test after movement of the function.

* Fixed unused type.

* Fixed tests and added handling of the column name at `visualizations/**/*/prepare_log_table.ts`

* Reduced the complexity of checking the accessor at `tag_cloud_chart.tsx`

* Added comments at unclear places of code.

* Added the logic for disabling elements for renderers from disabled plugins.

* removed garbage from `kibana.yml`.

* Fixed element_strings.test error.

* Made changes, based on nits.

* Fixed mistake.

* Removed `disabled` flag for `expression_*` plugins.

* recovered lost comments at the unclear places.

* removed dead code.

* fixed test errors.

* Fixed test error, I hope.

* fixed more tests.

* fixed code, based on nits.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-06 04:13:38 -04:00
Tiago Costa f955947d4e
skip flaky suite (#110970) 2021-09-06 01:10:52 +01:00
Tiago Costa 7c4e4f507b
chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620)
* chore(NA): replace babel config files by inline presets by default in the js_ts_transpiler rule

* chore(NA): update @kbn/ace build to exclude worker file

* chore(NA): remove config file support

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 21:17:46 +01:00
Michael Dokolin df43d253c8
[Expressions] Align renderMode with the embeddable viewMode (#110199)
* Add preview view mode to the embeddable
* Rename display render mode to view
* Extract no interactivity render mode to a separate flag
2021-09-03 19:10:29 +02:00
Tim Roes b6ab15e9f4
Remove kibana.defaultAppId setting (#109798)
* Remove kibana.defaultAppId setting

* Fix typings

* Remove plugin dependency

* Use proper navigation method to get to home

* Default route for home

* Address discover new routing code

* Make non existing /kibana URLs working

* Fix space awareness

* Remove documentation

* Remove the setting from docker file

* Make defaultRoute forward work properly

* Add forward_url tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 17:59:59 +02:00
Jean-Louis Leysens 1f06cafa19
[Reporting/Visualization] Migrate Visualize to V2 reporting (#110206)
* added initial version of locator

* removed unused params and added jest test

* updated functional test to expect PDF reports to be available when vis is new

* fix TS: remove unkown field

* added some docs and removed unused code

* AggsConfigOption -> AggsConfigSerialized

* moved locator to common

* fixed building of "create" path and updated test snapshots

* updated import

* update encoding behaviour

* added time range from timefilter to locator params request

* add index pattern and search id to URL params

* reading index pattern from search source if it is there for the locator

* remove "type" from locator params, update comments and test

* removed duplicate identifier

* remove unused type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 17:08:56 +02:00
Frank Hassanabad 9a459806ad
[Security Solutions][Detection Engine] Adds ability to ignore fields during alert indexing and a workaround for an EQL bug (#110927)
## Summary

Adds a workaround for EQL bug: https://github.com/elastic/elasticsearch/issues/77152
Adds the safety feature mentioned here: https://github.com/elastic/kibana/issues/110802

Adds the ability to ignore particular [fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) when the field is merged with [_source](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#source-filtering). Also fixes an EQL bug where EQL is introducing the meta field of `_ignored` within the fields and causing documents to not be indexable when we merge with the fields from EQL. 

Alerting document creation uses the fields API to get [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html),  [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type), etc... that are only available within the [fields API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#search-fields-param) and then merges the field values not found within the `_source` document with the `_source` document and then finally indexes this merged document as an alert document.

This fix/ability is a "safety feature" in that if a problematic [runtime field](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html), [constant keyword](https://www.elastic.co/guide/en/elasticsearch/reference/master/keyword.html#constant-keyword-field-type) is discovered or another bug along the stack we can set a `kibana.yml` key/value pair to ignore the problematic field.

This _WILL NOT_ remove problematic fields from the `_source` document. This will only ignore problematic constant keyword, runtime fields, aliases, or anything else found in the fields API that is causing merge issues.

This PR:
  * Adds a `alertIgnoreFields` `kibana.yml` array key with a default of an empty array if not specified. 
  * Plumbs the `alertIgnoreFields` through the stack and into the fields/_source merge strategies of `missingFields` and `allFields`
  * Adds a temporary `isEqlBug77152` where it hard codes an ignore of `_ignored` until the EQL problem is fixed and then we will remove the workaround
  * Adds unit tests
  * Adds e2e tests which covers the described use cases above.

The `alertIgnoreFields` key/value within `kibana.yml` if set should be an array of strings of each field you want to ignore. This can also contain regular expressions as long as they are of the form, `"/regex/"` in the array.

Example if you want to ignore fields that are problematic called "host.name" and then one in which you want to ignore all fields that start with "user." using a regular expression:

```yml
xpack.securitySolution.alertIgnoreFields: ['host.name', '/user\..*/']
``` 

Although there are e2e tests which exercise the use cases...

If you want to manual test the EQL bug fix you would add these documents in dev tools:

```json
# Delete and add a mapping with a small ignore_above.
DELETE eql-issue-ignore-fields-delme
PUT eql-issue-ignore-fields-delme
{
  "mappings" : {
    "dynamic": "strict",
    "properties" : {
      "@timestamp": {
        "type": "date"
      },
      "some_keyword" : {
        "ignore_above": 5, 
        "type" : "keyword"
      },
      "other_keyword" : {
        "ignore_above": 10, 
        "type" : "keyword"
      }
    }
  }
}

# Add a single document with one field that will be truncated and a second that will not.
PUT eql-issue-ignore-fields-delme/_doc/1
{
  "@timestamp": "2021-09-02T04:13:05.626Z",
  "some_keyword": "longer than normal",
  "other_keyword": "normal"
}
```

Then create an alert which queries everything from it:
<img width="1155" alt="Screen Shot 2021-09-01 at 10 15 06 PM" src="https://user-images.githubusercontent.com/1151048/131781042-faa424cf-65a5-4ebb-b801-3f188940c81d.png">

and ensure signals are created:
<img width="2214" alt="Screen Shot 2021-09-01 at 10 30 18 PM" src="https://user-images.githubusercontent.com/1151048/131782069-b9ab959c-f22d-44d5-baf0-561fe349c037.png">

To test the manual exclusions of any other problematic fields, create any index which has runtime fields or `constant keywords` but does not have anything within the `_source` document using dev tools. For example you can use `constant keyword` like so

```json
PUT constant-keywords-deleme
{
  "mappings": {
    "dynamic": "strict",
    "properties": {
      "@timestamp": {
        "type": "date"
      },
      "testing_ignored": {
        "properties": {
          "constant": {
            "type": "constant_keyword",
            "value": "constant_value"
          }
        }
      },
      "testing_regex": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "normal_constant": {
        "type": "constant_keyword",
        "value": "constant_value"
      },
      "small_field": {
        "type": "keyword",
        "ignore_above": 10
      }
    }
  }
}

PUT constant-keywords-deleme/_doc/1
{
  "@timestamp": "2021-09-02T04:20:01.760Z"
}
```

Set in your `kibana.yml` the key/value of:

```yml
xpack.securitySolution.alertIgnoreFields: ['testing_ignored.constant', '/.*_regex/']
```

Setup a rule to run:
<img width="1083" alt="Screen Shot 2021-09-01 at 10 23 23 PM" src="https://user-images.githubusercontent.com/1151048/131781696-fea0d421-836f-465c-9be6-5289fbb622a4.png">

Once it runs you should notice that the constant values for testing are not on the signals table since it only typically exists in the fields API:
<img width="1166" alt="Screen Shot 2021-09-01 at 10 26 16 PM" src="https://user-images.githubusercontent.com/1151048/131781782-1684fb1d-bed9-4cf0-be9a-0abe1f0f34d1.png">

But the normal one still exists:
<img width="1136" alt="Screen Shot 2021-09-01 at 10 26 31 PM" src="https://user-images.githubusercontent.com/1151048/131781827-5450c693-de9e-4285-b082-9f7a2cbd5d07.png">

If you change the `xpack.securitySolution.alertIgnoreFields` by removing it and re-generate the signals you will see these values added back.

### 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
- [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
2021-09-03 08:41:28 -06:00
Christiane (Tina) Heiligers 66cb058fa7
Removes support for legacy exports (#110738)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 07:22:14 -07:00
Marco Liberati 21b4752dba
[Lens] Fix transition to custom palette inconsistency when in number mode (#110852)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 15:57:57 +02:00
Alejandro Fernández Haro dfea0fee21
[GET /api/status] Default to v8format and allow v7format=true (#110830) 2021-09-03 07:32:59 -04:00
Mikhail Shustov 641cef7ca6
Functional tests for execution context (#110299)
* remove unnecessary ts-ignore

* add context propagation to x-opaque-id header tests

* run tests on CI

* simplify logging. the action purpose follows from the context name

* extend tests with the assertion against execution_context from the Kibana logs

* split JSON log records only

* apply suggestions proposed by Spencer
2021-09-03 05:48:32 -04:00
Stratoula Kalafateli 33c124b9d8
Move to vis_types folder part 2 (#110574)
* Move to vis_types folder part 2

* fix jest tests

* do some tests

* revert

* Test Tiago's fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 11:19:44 +03:00
Pierre Gayvallet 9d216cd312
[SOR] use initialNamespaces when checking for conflict for create and bulkCreate (#111023)
* use initialNamespaces when checking for conflict

* nits
2021-09-03 08:27:18 +02:00
Devon Thomson e704a52f6e
[Dashboard] Read App State from URL on Soft Refresh (#109354)
Subscribe to app changes from URL to allow dashboard URL to be used as an API. On URL change, update filters, timerange, and query
2021-09-02 17:50:02 -04:00
Pierre Gayvallet 00305dbfb2
normalize initialNamespaces (#110936) 2021-09-02 22:01:32 +02:00
Matthias Wilhelm 814cf7a4fc
[Discover] Remove Angular (#109774)
- This PR removes a remaining Angular related code in Discover
2021-09-02 14:49:14 +02:00
Uladzislau Lasitsa 51b0f5aa15
[XY axis] Split chart and alphabetical descending order doesn't work as expected (#108858)
* We should use 'sort' from terms for 'GroupBy'

* Fix conflicts

* Fix import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-02 15:47:06 +03:00
Nathan L Smith 6509fb31e4
Fix request inspector text display (#110647)
In #110116 I added the `RedirectAppLinks` component, which makes it so links outside the app automatically do not cause a page reload.

This component inserts a div into the DOM. Apparently this also caused the text areas in the request and response tabs of the request inspector to be collapsed to zero height.

Remove `RedirectAppLinks` and handle the navigation with an `onClick` callback instead.
2021-09-02 07:45:50 -05:00
Alexey Antonov 88617325f3
[TSVB] Add migration script for 'drop_last_bucket' value (#110782)
* [TSVB] Add migration script for 'drop_last_bucket' value

* Update visualization_saved_object_migrations.test.ts

* fix PR comments
2021-09-02 12:49:47 +03:00
Spencer fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
Lisa Cawley 714735db21
[APM] Use doc link service instead of ElasticDocsLink (#109027) 2021-09-01 12:08:38 -07:00
spalger 805706b8d5 skip flaky suite (#110038) 2021-09-01 09:01:36 -07:00
Constance 47b86e1bf7
Upgrade EUI to v37.3.1 (#109926)
* Upgrade EUI to v37.3.1

* Update i18n token mappings

* Skip i18n_eui_mapping defString checks for functions

* Update snapshots

* Update failing Security tests with extra nodes

* Remove hook cleanup now that elastic/eui#5068 is merged

* [i18n PR feedback] Prefer specific token skipping over all functions skipping

* Revert "Remove hook cleanup now that elastic/eui#5068 is merged"

This reverts commit e40ebfa929.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:39:20 -07:00
Joe Portner b17d87e508
Security usage data (#110548) 2021-09-01 10:35:36 -04:00
Matthew Kime b77ca9392b
create data views service and use in index pattern management (#110747) 2021-09-01 07:22:41 -05:00
Alejandro Fernández Haro 3a434d710e
[Elasticsearch] Skip the Product Check on the scopeable client (#110767) 2021-09-01 13:07:17 +01:00
Rudolf Meijering 393505ab39
Migrationsv2: limit batch sizes to migrations.batchSizeBytes (= 100mb by default) (#109540)
* Fix logging for existing integration test

* First stab at limiting batches to batchSizeBytes

* Fix tests

* Fix batch size calculation, NDJSON needs to be terminated by an empty line

* Integration tests

* Fix type failures

* rename migration integration tests and log files to be consistent & more descriptive

* Review feedback

* Remove duplication of fatal error reasons

* migrations.maxBatchSizeBytes to docker environment vars

* docs for migrations.maxBatchSizeBytes
2021-09-01 12:19:02 +02:00
Ahmad Bamieh 249c5fbf9a
[Core deprecations] Add title field to deprecation info (#109840) 2021-09-01 13:10:25 +03:00
Xavier Mouligneau 16af3e95cb
[RAC] Remove rbac on security solution side (#110472)
* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-09-01 04:23:44 -04:00
Tiago Costa ff73025533
chore(NA): check for used dependencies on multiple level plugins (#110626) 2021-09-01 03:34:54 +01:00
Jonathan Budzenski 40b91c97ce
[deb/rpm] Generate os package specific kibana.yml (#98213)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 18:00:29 -05:00
Spencer 72f6700270
[eslint] prevent async Promise constructor mistakes (#110349)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-31 17:54:13 -04:00
Jonathan Budzenski 45b13349dc
Ignore elasticsearch-js product check warning by name (#110680) 2021-08-31 16:02:07 -04:00
Mikhail Shustov a3fd138da1
do not make an assumption on user-supplied data content (#109425)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 20:06:47 +02:00
Nathan L Smith 3bae4cdc06
Add inspector panel for APM routes (#109696)
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.

Remove the callout.
2021-08-31 11:10:54 -05:00
Michael Dokolin 475eaf2c76
[Expressions] Fix flaky test checking execution duration (#110338) 2021-08-31 17:59:51 +02:00
Josh Dover 257cdddc5f
Increase timeout for displaying welcome interstitial for new users (#110498) 2021-08-31 11:13:58 -04:00