Commit graph

377 commits

Author SHA1 Message Date
Aleh Zasypkin
6c72909ab6
[8.5] Upgrade loader-utils dependency (1.1.32.0.3). (#144879) (#144917)
# Backport

This will backport the following commits from `main` to `8.5`:
- [Upgrade `loader-utils` dependency (`1.1.3` → `2.0.3`).
(#144879)](https://github.com/elastic/kibana/pull/144879)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Aleh
Zasypkin","email":"aleh.zasypkin@elastic.co"},"sourceCommit":{"committedDate":"2022-11-09T16:25:15Z","message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b","branchLabelMapping":{"^v8.6.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","release_note:skip","backport:all-open","v8.6.0"],"number":144879,"url":"https://github.com/elastic/kibana/pull/144879","mergeCommit":{"message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.6.0","labelRegex":"^v8.6.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144879","number":144879,"mergeCommit":{"message":"Upgrade
`loader-utils` dependency (`1.1.3` → `2.0.3`). (#144879)\n\n##
Summary\r\n\r\nUpgrade `loader-utils` dependency (`1.1.3` →
`2.0.3`).\r\n\r\nChange log
(`loader-utils`):\r\nhttps://github.com/webpack/loader-utils/blob/master/CHANGELOG.md#200-2020-03-17\r\n\r\n__Note
to reviewers:__ Change log isn't really helpful, and not all\r\nversions
are covered. The only important part is the list of the\r\nbreaking
changes in `2.0.0`:\r\n\r\n* 🟢 minimum required Node.js
version is 8.9.0 (sounds good)\r\n* 🟡 the `getOptions`
method returns empty object on empty\r\nquery (would be great if code
owners validate if it's okay, it looks\r\nlike theme_loader is the only
place where _we_ directly use this method)\r\n* 🟡 Use md4
by default (would be great if code owners\r\nvalidate if it's
okay)\r\n\r\ncc
@elastic/kibana-security","sha":"1213fa0bcd544e940f8d0add8886a7fa84777f7b"}}]}]
BACKPORT-->
2022-11-09 11:17:53 -07:00
Marta Bondyra
6fda415278
[Lens] Tsvb to lens for annotations (#140718)
* fix typo

* [TSVB to Lens] tsvb part

* Lens part

* tests

* add ignoreGlobalFilters

* import corrected

* adding star filled

* widen the limits, spread the horizons

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-09-20 18:46:29 +02:00
Alejandro Fernández Haro
8c4e8b5e66
A/B Testing via LaunchDarkly (#139212)
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-20 04:36:17 -07:00
Philippe Oberti
3099159d02
[TIP] Investigate in timeline (#140496)
* [TIP] Investigate in timeline

- 2 InvestigateInTimeline components (one for Button display the other for ButtonIcon) and 1 useInvestigateInTimeline hook
- add new investigate in timeline hook in Security Solution plugin and pass via context to TI plugin
- replace UrlOriginal by UrlFull in the threat.indicator.name mapping
- bump kbn-optimizer limit for threatIntelligence
- add EuiTooltip for all EuiButtonIcon
- add missing translations
- replace css with EuiFlexGroup where possible
2022-09-19 13:28:03 -05:00
Marco Liberati
1d0504f1f6
[Lens] Add IgnoreGlobalFilters feature to query annotations (#140325)
*  Add ignore global filters feature

*  Fix tests

* 🔧 Remove unused translations

* ♻️ Make it simpler

*  Fix test

* 🔧 slighlty increase bundle limit size

* ♻️ Refactor to only include the feature with no UI

* 🔧 Added migration

* 🏷️ Fix type issues

*  Fix more tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-09-19 13:22:30 +02:00
Dario Gieselaar
b66cf585ca
[Profiling] Add Profiling application (#140722)
Co-authored-by: Joseph Crail <jbcrail@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@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: Joseph Crail <joseph.crail@elastic.co>
Co-authored-by: Stephanie Boomsma <stephanieboomsma@optimyze.cloud>
Co-authored-by: inge4pres <fgualazzi@gmail.com>
Co-authored-by: inge4pres <francesco.gualazzi@elastic.co>
Co-authored-by: Francesco Gualazzi <inge4pres@users.noreply.github.com>
Co-authored-by: Tim Rühsen <tim.ruhsen@elastic.co>
Co-authored-by: Tim Rühsen <tim.ruehsen@gmx.de>
2022-09-15 19:24:41 +02:00
Yulia Čech
95086f4365
[Onboarding] Create guided_onboarding plugin (#138611)
* [Guided onboarding] Smashed commit of all POC work for guided onboarding and guided onboarding example plugins

* [Guided onboarding] Fixed type errors

* [Guided onboarding] Removed guidedOnboardingExample limit

* [Guided onboarding] Fixed a functonal test for exposed configs

* [Guided onboarding] Fixed plugin limit

* [Guided onboarding] Added more information to the example plugin

* [Guided onboarding] Fixed no-console error

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

* [Guided onboarding] Fixed snake case errors

* move guided_onboarding out of x-pack

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
2022-09-15 11:35:35 +02:00
Pierre Gayvallet
7423ed0022
Migrate client-side coreApp domain to packages - again (#140662)
* move sass-loader related files to src/core/public/styles

* create empty packages

* Move all the things

* fix optimizer integration tests

* add kibana.jsonc files

* fix bazel build

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

* fix usages

* fix mocked service name

* fix storybook webpack config

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-13 15:29:08 -07:00
Baturalp Gurdin
d2844f7cda
Revert "Migrate client-side coreApp domain to packages" (#140653)
This reverts commit 4c6dc3c86d.
2022-09-13 12:20:11 -07:00
Pierre Gayvallet
4c6dc3c86d
Migrate client-side coreApp domain to packages (#140242)
* move sass-loader related files to src/core/public/styles

* create empty packages

* Move all the things

* fix optimizer integration tests

* add kibana.jsonc files

* fix bazel build

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

* fix usages

* fix mocked service name

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-13 11:54:09 -07:00
Spencer
32491462a9
add kibana.jsonc files to existing packages (#138965)
* [packages] add kibana.jsonc files

* auto-migrate to kibana.jsonc

* support interactive pkg id selection too

* remove old codeowners entry

* skip codeowners generation when .github/CODEOWNERS doesn't exist

* fall back to format validation if user is offline

* update question style

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 13:31:57 -07:00
Spencer
f378b16b0f
[optimizer/updateLimits] fix check which enables dropping missing bundles (#140285)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 11:25:38 -07:00
Marco Liberati
1a1159b0c5
[Lens] Query based annotations (#138753)
* ⚗️ Initial code for query based annotations

* 🐛 Solved more conflicts

* ⚗️ More scaffolding layout

* ⚗️ Initial indexpatetrn move into frame

* ⚗️ Make field selection work

* 🚧 Fixed almost all dataViews occurrencies, but changeIndexPattern

* 🚧 More work on change index pattern

* Move lens dataViews state into main state

* 🔥 Remove some old cruft from the code

* 🐛 Fix dataViews layer change

* 🐛 Fix datasourceLayers refs

* 🔥 Remove more old cruft

* 🐛 Fix bug when loading SO

* 🐛 Fix initial existence flag

* 🏷️ Fix type issues

* 🏷️ Fix types and tests

* 🏷️ Fix types issues

*  Fix more tests

*  Fix with new dataViews structure

*  Fix more test mocks

*  More tests fixed

* 🔥 Removed unused prop

*  Down to single broken test suite

* 🏷️ Fix type issue

* 👌 Integrate selector feedback

*  Fix remaining unit tests

* 🏷️ fix type issues

* 🐛 Fix bug when creating dataview in place

*  Update with latest dataview state + fix dataviews picker for annotations

* 🐛 Fix edit + remove field flow

* Update x-pack/plugins/lens/public/visualizations/xy/types.ts

* 📸 Fix snapshot

* 🐛 Fix the dataViews switch bug

* 🔥 remove old cruft

* ♻️ Revert removal from dataviews state branch

* ♻️ Load all at once

* 🔧 working on persistent state + fix new layer bug

* 🔥 remove unused stuff

* 🏷️ Fix some typings

* 🔧 Fix expression issue

*  Add service unit tests

* 👌 Integrated feedback

*  Add migration code for manual annotations

* 🏷️ Fix type issue

*  Add some other unit test

* 🏷️ Fix more type issues

* 🐛 Fix importing issue

* ♻️ Make range default color dependant on opint one

* 🐛 Fix duplicate fields selection in tooltip section

*  Add more unit tests

*  Fix broken test

* 🏷️ Mute ts error for now

*  Fix tests

* 🔥 Reduce plugin weight

* 🐛 prevent layout shift on panel open

* 🐛 Fix extract + inject visualization references

* 🏷️ fix type issues

*  Add dataview reference migration for annotations

* 🔧 Add migration to embedadble

* 🏷️ Fix type export

* 🐛 Fix more conflicts with main

*  Fix tests

* 🏷️ Make textField optional

* ♻️ Refactor query input to be a shared component

* 🐛 Fix missing import

* 🐛 fix more import issues

* 🔥 remove duplicate code

* 🐛 Fix dataView switch bug

* 🏷️ Fix type issue

* annotations with fetching_event_annotations

* portal for kql input fix

* timeField goes for default if not filled

* limit changes

* handle ad-hoc data view references correctly

* fix types

* adjust tests to datatable format (remove isHidden tests as it's filtered before)

* small refactors

* fix loading on dashboard

* empty is invalid (?) tbd

* new tooltip

* emptyDatatable

* ♻️ Flip field + query inputs

* 🏷️ Fix type issue

*  Add field validation for text and tooltip fields

* tooltip for single annotation

* fix tests

* fix for non--timefilter dataview

* fix annotations test - the cause was that we now don't display label for aggregated annotations ever

* use eui elements

* newline problem solved

*  Add more error tests

* 👌 Rename migration state version type

* fix types for expression chart

* 🐛 Fix i18n id

* 🏷️ Fix type issue

* fix hidden all annotations

*  Fix tests after ishidden removal

* 🐛 Revert references migration to an in app solution

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2022-09-08 18:23:19 +02:00
Davis McPhee
cb0a8057c8
[Discover] Enable tags for saved searches (#136162)
* [Discover] Add initial support for tags to saved search modal

* [Discover] Add tags to savedSearch types

* [Discover] Finish initial support for adding tags to saved searches

* [Discover] Start to convert saved object finder to a table in order to support tags

* [Discover] Add support for displaying saved search tags in open search flyout

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

* [Discover] Continue support for tags in saved object finder

* [Discover] Clean up saved object finder

* [Discover] Finish initial support for tags in saved object finder

* [Discover] Update SimpleSavedObject constructor to SimpleSavedObjectImpl

* [Discover] Remove orig files

* [Discover] Saved search tag type registration and telemetry

* [Discover] Create new saved_objects_finder plugin

* [Discover] Continue work creating saved_objects_finder plugin

* [Discover] Revert some changes in saved_objects

* [Discover] Revert some changes in saved_objects again

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

* [Discover] Update saved_objects_finder i18n keys

* [Discover] Update docs

* [Discover] Add plugins to saved_object_finder and fix broken types

* [Discover] Finish creating saved_objects_finder plugin and use it in Discover

* [Discover] Update SavedObjectFinderProps type export, and update x-pack telemetry

* [Discover] Fix broken jest tests

* [Discover] Update saved_objects_finder API

* [Discover] Remove unused translations

* [Discover] Fix issue with initial saved object finder fetch

* [Discover] Fix some of the saved object finder jest tests

* [Discover] Clean up finder after merge

* [Discover] Fixing saved_object_finder.tsx

* [Discover] Add savedObjectsTaggingOss reference to saved_search plugin

* [Discover] Fix broken open_search_panel test

* [Discover] Removed allowed types from saved object finder

* [Discover] Removing type column when there's only one saved object type, and adjusting column widths

* [Discover] Fix issue where visible types were entirely removed, fixed pageSizeOptions

* [Discover] Add showFilter to open_search_panel's saved_objects_finder, fallback to all available types when no type filter is applied to saved_objects_finder, hide type column and filter button when there is only one type in metadata list

* [Discover] Fix remaining saved_object_finder Jest tests

* [Discover] Update snapshot

* [Discover] Fix failing functional tests

* [Discover] Add tagging Jest tests for saved_objects_finder

* [Discover] Fix small bugs in saved_object_finder, update Jest tests, add functional tests for Discover saved search tagging

* [Discover] Removed unused variable in functional test

* [Discover] Update Discover Jest tests with tagging tests

* [Discover] Remove translations

* [Discover] Updating saved_objects_finder to use static export vs preconfigured component, adding lazy load support

* [Discover] Move saved_object_finder service deps to a 'services' prop, fix broken open_search_panel Jest test

* [Discover] Fix broken Jest test

* [Discover] Fix broken Jest test from merge

* [Discover] Fix discover tags integration test description

* - Updated tags prop to be `string | undefined`
- Type imports cleanup
- Added loading indicator for saved object finder
- Changed `savedObjectsPlugin.settings.getListingLimit()` to `uiSettings.get(LISTING_LIMIT_SETTING)`
- Removed old saved object finder comment
- Removed tag changes from transform plugin
- Change code owners of saved_objects_finder to Data Discovery

* [Discover] Fixed LISTING_LIMIT_SETTING import

* [Discover] Revert tags saving change that introduced a bug

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

* [Discover] Try again to fix LISTING_LIMIT_SETTINGS import

* [Discover] Fix failing snapshot

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-01 13:14:13 -03:00
Pierre Gayvallet
383d8fab58
Move client-side application service to packages (#139502)
* deletes unused utils file

* just some fix while I see it

* creating empty packages

* moving all the things

* package build success

* start fixing usages

* fix the scoped history type issue

* export internal utils

* add default for mock

* fix test import

* fix external import

* start fixing external usages

* more usages

* more usages

* more usages

* More usages

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

* fix integration test imports

* fix more test types

* remove public/utils from the core bundle

* trying to import from the package

* updating README's

* remove unused test types from mock package

* cleanup test types

* use import type

* add author to packages

* more import type

* remove dead path from some config

* remove src/core/utils/index.ts (and pray)

* update tsdoc

* fix new file usage

* fix paths

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 10:08:44 -07:00
Tiago Costa
1cbf83f73c
chore(NA): remove src folder requirement from packages (part 2) (#138476)
* refact(NA): apply root_input_dir=src to each already created pkg

* refact(NA): update package generator

* fix(NA): correctly use rootDir

* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro

* chore(NA): merge with main

* chore(NA): first attempt to complete removal of src folder on a small group of pkgs

* Revert "chore(NA): first attempt to complete removal of src folder on a small group of pkgs"

This reverts commit b6f34b7530.

* chore(NA): remove src folder requirement from xpack pkgs

* chore(NA): remove src folder from analytics pkgs

* chore(NA): remove src folder from home pkgs

* chore(NA): remove src folder from shared_ux pkgs

* fix(NA): remove missing src folder inputs on sharedux pkg

* chore(NA): remove src folder from kbn-a* pkgs

* chore(NA): remove src folder from kbn-b* pkgs

* chore(NA): remove src folder from kbn-c* pkgs

* chore(NA): correct exclude pattern for each changed pkg

* chore(NA): remove src folder from kbn-y* pkgs

* chore(NA): remove src folder from kbn-e* pkgs

* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs

* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs

* chore(NA): remove src folder from kbn-h** pkgs

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

* Revert "chore(NA): remove src folder from kbn-h** pkgs"

This reverts commit dcdf72bcc1.

* fix(NA): grammar location

* test(NA): fix tests for kbn/config-schema

* test(NA): fix tests for kbn/config-schema

* chore(NA): multiple errors fixed

* chore(NA): remove kuery grammar fix

* fix(NA): @kbn/ace imports

* fix(NA): grammar location

* fix(NA): add missing files to tsconfigs

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

* chore(NA): complete tsconfigs

* Revert "chore(NA): complete tsconfigs"

This reverts commit f48c616864.

* chore(NA): remove src folder from kbn-core* pkgs

* chore(NA): remove src folder from kbn-u* pkgs

* chore(NA): remove src folder from kbn-ui-shared-deps* pkgs

* chore(NA): fix problems on core pkgs

* chore(NA): fix problems on core pkgs

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

* fix(NA): shared_built_assets correct location'

* test(NA): update @kbn/optimizer integration snapshots

* chore(NA): remove src folder from kbn-t* p1 pkgs

* chore(NA): remove src folder from kbn-t* p2 pkgs

* chore(NA): update rootDir on utility types pkg

* chore(NA): include missing files on @kbn/test

* chore(NA): include missing files on @kbn/test

* fix(NA): new jest preset paths on @kbn/test

* chore(NA): fix eslint

* fix(NA): new jest preset paths on @kbn/test

* chore(NA): remove exclusion for mocks folde on @kbn/test

* fix(NA): several imports from target_node

* fix(NA): @kbn/test mocha and jest types clash

* chore(NA): remove src folder from kbn-storybook pkg

* chore(NA): remove src folder from kbn-stdio-dev-helpers pkg

* chore(NA): remove src folder from kbn-std pkg

* chore(NA): remove src folder from kbn-sort-pkg-json pkg

* chore(NA): remove src folder from kbn-some-dev-log and kbn-shared-ux-utility pkgs

* chore(NA): remove src folder from kbn-ux-storybook pkg

* chore(NA): remove src folder from kbn-shared-ux-services pkg

* chore(NA): remove src folder from kbn-shared-ux-components pkg

* chore(NA): remove src folder from kbn-shared-svg pkg

* chore(NA): remove src folder from kbn-server-http-tools pkg

* chore(NA): remove src folder from kbn-securitysolution-* pkgs

* chore(NA): remove src folder from kbn-r-* pkgs

* chore(NA): remove src folder from kbn-p* pkgs

* chore(NA): remove src folder from kbn-o* pkgs

* chore(NA): remove src folder from kbn-m* pkgs

* chore(NA): remove src folder from kbn-j,k,l* pkgs

* chore(NA): remove src folder from kbn-j,k,l* pkgs

* chore(NA): remove src folder from kbn-io-ts-utils* pkgs

* chore(NA): remove src folder from kbn-* pkgs except a few

* chore(NA): update @kbn/generate

* fix(NA): wrong exclusion on kbn-storybook

* chore(NA): remove src folder from kbn-monaco pkg

* chore(NA): remove src folder from kbn-interpreter pkg

* fix(NA): wrong exclusion on kbn-storybook

* chore(NA): update every require for target_*/src

* chore(NA): remover src folder from @kbn/handlebars

* fix(NA): license for @kbn/handlebars

* chore(NA): copy templates as part of the jsts_transpiler macro for @kbn/storybook

* chore(NA): update handlebars

* fix(NA): @kbn/plugin-generator import paths

* fix(NA): bundle sizes

* fix(NA): web bundle for @kbn/i18n-react

* Revert "fix(NA): bundle sizes"

This reverts commit 8aefe84fbc.

* Revert "Revert "fix(NA): bundle sizes""

This reverts commit e9d87d72a4.

* fix(NA): @kbn/docs-utils index.ts path expectation

* chore(NA): merge and solve conflicts with main

* fix(NA): relative import to index

* chore(NA): merge and solve conflicts with main

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

* chore(NA): apply eslint fix

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 15:57:35 +01:00
Peter Pisljar
f68751054a
[DataViews] expose list of matched indices (#139067) 2022-08-25 18:32:06 +02:00
Julia Rechkunova
47b69298a5
[UnifiedFieldList] Move Field Stats from Lens to UnifiedFieldList plugin (#136328)
* [UnifiedFieldList] Bootstrap a new unifiedFieldList plugin

* [UnifiedFieldList] Move backend API for field stats from Lens to UnifiedFieldList plugin

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

* [Discover] Address CI checks

* [UnifiedFieldList] Move field stats UI from Lens to UnifiedFieldList plugin

* [Discover] Integrate FieldStats into Discover field popover

* [Discover] Show both views side to side

* [Discover] Allow for some customization

* [Discover] Allow for more customization

* [UnifiedFieldList] Remove temporary code

* [UnifiedFieldList] Extract styles

* [UnifiedFieldList] Fix after merge

* [UnifiedFieldList] Extend i18n

* [UnifiedFieldList] Migrate stats API from server to public

* [UnifiedFieldList] Update types

* [UnifiedFieldList] Update Lens tests

* [UnifiedFieldList] Update Lens tests

* [UnifiedFieldList] Before merging

* [UnifiedFieldList] After merging

* [UnifiedFieldList] Refactor localization keys

* [UnifiedFieldList] Update types

* [UnifiedFieldList] Reintroduce server API for field stats and refactor integration tests

* [UnifiedFieldList] Update limits

* [UnifiedFieldList] Rename the component

* [UnifiedFieldList] Improve types

* [UnifiedFieldList] Add AbortController

* [UnifiedFieldList] Render counts in PopoverFooter in Lens

* [UnifiedFieldList] Hide new stats from Discover for now

* [UnifiedFieldList] Fix tests

* [UnifiedFieldList] Rename to loadFieldStats

* [UnifiedFieldList] Rearrange utils

* [UnifiedFieldList] Fix types

* [UnifiedFieldList] Fix references

* [UnifiedFieldList] Use emotion css

* [UnifiedFieldList] Increase limits

* [UnifiedFieldList] Add first tests

* [UnifiedFieldList] Add more tests

* [UnifiedFieldList] Refactor interface to accept services object

* [UnifiedFieldList] Update types

* [UnifiedFieldList] Add docs

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

* [UnifiedFieldList] Add missing references

* [UnifiedFieldList] Tmp

* [UnifiedFieldList] Revert changes from Discover for now

* [Discover] Add again new translation keys

* [UnifiedFieldList] Remove old translation keys

* [UnifiedFieldList] Update tests

* [UnifiedFieldList] Update data test subj prop

* Update src/plugins/unified_field_list/public/services/field_stats.ts

Co-authored-by: Davis McPhee <davismcphee@hotmail.com>

* [UnifiedFieldList] Lazy load FieldStats component

* [UnifiedFieldList] Lazy load loadFieldStats function

* [UnifiedFieldList] Fix tests

* [UnifiedFieldList] Remove newly added translations

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
2022-08-23 10:08:37 +02:00
Clint Andrew Hall
0fbd0afdb1
[Shared UX] Complete package migration; delete plugin (#138962)
* [Shared UX] Complete package migration; delete plugin

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

* Fix types, fix tests

* Create Storybook config package; organize Storybook

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

* Revise Storybook config package; make mock packages compatible with web

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 13:00:03 -05:00
Uladzislau Lasitsa
bb705c8ba5
[XY] Remove vis type xy renderer (#138735)
* Remove vis type xy renderer

* Fix check

* Remove unused translations

* Some

* Updated limits

* Update limits

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-08-18 10:59:40 +03:00
Jonathan Budzenski
c4da7bd75a
[build] Remove gzip files (#138508)
* [build] Remove gzip files

All browsers in our support matrix support brotli.
https://caniuse.com/brotli

We still have fallbacks to hapi gzip, and uncompressed in the event of
an error.

* update snapshots

* fix

* update snapshots
2022-08-17 08:54:14 -05:00
Joe Reuter
fcf3b8bb21
[Discover] Split saved searches out of discover plugin (#138388) 2022-08-12 11:19:40 +02:00
Jean-Louis Leysens
a182b8e9be
Files plugin (#137421)
* added files plugin

* [Files] Create files saved object and blob storage (#131886)

* initial version of file saved objects

* initial version of file saved objects part ii

* added .blob index and setup logic for the file service and the blob service

* wip: need to add .blob access to kibana_system role

* use multiple-isolated after speaking of oleg

* added metadata field

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

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

* updated file statuses per feedback

* removed created_by and added "alt" text field and converted "name" to type "text" too

* split content_type into mime and extension

* use BlobStorage interface in adapters prop

* minor fixes

* handle multiple Kibanas at startup time

* fix jest test

* do not set up index at setup time

* set importable exportable to false explicitly

* remove use of non-existent function

* added plugin ID, use type instead of interface to avoid specific interface issue and use typescript to check that properties map corresponds to type

* remove storage_id for now

* make the name snake case!

* added fixmes

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

* [Files] Implement ES-based blob store (#132123)

* minor clean up

* remove unused import

* added modified version of the content stream from reporting

* remove plugin_id, replace with file_kind

* remove unused commented out code and clean up imports

* added jest.config.js

* added FileChunkDocument interface and added the head_chunk_id for easier deletion of related file chunks

* added an additional test case for writing with content stream

* first implementation of ES blob storage

* fix imports

* get closer to a final version of the blobstore interface, use esClient.get rather than esClient.search since we are using IDs

* added jest integration tests

* add some comments

* fix: eslint types issues

* remove unused values

* minor refactor for clarity

* fix when saved objects are registered

* remove unused variable

* fix jest tests and make getMaxSize function sync

* fix logger prefixes

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

* [Files] File service CRUD functionality and audit logging (#132416)

* big ol wipperooni, but got a lot of initial functionality written out

* added some todos and fixed import

* finish adding integration tests for file service! also added the partial update capability to file

* added file service integration tests and finalized Files and InternalFileService APIs

* added security plugin

* big refactor for security audit logging: FileServiceFactory

* type lint

* update delete file integration test and remove done TODOs

* move comment

* docs, accessibility modifiers and updated some import ordering

* fix comments

* pass in index name to ES blob store

* tidy up debug and error messages

* [Files] Added more chunking Jest integration tests (#132530)

* added more thorough integration tests of chunking

* refactor chunksize to a value that is passed to the ES constructor, update a comment and update tests

* [Files] Public API v1 (#132602)

* created public API, everything except the file registry

* ensure the custom meta types are working as expected

* added index: false to content

* Revert "added index: false to content"

This reverts commit 74259f86638aefc24755874cbd6ac89e0170c192.

* updated comment

* update how ids are generated

* also filter out deleted files

* fix id generation

* test file deletion after upload failure

* [Files] File kinds registry v0.1 (#132700)

* initial commit of file kind registry

* add actual registry

* updated attributes reduceer slightly

* separate blob storage interface, make the blob storage type a unique const

* added integration test for file kinds

* update test after adding registry logic

* partial attributes

* [Files] Blob storage with attributes (#134057)

* updated blob storage interface with attributes

* added dynamic: false to the file chunk doc for ES blob store

* update mocks

* support attributes at the blob store level part i

* actually test setting of attributes, also refactor app_extra_data to app_meta_data

* remove unused import

* some corrections to tests, also refresh after creating a blob that has attributes to enable search

* remove unnecessary default

* getBaseId -> getContentReferenceId and added a bunch of doc comments

* refactored getting of attribute chunk id, encapsulate everything inside content stream

* remove app_search_data

* app_meta_data -> app_metadata

* [Files] Added `Transform` to blob stores (#134846)

* added max byte size stream transform

* added stream transforms to files

* rename MaxByteSize to MaxByteSizeTransform

* try a cool cool ternary, yeah

* minor refactor

* address PR feedback

* [Files] File kind HTTP APIs and tests (#134655)

* first version of dynamically creating file kinds routes

* added update, delete, download, list and find endpoints and some minor refactoring

* added return statement and additional requirement for file kind ids to be URI safe

* update comment

* added API integration tests for the file kinds routes, a lot of refactoring; removed the upload endpoint service since this does not make since with proxies, fixed a bunch of issues in registering routes and the enhanced file kind router

* move the method to the specific route file too

* remove unused function

* add download content type response header

* remove unused import

* download http method should be "get" not "delete"

* actually pass through the mime type

* slight refactor after changing the create file response

* findFile => getById

* remove trailing verbs

* update copy

* addressing pr feedback

* added missing property

* fix copy

* added comment

* regrouping imoprts

* rename "find" route to "getById"

* [File storage] Public-side Client (#135403)

* refactor store name

* wip: first version of restful-ish endpoint types captured in one place except for path

* use the endpoint definition directly

* added first iteration of files client based on shared types

* slight refactor

* added content type headers and removed unused type

* slight refactor and expose server and public side types

* finish refactor

* updated files plugin ui limits

* [Files] Public file sharing service (#135598)

* add new public file saved object type

* generate random token

* file share service, first iteration

* initial version of files share service work, we can create a file share

* delete shares when a file is deleted

* refactor to InternalFileSharingService because certain events need to be audited

* further clean up and added a comment

* finish refactor

* update tests

* refactor tractor

* move integration tests folder

* does not need to be async, also added some samples to doc comment

* added comment

* use SO object references instead of hacking it yourself, also added comments and moved some stuff around

* refactor to internal file share service

* fix type lint

* valid_until as unix ts

* commit simplify random string generator

* fix type issues and update SO integration tests

* woops, 51 not 55

* change label

* minor refactor to file service (#135836)

* remove attributes from blobstore layer and update IDs to be xxxxx.1 instead of 1.xxxxx (#136294)

* [Files] Refactor File metadata (#136370)

* refactor tractor keeps on rolling

* fix type issues

* [Files] Conform with new blob store specification (#136396)

* refactor es mappings

* move puid file

* updated the content stream implementation to support identifying "last" chunk

* updated the es blob store

* updated es mappings

* minor updates to the file object, but importantly, passing the file ID to the blob store so that files and blobs are connected

* updated test assertion

* rather use cuid because it uses cryptography to reduce the chance of collisions (#136658)

* do not index bid field (#136707)

* [Files] Find endpoint (#136529)

* refactor http endpoint interface names

* wip on find files route, need to create shared test harness and test utils

* added toJSON helper

* pass through the filter

* fix refactor to "getById" on file service instead of find and move order of attributes

* actually add the toJSON utility

* added shared integration test setup code

* added find route path to common

* return if 400 is returned when trying to create blob storage index. This is an edge case that can be hit if creation happens at the same time

* update the find algo to build a kuery expression string that we pass to SO service, note: we want to prevent query injection shenanigans so we JSON.stringify

* updated the create endpoint to enforce mime type from file type, thank you

* updated the create endpoint to enforce mime type from file type, thank you

* updated some tests and actually register the find enpoint, also updated to use mimeType

* added a few integration level tests for the new find endpoint

* updated the new setup integration test harness for use in new find and old file kinds integration tests

* use flattened type for "Meta" and "hash" fields on saved object so that we can store multiple values in an object and search

* updated import with "type" annotation

* added readme explaining patterns used for routes

* fix file kind integration tests

* remove unused endpoint

* do not expose chunk size and compression for now

* use nodeBuilder rather than manually building a kuery string

* make query strings limited in length and refactor "Extension" to "extension" plus some other minor changes

* reorg some lines

* [Files] Use `application/cbor` to optimise file uploads and downloads (#136528)

* move puid file

* added cbor-x dependency

* remove all references to "raw" from the test code

* remove "encoding" parameter and refactor to use cbor encoding for blob chunks, in this way we do not encoding our payloads to UTF-8 or Base64 Kibana side, only decode

* fixed content stream tests

* require instead of import cbor-x for now

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

* try disable eslint comment scoped

* download also as cbor to buffer directly, also updated upload endpoint to report when content has already been uploaded

* updated tests and handle some edge case when reading buffers

* remove unused require and added a comment

* moved lengthy comment to separate file

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

* [Files] Added metrics endpoint and functionality (#136725)

* added service-level functionality for getting usage metrics

* built the metrics endpoint

* do not count size of deleted files

* updated comment

* added agg by status and extension

* update test assertions

* [Files] File errors (#136946)

* added domain-specific errors

* map file errors to http responses and clean up list endpoint

* [Files] Public File share HTTP endpoints (#137172)

* refactor where server and client routes are declared

* added new endpoint types and refactor api/files/files/metrics|share to api/files/metrics|share

* added some more comments, a new error type for the file share service and created the endpoint handler for creating file shares

* added doc comments to the file kind interface

* rename test utils folder to "test_utils" and added a basic test for creating a share

* added test_util folder and updated share test

* added new endpoint types, updated import to test utils, updated share name

* added unshare endpoint

* added share list endpoint and refactored share JSON with version that contains token and version without

* actually register the list shares route

* a bunch of refactoring for saved object type "id" rather than "token" for the object id, also added the public download endpoint

* updated error behavior on download endpoint

* fixed test

* use unix timestamp in seconds

* added file name param to public download endpoint and added shared fileName schema

* remove unused file and added public download tests

* share to shares

* added get endopint and updated tests and test titles per feedback

* added get endpoint

* updated test and back to milliseconds on validUntil

* updated name of params in route and update error message in response

* return only known messages in the expected format

* update test

* use Readable.from

* reintroduce crazy typecasting

* added security audit log tests (#137253)

* [Files] Generate download headers utility tests (#137203)

* move common schema to common schema file and move THAT file to a shared location

* update mime type behaviour

* update integration tests

* added a little something to the README

* update cbor-x to latest

* delete "require" of cbor-x

* upgrade cbor-x

* rename "public" to "public_facing"

* remove old lint rule

* added a bunch of docs

* fix interface surface area

* more doc comments

* more more doc comments

* more more more doc comments

* more more more more doc comments

* more more more more more more doc comments

* Actually 50GiB

Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>

* Remove unnecessary comment

Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>

* hasContent -> isReady

* only call the createIndexIfNotExists function once per instance

* [Files] Create files client (#137879)

* biig refactor to use FileClient in File and remove all metadata functionality from file service

* update file service factory to work with metadata client after refactor

* also rename file share updateable attrs interface

* updated use of types in saved objects client

* export function arg types

* added the creation helper file and added an example file for using it

* implement find for the es index client

* moved the query builder logic to a shared place

* rename file, add prefixes and embed es doc in "file" key in ES document

* type exports

* fix bad rebase

* Minor changes and updates to types

* fix another minor type issue

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

* fix minor type issues and update "update" behavior to only apply updatable fields bru

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

* actually be able to update status... also some other types cleanups

* [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>

* remove TODO

* update link to team

* throw errors more consistently

* createAuditLog -> writeAuditLog

* more more more more more more more doc comments

* more more more more more more more more doc comments

* more more more more more more more more more doc comments

* more more more more more more more more more more doc comments

* more more more more more more more more more more more more  doc comments

* [Files] ES client tests (#138174)

* move test utils and update expected metric size

* remove cuid from "file"

* update file client to set id using cuid and update types

* moved test utils and wip of integration tests for file client

* added es-index backed file client tests

* adjust the upload endpoint to also return the file size

* added size to response expect

* fix some type issues

* fix type issues

* [Files] Register routes at setup time (#138392)

* updated the fileKindRegistory to live behind a getter setter so that instantation can be taken care of in one place

* refactor conditional endpoint registration and update tests to register file kind after setup

* register routes at setup time

* remove outdated README

* fix import of non-existent function

* register routes...

* [Files] PR feedback 1 (#138417)

* update comments and plugin description

* filter lists and finds on non-deleted files

* updated comment

* added tests for larger files and files exactly divisible by chunk size

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

* do not use regexp

* fix test assertion

* update content stream tests

* make fewer fields searchable

* ok

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

* remove legacy comment

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
2022-08-11 12:31:49 +02:00
Tiago Costa
df8b62aa98
chore(NA): allow packages to not have an obligation for a src folder on packages (#138038)
* refact(NA): apply root_input_dir=src to each already created pkg

* refact(NA): update package generator

* fix(NA): correctly use rootDir

* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro

* chore(NA): merge with main

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-08 15:54:05 +01:00
Andrew Tate
42d396627e
[Lens] add new metric visualization (#136567) 2022-07-26 14:18:20 -05:00
Philippe Oberti
19aa51e5a8
[TIP] Add new Threat intelligence plugin (#136479)
* [TIP] Add Threat Intelligence plugin

- create Threat Intelligence plugin and integrate with Security Solution plugin
- setup jest unit tests, i18n, Cypress tests and  Storybook
- fetch Indicator of Compromise, and display in data-grid
- add flyout components to show IOCs details (table and JSON)
- add new threatIntelInt entry to kbn-doc-links package

https://github.com/elastic/security-team/issues/4329
https://github.com/elastic/security-team/issues/4138
https://github.com/elastic/security-team/issues/4241
https://github.com/elastic/security-team/issues/4242
https://github.com/elastic/security-team/issues/4244
https://github.com/elastic/security-team/issues/4245

Co-authored-by: lgmys <lgmys@pm.me>
Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-07-25 19:27:05 +02:00
Alexey Antonov
d4bb959bea
[Step 3] VisEditors Telemetry enhancements (add new agg-based and lens telemetries) (#135615)
* initial comit

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

* push chart_expressions logic

* update tests

* fix JEST

* push some telemetries

* fix some cases

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

* update tests

* add some lens part

* add handlers.logRenderTelemetry method

* visGroup -> originatingApp

* remove visTpe, extra, onlyExtra

* remove handlers.logRenderTelemetry from handlers

* remove context from snapshots

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

* add lens operations telemetry

* fix heaatmap, vislib

* push some telemetries

* cleanup

* push some logic

* fix merge conflicts

* push some logic

* add lens map telemetry

* add render_lens_vis_cases

* add render_lens_vis_observability_exploratory_view

* cleanup

* cleanup

* make getRenderEventCounters optional

* add summary_row and color_by_value telemetries

* try to fix double rendering

* update xy telemetries

* fix TSVB

* fix lens

* fix Timelion

* add mixed_xy telemetry

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

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/lens_embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update x-pack/plugins/observability/public/components/shared/exploratory_view/embeddable/embeddable.tsx

Co-authored-by: Shahzad <shahzad31comp@gmail.com>

* Update expression_renderer.tsx

* update originatingApp

* Update expression_renderer.tsx

* add JEST for core changes

* Update plugin.ts

* Update src/plugins/expressions/common/expression_renderers/types.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* fix PR comments

* add renderComplete param to VisualizationContainer

* fix mixed_xy issue

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
2022-07-25 15:33:10 +03:00
Jonathan Budzenski
b8f41a0eea
Bump cssnano to ^5 (#136864)
* Bump cssnano to ^5

* include in css configuration

* fix

* cleanup
2022-07-22 12:15:07 -05:00
Jonathan Budzenski
88d64408c9
Bump postcss to ^8 (#136303)
* Bump postcss to ^8

* fixes

* fix config path

* fix path

* cleanup
2022-07-19 14:06:20 -05:00
Jonathan Budzenski
15f194143b
Replace npm zlib with native zlib (#136139)
This is built-in to node, we no longer need to use this package.
2022-07-11 14:56:25 -05:00
Andrew Tate
3891aeb95f
[Chart expressions] new metric vis expression (#135461) 2022-07-08 12:07:43 -05:00
Spencer
a3b2757e4e
[type-summarizer] reimplement for broader support (#135163)
* [type-summarizer] reimplement for broader support

* Enable sourceMaps in all packages

* include naming collision in summarizePackage test

* fix readmes

* remove unnecessary transient dependency

* remove code that was commented out

* remove outdated todo comment

* ensure errors triggered by untyped-exports are ligible

* remove unused import

* break out snippet generation from AstIndexer

* refactor several massive files into smaller pieces and add more inline docs

* fix typos

* update jest snapshots

* add sections to readme that points people to the useful parts of the source code along with a high-level overview of how the type-summarizer works

* remove --dump flag, it doesn't work

* use decName instead of calling names.get a second time

* include `export` as invalid name
2022-07-06 13:48:45 -05:00
Larry Gregory
1da2c23773
Optimize security entry bundle (#135586)
* shuffle imports

* more import shuffling

* update limits.yml

* Undo unnecessary changes
2022-06-30 15:37:31 -04:00
Nicolas Chaulet
e6c35a67ec
[Fleet] UI to edit custom pipeline|mappings (#134760) 2022-06-26 17:40:53 -04: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
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
Cristina Amico
c2b4645d90
[Fleet] Disallow downgrades and filter out old versions from modal (#133136)
* [Fleet] Disallow downgrades and filter out old versions from modal

* Remove a console.log

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

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

* Address code review comments

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

* Remove an import to decrease bundle size

* Code review comment

* Increase limits size

* Update packages/kbn-optimizer/limits.yml

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2022-06-01 11:02:31 +02:00
Jack
4b1a049559
[Security Solution] Create security solution kubernetes experimental page and kubernetes_security plugin (#131858)
* Add kubernetes link on nav sidebar

* Create new plugin for k8s vis page

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paulo Henrique <paulo.scape@gmail.com>
2022-05-31 11:40:37 -04:00
Yaroslav Kuznietsov
2e5fd40f62
[XY] Lines visibility at the lines chart. (#130452)
Added the line visibility to the lines chart.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-25 13:10:56 +03:00
Yaroslav Kuznietsov
3982bfd3fd
[XY] Usable reference lines for xyVis. (#132192)
* ReferenceLineLayer -> referenceLine.

* Added the referenceLine and splitted the logic at ReferenceLineAnnotations.

* Fixed formatters of referenceLines

* Added referenceLines keys.

* Added test for the referenceLine fn.

* Added some tests for reference_lines.

* Unified the two different approaches of referenceLines.

* Fixed types at tests and limits.
2022-05-20 11:18:17 +03:00
Jen Huang
f96ff560ed
[Fleet] Reduce bundle size limit (#132488) 2022-05-19 12:28:00 -07:00
mgiota
956fbc76d9
[Actionable Observability] render human readable rule type name and notify when fields in o11y rule details page (#132404)
* render rule type name

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

* human readable text for notify field

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

* create getNotifyText function

* increase bundle size for triggers_actions_ui plugin (temp)

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 20:11:04 +02:00
Spencer
a10a4f9f03
Initialize ops documentation section (#132262)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2022-05-17 15:22:38 -05:00
spalger
ddd613b22b raise triggersActionsUi bundle limit 2022-05-17 11:48:15 -05:00
Spencer
f3d69b8197
[@kbn/dev-utils] break out more pieces (#132292)
* [@kbn/dev-utils] break out more pieces

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:19:20 -05:00
Joe Reuter
b1473f8301
[Lens] Add log and sqrt scale (#131940)
* add log and sqrt scale

* Update axis_settings_popover.tsx

* fix types

* carry over scale types

* fix test

* bump limit ever so slightly

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-05-16 10:35:23 -07:00
Faisal Kanout
0248e9357f
[Actionable Observability] Add rule details page (#130330)
* Add rule details page

* Fix route

* Fix route

* Add useBreadcrumbs

* Add rule summary

* Complete rule data summary

* Update styling

* Add update rule

* Add edit role

* Update desgin

* Add conditions

* Add connectors icons

* Fix more button

* Remove unused FelxBox

* Add fetch alerts

* Move to items to components folder

* Format dates

* Add tabs

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

* Use the shared getRuleStatusDropdown

* Add permissions

* Better handling errors

* Fix styling

* Fix tag style

* Add tags component

* Use tags component from triggers aciton ui

* Add last24hAlerts hook

* Fix last 24h alerts count hook

* Fix large font

* Fix font size

* Fix size Actions

* Fix fontsize page header

* Fix conditions size

* Fix text move vertically on small screen

* Update style

* Update alerts counts style

* Cleanup

* Add formatter for the interval

* Add edit button on the definition section

* Add delete modal

* Add loader

* Fix conditions panctuation

* Fix size

* Use the healthColor function from rule component

* Add loading while deleting a rule

* Use connectors name to show actions

* Fix type

* Fix rule page

* Fix types

* Use common RULES_PAGE_LINK var

* Fix checks

* Better error handling

* Better i18n

* Code review

* Fix checks i18n

* Use abort signal

* Revert signal for loadRule as there is no tests

* Fix style

* Fixing tests

* Reduce bundle size

* Fix i18n

* Bump limits
2022-05-16 09:01:59 -07:00
Walter Rafelsberger
6df1b28a82
[ML] Explain log rate spikes: Plugin setup (#131317)
Sets up the boilerplate code for the aiops plugin and adds a demo page within the ML app to demonstrate single API request data streaming from Kibana server to UI client.
2022-05-12 13:36:53 +02:00
Uladzislau Lasitsa
640bc62b81
[XY] Add support of pointseries input type (#131919)
* added xy plugin.

* Added expressionXY limits.

* Added xy expression functions to the expression_xy plugin.

* Moved xy to a separate plugin.

* Small refactoring.

* Fixed types.

* Fixed import of scss.

* Fixed imports.

* Added required plugins.

* Fixed import

* Fixed types.

* Changed expression names.

* Fixed bugs, caused by the refactoring process.

* Fixed lens snapshots.

* Removed new line.

* Fixed xy_chart tests.

* Added lazy loading for xy chart.

* Fixed xy chart test.

* Fixed broken chart selectors.

* Fixed dashboard tests.

* dashboard test fixed.

* Fixed heatmap vis.

* Smokescreen test fixed.

* more fixes.

* async dashboard tests fixed.

* Fixed xy smokescreen tests selectors.

* fixed show_underlying_data tests.

* Updated snapshots.

* updated limits.

* Fixed more selectors

* Fixed persistent context test.

* Fixed some more test at ml.

* Fixed types and imports

* Fixed handlers.inspectorAdapters.tables.logDatatable

* Fixed logDatatable

* Translations fixed.

* Fixed "Visualize App ... cleans filters and query" test.

cleans filters and query

* Fixed "lens disable auto-apply tests" test.

* Updated dashboard tests.

* Fixed translations.

* Expression tests fixed.

* Cleaned up expression_xy.

* cleaned up lens xy_visualization.

* fixed more tests.

* Fix of tsvb.

* Fixed more tests.

* Fixed xy chart limits.

* Fixed new tests.

* Fixed types.

* Added extended layers expressions.

* Added support of tables at layers.

* Fixed tests.

* Fixed more tests.

* Fixed lens types.

* Added tables to layers.

* Checks fixed.

* updated tests.

* Fixed types.

* Add support of pointseries input type

* Fix checks

* First try to fix merge conflicts.

* Fixed annotatations.

* Fixed types.

* Updated snapshots

* Fixed tests.

* Fixed dependencies.

* Fixed i18n.

* Moved XY state types to lens.

* Fixed more types.

* Update src/plugins/chart_expressions/expression_xy/README.md

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

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

* Removed yConfig from *Layers types

* Fixed styles.

* Fixed types.

* Removed not used utils and styles.

* Fixed types and tests.

* updated size.

* Use `expression` as name for datatable column

* Added right behavior, related to the tables, comming from the expression.

* Fixed reference lines.

* Fixed jsdoc.

* Added annotations to layeredXyVIs.

* Fixed limits.

* Refactored the implementation to be reusable.

* Fixed undefined layers.

* Fixed empty arrays problems.

* Fixed input translations and removed not used arguments.

* Fixed missing required args error, and added required to arguments.

* Simplified expression configuration.

* Added strict to all the expressions.

* refactored code, according to the nit.

* Moved dataLayer to the separate component.

* Fixed jest tests.

* Fixed tests.

* Refactored dataLayers helpers and xy_chart.

* More fixes of the expression

Added extendedYConfig for dataLayers.
Added yConfig for referenceLineLayers.
Fixed undefined id at tooltip.

* Fixed tests and snapshots.

* Icons at annotations and reference lines are strict.

* axis extent validation added.

* Added checks to the legend config.

* fillOpacity usage validation is added.

* Fixed valueLabels argument options. Removed not used. Added validation for usage.

* Removed not used tests and imports.

* Fixed valueLabels and added migrations.

* Fixed type checks.

* Added test for the migrations.

* Fixed imports.

* Fixed types

* Fixed i18n checks.

# Conflicts:
#	src/plugins/chart_expressions/expression_xy/public/components/xy_chart.tsx

* Fixed imports and types.

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

* Update src/plugins/chart_expressions/expression_xy/common/expression_functions/extended_annotation_layer.ts

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Removed extra extends.

* Update src/plugins/chart_expressions/expression_xy/common/expression_functions/annotation_layer.ts

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* Added guard.

* Fixed the code duplication.

* Removed table from the annotation layer.

* Changed the `convertActiveDataFromIndexesToLayers` location.

* Added tests for convertActiveDataFromIndexesToLayers

* Reduced the bundle size a little bit.

* Reused strings and args.

* Refactored expression functions. Added asynchronous behavior.

* Fixed tests.

* Updated limits.

* Updated the limit.

* Fixed types.

* fixed types.

* Turned back layerIds.

* Removed convertActiveData from Lens.

* Added test to the layerIds generator.

* Fixed types.

* Fixed problems with resetting of the inspector.

* Fixed migrations.

* Removed types.

* Removed tones of `areFormatted` calculations.

* Fixed `isTimeViz` and `isHistogramViz` by replacing filteredLayers with dataLayers.

* Removed referenceLineLayers from the `groupAxesByType` fn.

* Added validation to the layeredXyVis.

* Fixed extent validation.

* Removed comments.

* Reduced limit.

* Added optimizations.

* Fixed floatingColumns error.

* Fixed types.

* Updated limits.

* Fix import

* Fixed problems with formatting.

* Small nit fix.

* Fixed limits.

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-05-11 15:37:36 +03:00
Alejandro Fernández Haro
7f07d243c7
[EBT] Use UI/Usage Counters to report success telemetry about EBT (#131644) 2022-05-09 16:41:52 -07:00