Commit graph

1498 commits

Author SHA1 Message Date
Alejandro Fernández Haro
17dda21f6b
[Telemetry] Remove all usages of any (#98338) (#98583)
# Conflicts:
#	src/plugins/telemetry/server/collectors/usage/ensure_deep_object.ts
2021-04-28 06:22:37 -04:00
Mikhail Shustov
d64cdca3b1
Fix SO migration integration tests (#98478) (#98582)
* do not restart Kibana server on integration tests writing logs

* unskip tests

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

* revert changes to the File appender

* fix race condition on the logging_system level

enforce buffer usage for all the logs created during  disposal phase
# Conflicts:
#	src/core/server/saved_objects/migrationsv2/integration_tests/rewriting_id.test.ts
2021-04-28 06:19:08 -04:00
Tiago Costa
04a382769d
[7.x] chore(NA): moving @kbn/apm-config-loader into bazel (#98323) (#98528)
* chore(NA): moving @kbn/apm-config-loader into bazel (#98323)

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

* docs(NA): fix docs merge head
2021-04-27 18:33:24 -04:00
Spencer
d773e4f78a
[kbn/es] disable geoip downloader at the root (#98372) (#98533)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-04-27 16:34:23 -04:00
Kibana Machine
a255398153
chore(NA): moving @elastic/safer-lodash-set into bazel (#98187) (#98214)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-27 20:17:35 +00:00
Alexey Antonov
3fd8cfbde7
[visTypeTimeseries] Reduce page load bundle to under 100kB #95873 (#97972) (#98477)
* [visTypeTimeseries] Reduce page load bundle to under 100kB #95873

Closes: 95873

* ts-ignore -> ts-expect-error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-04-27 10:50:38 -07:00
Kibana Machine
bb24201dc5
chore(NA): moving @kbn/expect into bazel (#98322) (#98363)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-26 17:11:19 -04:00
Kibana Machine
814de0857e
Add support for /api/status before Kibana completes startup (#79012) (#98329)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-04-26 18:45:25 +00:00
Kibana Machine
fd1788070a
chore(NA): moving @kbn/babel-code-parser into bazel (#97675) (#98185)
* chore(NA): moving @kbn/babel-code-parser into bazel

* docs(NA): missing docs about new package

* chore(NA): removing quiet arg

* chore(NA): fix packages build srcs

* chore(NA): change source order on tinymath

* chore(NA): add babelrc

* chore(NA): clear package build migration

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-23 18:50:40 +00:00
Nick Partridge
277ad0ba37
Update dependency @elastic/charts to v29 (master) (#98093) (#98152)
# Conflicts:
#	packages/kbn-optimizer/limits.yml

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2021-04-23 12:49:19 -04:00
Kibana Machine
5b542f34b1
Switch Tinymath to use peggy instead of pegjs (#97906) (#98048)
Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-04-22 16:30:47 -04:00
Kibana Machine
673c0c647f
chore(NA): chore(NA): moving @kbn/utils into bazel (#97833) (#98056)
* chore(NA): chore(NA): moving @kbn/utils into bazel

* chore(NA): run kbn-test integration test with preserve-symlinks

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-22 20:25:53 +00:00
Kibana Machine
385ed29080
[kbn-es] Increase ES heap (#97905) (#97932)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-04-21 17:06:35 -07:00
Kibana Machine
d129d275a1
chore(NA): chore(NA): moving @kbn/std into bazel (#97771) (#97891)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-21 21:54:53 +00:00
Tre
9d67b3b143
[QA] Switch tests to use importExport - discover (#94006) (#97885)
Switch es archiver for kbn archiver everywhere possible

Partially closes #93797
2021-04-21 17:12:48 -04:00
Kibana Machine
59efc977b7
Remove the no longer used release-notes script (#97806) (#97882)
* Remove the no longer used release-notes script

* Commit missing file

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-04-21 17:01:18 -04:00
Kibana Machine
2a4b94d4b5
[ML] Moving file data vizualizer to its own plugin (#96408) (#97752)
* [ML] Moving file data vizualizer to file upload plugin

* removing maps plug dependency

* fixing imports

* small refactor

* adding missing endpoints

* fixing translations

* fxing table controls

* fixing types and disabling geo point test

* actually disabling geo point test

* making endpoints internal

* moving UI code to separate plugin

* enabling maps integration

* cleaning up dependencies

* fixing translation ids

* moving analyze file endpoint out of file upload plugin

* fixing transtations issues

* refactor for lazy loading of component

* updating limits

* updating plugin asciidoc

* code clean up

* further clean up

* adding comment

* fixing really obvious CI error

* removing commented out include

* reenabling geo point test

* fixing incorrectly changed import

* removing ml from labels and identifiers

* renaming function

* moving analyse file endpoint to file upload plugin

* reverting import path changes

* adding esUiShared back in

* fixing navigation tabs alignment in basic license

* adding key to tab wrapper

* reverting test label

* further removal of ml references

* removing ml label from more identifiers

* fixing tests

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-04-20 19:21:30 -04:00
Kibana Machine
7f0a9aac70
chore(NA): upgrades iBazel to v0.15.10 (#97489) (#97725)
* chore(NA): upgrade into last ibazel version

* chore(NA): upgrade into latest ibazel version

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-20 21:23:01 +00:00
Greg Thompson
89220e1bf1
[7.x] Update EUI i18n tokens (#97578) (#97700)
* Update EUI i18n tokens (#97578)

* eui token updates

* outdated translations

* snapshot

* increase core limit

* limits

* clean up
# Conflicts:
#	packages/kbn-optimizer/limits.yml

* limits
2021-04-20 16:44:49 -04:00
Kibana Machine
9e80155905
[cliDevMode] set server ready status to false when restarting (#97575) (#97683)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-20 16:03:33 -04:00
Kibana Machine
4270e6d404
[core.logging] Ensure LogMeta is ECS-compliant. (#96350) (#97660)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-04-20 13:42:25 -04:00
Kibana Machine
14191b77a8
HTTP-Server: Graceful shutdown (#97223) (#97645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-04-20 12:07:00 -04:00
Kibana Machine
a9b2cf55b7
Added rison-node to kibana shared deps. (#97417) (#97474)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-04-19 13:18:51 -04:00
Kibana Machine
a5f590d826
chore(NA): moving @kbn/babel-preset into bazel (#97271) (#97436)
* chore(NA): moving @kbn/babel-preset into bazel

* chore(NA): remove unused deps from xpack package.json

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-19 08:50:36 -04:00
Dario Gieselaar
0c81ea5c8b
[RAC] Populate Observability alerts table with data from alerts indices (#96692) (#97399)
* Set up Observability rule APIs

* Populate alerts table with data from API

* Move field map types/utils to common

* Format reason/link in alert type

* Format reason/link in alert type

* Fix issues with tsconfigs

* Storybook cleanup for example alerts

* Use `MemoryRouter` in the stories and `useHistory` in the component to get the history
* Replace examples with ones from "real" data
* Use `() => {}` instead of `jest.fn()` in mock registry data

* Store/display evaluations, add active/recovered badge

* Some more story fixes

* Decode rule data with type from owning registry

* Use transaction type/environment in link to app

* Fix type issues

* Fix API tests

* Undo changes in task_runner.ts

* Remove Mutable<> wrappers for field map

* Remove logger.debug calls in alerting es client

* Add API test for recovery of alerts

* Revert changes to src/core/server/http/router

* Use type imports where possible

* Update limits

* Set limit to 100kb

Co-authored-by: Nathan L Smith <smith@nlsmith.com>

Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2021-04-18 19:02:36 +02:00
Kibana Machine
02b138b2f3
[kbnClient] fix basePath handling and export reponse type (#97277) (#97353)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-16 03:22:09 -04:00
Stacey Gammon
0a2799d09d
Track API stats as part of ci (#95733) (#97306)
* Track stats and add extra output information

* Update api docs output

* Clean up id names

* update api docs

* Consolidate error messages and fix a bug

* Update docs

* Update get_declaration_nodes_for_plugin.ts

* Fix bug with removeBrokenLinks not being recursive

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/reporting.json
2021-04-15 16:47:21 -04:00
Kibana Machine
9b326c67c9
chore(NA): moving @kbn/utility-types into bazel (#97151) (#97199)
* chore(NA): moving @kbn/utility-types into bazel

* chore(NA): solve ts config errors

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-14 23:38:45 -04:00
Kibana Machine
9b3499a779
chore(NA): moving @kbn/tinymath into bazel (#97022) (#97173)
* chore(NA): moving @kbn/tinymath into bazel

* chore(NA): fixed jest tests

* chore(NA): simplified tsconfig file

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-14 17:00:16 -04:00
Kibana Machine
fa0c1a4d0a
Bump hosted-git-info from 2.5.0/3.0.7 to 2.8.9/3.0.8 (#96987) (#97121)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-04-14 12:43:03 -04:00
Kibana Machine
769b632901
chore(NA): moving @kbn/config-schema into bazel (#96273) (#97115)
* chore(NA): moving @kbn/config-schema into bazel

* chore(NA): correctly format packages for the new bazel standards

* chore(NA): correctly maps srcs into source_files

* chore(NA): remove config-schema dep from legacy built packages package.jsons

* chore(NA): include kbn/config-schema in the list of bazel packages to be built

* chore(NA): change import to fix typechecking

* chore(NA): remove dependency on new package built by bazel

* chore(NA): be more explicit about incremental setting

* chore(NA): include pretty in the args for ts_project rule

* docs(NA): include package migration completion in the developer getting started

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-14 11:45:59 -04:00
Kibana Machine
c7f4613ddd
chore(NA): moving @kbn/apm-utils into bazel (#96227) (#97024)
* chore(NA): moving @kbn/apm-utils into bazel

* chore(NA): add kbn/apm-utils into package.json

* chore(NA): missing standard on build file globs

* chore(NA): be more explicit about incremental setting

* chore(NA): include pretty in the args for ts_project rule

* docs(NA): include package migration completion in the developer getting started

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-13 16:20:05 -04:00
Sébastien Loix
7e82bafb22
[ILM] Add UI validation for min age value (#96718) (#97021) 2021-04-13 15:58:19 -04:00
Catherine Liu
8365901c46
[Presentation Util] Shared toolbar component (#94139) (#97003) 2021-04-13 14:36:08 -04:00
Kibana Machine
82357bf5d1
[plugin-generator] don't generate .eslintrc.js files for internal plugins (#96921) (#96981)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-13 12:48:57 -04:00
Kibana Machine
91cfff87a4
chore(NA): @kbn/pm new commands to support development on Bazel packages (#96465) (#96911)
* chore(NA): add warnings both to run and watch commands about Bazel built packages

* chore(NA): add new commands to build and watch bazel packages

* docs(NA): add documentation about how to deal with bazel packages

* chore(NA): addressed majority of the feedback received except for improved error logging

* chore(NA): disable ibazel info notification.

* chore(NA): remove iBazel notification

* chore(NA): remove iBazel notification - kbn pm dist

* chore(NA): move show_results option to kbn-pm only

* chore(NA): patch build bazel command to include packages target list

* chore(NA): add pretty logging for elastic-datemath

* chore(NA): remove double error output from commands ran with Bazel

* fix(NA): include simple error message to preserve subprocess failure state

* docs(NA): missing docs about how to independentely watch non bazel packages

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-12 22:30:36 -04:00
Jonathan Budzenski
b0a2b233f6 [kbn-ui-shared-deps] Remove outdated polyfills (#96339) 2021-04-12 09:27:52 -05:00
Yara Tercero
8d534f4e8b
[7.x] [Security Solution][Exceptions] - Moves remaining exceptions builder logic into lists plugin (#95266) (#96358)
* [Security Solution][Exceptions] - Moves remaining exceptions builder logic into lists plugin (#95266)

## Summary

Moves part of the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I am moving single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.

The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `ExceptionBuilderComponent` which deals with rendering numerous exception items and their entries.

Quick Summary:
- `x-pack/plugins/security_solution/public/common/components/exceptions/builder/` → ` x-pack/plugins/lists/public/exceptions/components/builder/`
  - Corresponding unit test file moved as well
  - Updated security solution exception builder to pull `ExceptionBuilderComponent` from lists plugin
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	src/dev/code_coverage/ingest_coverage/__tests__/enumerate_patterns.test.js

* removing file that exists in master but not backported to 7.x mistakenly included in backport upon cherry picking

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-11 03:47:27 -04:00
Dario Gieselaar
b069c388f9
[7.x] [APM] Extract server type utils to package (#96349) (#96552) 2021-04-08 15:57:04 +02:00
Kibana Machine
e88148235d
[Telemetry] enforce import export type (#96487) (#96546)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: hardikpnsp <hardikpnsp@gmail.com>
2021-04-08 08:43:05 -04:00
Kibana Machine
46db2d8cb7
[globby] normalize paths for windows support (#96476) (#96506)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-07 19:11:21 -04:00
Kibana Machine
0195e666d2
Upgrade globby dependency (8.0.111.0.3). (#96287)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-04-06 07:01:42 -04:00
Pierre Gayvallet
248390f779
[7.x] Remove /src/legacy (#95510) (#96283)
* Remove /src/legacy (#95510)

* starting removing stuff

* fix jest config

* disable CLI mode until other PR is merged

* fix the schema

* add deprecation for maxPayloadBytes

* fix legacy start logic

* deletes `env` from unknown args

* fix FTR test config

* some legacy service deletion

* move config validation

* remove legacy exports from entrypoint

* preserve legacy logging in core logging config

* try to fix uiSettings integration tests

* fix legacy service tests

* more type fix

* use fromRoot from @kbn/utils

* cleanup kibana.d.ts

* fix unit tests

* remove src/core/server/utils

* fix server script

* add integration test for `/{path*}` route

* add unit tests on legacy config

* adapt uiSetting IT bis

* fix tests

* update generated doc

* address some review comments

* move review comments

* fix some stuff

* fix some stuff

* fix some stuff

* fix some stuff bis

* generated doc

* add test for ensureValidConfiguration
# Conflicts:
#	.github/CODEOWNERS
#	src/cli_plugin/install/core_plugins/kibana/public/context/query_parameters/state.js
#	src/core/server/http/http_config.ts
#	x-pack/test/functional/config.js

* codestyle
2021-04-06 06:08:31 -04:00
Mikhail Shustov
ad7866592e
[7.x] Revert "TS Incremental build exclude test files (#95610)" (#96223) (#96281)
* Revert "TS Incremental build exclude test files (#95610)" (#96223)

This reverts commit b6e582c53e.

* code: use base tsconfig
2021-04-06 05:52:22 -04:00
Thomas Neirynck
b31ee25c46
[Maps] Enable all zoom levels for all users (#96093) (#96228)
# Conflicts:
#	.github/CODEOWNERS
2021-04-05 14:33:44 -04:00
Mikhail Shustov
ebdcd92b05
[7.x] TS Incremental build exclude test files (#95610) (#96041)
* TS Incremental build exclude test files (#95610)

* add base config for all the TS projects

* all the project use new tsconfig.project.json

* compile test files in the high-level tsconfig.json

* fix TS error in maps plugin

* fix TS error in infra plugin

* exclude mote test and test until folders

* uptime. do not import test code within prod code

* expressions. do not import test code within prod code

* data: export mocks from high level folder

* task_manager: comply with es client typings

* infra: remove unused enzyme_helpers

* check_ts_project requires "include" key

* ts_check should handle parent configs

* all ts configs should extend base one

* exclude test folders from plugins

* update patterns to fix ts_check errors

* Apply suggestions from code review

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* uptime: MountWithReduxProvider to test helpers

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

* fix code plugin tsconfig

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-02 03:32:47 -04:00
Tiago Costa
b47ab193d5
chore(NA): moving @elastic/datemath into bazel (#94665) (#96105)
* chore(NA): majority of the changes needed to build elastic-datemath with bazel

* chore(NA): add missing bits on elastic-datemath package

* chore(NA): add missing build and watch scripts

* chore(NA): remove build scripts for elastic datemah

* chore(NA): remove typo from build baze production projects logs

* chore(NA): force install on CI

* chore(NA): introduce custom preserve symlinks resolver for jest

* chore(NA): update jest integration snapshot

* chore(NA): fix build for bazel packages

* chore(NA): correctly copy bazel built packages into final distributable build

* chore(NA): update kbn pm dist

* chore(NA): experimental new logic to handle bazel yarn rule rerun using yarn-integrity file

* chore(NA): update snapshots

* refact(NA): ensure yarn integrity exists into two methods

* chore(NA): fix ts error

* chore(NA): update snapshots

* chore(NA): update elastic-datemath build file to include ts_project rule

* chore(NA): update basic optimization test snapshots

* chore(NA): merge and solve conflicts cherry-pick from #96066

* chore(NA): update package.json and yarn.lock file

* chore(NA): update bazel/bin into bazel-bin on kbn-pm build bazel packages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-04-01 20:34:53 -04:00
Kibana Machine
e199fde836
chore(NA): stop grouping bazel out symlink folders (#96066) (#96085)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-01 17:34:54 -04:00
Kibana Machine
bb9928c0e6
[cli-dev-mode] complete state subjects when shutting down (#96003) (#96049)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-01 16:15:11 +00:00
Thomas Neirynck
9e91aea9f2
[Maps] Make bundle smaller (#95881) (#96016)
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/embedded_map.tsx
#	x-pack/plugins/uptime/public/components/monitor/status_details/location_map/embeddables/map_tool_tip.tsx
2021-04-01 01:18:03 -04:00
Kibana Machine
1cd153e5c7
[kbn/optimizer] import source-map-support in script to avoid breaking jest snapshots (#96011) (#96013)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-31 23:49:31 -04:00
Kevin Qualters
6f22f0c2a4
[Security Solution][RAC][Timeline] Timeline plugin skeleton and test plugin harness (#95683) (#95998)
* [RAC][Security Solution] Initial timeline and test plugin harness

* Change plugin name from timeline to timelines

# Conflicts:
#	.github/CODEOWNERS
2021-03-31 19:54:10 -04:00
Mikhail Shustov
fb0ea1cc2b
Move more Kibana packages to UI shared deps (#95894) (#95992)
* move @kbn/std to kbn-ui-shared-deps

* add @elastic/safer-lodash-set to kbn-ui-shared-deps

* update limits

* Revert "update limits"

This reverts commit f396d4764d.

* decrase limits for Core team owned code
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-03-31 19:33:28 -04:00
Kibana Machine
c727e806c1
never run webpack with --progress on CI (#95967) (#95990)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-31 19:24:05 -04:00
Kibana Machine
2c4ef4a272
[ci-stats] move ui-shared-deps metrics to page load assets group (#95957) (#95988)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-31 19:18:35 -04:00
Ahmad Bamieh
da5edcc055
[7.x] [Core] create deprecations service (#94845) (#95815)
* fix conflicts

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-31 08:21:07 -04:00
Tiago Costa
69bec3f49f
chore(NA): enable preserve symlinks for ts without breaking packages development (#95433) (#95884)
* chore(NA): move elastic-datemath into a ts package

* chore(NA): finish elastic-datemath

* chore(NA): finish elastic-datemath

* chore(NA): source folder for elastic-datemath

* chore(NA): add source-maps ace, analytics, apm-config-loader and apm-utils packages

* chore(NA): add sourcemaps to packages on typescript

* chore(NA): move test fixtures within source

* chore(NA): correct exclusions on packages

* chore(NA): correct package.json on all packages

* chore(NA): correct package.json on all packages

* chore(NA): complete kbn pm

* chore(NA): default export on elastic-datemath

* chore(NA): include logs on kbn-logging

* chore(NA): update bundle ref module to last code used in the webpack upstream

* chore(NA): update bundle ref module to last code used in the webpack upstream - refactored

* chore(NA): remove override method for exportsArgument

* fix(NA): typechecking problems by use @internal at javascript import sources on kbn-test package

* fix(NA): typescript projects check

* fix(NA): run optimizer integration tests from source

* chore(NA): fix usage from target for kbn optimizer

* chore(NA): path on tsconfig

* chore(NA): move tsignore into ts-expect-error

* chore(NA): include souce maps on kbn cli dev

* chore(NA): include souce maps on kbn-crypto, kbn-server-http-tools and kbn-telemetry-tools

* chore(NA): add issue links into the ts-expect-error comments
# Conflicts:
#	packages/elastic-datemath/README.md
#	packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts
2021-03-30 23:54:44 -04:00
Kibana Machine
2b92893938
[cli-dev-mode] complete shutdown once devServer stops gracefully (#95822) (#95878)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-30 21:07:55 -04:00
Kibana Machine
7c53bc8de2
[cli-dev-mode/optimizer] omit pageLoadAssetSizeLimit from cache (#95826) (#95856)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-30 20:16:11 -04:00
Chandler Prall
2c5a9a7cb4
[7.x] Upgrade EUI to v31.10.0 (#93796) (#95687)
* Upgrade EUI to v31.10.0 (#93796)

* Upgraded eui version, updated jest snaapshots

* Upgrade EUI to v31.10.0 & update tests

* increase expected histogram brush size result

* revert dev_server snap

* update baseline dashboard reporting png

* avoid multiple acton menu openings when verified that the action exists and is enabled

* update dashboard table expand button

* update dashboard tsvb baseline

* Adjust 2 cypress tests

* snapshot update

Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/functional/screenshots/baseline/tsvb_dashboard.png
#	x-pack/plugins/canvas/public/components/asset_manager/__stories__/__snapshots__/asset_manager.stories.storyshot
#	x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/__snapshots__/trusted_apps_page.test.tsx.snap

* snapshot updates
2021-03-30 15:30:58 -04:00
Pierre Gayvallet
d2b724fb42
use correct config prefix for server config (#95792) (#95818) 2021-03-30 14:53:04 -04:00
Kibana Machine
3d6df8ea18
[optimizer] Compress sass assets in production (#94846) (#95794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-30 12:15:08 -04:00
Pierre Gayvallet
41eb6e2b12
Remove core->cli dependency (#95145) (#95775)
* extract http_tools to package

* fix readme

* start moving stuff

* cleaning up `isDevCliParent`

* choose bootstrap script

* fix bootstrap script logic

* fix watch paths logic

* import REPO_ROOT from correct package

* create the @kbn/crypto package

* update core's `dev` config

* only export bootstrap function

* extract sslConfig to http-tools package

* fix core types

* fix optimizer tests

* fix cli_dev_mode tests

* fix basePath proxy tests

* update generated doc

* fix unit tests

* create @kbn/dev-cli-mode package

* remove useless comment

* self-review NITS

* update CODEOWNERS file

* add devOnly flag

* use variable for DEV_MODE_PATH

* review comments

* fix logger/log adapter

* fix log calls in base path proxy server

* address some review comments

* rename @kbn/http-tools to @kbn/server-http-tools

* more review comments

* move test to correct file

* add comment on getBootstrapScript

* fix lint

* lint

* add cli-dev-mode to eslint dev packages

* review comments

* update yarn.lock

* Revert "[ci] skip building ts refs when not necessary (#95739)"

This reverts commit e46a74f7
# Conflicts:
#	.github/CODEOWNERS
2021-03-30 09:48:48 -04:00
Kibana Machine
ef9d604d05
[kbn-ui-shared-deps] Minify css (#94869) (#95703)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-29 19:47:57 -04:00
Larry Gregory
a542d12b78
[7.x] Move production dependencies out of devDependencies (#93997) (#95581)
* Move production dependencies out of devDependencies (#93997)

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

* update lockfile
2021-03-29 10:40:51 -04:00
Kibana Machine
a0da4c99a5
[Lens] Prepare Lens for jest-environment-jsdom migration (#95327) (#95530)
* 🐛 Fix activeElement issue with Jest

* 🏷️ Fix type issue

* 👌 Removed expect-errors directives

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

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-03-26 13:15:26 -04:00
Kibana Machine
54ffc0f6a0
[kbn/test] switch to @elastic/elasticsearch (#95443) (#95468)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-25 18:10:50 -04:00
Mikhail Shustov
a15178a1b0
[7.x] ES client : use the new type definitions (#83808) (#95391)
* ES client : use the new type definitions (#83808)

* Use client from branch

* Get type checking working in core

* Fix types in other plugins

* Update client types + remove type errors from core

* migrate Task Manager Elasticsearch typing from legacy library to client library

* use SortOrder instead o string in alerts

* Update client types + fix core type issues

* fix maps ts errors

* Update Lens types

* Convert Search Profiler body from a string to an object to conform to SearchRequest type.

* Fix SOT types

* Fix/mute Security/Spaces plugins type errors.

* Fix bootstrap types

* Fix painless_lab

* corrected es typing in Event Log

* Use new types from client for inferred search responses

* Latest type defs

* Integrate latest type defs for APM/UX

* fix core errors

* fix telemetry errors

* fix canvas errors

* fix data_enhanced errors

* fix event_log errors

* mute lens errors

* fix or mute maps errors

* fix reporting errors

* fix security errors

* mute errors in task_manager

* fix errors in telemetry_collection_xpack

* fix errors in data plugins

* fix errors in alerts

* mute errors in index_management

* fix task_manager errors

* mute or fix lens errors

* fix upgrade_assistant errors

* fix or mute errors in index_lifecycle_management

* fix discover errors

* fix core tests

* ML changes

* fix core type errors

* mute error in kbn-es-archiver

* fix error in data plugin

* fix error in telemetry plugin

* fix error in discover

* fix discover errors

* fix errors in task_manager

* fix security errors

* fix wrong conflict resolution

* address errors with upstream code

* update deps to the last commit

* remove outdated comments

* fix core errors

* fix errors after update

* adding more expect errors to ML

* pull the lastest changes

* fix core errors

* fix errors in infra plugin

* fix errors in uptime plugin

* fix errors in ml

* fix errors in xpack telemetry

* fix or mute errors in transform

* fix errors in upgrade assistant

* fix or mute fleet errors

* start fixing apm errors

* fix errors in osquery

* fix telemetry tests

* core cleanup

* fix asMutableArray imports

* cleanup

* data_enhanced cleanup

* cleanup events_log

* cleaup

* fix error in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix ES typings for Hit

* fix SO

* fix actions plugin

* fix fleet

* fix maps

* fix stack_alerts

* fix eslint problems

* fix event_log unit tests

* fix failures in data_enhanced tests

* fix test failure in kbn-es-archiver

* fix test failures in index_pattern_management

* fixing ML test

* remove outdated comment in kbn-es-archiver

* fix error type in ml

* fix eslint errors in osquery plugin

* fix runtime error in infra plugin

* revert changes to event_log cluser exist check

* fix eslint error in osquery

* fixing ML endpoint argument types

* fx types

* Update api-extractor docs

* attempt fix for ese test

* Fix lint error

* Fix types for ts refs

* Fix data_enhanced unit test

* fix lens types

* generate docs

* Fix a number of type issues in monitoring and ml

* fix triggers_actions_ui

* Fix ILM functional test

* Put search.d.ts typings back

* fix data plugin

* Update typings in typings/elasticsearch

* Update snapshots

* mute errors in task_manager

* mute fleet errors

* lens. remove unnecessary ts-expect-errors

* fix errors in stack_alerts

* mute errors in osquery

* fix errors in security_solution

* fix errors in lists

* fix errors in cases

* mute errors in search_examples

* use KibanaClient to enforce promise-based API

* fix errors in test/ folder

* update comment

* fix errors in x-pack/test folder

* fix errors in ml plugin

* fix optional fields in ml api_integartoon tests

* fix another casting problem in ml tests

* fix another ml test failure

* fix fleet problem after conflict resolution

* rollback changes in security_solution. trying to fix test

* Update type for discover rows

* uncomment runtime_mappings as its outdated

* address comments from Wylie

* remove eslint error due to any

* mute error due to incompatibility

* Apply suggestions from code review

Co-authored-by: John Schulz <github.com@jfsiii.org>

* fix type error in lens tests

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* update deps

* fix errors in core types

* fix errors for the new elastic/elasticsearch version

* remove unused type

* remove unnecessary manual type cast and put optional chaining back

* ML: mute Datafeed is missing indices_options

* Apply suggestions from code review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* use canary pacakge instead of git commit

Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: restrry <restrry@gmail.com>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
# Conflicts:
#	package.json
#	src/core/server/saved_objects/migrationsv2/integration_tests/migration.test.ts
#	src/plugins/data/server/autocomplete/value_suggestions_route.ts
#	src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx
#	x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/security/server/authentication/api_keys/api_keys.ts
#	yarn.lock

* fix file broken during conflict resolution

* fix lint errors and test failure

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
2021-03-25 10:33:44 -04:00
Kibana Machine
ec9b609453
fix(NA): support inspect flags on ensure_node_preserve_symlinks script (#95344) (#95378)
* fix(NA): support inspect flags on ensure_node_preserve_symlinks script

* chore(NA): fix wording on function test runner schema file

* chore(NA): update execargv array in case of --inspect port

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-03-25 02:07:29 -04:00
Kibana Machine
4193030cc8
[jest] switch to jest-environment-jsdom (#95125) (#95326)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-24 14:02:58 -04:00
Rudolf Meijering
953ee4bdc3
EsArchiver: support for injecting kibana version and use it for spaces tests (#94420) (#95030)
* EsArchiver: support for injecting kibana version and use it for speeding up spaces tests

* Use kbn/utils to get current kibana version in tests

* Review feedback: improve test by splitting variable over chunks
# Conflicts:
#	x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json
#	x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json
#	x-pack/test/spaces_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json
2021-03-22 09:48:28 +01:00
Rudolf Meijering
70446af9f0
[7.x] Speed up spaces tests by letting v2 migrations do less work (#91829) (#94797)
* Speed up spaces tests by letting v2 migrations do less work (#91829)

* Don't mess with v2 migration's index

* Speed up spaces tests by letting v2 migrations do less work

* Add disabled mapping for spaces so that plugin can be disabled

* Add security as codeowners of xpack saved object api integration suite
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
#	x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json
#	x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json

* Apply suggestions from code review

* Fix backport for ES _types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 17:16:09 -04:00
Kibana Machine
515ac4b373
Define schema for monitoring-sourced telemetry (#94434) (#94816)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-18 18:43:37 +00:00
Kibana Machine
cef122f9db
[optimizer] Compress javascript assets (#94717) (#94946)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-03-18 14:42:54 -04:00
Christiane (Tina) Heiligers
6f38b96644
[core.logging] Deprecates legacy logging dest, json, verbosity and rotate configurations (#94238) (#94878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/migration/migrate_8_0.asciidoc
#	src/core/server/config/deprecation/core_deprecations.ts
2021-03-17 22:15:15 -04:00
Kibana Machine
a1e09d7ca7
[kbn/optimizer] report timings when run from CLI or build (#94764) (#94862)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-17 19:25:09 -04:00
Tiago Costa
e3c70f51fc
chore(NA): ensure scripts run with --preserve-symlinks (#94046) (#94636)
* chore(NA): ensure scripts run with --preserve-symlinks

* chore(NA): run webpack configs with symlinks: false

* chore(NA): fix pkg json load on kbn test

* chore(NA): add script into setup node env

* chore(NA): fix kbn test for relative improt

* chore(NA): fix change on docs

* chore(NA): move ensure node preserve symlinks into setup node env

* chore(NA): update changed docs

* chore(NA): update jest unit test

* chore(NA): fix wrapper script exit code

* chore(NA): updated generated plugin list docs

* fix(NA): make functional test runner use kbn utils repo_root

* chore(NA): fix eslint imports

* chore(NA): missing react correct config on eslint package

* chore(NA): use correct value to make test pass locally

* chore(NA): fix jest tests

* chore(NA): try remove extra preserve symlinks

* chore(NA): fix windows environment

* chore(NA): fix kbn-optimizer to run with preserve-symlinks

* chore(NA): fix integration jest test for kbn/optimizer

* chore(NA): remove require.resolve from eslintrc.js

* chore(NA): avoid load json file

* chore(NA): move kbn/utils import into kbn/dev-utils

* chore(NA): use correct dependencies on eslint config package

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-15 18:57:30 -04:00
Kibana Machine
2de20b229a
[kbn/pm] fix bootstrap error handler (#94590) (#94617)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-15 16:17:39 -04:00
Thomas Neirynck
366ad496b7
[Maps] Isolate maps-setting froms maps_legacy (#92918) (#94588)
Creates a new plugins, maps_ems, with `map.*` configs and shared EMS-settings. `maps_legacy` now only supports the `region_map` and `coordinate_map` plugins.
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-03-15 13:44:20 -04:00
Anton Dosov
9b353ee9f9
[Search Sessions] Search session example app functional test (#92133) (#94570)
# Conflicts:
#	test/scripts/jenkins_build_plugins.sh
#	test/scripts/jenkins_ci_group.sh
#	x-pack/scripts/functional_tests.js
2021-03-15 12:09:58 -04:00
Pierre Gayvallet
3c84c7ca58
Move src/apm.js to @kbn/apm-config-loader (#94315) (#94538)
* Move src/apm.js to @kbn/apm-config-loader

* add unit tests for `initApm`

* return undefined instead of empty config

* use ?.
2021-03-14 20:04:44 -04:00
Spencer
c7bfd74ebc
[ci-stats] ship timings, collect overall bootstrap time (#93557) (#94460)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	docs/developer/index.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-11 15:30:24 -05:00
Kibana Machine
e17fbb9ac8
Bump dependencies (#94175) (#94242)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-03-09 21:06:53 -05:00
Kibana Machine
ca1fa29f85
Bump @storybook/* from 6.0.26 to 6.1.20 (#93386) (#94132)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-03-09 18:08:00 +00:00
Stacey Gammon
6b8ebbfa18
API docs clean up (#93508) (#93881)
* Fix links to github

* Fix links to github

* Update docs to latest

* Sort, remove unneccessary path info, reduce tags

* Go back to having DocDef create the link to avoid backport conflicts

* update api docs
# Conflicts:
#	api_docs/actions.json
#	api_docs/advanced_settings.json
#	api_docs/alerting.json
#	api_docs/apm.json
#	api_docs/apm_oss.json
#	api_docs/banners.json
#	api_docs/beats_management.json
#	api_docs/bfetch.json
#	api_docs/canvas.json
#	api_docs/case.json
#	api_docs/charts.json
#	api_docs/cloud.json
#	api_docs/console.json
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_chrome.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
#	api_docs/dashboard.json
#	api_docs/dashboard_enhanced.json
#	api_docs/dashboard_mode.json
#	api_docs/data.json
#	api_docs/data_autocomplete.json
#	api_docs/data_enhanced.json
#	api_docs/data_field_formats.json
#	api_docs/data_index_patterns.json
#	api_docs/data_query.json
#	api_docs/data_search.json
#	api_docs/data_ui.json
#	api_docs/dev_tools.json
#	api_docs/discover.json
#	api_docs/discover_enhanced.json
#	api_docs/embeddable.json
#	api_docs/embeddable_enhanced.json
#	api_docs/encrypted_saved_objects.json
#	api_docs/enterprise_search.json
#	api_docs/es_ui_shared.json
#	api_docs/event_log.json
#	api_docs/expressions.json
#	api_docs/features.json
#	api_docs/file_upload.json
#	api_docs/fleet.json
#	api_docs/global_search.json
#	api_docs/home.json
#	api_docs/index_lifecycle_management.json
#	api_docs/index_management.json
#	api_docs/index_pattern_field_editor.json
#	api_docs/index_pattern_management.json
#	api_docs/infra.json
#	api_docs/ingest_pipelines.json
#	api_docs/inspector.json
#	api_docs/kibana_legacy.json
#	api_docs/kibana_react.json
#	api_docs/kibana_utils.json
#	api_docs/lens.json
#	api_docs/license_management.json
#	api_docs/licensing.json
#	api_docs/lists.json
#	api_docs/management.json
#	api_docs/maps.json
#	api_docs/maps_legacy.json
#	api_docs/ml.json
#	api_docs/monitoring.json
#	api_docs/navigation.json
#	api_docs/newsfeed.json
#	api_docs/observability.json
#	api_docs/osquery.json
#	api_docs/presentation_util.json
#	api_docs/remote_clusters.json
#	api_docs/reporting.json
#	api_docs/rollup.json
#	api_docs/runtime_fields.json
#	api_docs/saved_objects.json
#	api_docs/saved_objects_management.json
#	api_docs/saved_objects_tagging.json
#	api_docs/saved_objects_tagging_oss.json
#	api_docs/security.json
#	api_docs/security_oss.json
#	api_docs/security_solution.json
#	api_docs/share.json
#	api_docs/snapshot_restore.json
#	api_docs/spaces.json
#	api_docs/spaces_oss.json
#	api_docs/stack_alerts.json
#	api_docs/task_manager.json
#	api_docs/telemetry.json
#	api_docs/telemetry_collection_manager.json
#	api_docs/telemetry_collection_xpack.json
#	api_docs/telemetry_management_section.json
#	api_docs/triggers_actions_ui.json
#	api_docs/ui_actions.json
#	api_docs/ui_actions_enhanced.json
#	api_docs/uptime.json
#	api_docs/url_forwarding.json
#	api_docs/usage_collection.json
#	api_docs/vis_type_timeseries.json
#	api_docs/visualizations.json
2021-03-06 10:05:27 -05:00
Mike Côté
357e5f11ce
Rename alerts plugin to alerting (#92898) (#93827)
* Rename alerts plugin to alerting

* Deprecate old config values

* Few more renames

* Update plugin list

* Rename xpack.alerts -> xpack.alerting

* Fix some ESLint rules

* Fix typecheck

* Fix some test failures

* Some more renames

* Fix ESLint

* Fix some test failures

* Fix failing jest test

* Undo exclusive test

* Fix APM deps

* Fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/alerting.json
#	api_docs/triggers_actions_ui.json
#	rfcs/text/0003_handler_interface.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 21:38:33 -05:00
Brian Seeders
a6273848c7
Revert "Display Kibana overall status in the logs and have FTR wait for green status before running tests (#92568) (#93742)" (#93856)
This reverts commit 3e8585bf2f.
2021-03-05 21:03:09 -05:00
Pierre Gayvallet
3e8585bf2f
Display Kibana overall status in the logs and have FTR wait for green status before running tests (#92568) (#93742)
* add licensing plugin status

* simplify log message

* review comments
2021-03-05 07:09:40 -05:00
Anton Dosov
bb3d35bb12
Fix wrong import in data plugin causing 100kB bundle increase (#93448) (#93577)
# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
2021-03-04 08:15:49 -05:00
Stacey Gammon
2117e1324c
API DOCS Step 3/3 (#92929) (#93530)
* update api_docs from gitignore

* api doc files

* Update api_welcome.mdx

* Pretty print json

* Add new lines and extra frontmatter to warn github viewers

* update api_docs with new lines and frontmatter

* Remove all apis tagged @internal and add tests

* Update docs with all internal APIs removed

* fix typescript error in test fixtures

* Update core.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
2021-03-03 20:12:24 -05:00
Kibana Machine
c344fe3882
chore(NA): manage npm dependencies within bazel (#92864) (#93474)
* chore(NA): full WORKSPACE.bazel logic plus manage yarn dependencies with Bazel

* chore(NA): update BUILD.bazel files comments on root and packages

* chore(NA): add workspace file with useful data

* chore(NA): install deps through bazel

* chore(NA): update workspace file

* chore(NA): update into last rules nodejs

* chore(NA): ensure bazel always run yarn install

* chore(NA): support offline mode

* chore(NA): remove elastic-datemath

* chore(NA): restore bazel 4.0.0

* chore(NA): update kbn pm dist

* chore(NA): introduce force-install command

* docs(NA): update docs with new yarn kbn bootstrap flags

* chore(NA): use path.resolve on kbn bootstrap integrity check verification

* chore(NA): update .yarnrc

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

* chore(NA): change cli argument typo

* chore(NA): fix spacing on kbn pm cli

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

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2021-03-03 15:21:20 -05:00
Mikhail Shustov
a15e4760f1
Attempt to reduce Core bundle size with type exports. (#92221) (#93457)
* compile core files as isolated modules

* fix export problems for isolated modules

* apply changes to kbn-test as core imports from it

* fix some exports

* fix lint errors

* update new exports

* fix eslint error

* expand export * where it is possible

* update docs

* update docs

* fix eslint error
# Conflicts:
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
#	src/core/public/index.ts
2021-03-03 14:01:11 -05:00
Spencer
92f82a0643
[kbn/optimizer/node] use shorter cache keys to avoid overflowing limit (#93316) (#93444)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/node/node_auto_tranpilation.ts
2021-03-03 12:51:21 -05:00
Kibana Machine
06374539d2
Consolidate @babel/* packages and use latest compatible version (#93264) (#93376)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-03-03 05:25:31 -05:00
Kibana Machine
27cd18fb5a
[CI] No longer collect APM span stack traces (#93263) (#93370)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-03-03 04:13:50 -05:00
Kibana Machine
2519f56597
chore(NA): look for bazel packages on npm_module folder during distributable build (#93262) (#93359)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-03-02 23:26:53 -05:00
Kibana Machine
e7195f482a
[kbn/optimizer] allow customizing the limits path from the script (#93153) (#93356)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-02 22:45:54 -05:00
Kibana Machine
b6aa39cff9
chore(NA): do not include fs within a storybook build (#93294) (#93327)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-03-02 19:19:07 -05:00
Christiane (Tina) Heiligers
765b08368a
[7.x] [Usage Collection] Supports field descriptions as meta data (#92701) (#93295)
* [Usage Collection] Supports field descriptions as meta data (#92701)

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/kibana_usage_collection/server/collectors/management/schema.ts

* Updates schema
2021-03-02 17:33:50 -05:00
Stacey Gammon
5dda62e754
update plugin list (#93259) (#93298) 2021-03-02 17:16:02 -05:00
Kibana Machine
0627307183
[core.logging] Fix calculating payload bytes for arrays and zlib streams. (#92100) (#93285)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-03-02 15:38:01 -05:00
Kibana Machine
7535f23a55
API docs (#92827) (#92940)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-02-25 20:54:03 -05:00
Kibana Machine
f6e6149e66
[kbn/test] add import/export support to KbnClient (#92526) (#92935)
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 20:34:11 -05:00
spalger
527f026a0f add dep on @kbn/config so it is built first 2021-02-25 07:50:08 -08:00
Stacey Gammon
1fd58b52e7
Automatically generated Api documentation (#86232) (#92742)
* auto generated mdx api doc system

* Fix README.md

* update core api docs after master merge

* clean up signature

* Update packages/kbn-dev-utils/src/plugins/parse_kibana_platform_plugin.ts

Co-authored-by: Spencer <email@spalger.com>

* migrate to docs-util package

* Remove bad links

* fix ref to release-notes and add extra dats service folder

* update name change

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/get_type_kind.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* Update packages/kbn-docs-utils/src/api_docs/utils.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* review updates 1

* review feedback updates round 1

* Small refactor of extractImportReferences

* Review feedback updates 2

* Review update 3 plus support for links in class interface heritage clause

* debug failing test on ci only

* Escape regex directory path

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/utils.ts

Co-authored-by: Spencer <email@spalger.com>

* fix for commit suggestion

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-02-24 21:37:29 -05:00
Kibana Machine
ecdef59fc4
[core.logging] Add RewriteAppender for filtering LogMeta. (#91492) (#92724)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-02-24 19:40:49 -05:00
Kibana Machine
7d5e24b8dc
chore(NA): add missing files to exclude when building bazel prod packages (#92506) (#92555)
* chore(NA): add missing bazel files to exclude when building prod bazel packages

* chore(NA): use globs to support all future run targets

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-02-23 23:15:51 -05:00
Spencer
d2c7abb3cf
[7.x] [esArchiver] pass x-elastic-product-origin header to ES (#91566) (#92512)
* [esArchiver] pass x-elastic-product-origin header to ES (#91566)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es-archiver/src/lib/docs/index_doc_records_stream.ts
#	packages/kbn-es-archiver/src/lib/indices/create_index_stream.ts
#	packages/kbn-es-archiver/src/lib/indices/kibana_index.ts

* fix params for emptyKibanaIndex() since 7.x uses v1 migrations

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-23 17:50:43 -05:00
Kibana Machine
869882e7ab
Add @kbn/analytics to the dependencies in @kbn/ui-shared-deps (#92202) (#92244)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-02-22 14:36:41 -05:00
Alejandro Fernández Gómez
2fd45fb1ec
[7.x] [Logs UI] Replace dependencies in the infra bundle (#91503) (#92083) 2021-02-19 17:41:48 -05:00
Kibana Machine
b24efeed56
Add @kbn/analytics to UI Shared Deps (#91810) (#92072)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-02-19 16:18:43 -05:00
Kibana Machine
854e833cf0
[CI] Build and publish storybooks (#87701) (#91917)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-02-18 16:26:10 -05:00
Matthew Kime
8dff16a0a6
Index pattern field editor (#88995) (#91896)
Index pattern field editor

Co-authored-by: Sébastien Loix <sabee77@gmail.com>
2021-02-18 14:24:38 -06:00
Mikhail Shustov
6d7ab50074
Unify Kibana & Elasticsearch logging config keys (#90764) (#91548)
* align logging config with ES. rename kind to type.

* rename file "path" to "fileName"

* rename logger "context" to "name"

* update audit log docs and tests

* update docs

* fix integration tests

* update deprecations for audit appender

* add tests for audit logging deprecations

* fix eslint problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security/server/config_deprecations.ts
2021-02-17 08:39:11 +01:00
Spencer
fedc100d4c
[7.x] ship @kbn/ui-shared-deps metrics in separate step (#91504) (#91539)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-16 16:01:26 -05:00
Kibana Machine
3a2b2a3b89
chore(NA): assure bazel bin is available on kbn clean and reset commands (#91406) (#91491)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-02-16 12:00:02 -05:00
Rudolf Meijering
1fc8122c6d
[7.x] Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)" (#89992) (#90839)
* Unrevert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)" (#89992)

* Revert "Revert "Migrations v2: don't auto-create indices + FTR/esArchiver support (#85778)""

This reverts commit f97958043f.

* Fix flaky saved objects management test #89953

* If a clone target exists, wait for yellow, not green, index status

* Fix test after master merge

* Fix types

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

* Fix visualize fixture after backport

* Disable monitoring plugin email notifications in functional tests

* Disabling monitoring emails doesnt disable it, configure instead

* Fix monitoring test

* Remove debug logging from FTR config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 06:56:59 -05:00
Dario Gieselaar
70b1e8ed81
[7.x] [APM] Add custom spans around async operations (#90403) (#91328)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-13 14:29:45 +01:00
Kibana Machine
a26bed78b0
[7.x] [ts/build-refs] implement experimental remote cache (#91012) (#91299)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <email@spalger.com>
2021-02-12 13:58:46 -05:00
Mikhail Shustov
4e6650113b
TS config cleanup (#90492) (#91173)
* exclude all the plugins from src/plugins

* move all the used fixtures to discover

* remove src/fixtures alias

* remove unused fixtures

* cleanup x-pack/tsconfig.json

* dont compile apm/scripts

* fix tests

* dont include infra in xpack/tsconfig.json

* update list of includes
# Conflicts:
#	src/fixtures/hits.js
2021-02-11 15:16:59 -05:00
Alexey Antonov
7247e9fcb5
[Timelion] Communicate the index pattern to the dashboard (#90623) (#91112)
* [Timelion] Communicate the index pattern to the dashboard

Closes #86418

* update types / limits.yml

* Update timelion_vis_type.tsx

* fix typo

* remove extra await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-02-11 16:35:47 +03:00
Pierre Gayvallet
80bfebf850
Implement custom global header banner (#87438) (#91089)
* first draft

* update plugin list

* fix tsproject

* update bundle limits file

* remove unused start dep

* adapt imports

* POC of footer banner

* update styles, mostly

* plug banner to uiSettings

* adding some unit tests

* add tests on sort_fields

* cleanup sums in sass mixins

* some self review stuff

* update generated doc

* add tests for color field

* update chrome header test snapshots

* retrieve license info from the server

* switch from uiSettings to plugin config

* update plugin list description

* update default colors

* NIT

* add markdown support

* fix banner overlap in fullscreen mode

* change banner height to 32px

* change banner's font size to 14

* delete unused uiSettings
2021-02-11 12:10:35 +01:00
Uladzislau Lasitsa
67acb7fa11
Bump "monaco-editor" and "react-monaco-editor" to latest versions (#90158) (#91019)
* Update version of react-monaco-editor and monaco-editor libraries

* Fix yarn lock file

* Fix CI

* Fix unit tests

* Fix CI

* Fix comment

* move monaco instance in window.MonacoEnvironment

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 10:07:29 +03:00
Tiago Costa
87b12e83a3
chore(NA): move the instruction to remove yarn global bazelisk package into the first place on install bazel tools (#91026) (#91058) 2021-02-10 19:29:59 -05:00
Nathan Reese
51a14defcc
[7.x] [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292) (#90946)
* [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

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

* remove maps_file_upload from tsconfig.refs.json

* remove x-pack/tsconfig.refs.json, removed in upstream

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 16:44:00 -07:00
Tyler Smalley
1226842fee Revert "[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292) (#90890)"
This reverts commit bd81ff9bdf.
2021-02-10 06:10:37 -08:00
Nathan Reese
bd81ff9bdf
[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292) (#90890)
* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 06:29:04 -07:00
Uladzislau Lasitsa
995fec1d0c
Add folding in kb-monaco and update some viewers (#90152) (#90732)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 09:43:11 +03:00
Kibana Machine
bd5bbfc1ef
[7.x] [dev-utils/ci-stats] support disabling ship errors (#90851) (#90885)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-09 20:58:44 -05:00
Tyler Smalley
6502c8f8e0
[7.x] [CI] Combines Jest unit tests (#89948) (#90828)
* [CI] Combines Jest unit tests (#89948)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	jest.config.oss.js
#	src/dev/code_coverage/shell_scripts/extract_archives.sh
#	test/scripts/jenkins_unit.sh
#	test/scripts/jenkins_xpack.sh
#	vars/kibanaCoverage.groovy
#	x-pack/jest.config.js

* Fix bad merge

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-02-09 17:52:27 -05:00
Kibana Machine
99299e0967
[7.x] [dev-utils/ship-ci-stats] fail when CI stats is down (#90678) (#90706)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-09 22:13:03 +00:00
Wylie Conlon
4fe5fe0704
Expand Tinymath grammar, including named arguments (#89795) (#90801)
* Expand Tinymath grammar, including named arguments

* Add tsconfig project

* Fix tests

* Allow named arguments with numeric types

* Remove dashes from named argument validation

* Fix license header

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 15:24:44 -05:00
Spencer
684edffa1d
[7.x] [es] disable wildcards in destructive actions (#88986) (#90804)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-09 13:15:14 -05:00
Mikhail Shustov
3b7644dbdd
[Core] add timeout for "stop" lifecycle (#90432) (#90783)
* add timeout for stop lifecycle

* add timeout for stop lifecycle

* update message

* cleanup timeout to remove async tasks
2021-02-09 17:41:29 +01:00
Tyler Smalley
4ecef99ee0
Use default ES distribution for functional tests (#88737) (#90694)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.ci/packer_cache_for_branch.sh
2021-02-08 22:57:34 -08:00
Spencer
d3c37cde22
[7.x] [kbn/optimizer][ci-stats] ship metrics separate from build (#90482) (#90659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 16:40:11 -07:00
Pierre Gayvallet
97f89e256b
[7.x] Migrate most plugins to synchronous lifecycle (#89562) (#90579)
* Migrate most plugins to synchronous lifecycle (#89562)

* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

* add warnings for server-side async plugins in dev mode

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

* (will be reverted) explicitly await for license to be ready in the auth hook

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* restore await on on promise contracts

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe51

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
# Conflicts:
#	x-pack/plugins/xpack_legacy/server/plugin.ts

* fix mock
2021-02-08 13:16:05 +01:00
Tiago Costa
ff24c27de3
chore(NA): add safe guard to remove bazelisk from yarn global at bootstrap (#90538) (#90542) 2021-02-06 04:50:48 +00:00
Tiago Costa
9ab3a6c4ad
chore(NA): build bazel projects all at once in the distributable build process (#90328) (#90516)
* chore(NA): build bazel projects all at once in the distributable build process

* chore(NA): make sure bazelisk is installed

* chore(NA): install bazelisk using npm

* chore(NA): remove extra spac

* chore(NA): test yarn path exports

* chore(NA): add direct global dir

* chore(NA): some more debug steps

* chore(NA): remove one statement

* chore(NA): comment one more line out for testing purposes

* chore(NA): export the correct yarn bin location into the PATH

* chore(NA): cleaning implementation

* chore(NA): move installation process of bazelisk into npm

* chore(NA): add missing type
2021-02-05 23:44:58 +00:00
Luke Elmers
6582eaa0a7
[7.x] Fix issue where logs fail to calculate size of gunzip streams. (#90353) (#90431) 2021-02-05 09:59:09 -07:00
Luke Elmers
f9b2ad1291
[7.x] [core.logging] Add response logs to the KP logging system. (#87939) (#90280) 2021-02-04 09:19:31 -07:00
Spencer
a3b55577b1
[kbn/es] avoid splitting string esArgs into separate args (#90253) (#90257)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es/src/cluster.js
2021-02-03 23:52:51 -07:00
Tiago Costa
80b018e6e8
chore(NA): support bazel and kbn packages in parallel on kbn pm and on distributable build scripts (#89961) (#90256)
* chore(NA): bazel projects support initial flag on kbn pm

* chore(NA): every needed step to build production bazel packages except the final function

* chore(NA): include build bazel production projects on kibana distributable build

* chore(NA): support bazel packages when creating the package.json

* chore(NA): including last changes on kbn pm and build distributable to support both bazel and kbn packages

* chore(NA): missing annotation on build bazel packages

* chore(NA): changed values on bazelrc common

* chore(NA): fix bazel common rc

* chore(NA): auto discovery if a kbn package is a Bazel package

* chore(NA): last details to make bazel packages to built on distributable scripts

* chore(NA): removed wrongly added line to x-pack package.json

* chore(NA): apply correct formating

* chore(NA): move into bazel bin

* chore(NA): merge chnages on kbn pm

* chore(NA): correctly setup ignore files for new bazel aggregated folder

* chore(NA): merge with last master

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 22:33:49 -08:00
Spencer
45b8aa15b7
[7.x] [esArchiver] log when migrations complete and we're done loading data (#89938) (#90249)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 22:01:39 -07:00
Spencer
0058016c65
remove accidental license header from vendored code (#90219) (#90231)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 21:54:03 -07:00
Brandon Kobel
57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
Tiago Costa
1c6adb44e5
[7.x] chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597) (#90244)
* chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597)

* chore(NA): introduce new yarn kbn destroy command to support bazel workflow

* chore(NA): update wording for new kbn pm changes

* chore(NA): update .bazelrc.common

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

* chore(NA): update .bazelrc

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

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

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

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

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

* chore(NA): rename destroy command into reset

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): restore old behaviour on kbn clean

* chore(NA): update reset command to delete bazel caches on disk

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

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

* chore(NA): update prefix to match bazel defined one for cache settings

* chore(NA): update kbn pm dist file

* chore(NA): update kbn pm dist

* chore(NA): update gitignore

* chore(NA): add new ignore files after changed bazel aggregated folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js

* chore(NA): update changes on kbm pm

* chore(NA): fix jest test
2021-02-04 00:00:12 +00:00
Spencer
fda988bb69
[7.x] [npm] upgrade mocha (#90188) (#90226)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2021-02-03 15:04:22 -07:00
igoristic
1bc6c1c0f3
[Monitoring][Alerting] Large shard alert (#89410) (#90197)
* Shards alert draft

* Added index pattern validation

* Fixed ui/ux

* Optimizing the response

* CR feedback

* import fix

* Increased size limit
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/monitoring/public/components/elasticsearch/index/advanced.js
2021-02-03 16:59:37 -05:00
Tiago Costa
c08c371482
chore(NA): remove yarn extra options from kbn bootstrap (#90098) (#90202)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 19:54:48 +00:00