Commit graph

2513 commits

Author SHA1 Message Date
Christiane (Tina) Heiligers
f68999d631
Create packages for browser-side fatalErrors service (#134962) 2022-06-23 12:29:44 -07:00
Sander Philipse
9d435e23c6
[Enterprise Search] Remove doc links for unreleased connectors (#135018) 2022-06-23 17:15:12 +02:00
Walter Rafelsberger
adbd6a5fb8
[ML] @kbn/ml-agg-utils, @kbn/ml-is-populated-object, @kbn/ml-string-hash packages. (#132963)
Moves some ML utility code to packages.

- @kbn/ml-agg-utils contains multiple utilities used in combination related to building aggregations.
- @kbn/ml-is-populated-object contains the isPopulatedObject() utility function used across several plugins.
- @kbn/ml-string-hash contains the stringHash() utility function used across several plugins.
2022-06-23 10:38:23 +02:00
Tiago Costa
9a1e1d00a4
chore(NA): auto bootstrap after removing node modules manually (#134961)
* chore(NA): mechanism for autobootstrap when manually removing node_modules

* fix(NA): check folders with isDirectory

* fix(NA): check folders with isDirectory

* fix(NA): check folders with isDirectory

* docs(NA): update typo on code comment
2022-06-22 16:22:00 -07:00
Baturalp Gurdin
e5d73a1169
ingest performance metrics to ci-stats (#134792) 2022-06-22 15:44:11 -07:00
Søren Louv-Jansen
60e7f1dcd1
Rename viewer_user to viewer (#134294) 2022-06-22 20:39:18 +02:00
Christiane (Tina) Heiligers
c432a22d67
Move server-side config service to packages (#134794) 2022-06-22 08:25:12 -07:00
Ahmad Bamieh
97fb9bbfae
core i18n browser (#134828)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-22 15:35:26 +03:00
Pierre Gayvallet
0f9714876c
Move server-side analytics service to packages (#134736)
* creating the empty packages

* move public types to public package

* move implement and mocks to packages

* update readmes

* move preboot contract into public package

* fix imports

* lint

* update generated doc
2022-06-22 14:27:02 +02:00
Greg Thompson
2336f33632
Upgrade EUI to v59.0.1 (#133927)
* eui to v59.0.0

* i18n tokens

* update theme var tokens

* mock mouseevent for euiselectable

* mock mouseevent for euiselectable

* update theme var tokens

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* mock mouseevent for euiselectable

* update theme var tokens

* update theme var tokens mocks

* WIP: forwardRef type

* update snapshots

* euiTextColor

* snapshot updates

* jest test updates

* euiTextColor updates

* jest test updates

* update getVisualizeError selector

* euiPaddingSizes

* snapshot update

* WIP: accordion cy.react

* DetailPanelMetadataTab test updates

* eui to v59.0.1

* snapshot updates

* WIP: osquery cypress

* WIP: osquery cypress

* use data-test-subj

* log standard console errors

* snapshot

* paddingSizes update

* euiaccordion class type comment

* snapshots

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 17:08:15 -05:00
Clint Andrew Hall
e1eb3db916
[Shared UX] Move No Data Cards to packages (#134503)
* [Shared UX] Move No Data Cards to packages

* Consolidate cards

* Fix some Regex mistakes

* Adjust Storybook a bit

* Adjust tests and context arrangement

* Fix bugs; kill bad snapshots; improve tests
2022-06-21 09:10:00 -07:00
Anton Dosov
12d04a9e55
buildEsQuery allow ignore_unmapped for nested fields queries (#134580) 2022-06-21 16:47:41 +02:00
Clint Andrew Hall
9ec4d311ed
[Shared UX] Move Solution Toolbar components to package (#134392)
* [Shared UX] Move Solution Toolbar components to package

* Addressing feedback

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* Adding support to jest_config_check

* Fixing i18n

* Apply suggestions from code review

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

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2022-06-21 02:00:57 -05:00
Dzmitry Lemechko
e57f207aad
[scalability testing] filtering out setup/teardown related APM transactions (#134697)
* [packages/kbn-performance-testing-dataset-extractor] filter server transactions by journey time range

* check only 1 ftr transaction for run is found

* fixes
2022-06-20 16:48:22 +02:00
Pierre Gayvallet
a969d42ecf
Move server-side logging service to packages (#134438)
* Adapt LoggerConfigType to no longer inferred from config schema

* creating the new empty packages

* moving the public types to @kbn/core-logging-server

* updating @kbn/core-logging-server bazel config

* fix imports due to types moving to @kbn/core-logging-server

* moving the concrete implementation to @kbn/core-logging-server-internal

* updating @kbn/core-logging-server-internal bazel config

* adapt @kbn/core-logging-server-internal test files

* Move the mocks to @kbn/core-logging-server-mocks

* Fix imports due to server and mock moving to packages

* update generated doc

* update READMEs

* update tsdoc
2022-06-20 10:54:21 +02:00
David Sánchez
60be4e3db8
[Security solution] [Endpoint] Improve policy response info debugging (#134351)
* [Security Solution] bubble up policy response errors

* Adds policy troubleshooting links in doc links package

* Bubble up certain errors on policy response like full_disk_access error

* Fixes unit test and removes unused component

* Removes unused style

* Use link instead of button for documentation links

Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-16 16:35:16 +02:00
Pierre Gayvallet
9a15b67eb7
Create packages for browser-side analytics service (#134307)
* Create client-side analytics service packages

* move all the things

* start to adapt imports

* fix more imports

* update generated doc

* updating READMEs
2022-06-16 12:17:29 +02:00
Spencer
1656fe9304
refactor jest config validation logic (#134496) 2022-06-15 15:42:55 -05:00
Lukas Olson
a3a3e5a8a7
Clean up literal type (#133844) 2022-06-14 07:31:10 -07:00
Dzmitry Lemechko
ab5d37e32c
[kbn-performance-testing-dataset-extractor] use FTR config as cli argument (#132676)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 10:10:56 +02:00
Dzmitry Lemechko
6f5b23b221
[packages] add kbn-scalability-simulation-generator package (#132631)
* add kbn-scalability-simulation-generator package

* update codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 10:08:26 +02:00
Gerard Soldevila
40acfe365c
Gracefully stop EBT server shipper (#134235) 2022-06-14 09:29:59 +02:00
Pierre Gayvallet
1fa326b095
Extract core's browser-side theme service to packages (#133894)
* Extract core's browser-side theme service to packages

* start fixing imports

* fix imports

* export service constructor option type

* lint

* update readme

* update generated doc

* update codeowners for /packages/core
2022-06-14 09:09:49 +02:00
Clint Andrew Hall
8882a50a34
[Shared UX][packages] Move No Data Page components; model service composition (#133593)
* [Shared UX] Move No Data Page components to packages

* Fix type export.

* Fix Kibana dependency miss; exported type

* Address feedback; add docs

* More updates after merge

* Move comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-13 19:19:02 -05:00
Kaarina Tungseth
e2a4aa0bdf
[DOCS] Adds the new Controls docs (#133439)
* [DOCS] Adds the new Controls docs

* Fixes broken links

* Fixes broken links

* Review comments

* Update docs/user/dashboard/make-dashboards-interactive.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/user/dashboard/make-dashboards-interactive.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-06-13 12:48:56 -07:00
Maja Grubic
247876ad92
[No Data] Allow access to the app if there are user created data views (#134068)
* [No Data] Allow access to the app if there are user created data views

* Update the checks

* Merge main

* Simplify boolean logic

* Fix Discover test

* Move call to top in Discover

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-13 20:31:25 +02:00
Dario Gieselaar
7604d3beef
[APM] Backend operations detail view + metric charts (#133866)
* Metric charts for backend operation detail view

* API tests

* Review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-10 10:14:47 -07:00
Yulia Čech
3aac9b4115
Add a prop to force an open state for the side nav on desktop (#133159)
* Add a prop to force an open state for the side nav on desktop

* Fixed an issue when a closed state is force open

* Added snapshot test for the new prop

* TEST: set isForceOpenOnDesktop to true

* Revert "TEST: set isForceOpenOnDesktop to true"

This reverts commit 68ea903f23.

* Renamed the prop to `canBeCollapsed` and made it work for all screens

* Added default value to `with_solution_nav`

* Update packages/kbn-shared-ux-components/src/page_template/solution_nav/solution_nav.tsx

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

* Update packages/kbn-shared-ux-components/src/page_template/with_solution_nav.tsx

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

* Update packages/kbn-shared-ux-components/src/page_template/with_solution_nav.tsx

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

* Added `canBeCollapsed` condition to the collapse button, changed `EuiCollapsibleNavGroup` to use `canBeCollapsed`

* Added a panel to fix padding as suggested in the code review

* Updated the snapshots

* Fixed panel padding and added stories

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2022-06-09 08:08:06 -07:00
Katerina Patticha
a3268dece2
[APM] Fix apm e2e tests (#133941)
* Fix integration policy e2e test

* Skip integration e2e

* Use type-only import for synthtrace package

* Fix synthrace script

* Revert "Skip integration e2e"

This reverts commit a5992d5ba9.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2022-06-09 14:39:39 +02:00
Aleh Zasypkin
9ea8730886
Introduce user profiles (#132522)
Co-authored-by: Thom Heymann <thom.heymann@elastic.co>
2022-06-09 08:07:00 +02:00
Spencer
42ba236b8e
[ci/screenshots] enable discovering truncated screenshot names (#133950) 2022-06-08 22:53:36 +01:00
Tre
24560229dd
[QA] Add new types to cleanStandardList fn. (#133891)
Types are from:
api/kibana/management/saved_objects/_allowed_types
2022-06-08 22:23:59 +01:00
Spencer
9f78abfbe7
[ci-stats] track size of shareable runtime (#133770)
* [ci-stats] track size of sharable runtime

* report more than just the total size of the bundle

* put all sharable runtime metrics in a group

* fix entryName find fn

* remove unused import

* update outdated snapshot

* use runtime const and fix misspellings

* remove errant empty comment
2022-06-08 15:53:16 -04:00
Søren Louv-Jansen
702aa29e56
[APM] Fix Synthtrace script (#133620) 2022-06-08 09:24:04 -07:00
Alison Goryachev
346dea9cb5
Migrate observability to new Kibana page template (#133021) 2022-06-08 10:55:58 -04:00
Bree Hall
b7c4d890c0
Upgrade EUI to v58.0.0 (#132257)
* Initial commit for EUI 57.0.0 upgrade

* Handle i18n changes

* Resolved type errors in DatePicker and Markdown Editor

* Resolve test failures in Jest Test Suite #1. Updated multiple snapshots for euiLink and euiTitle as they have been converted to Emotion

* Resolved failing tests for Jest Suite #2. Updated snapshots for euiHealth, euiAvatar, euiSpacer, euiTitle, and euiLink as they have recently been converted to Emotion

* Resolved failing tests for Jest Suite 3. Updated failing snapshots as EuiSpacer, EuiText, EuiCallout, EuiHorizontalRule, EuiTitle, and EuiLink have been converted to Emotion. Updated the i18n translation snapshots

* Upgrade EUI verion to 58.0.0

* Resolved tests failures from Jest Test Suite 4. Updated snapshots as EuiLink, EuiTitle, EuiHorizontalRule, EuiSpace, and EuiCallout have been converted to Emotion

* Resolved failing test cases for Jest Test Suite 5. Updated snapshots as EuiLoader has been converted to Emotion

* Resolved failing tests in Jest Test Suite 6. Updated snapshots as EuiSpacer, EuiHorizontalRule, Eui Callout, and EuiLink have been converted to Emotion

* Resolved type errors for EuiDatePicker component

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type error within EuiContextMenu by removing the watchedItemProps prop. It was recently deprecated in EUI PR# 5880 (https://github.com/elastic/eui/pull/5880) as is no longer needed

* Resolved type errors by updating the popoverPlacement prop for the EuiDatePicket component with new / valid values. A list of values were deprecated and new values were added in EUI PR #5868 (https://github.com/elastic/eui/pull/5868)

* Resolved type error within EuiTabs by removing instances of display: condensed as it is no longer a part of the Amsterdam theme via EUI PR #5868(https://github.com/elastic/eui/pull/5868)

* Remove deprecated `display` prop from EuiTabs

* Deprecate `.eui-textOverflowWrap`

* Deprecate EuiSuggestItem `labelDisplay` prop

* [EuiStepsHorizontal] Replace deprecated `isComplete`/`isSelected` with `status`

* Update last EuiStepsHorizontal `status` migration

- this one was more complex than the previous commit due to existing `status` usage and conditional steps. Some amount of logic was simplified via `completedStep`

* Resolved type error within EuiTabs by removing instances of display: condensed as it is no longer a part of the Amsterdam theme via EUI PR #5868(https://github.com/elastic/eui/pull/5868)

* Resolved failing test cases in Jest Test Suite 5. Updated snapshots as EuiTitle has been converted to Emotion

* Resovlved failing test cases in Jest Test Suite 4. Updated snapshots as EuiTitle and EuiSpacer have been converted to Emotion. Resolved failing tests for EuiLink click simlulations by esuring the test is referencing the correct element.

* Resolved failing test cases in Jest Test Suite 3. Updated snapshots as EuiLink, EuiSpacr, and EuiTItle have been converted to Emotion. Updated various test cases to ensure that the references to EuiLink are correct

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Resolved failing test cases in Jest Test Suite 1. Updated snapshots as EUI text utilities have been converted to Emotion. Updated referenes to EuiLink to ensure test are simulating clicks on the correct elements

* Resolved failing test for Jet Test Suite 2. Updated required snapshots. Updated references to EuiLink to ensure that tests are simulating clicks on the correct elements

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Resolved failing test cases for Jest Test Suite 5. Updated references to EuiLink to ensure tests are targeting the correct element

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Resolved failing test cases across the Jest Test Suites. Updated required snaphots for components recently converted to Emotion. Updated test cases to ensure that tests targeting EuiLink are using the correct element.

* Resolved failing tests from multiple Jest test suites. Updated snapshots for components that have recently been converted to Emotion. Updated tests that reference the EuiLink component to ensure the correct element is being targeted

* Updated the getEuiStepsHorizontal function. Previously, this function used the .euiStepHorizontal-isSelected class (now deprecated) to determine which step was current. The function has been updated to use the status prop.

* Updated Jest integration test snapshots to account for the recent conversion of EuiLoader to Emotion

* Resolved failing tests in Jest suites 2 and 4. Updated required snapshots and references for tests using EuiLink

* Removed a console statement. Extracted a nested turnary operation into its own function.

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

* Rollback new turnary function and replace it with a simple if/else

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Resolved failing test cases in Jest Suites 3 and 5 by updating required snapshots

* revert doc_viewer_source test and snapshot changes

* Take care of merge conflict in license_checker:

* Reverted .render() change for analytics_no_data_page.component.test.tsx. Restored snapshot

* Reverted .render() change for analytics_no_data_page.component.test.tsx. Restored snapshot

Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
2022-06-08 10:18:11 -04:00
Pierre Gayvallet
2fddd18fa7
Create core packages for docLinks browser/server services (#133360)
* Create core packages for docLinks browser/server services

* fix mock imports

* fix service imports

* fix server-side type imports

* fix type imports on browser side

* updating readme files

* update generated doc

* add base server mock package

* adapt core usages of coreContextMock

* fix tests / mocks

* lint

* add missing export

* fix another test import

* import from package
2022-06-08 13:18:56 +02:00
Lukas Olson
6a7ad6fc4f
[Data views] Implement persistable state (#132959)
* Tmp commit

* Use serializable version

* Update tests

* Add test for fields

* Use spec instead of base

* Update types

* Fix type errors

* Fix tests & types

* Update types

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-07 09:40:25 -07:00
Tiago Costa
25fea16b0f
docs(NA): adds @kbn/plugin-discovery into ops devdocs (#133632)
* docs(NA): adds @kbn/plugin-discovery into ops devdocs

* chore(NA): update packages/kbn-plugin-discovery/README.mdx

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2022-06-07 17:16:46 +01:00
Garrett Spong
de3410eedd
Adds match_only_text to ES_FIELD_TYPES (#133690)
## Summary

A new Security Solution feature (https://github.com/elastic/kibana/pull/131475) was added in `8.3` that displays a field name and icon token using the reusable `FieldIcon` component. In testing an issue was reported (https://github.com/elastic/kibana/issues/133291) that the wrong icon token was being displayed. 

I had [previously updated](https://github.com/elastic/kibana/pull/131475/files#diff-d79a8297783f3177da25dd13fe807425d9136a0e235fe170f7c0a61f2448dacaR23) `FieldIcon` to support `match_only_text` however this new issue was with the `float` type not displaying correctly. After some searching I found the `castEsToKbnFieldTypeName` utility which solved the issue with `float` fields not displaying, but then `match_only_text` field types would not show since it is missing from `ES_FIELD_TYPES` and so would resolve as `unknown`. 

This PR adds the `match_only_text` [ES type](https://www.elastic.co/guide/en/elasticsearch/reference/current/text.html#match-only-text-field-type) to `ES_FIELD_TYPES` to resolve this missing icon token issue so that `castEsToKbnFieldTypeName` can be used in conjunction with the resuable `FieldIcon` component. 

I imagine this is fine as it's a sibling type to `text`, but am curious here since `sortable: true,` is set for the KbnFieldType even though it includes `ES_FIELD_TYPES.TEXT` (which is not sortable) as well?
2022-06-07 09:25:59 -06:00
Clint Andrew Hall
76bedac246
[Shared UX] Fix SVG bloat (#133679) 2022-06-07 09:41:09 -05:00
Clint Andrew Hall
3e8778a78a
[Shared UX][No Data] Hide No Data card title (#133668) 2022-06-07 09:33:39 -04:00
Clint Andrew Hall
4ea4a7de59
[Shared UX][No Data] Enable custom descriptions on Agent cards (#133594) 2022-06-06 09:46:11 -05:00
Tiago Costa
3a6cc6e747
chore(NA): remove @kbn/utility-types/jest subpackage (#133448)
* chore(NA): remove @kbn/utility-types/jest subpackage

* chore(NA): include migration rule for import path

* chore(NA): remove double import

* chore(NA): creating a new package

* chore(NA): remove jest mentions from @kbn/utility-types

* docs(NA): complete new readme file

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* chore(NA): remove expect error comment

* chore(NA): merge and solve problems with merge on latest upstream

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-03 21:15:06 +01:00
Thomas Watson
a47da23a7d
Move contribution declarations to the bottom of LICENSE files (#133502) 2022-06-03 17:11:53 +02:00
Tiago Costa
71652fb45c
docs(NA): adds @kbn/es into ops devdocs (#133353) 2022-06-03 02:44:56 +01:00
Kevin Lacabane
4c4f0f5d79
esArchiver datastream support (#132853)
* aliases fallback

* nasty datastream support implementation

* datastreams stats method

* update filter stream

* datastream support for unload action

* create-index datastream support

* index records data stream support

* doc records data streams support

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* lint

* pull composable templates

* set data_stream as a separate property on documents

* force create bulk operation when datastream record

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* lint

* getIndexTemplate tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* share cache across transform executions

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-02 19:38:38 +02:00
Pierre Gayvallet
6cb2898d2e
[package arch] Move Core's browser-side injectedMetadata service into packages (#133298)
* Create the injected-metadata packages

* already rename the thing

* move ALL the things

* fix mocks

* start fixing mock imports

* lint

* a few more

* update generated doc

* lint
2022-06-02 08:49:40 +02:00
Tiago Costa
93204a9297
docs(NA): adds @kbn/cli-dev-mode into ops devdocs (#133012)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-01 23:19:42 +01:00
Spencer
07a865261e
[esTestCluster] when stopping nodes, finish cleanup before throwing (#133252) 2022-06-01 11:50:48 -05:00