Commit graph

2049 commits

Author SHA1 Message Date
Tiago Costa
51f01483c0
chore(NA): splits types from code on @kbn/dev-utils (#120531) (#120676)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es-archiver/src/actions/rebuild_all.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 16:34:41 -07:00
Kibana Machine
7da3a0b01a
chore(NA): use internal pkg_npm on @kbn/es (#120637) (#120692)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-07 16:24:31 -07:00
Kibana Machine
3f83a8c847
[kbn-es/installers] convert to TypeScript (#120560) (#120650)
* [kbn-es/installers] convert to TypeScript

* catch invalid urls passed to installArchive()

Co-authored-by: Spencer <email@spalger.com>
2021-12-07 10:50:32 -07:00
Kibana Machine
2aaca4681c
FTR should use the new kibana_system user (#120436) (#120626)
* FTR should use the new kibana_system user

* Fix security api integration tests

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

Co-authored-by: Rudolf Meijering <rudolf.meijering@elastic.co>
2021-12-07 08:59:27 -07:00
Kibana Machine
85faf76c25
[APM] Revert kbn/typed-react-router-config changes (#120581) (#120586)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-12-07 05:05:19 -07:00
Pierre Gayvallet
8f57ac7fea
mock elastic-apm-node in @kbn/test jest preset (#120324) (#120574)
* mock `elastic-apm-node` in `@kbn/test` jest preset

* adapt kbn-apm-config-loader tests

* use TS for agent mock

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 01:37:19 -07:00
Kibana Machine
380b7f7424
chore(NA): splits types from code on @kbn/docs-utils (#120533) (#120550)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-06 16:34:24 -07:00
Kibana Machine
ecd74c0864
chore(NA): splits types from code on @kbn/config-schema (#120385) (#120417)
* chore(NA): splits types from code on @kbn/config-schema

* chore(NA): expose needed type

* chore(NA): fix api changes

* chore(NA): expose needed type

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-03 15:49:49 -07:00
Kibana Machine
1032009201
chore(NA): splits types from code on @kbn/crypto (#120371) (#120401)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-03 13:36:25 -07:00
Tiago Costa
68285a8960
fix(NA): @kbn/utils build on windows native environment (#120317) (#120367)
* fix(NA): @kbn/utils build on windows native environment

* chore(NA): remove circular dep from @kbn/utils
2021-12-03 10:17:59 -07:00
Tiago Costa
427e324f9e
chore(NA): splits types from code on @kbn/config (#120267) (#120318) 2021-12-02 22:13:28 -07:00
Tiago Costa
5f91dba8f7
chore(NA): splits types from code on @kbn/cli-dev-mode (#120248) (#120316) 2021-12-02 20:54:56 -07:00
Dario Gieselaar
563d7935d0
[8.0] [APM] Display relevant anomalies (#119709) (#120112)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 08:32:40 +01:00
Tiago Costa
b9ebc5f617
chore(NA): use internal pkg_npm on @kbn/babel-preset (#120123) (#120191)
# Conflicts:
#	packages/kbn-react-field/BUILD.bazel
2021-12-01 20:58:24 -07:00
Kibana Machine
70306b2bdd
remove kibana.consumers from technical field names (#120173) (#120184)
Co-authored-by: mgiota <giota85@gmail.com>
2021-12-01 16:47:34 -07:00
Kibana Machine
5a16e3e93a
chore(NA): use internal pkg_npm on @elastic/eslint-config-kibana (#120139) (#120171)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-01 15:13:00 -07:00
Kibana Machine
1785b11f97
chore(NA): use internal pkg_npm on @kbn/babel-code-parser (#120121) (#120138)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-01 11:47:16 -07:00
Kibana Machine
f504e3bcb5
chore(NA): splits types from code on @kbn/apm-config-loader (#120001) (#120100)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-12-01 08:22:26 -07:00
Kibana Machine
53a1754e2e
[ci] Include ciBuildJobId in APM globalLabels (#120008) (#120080)
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-12-01 05:35:40 -07:00
Spencer
68081873d8
[storybook] upgrade to 6.3.x (#119498) (#120047)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2021-11-30 18:43:28 -07:00
Kibana Machine
593a97218f
[APM] Generate stack monitoring data (#118302) (#120030)
* Generate stack monitoring data

* Update file import

* Fix imports after bad merge from upstream

* A cluster stats generator

* Wiring kibana docs to ES docs

* Adding fields to get kibana cards rendering

* [apm-synthtrace] Export types Fields, ApmException, ApmSynthtraceEsClient

* [APM] Update integration tests with synthtrace changes

* [APM] Update Cypress E2E tests with synthtrace changes

* Fix lint errors

Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
Co-authored-by: Mat Schaffer <mat@elastic.co>

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
Co-authored-by: Mat Schaffer <mat@elastic.co>
2021-11-30 15:33:18 -07:00
Kibana Machine
bfb7bf9b2c
chore(NA): splits types from code on @kbn/apm-utils (#119977) (#120002)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-30 12:33:29 -07:00
Kibana Machine
1aa070db19
chore(NA): splits types from code on @kbn/analytics (#119869) (#119969)
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-30 08:43:33 -07:00
Kibana Machine
740aa538e1
[es-query] Fix logic for detecting scripted phrase fields (#119511) (#119871)
* WIP, started updating functions for detecting scripted phrase filters

* replace script.script with query.script.script

* added test to verify detection of scripted and phrase filters

* with elastic@ email

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-11-29 12:51:40 -07:00
Kibana Machine
a5f3814947
[babel] ensure TS preset runs before anything else (#119107) (#119873)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
2021-11-29 12:49:42 -07:00
Kibana Machine
e4ff4a4f0e
chore(NA): splits types from code on @kbn/alerts (#119855) (#119872)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-29 12:35:17 -07:00
Paul Tavares
2d4cc5e18c
[8.0] [Security Solution][Endpoint] Move the UI Trusted Apps API calls to use the Exceptions List Items APIs (#118801) (#119632)
* [Security Solution][Endpoint] Move the UI Trusted Apps API calls to use the Exceptions List Items APIs (#118801)

* renamed TA service file to match name and added exports to index.ts
* Move `EndpointError` to top-level `common/endpoint/errors`
* add validation framework to TA service
* Mappers + Create service method changed to use Exceptions API
* Update Trusted app service method moved to use Exceptions API
* new generators

# Conflicts:
#	x-pack/plugins/security_solution/public/management/pages/policy/view/trusted_apps/layout/policy_trusted_apps_layout.test.tsx
#	x-pack/plugins/security_solution/public/management/pages/trusted_apps/service/index.ts
#	x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx

* Fix import issue due to PR that was not backported to 8.0
2021-11-24 12:35:44 -07:00
Tiago Costa
beb041b24f
[8.0] chore(NA): splits types from code on @kbn/i18n (#119256) (#119649)
* chore(NA): splits types from code on @kbn/i18n (#119256)

* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	packages/kbn-monaco/BUILD.bazel
#	src/core/public/core_app/status/components/server_status.tsx
#	src/core/public/core_app/status/components/status_table.tsx
#	src/core/public/core_app/status/components/version_header.tsx
#	src/core/public/core_app/status/status_app.tsx
#	src/plugins/console/public/application/components/storage_quota_error.tsx
#	src/plugins/dashboard/public/application/listing/dashboard_listing.tsx
#	src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx
#	src/plugins/dev_tools/public/application.tsx
#	src/plugins/discover/public/application/apps/context/context_app_route.tsx
#	src/plugins/discover/public/application/apps/doc/single_doc_route.tsx
#	src/plugins/discover/public/application/apps/main/components/doc_table/components/table_row_details.tsx
#	src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx
#	src/plugins/discover/public/application/components/table/table_columns.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_filter_remove.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_toggle_column.tsx
#	src/plugins/index_pattern_editor/public/open_editor.tsx
#	src/plugins/interactive_setup/public/plugin.tsx
#	src/plugins/kibana_overview/public/application.tsx
#	src/plugins/kibana_react/public/util/to_mount_point.tsx
#	src/plugins/presentation_util/public/components/field_picker/field_search.tsx
#	src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx
#	src/plugins/vis_types/xy/public/vis_renderer.tsx
#	src/plugins/visualizations/public/wizard/show_new_vis.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/error_display.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/instructions.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/main.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_csv_uploader.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_preview.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/empty_list.tsx
#	x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx
#	x-pack/plugins/lens/public/indexpattern_datasource/utils.tsx
#	x-pack/plugins/lens/public/metric_visualization/visualization.tsx
#	x-pack/plugins/lens/public/pie_visualization/render_function.tsx
#	x-pack/plugins/maps/public/classes/sources/ems_tms_source/update_source_editor.js
#	x-pack/plugins/maps/public/classes/sources/es_search_source/util/scaling_documenation_popover.tsx
#	x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx
#	x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx
#	x-pack/plugins/security/public/authentication/login/login_page.tsx
#	x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx
#	x-pack/plugins/security/public/management/users/users_management_app.tsx
#	x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/form/index.tsx
#	x-pack/plugins/spaces/public/space_selector/space_selector.tsx
#	yarn.lock

* chore(NA): missing @kbn/i18n/react imports
2021-11-24 12:19:43 -07:00
Kibana Machine
e0d68f8cae
chore(NA): splits types from code on @kbn/ace (#118950) (#119171)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): splits types from code on @kbn/ace

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

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-24 10:22:34 -07:00
Mikhail Shustov
8dcf2b795c
Revert "Include tracing information in the Kibana logs (#112973) (#119567)
* Revert "Include tracing information in the Kibana logs (#112973) (#118604)"

This reverts commit 114c690799.

* Revert "Don't enable RUM agent if APM is run with contextPropagationOnly (#118685) (#118995)"

This reverts commit ca86b98b5a.
2021-11-24 13:03:37 +01:00
Kibana Machine
e4b9fdb1ad
Updates APM defaults and CI settings (#117749) (#119552)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-23 17:09:47 -07:00
Kibana Machine
3b847efc59
[optimizer] pretty-print jest snapshots to help reviews (#119404) (#119408)
Co-authored-by: Spencer <email@spalger.com>
2021-11-22 19:01:35 -07:00
Kibana Machine
9fb84fbd2e
[eslint] limit access to this in property initializers (#119227) (#119406)
Co-authored-by: Spencer <email@spalger.com>
2021-11-22 18:01:55 -07:00
Kibana Machine
5345b4b68b
[eslint] don't drop multiple uses when one is in a function (#119252) (#119368)
Co-authored-by: Spencer <email@spalger.com>
2021-11-22 13:21:25 -07:00
Kibana Machine
6160a15eb0
kibana es add --use-cached cli flag (#119149) (#119229)
Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-11-19 14:12:32 -07:00
Kibana Machine
da882b900c
[eslint] prevent using constructor property params in initializers (#119130) (#119223)
Co-authored-by: Spencer <email@spalger.com>
2021-11-19 13:43:48 -07:00
Kibana Machine
c60e1c0f32
chore(NA): splits types from code on @elastic/apm-synthtrace (#118786) (#119114)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): split types_pkg from code_pkg on @elastic/apm-synthtrace

* chore(NA): disable validator on ts_project rule

* chore(NA): move into ts_project wrapper

* chore(NA): complete types exports

* chore(NA): export types as type only

* chore(NA): fix type exports

* chore(NA): only include exception type

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

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-18 16:39:45 -07:00
Kibana Machine
ca86b98b5a
Don't enable RUM agent if APM is run with contextPropagationOnly (#118685) (#118995)
* do not enable RUM agent when nodejs is run in contextPropagationOnly mode

* move shouldInstrumentClient to apm-config package

Co-authored-by: Mikhail Shustov <mikhail.shustov@elastic.co>
2021-11-18 08:19:15 -07:00
Kibana Machine
2277595508
[Exploratory view] Update discover dependency (#117500) (#119005)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-11-18 04:24:54 -07:00
Kibana Machine
009efda864
[ftr] label global hooks which tie into lifecycle service (#118949) (#118963)
Co-authored-by: Spencer <email@spalger.com>
2021-11-17 17:25:07 -07:00
Kibana Machine
9783dcc255
Fix wrongly suggested module paths for @kbn/eslint/module_migration rule (#117781) (#118892)
* Use an alternative KIBANA_ROOT if bazel cache detected

* Use several fallbacks to find the kibana root

* Update comments

* Add test for relative import conversion

* Improve comments

* remove console log

* Improve comments

* Add second case

* improve tests filenames

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-11-17 10:19:10 -07:00
Kibana Machine
dff5d161d1
[jest] Support meta project configs (#118122) (#118834)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-17 00:15:48 -07:00
Kibana Machine
29e5f2c53d
[jest] Fix snapshot caused by environment (#118114) (#118833)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-16 23:38:51 -07:00
Kibana Machine
3e7c783a00
[8.0] [kbn/pm] sort package.json in bootstrap (#118805) (#118817)
* [kbn/pm] sort package.json in bootstrap (#118805)

* update kbn/pm dist

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-16 20:43:19 -07:00
Kibana Machine
e0546d98f3
Update babel (main) (#118741) (#118815)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: spalger <spencer@elastic.co>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: spalger <spencer@elastic.co>
2021-11-16 18:26:49 -07:00
Kibana Machine
1511c023ae
[babel] fix require statement (#118775) (#118806)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
2021-11-16 16:21:31 -07:00
Kibana Machine
4dd3907d91
Fix cluster call responses that are missing source fields (#118642) (#118698)
Change usage from `_source: 'true'` to `_source: true`.

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-11-16 08:26:00 -07:00
Mikhail Shustov
56fa1f1e22
Enforce "LogRecord.meta: LogMeta" type (#118334) (#118686)
* use LogRecord.meta: LogMeta

* refactor other types

* fix meta overrides tracing props test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-16 07:22:45 -07:00
Kibana Machine
6c0ef4a286
chore(NA): creates pkg_npm_types bazel rule (#116465) (#118640)
* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

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

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2021-11-15 18:40:16 -07:00
Kibana Machine
21f3957c3c
[kbn/rule-data-utils] add submodules and require public use them (#117963) (#118628)
* [kbn/rule-data-utils] add submodules and require public use them

* fix lint errors

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

Co-authored-by: Spencer <email@spalger.com>
2021-11-15 17:16:30 -07:00