Commit graph

12 commits

Author SHA1 Message Date
Spencer
06110bd973
[bazel] avoid a little boilerplate in packages (#126309) (#126381)
* [bazel] avoid a little boilerplate for @types packages

* [bazel/ts] stop building sourcemaps since they're ignored

(cherry picked from commit 614139b8e5)

# Conflicts:
#	packages/kbn-alerts/tsconfig.json
#	packages/kbn-doc-links/BUILD.bazel
#	packages/kbn-doc-links/tsconfig.json
#	packages/kbn-field-types/BUILD.bazel
#	packages/kbn-interpreter/BUILD.bazel
#	packages/kbn-io-ts-utils/BUILD.bazel
#	packages/kbn-logging-mocks/BUILD.bazel
#	packages/kbn-logging-mocks/tsconfig.json
#	packages/kbn-logging/BUILD.bazel
#	packages/kbn-mapbox-gl/BUILD.bazel
#	packages/kbn-monaco/BUILD.bazel
#	packages/kbn-optimizer/BUILD.bazel
#	packages/kbn-plugin-generator/BUILD.bazel
#	packages/kbn-plugin-helpers/BUILD.bazel
#	packages/kbn-react-field/BUILD.bazel
#	packages/kbn-react-field/tsconfig.json
#	packages/kbn-rule-data-utils/BUILD.bazel
#	packages/kbn-securitysolution-autocomplete/BUILD.bazel
#	packages/kbn-securitysolution-es-utils/BUILD.bazel
#	packages/kbn-securitysolution-hook-utils/BUILD.bazel
#	packages/kbn-securitysolution-io-ts-alerting-types/BUILD.bazel
#	packages/kbn-securitysolution-io-ts-list-types/BUILD.bazel
#	packages/kbn-securitysolution-io-ts-types/BUILD.bazel
#	packages/kbn-securitysolution-io-ts-utils/BUILD.bazel
#	packages/kbn-securitysolution-list-api/BUILD.bazel
#	packages/kbn-securitysolution-list-constants/BUILD.bazel
#	packages/kbn-securitysolution-list-hooks/BUILD.bazel
#	packages/kbn-securitysolution-list-utils/BUILD.bazel
#	packages/kbn-securitysolution-rules/BUILD.bazel
#	packages/kbn-securitysolution-t-grid/BUILD.bazel
#	packages/kbn-securitysolution-utils/BUILD.bazel
#	packages/kbn-server-http-tools/BUILD.bazel
#	packages/kbn-server-route-repository/BUILD.bazel
#	packages/kbn-std/BUILD.bazel
#	packages/kbn-storybook/BUILD.bazel
#	packages/kbn-telemetry-tools/BUILD.bazel
#	packages/kbn-test-jest-helpers/BUILD.bazel
#	packages/kbn-test-jest-helpers/tsconfig.json
#	packages/kbn-test/BUILD.bazel
#	packages/kbn-typed-react-router-config/BUILD.bazel
#	packages/kbn-ui-shared-deps-npm/BUILD.bazel
#	packages/kbn-ui-shared-deps-src/BUILD.bazel
#	packages/kbn-ui-theme/BUILD.bazel
#	packages/kbn-ui-theme/tsconfig.json
#	packages/kbn-utility-types/BUILD.bazel
#	packages/kbn-utils/BUILD.bazel
2022-02-24 14:06:13 -07:00
Kibana Machine
75d72b30a3
[APM] Add scenario options for synthtrace (#121034) (#123128)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 75cf64dca5)

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2022-01-17 05:01:40 -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
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
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
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
006840ed39
[x-pack/test/apm_api_integration] make registry a service (#116365) (#117688)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-11-05 18:32:11 +00:00
Søren Louv-Jansen
e6f35c7395
[APM] Use Synthtrace in Cypress tests (#116948) (#117262)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 10:09:38 +00:00
Søren Louv-Jansen
aac519fee3
[8.0] Add API tests for dependencies metadata (#116648) | Add API tests for top dependencies (#116788) | [APM] Adding api tests for error group (#116771) | [APM] Synthtrace ES Client (#116770) | Revert "[APM] Adding api tests for error grou (#117257)
* Add API tests for dependencies metadata (#116648)

* Add API tests for dependencies metadata

* Rename metadata tests to event metadata

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>

* Add API tests for top dependencies (#116788)

* Add top dependencies API tests

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

* [APM] Adding api tests for error group (#116771)

* adding api tests for error group

* addresing pr changes

* [APM] Synthtrace ES Client (#116770)

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

* Revert "[APM] Adding api tests for error group (#116771)"

This reverts commit f2402cef37.

* [APM] Apm errors api tests (#116764)

* changes after review

* move file to errors folder

* [APM] Fixing synthtrace import location (#117017)

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Miriam <31922082+MiriamAparicio@users.noreply.github.com>
2021-11-03 08:09:18 +00:00
Mikhail Shustov
3c8fa527a7
[ES] Upgrade client to v8.0 (#113950)
* bump to a pre-8.0 version

* export KibanaClient from /lib sub-folder

* workaround the problem of the absence of estypes

* update es client usage in pacakges

* export estypes from another path

* import errors from root

* import errors from root 2

* update transport import

* update import path for /api/types

* update import path for /api/types

* import errors from top export

* use TransportResult instead if ApiResponse

* fix errors in client_config

* fix src/core/server/saved_objects/migrationsv2/actions/integration_tests/actions.test.ts

* use KibanaClient in mock. we dont export the original Client

* fix client mocks

* fix errors on SO

* fix remaining core errors

* update estype import path

* fix errors in data plugin

* fix data_views

* fix es_ui_shared

* fix errors in interactive_setup

* fix errors in ./test folder

* add @elastic/transport to the runtime deps

* fix errors in packages

* fix erros in src/core

* fix errors in test/

* fix an error in actions plugin

* woraround and fix errors in APM plugin

* fix errors in canvas

* fix errors in event_log

* fix errors in fleet

* fix errors in ILM

* fix errors in infra

* fix errors in ingest_pipeline

* fix errors in lens

* fix errors in license_management

* fix errors in licensing

* fix errors in logstash

* fix errors in ml

* fix errors in monitoring

* fix errors in observability

* fix errors in rule_registry

* fix errors in reporting

* fix errors in rule_registry

* fix errors in security

* fix errors in security_solution

* fix errors in snapshot_restore

* fix errors in transform

* fix errors in UA

* fix errors in uptime

* fix errors in x-pack/test

* fix eslint errors

* fix new errors

* use default HTTP Connection. Undici does not support agent config options keepAlive and maxSockets

* create does not accept require_alias option

* update deps

* use transport types exported from ES client package

* fix ErrorCause | string errors

* do not use enum

* fix errors in data plugin

* update x-pack code

* fix transport

* fix apm search request

* do not crash on reporting

* fix kbn-test build

* mute reporting error to start

* fix ftr build

* another attempt

* update import path

* address or mute new errors

* REMOVE me. pin transport version temporarily.

* remove deep imports from transport package

* fix jest crash

* fix product check tests

* remove unnecessary ts-expect-error

* fix a few failed unit tests

* bump to canary 24

* remove unnecessary ts-expect-error

* remove dependency on transport

* fix types in tests

* mute errors in xpack tests

* product check doesn;t  spam in logs anymore

* filterPath --> filter_path

* ignoreUnavailable --> ignore_unavailable

* ignoreUnavailable --> ignore_unavailable

* trackScores --> track_scores

* trackTotalHits --> track_total_hits

* fix es-arcives

* fix data plugin crashes

* fix watcher test utils

* rollback unnecessary changes

* fix another problem in es-archiver

* fix scroll. for whatever reason scroll fails when request scroll_id in body

* add meta: true in kbn-securitysolution-es-utils

* bump client to canary 25

* fix errors in accordance with the es client spec

* update securityscolution-es-utils

* unify scroll api in reporting and fix tests

* fix unit tests in watcher

* refactor APM to abort request with AbortController API

* fix missing es client calls in tests

* fix missing meta in detection engine FTR tests

* fix another bunch of errors in js tests

* fix wrong coercion

* remove test-grep pattern

* fix apm unit test

* rename terminateAfter to terminate_after in infra plugin

* rename terminateAfter to terminate_after in uptime plugin

* rename terminateAfter to terminate_after in apm plugin

* fix security roles FTR tests

* fix reference

* fix post_privilidges test

* fix post_privilidges

* bump client to 26

* add meta for index_management test helpers

* remove ts-expect-error caused by bad type in reason

* bump client to 27

* REMOVE me. workaround until fixed in the es client

* fix incorrect type casting

* swtich from camelCase params

* use `HttpConnection` for FTR-related clients

* bump client to 29

* Revert "REMOVE me. workaround until fixed in the es client"

This reverts commit c038850c09.

* fix new util

* revert repository changes

* do not crash if cannot store event_loop data

* fix new estypes imports

* fix more types

* fix security test types and add ts-ignore for custom ES client

* fix more estypes imports

* yet more ts violations

* line by line fixing is hard

* adapt `evaluateAlert` from infra as it's also used from FTR tests

* use convertToKibanaClient in FTR test instead of meta:true in plugin code

* migrate from deprecated API in fleet

* fix intergration tests

* fix fleet tests

* fix another fleet test

* fix more tests

* let's call it a day

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional (#116029)

* Removes custom header check on 404 responses, includes es client ProductNotSupportedError in EsUnavailableError conditional

* Updates proxy response integration test

* disable APM until compatible with client v8

* skip async_search FTR test

* use kbnClient in integration tests

* bump version to 29

* bump to 30

* have configureClient return a KibanaClient instead of Client, remove resolved violations.

* bump to 31

* bump to 31

* Revert "bump to 31"

This reverts commit 5ac713e640.

* trigger stop to unusubscribe

* update generated docs

* remove obsolete test

* put "as" back

* cleanup

* skip test

* remove new type errors in apm package

* remove ErrorCause casting

* update a comment

* bump version to 32

* remove unnecessary ts-expect-error in apm code

* update comments

* update to client v33

* remove outdated type definition

* bump to 34 without params mutation

* unskip the test that should not fail anymore

* remove unnecessary ts-expect-error comments

* update to v35. body can be string

* move `sort` to body and use body friendly syntax

* fix a failing test. maps register the same SO that has been already registered by home

Co-authored-by: pgayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-10-26 14:08:22 +02:00
Dario Gieselaar
9d9eeb0e8c
[APM] Optimize synthtrace (#116091) 2021-10-26 12:42:33 +02:00
Søren Louv-Jansen
51f8feaea0
Rename apm-generator to apm-synthtrace (#116075) 2021-10-25 16:25:01 -04:00