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.
* 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
* [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
* [packages/kbn-performance-testing-dataset-extractor] filter server transactions by journey time range
* check only 1 ftr transaction for run is found
* fixes
* 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
* [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>
* Create client-side analytics service packages
* move all the things
* start to adapt imports
* fix more imports
* update generated doc
* updating READMEs
* [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>
* 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>
* [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
* 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>
## 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?
* 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>
* 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