Commit graph

2194 commits

Author SHA1 Message Date
Lukas Olson
35739880a6
[kql] Remove named args and unused geo functions (#118973)
* [kql] Remove named args and unused geo functions

* Fix tests

* Re-format grammar output
2021-12-13 13:44:47 -07:00
Spencer
2c440da1d6
[failedTestsReporter] use ci-stats to find existing issues (#120875)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-13 13:36:42 -07:00
Brian Seeders
16af3e612d
[TypeScript] Upgrade to 4.5.3 (#120812) 2021-12-13 12:54:17 -05:00
Tobias Stadler
d916a37cdf
[APM] Prefer host.name over host.hostname (#119737) (#119952) 2021-12-13 08:26:58 -05:00
Alejandro Fernández Haro
ab2fdb17b1
@kbn/config: Clear empty-object properties after their props are unset (#120889) 2021-12-10 13:25:58 +00:00
Tiago Costa
9b6995c30d
chore(NA): use internal pkg_npm on @kbn/expect (#120941)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-10 02:45:49 +00:00
Tiago Costa
6c0f7be164
chore(NA): use internal pkg_npm on @kbn/eslint-plugin-eslint (#120940)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-10 02:45:33 +00:00
Tyler Smalley
744849f491
Support system indices being hidden (#120985)
Co-authored-by: Josh Dover <doverfake@elastic.co>
2021-12-09 14:23:27 -07:00
Dario Gieselaar
5b359a90b0
[APM] TypeScript performance fix (#120754)
* [APM] TypeScript performance fix

* Clarify use_apm_params split with comments

* Remove ts-expect-error for security plugin

* Fix type error in searchtypes
2021-12-09 11:29:18 +01:00
Tiago Costa
662f491251
chore(NA): splits types from code on @kbn/es-query (#120783)
* chore(NA): splits types from code on @kbn/es-query

* chore(NA): add missing type exports

* chore(NA): export types as types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-09 02:49:30 +00:00
Paul Tavares
9875ecb448
[Security Solution][Endpoint, Lists] Enable the ability for creating Exceptions Items that contain wildcard entries (#120679)
* Fix parsing of errros in trusted apps creation dialog to support Exceptions API structure
* add Match Wildcard entry to the list of allowed entries for Endpoint exceptions
* Add additional test for wildcard entry and included it in array of entries
2021-12-08 15:56:45 -07:00
Spencer
3d2c01bf30
[failedTestReporter] don't search for existing issues unless we're writing to GH (#120820) 2021-12-08 13:02:06 -07:00
Michael Dokolin
62ae672f1d
Fix ByteSizeValue parser to be consistent with Elasticsearch (#120653) 2021-12-08 20:46:29 +01:00
Yara Tercero
fccdcb6dae
[Security Solution][Platform] - Exceptions imports (#118816)
## Summary

Addresses https://github.com/elastic/kibana/issues/92613 and https://github.com/elastic/kibana/issues/117399

Goal is to allow users to import their exception lists and items alongside their rules. This PR does not complete all the UI updates needed, but does tackle the majority of use cases. The bulk of the changes occur in `import_rules_route` and the new `import_exceptions_route`.

- Adds exceptions import endpoint in `lists` plugin
- Adds exceptions import logic in import rules route in `security_solution` plugin
- Adds integration tests for exception import endpoint
- Adds integration tests for rules import endpoint to account for new functionality
- Purposely not yet adding an import modal in the exceptions table UI until further list management features added (checked with product on this front)
2021-12-08 12:07:07 -07:00
Tiago Costa
e8a51fadf9
chore(NA): use internal pkg_npm on @kbn/eslint-import-resolver-kibana (#120786)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 10:48:49 -07:00
Rudolf Meijering
1a6a9ae438
Surfacing deprecations with rich context from ES warning header (#120044)
* First stab at surfacing deprecations from warning header

* Log deprecations with error level but disable logger context by default

* Don't filter out error logs from ProcRunner

* Another try at not having messages ignored on CI

* Log deprecation logs with warn not info

* Tests

* Let write() do it's writing

* Commit pre-built @kbn/pm package

* Second try to commit pre-built @kbn/pm package

* Enable deprecation logger for jest_integration even though logs aren't interleaved

* Apply suggestions from code review

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

* deprecations logger: warn for kibana and debug for users

* Refactor split query and deprecation logger out of configure_client

* Unit test for tooling_log_text_writer

* Fix TS

* Use event.meta.request.params.headers to include Client constructor headers

* Fix tests

* Ignore deprecation warnings not from Elasticsearch

* Log on info level

* Log in JSON so that entire deprecation message is on one line

* commit built kbn-pm package

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 18:32:44 +01:00
Spencer
78372d14b8
[failedTestReporter] send github api request counts to ci-stats (#120684) 2021-12-08 00:04:20 -08:00
Tiago Costa
98f41aaf57
chore(NA): splits types from code on @kbn/es-archiver (#120657) 2021-12-08 02:33:32 +00:00
Garrett Spong
3d9bfe2972
[Security Solution][Detections] Updates RuleDetails to query alerts by RuleId instead of Rule SO ID (#120053)
* Switches RuleDetails to query alerts by ruleId instead of SO id

* Increases integrity of test outputs

* Cleans up duplicate RuleRegistry functions

* Removes support for rule.id for alerts filter and updates exceptions to use new filter
2021-12-07 17:12:21 -07:00
Tiago Costa
905a4472ca
chore(NA): use internal pkg_npm on @kbn/es (#120637)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 15:03:50 -07:00
Tiago Costa
de5dd787b1
chore(NA): splits types from code on @kbn/dev-utils (#120531)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 20:12:18 +00:00
Spencer
760374f5a0
[kbn-es/installers] convert to TypeScript (#120560)
* [kbn-es/installers] convert to TypeScript

* catch invalid urls passed to installArchive()
2021-12-07 09:28:19 -07:00
Dario Gieselaar
7f0a6cf8ca
[APM] Revert kbn/typed-react-router-config changes (#120581) 2021-12-07 11:46:55 +01:00
Rudolf Meijering
48d18464c8
FTR should use the new kibana_system user (#120436)
* FTR should use the new kibana_system user

* Fix security api integration tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 03:05:37 -07:00
Pierre Gayvallet
f89887d921
mock elastic-apm-node in @kbn/test jest preset (#120324)
* 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>
2021-12-07 08:20:48 +01:00
Tiago Costa
561031efd5
chore(NA): splits types from code on @kbn/docs-utils (#120533) 2021-12-06 22:01:36 +00:00
Michael Dokolin
903e75ee03
[Reporting] Decouple screenshotting plugin from the reporting (#120110)
* Add screenshotting plugin
* Move screenshotting plugin configuration options
* Remove unused browser type configuration option
2021-12-06 22:00:57 +01:00
Felix Stürmer
945650e321
[Infra UI] Use KibanaThemeProvider in the Logs and Metrics UIs (#120164) 2021-12-06 21:04:36 +01:00
Tiago Costa
9d6955ce35
chore(NA): splits types from code on @kbn/config-schema (#120385)
* 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
2021-12-03 21:30:26 +00:00
Stacey Gammon
6434762b4b
Fix broken link (#120410) 2021-12-03 15:47:10 -05:00
Tiago Costa
ded75bdb7b
chore(NA): splits types from code on @kbn/crypto (#120371)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-03 11:48:25 -07:00
Tiago Costa
2c4b1ff371
fix(NA): @kbn/utils build on windows native environment (#120317)
* fix(NA): @kbn/utils build on windows native environment

* chore(NA): remove circular dep from @kbn/utils
2021-12-03 15:59:02 +00:00
Tiago Costa
1b38b8ea15
chore(NA): splits types from code on @kbn/config (#120267) 2021-12-03 02:48:51 +00:00
Tyler Smalley
92a8636f0f
Upgrade Typescript to 4.3.5 (#104470)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: spalger <spencer@elastic.co>
2021-12-02 16:27:41 -08:00
Tiago Costa
a88ac0c2e6
chore(NA): splits types from code on @kbn/cli-dev-mode (#120248) 2021-12-02 19:56:40 +00:00
Yaroslav Kuznietsov
8b76213809
[Storybook] Fixes Storybook is endlessly refreshed. (#120216) 2021-12-02 08:11:06 -07:00
Tiago Costa
4466130fd1
chore(NA): use internal pkg_npm on @kbn/babel-preset (#120123) 2021-12-02 02:34:59 +00:00
mgiota
8d16f6086e
remove kibana.consumers from technical field names (#120173) 2021-12-01 15:28:50 -07:00
Tiago Costa
6d86a3b6b1
chore(NA): use internal pkg_npm on @elastic/eslint-config-kibana (#120139) 2021-12-01 13:53:38 -07:00
Tiago Costa
3f1b0aa152
chore(NA): use internal pkg_npm on @kbn/babel-code-parser (#120121) 2021-12-01 17:28:38 +00:00
Dario Gieselaar
ee289642b7
[APM] Display relevant anomalies from multi-metric job (#119709)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-01 07:44:55 -07:00
Tiago Costa
78c24d7294
chore(NA): splits types from code on @kbn/apm-config-loader (#120001) 2021-12-01 14:01:36 +00:00
Tyler Smalley
8cf76a32b5
[ci] Include ciBuildJobId in APM globalLabels (#120008) 2021-12-01 12:17:41 +01:00
Tiago Costa
22b91fb388
chore(NA): splits types from code on @kbn/apm-utils (#119977) 2021-11-30 18:14:05 +00:00
Stratoula Kalafateli
fea4d2acfb
[Visualize] New heatmap implementation with elastic-charts (#118338)
* [WIP][Heatmap] Creates implementation with elastic-charts

* Fix types and connection with vislib

* Add coloring options

* Brush, click events, coloring etc

* Cleaning up the expression function

* Add legend picker, fix sorting and other fixes

* Further fixes

* Use the shared expression to Lens and cleanup

* PrepareLogTables for new expression function

* Use common renderer and expression function with lens

* Fix i18n

* Small tweaks

* Add unit tests

* Adds a unit test to the heatmap component

* update plugin list

* Fix types

* Fix types

* update limits

* Change to the expression function

* Cleanup translations

* Refactor to use vis

* Fix types

* further cleanup of the translations

* register new setting

* Fix sorting for histogram

* Adds functional tests for the new nisualize heatmap

* Cleanup

* Fix

* Apply PR comments

* Address PR comments

* Fix i18n

* Fix i18n

* Makes the <Heatmap /> id dynamic

* reverse

* fix translation file

* Apply design PR comments

* Fix package

* More fixes

* Fix brush problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-30 19:40:02 +02:00
Tiago Costa
5001000bce
chore(NA): splits types from code on @kbn/analytics (#119869) 2021-11-30 14:24:12 +00:00
Spencer
b2f54829d8
[babel] ensure TS preset runs before anything else (#119107)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 11:29:45 -07:00
Tiago Costa
c6db25a3ef
chore(NA): splits types from code on @kbn/alerts (#119855)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 11:15:06 -07:00
Jean-Louis Leysens
8915c90a31
[es-query] Fix logic for detecting scripted phrase fields (#119511)
* 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>
2021-11-29 11:03:29 -07:00
Dario Gieselaar
39a29cc769
[APM] Generate stack monitoring data (#118302)
* 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>
2021-11-29 02:14:33 -07:00