Commit graph

549 commits

Author SHA1 Message Date
Luke Elmers
9326c53baa
Update docs on branching. (#139057)
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-08-24 17:28:48 +00: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
Spencer
9003353729
rename @elastic/* packages to @kbn/* (#138957)
* rename @elastic/* packages to @kbn/*

* update yarn.lock

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

* update lint task

* review feedback

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-18 08:54:42 -07: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
Alejandro Fernández Haro
73f8e52b89
Fix broken link to CiStatsReporter (#138407) 2022-08-10 00:33:38 +09:30
rahuldimri
f048036170
release_note:skip Issue #97976 (#137839)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-03 11:07:55 +02:00
Michael Dokolin
cb341b4a1c
[Embeddables] Update documentation (#137302)
* Add a developer documentation page to cover embeddables concept
* Update generic embeddable documentation
2022-07-29 14:33:24 +02: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
Spencer
03f1a218c5
[core] remove root index.ts file (#137001)
* [core] remove root index.ts file

* remove support for `kibana/*` imports, replace instances in docs
2022-07-22 15:04:23 -07:00
Tiago Costa
7cc4eaee28
docs(NA): drop windows native development support (#135964)
* docs(NA): drop support for windows native development

* docs(NA): improve previous written instructions around windows de

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-21 14:37:18 +01:00
Najmieh Sadat
8f87df1204
Edited the external plugin demo documentation (#134748)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-19 06:02:24 -07:00
Spencer
4f817ad8a0
[kbn/pm] rewrite to avoid needing a build process (#136207)
* [kbn/pm] rewrite to avoid needing a build process

* uncomment timing reporting

* throw in a few missing comments

* Update README.md

* remove extra SomeDevLog interface from ci-stats-core

* remove non-stdio logging from bazel_runner, improve output formatting

* use private fields instead of just ts private props

* promote args to a positional arg

* optionally require the ci-stats-reporter after each command

* allow opt-ing out of vscode config management

* reduce to a single import

* add bit of docs regarding weird imports and package deps of kbn/pm

* clean extraDirs from Kibana's package.json file too

* tweak logging of run-in-packages to use --quiet and not just CI=true

* remove unlazy-loader

* add readme for @kbn/yarn-lock-validator

* convert @kbn/some-dev-logs docs to mdx

* remove missing navigation id and fix id in dev-cli-runner docs

* fix title of some-dev-logs docs page

* typo
2022-07-18 08:46:13 -07:00
Andrew Tate
3891aeb95f
[Chart expressions] new metric vis expression (#135461) 2022-07-08 12:07:43 -05:00
Jonathan Budzenski
369272efe1
Bump Node.js to 16.16.0 (#135926) 2022-07-07 17:05:09 -05:00
Joe Reuter
fd50544641
[Lens] Extend readme (#135695)
* extend readme

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

* Update x-pack/plugins/lens/readme.md

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* Update x-pack/plugins/lens/readme.md

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* Update x-pack/plugins/lens/readme.md

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2022-07-06 03:06:33 -07:00
Mat Schaffer
8e392a6eed
Add an example of uiSettings override (#135385)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2022-06-30 12:08:55 +09:00
Vadim Kibana
1b2c58f58e
ui_actions_enchanced to /src (#133512)
* move ui_actions_enhanced to /src

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

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

* move translations to /src

* fix typescript errors

* update config files

* update ts configs

* fix config path

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-07 18:33:21 +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
Jeramy Soucy
891e21230c
Adds documentation of alternate kibana yml usage. (#132578)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-31 13:10:35 +02:00
Tiago Costa
dea9159c5d
chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278) 2022-05-16 13:02:02 -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
Pierre Gayvallet
e4c11e3f39
Newsfeed: always use feeds.elastic.co (#131786)
* Newsfeed: always use `feeds.elastic.co`

* fix FTR test
2022-05-10 09:16:15 +02:00
Spencer
542b381fa5
[ftr] automatically determine config run order (#130983)
* [ftr] automatically determine config run order

* split lens config into two groups

* support ftr configs always running against CI

* Split detection_engine_api_integration rule exception list tests

* Add configs from previous commit

* [ftr] remove testMetadata and maintain a unique lifecycle instance per run

* Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run"

This reverts commit d2b4fdb824.

* Split alerting_api_integration/security_and_spaces tests

* Add groups to yaml

* Revert "Revert "[ftr] remove testMetadata and maintain a unique lifecycle instance per run""

This reverts commit 56232eea68.

* stop ES more forcefully and fix timeout

* only cleanup lifecycle phases when the cleanup is totally complete

* only use kill when cleaning up an esTestInstance

* fix broken import

* fix runOptions.alwaysUseSource implementation

* fix config access

* fix x-pack/ccs config

* fix ml import file paths

* update kibana build id

* revert array.concat() change

* fix baseConfig usage

* fix pie chart data

* split up maps tests

* pull in all of group5 so that es archives are loaded correctly

* add to ftr configs.yml

* fix pie chart data without breaking legacy version

* fix more pie_chart stuff in new vis lib

* restore normal PR tasks

* bump kibana-buildkite-library

* remove ciGroup validation

* remove the script which is no longer called from checks.sh

* [CI] Auto-commit changed files from 'yarn kbn run build -i @kbn/pm'

* adapt flaky test runner scripts to handle ftrConfig paths

* fix types in alerting_api_integration

* improve flaky config parsing and use non-local var name for passing explicit configs to ftr_configs.sh

* Split xpack dashboard tests

* Add configs

* [flaky] remove key from ftr-config steps

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

* restore cypress builds

* remove ciGroups from FTR config files

* fixup some docs

* add temporary script to hunt for FTR config files

* use config.base.js naming for clarity

* use script to power ftr_configs.yml

* remove usage of removed x-pack/scripts/functional_tests

* fix test names in dashboard snapshots

* bump kibana-buildkite-library

* Try retrying only failed configs

* be a little quieter about trying to get testStats from configs with testRunners defined

* Remove test code

* bump kibana-buildkite-library

* update es_snapshot and on_merge jobs too

* track duration and exit code for each config and print it at the end of the script

* store results in order, rather than by key, in case there are duplicates in $config

* bash is hard

* fix env source and use +e rather than disabling e for whole file

* bash sucks

* print config summary in jest jobs too

* define results in jest_parallel.sh

* simplify config summary print, format times a little better

* fix reference to unbound time variable, use better variable name

* skip the newline between each result

* finish with the nitpicking

* sync changes with ftr_configs.sh

* refuse to execute config files which aren't listed in the .buildkite/ftr_configs.yml

* fix config.edge.js base config import paths

* fix some readmes

* resolve paths from ftr_configs manifest

* fix readConfigFile tests

* just allow __fixtures__ configs

* list a few more cypress config files

* install the main branch of kibana-buildkite-library

* split up lens group1

* move ml data_visualizer tests to their own config

* fix import paths

* fix more imports

* install specific commit of buildkite-pipeline-library

* sort configs in ftr_configs.yml

* bump kibana-buildkite-library

* remove temporary script

* fix env var for limiting config types

* Update docs/developer/contributing/development-functional-tests.asciidoc

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* produce a JUnit report for saved objects field count

* apply standard concurrency limits from flaky test runner

* support customizing FTR concurrency via the env

Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-04 17:05:58 -05:00
Anton Dosov
e603d92552
Remove data_enhanced plugin (#122075)
Code moved into `data` plugin
2022-04-29 16:43:59 +02:00
Shahzad
a4a082271e
[Synthetics] Rename uptime plugin to synthetics (#130037)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-20 11:53:28 -07:00
spalger
bd8171c13e [plugins] use module ids to import across plugins 2022-04-16 01:19:05 -05:00
Frank Hassanabad
ce2f6171c1
[Security Solutions] Removes POC transforms (#129673)
## Summary

Removes the `metrics_entities` plugin and POC. As a different direction will be taken and people can look back at the git history for it as they see fit if they need to refer to it. Once it's re-added it it will be through an RFC process and re-discussed.

Earlier PR's which added the POC:

https://github.com/elastic/kibana/pull/96446
https://github.com/elastic/kibana/pull/104559

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2022-04-11 13:41:09 -06:00
Tiago Costa
eb0ef19583
chore(NA): upgrades bazel rules nodejs to v5 (#129522)
* chore(NA): upgrade bazel into v5

* chore(NA): initial work to upgrade to rules v5

* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports

* chore(NA): removed packager tsc_wrapped added my mistake
2022-04-08 20:42:37 +01:00
Christiane (Tina) Heiligers
3bb27f21fa
[docs] Adds paragraphs on inter-app navigation with application service (#129421) 2022-04-05 07:22:22 -07:00
Nodir Latipov
3e2761d981
[Unified search] Create unified search plugin (#127651)
* [Unified search] Create unified search plugin

* add unified_search into USES_STYLED_COMPONENTS

* fix JEST group 4

* update limits for data plugin

* fix: remove unifiedSearch plugin from x-pack/plugins/file_upload

* feat: updated .github/CODEOWNERS and set @elastic/kibana-app-services as a code owner

* apply PR comments

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

* feat: moved filter bar, apply filters folders and apply filter action from Data plugin to unified search plugin

* fix Checks

* fix Checks

* fix Linting and Default CI Group #16

* fix Checks

* fix Checks

* fix Linting (with types)

* fix show FILTER_BAR

* fix Jest Tests

* feat replece indexPatternsContranct in setIndexPatterns to DataViewsContract

* feat: removed unnecessary interface in unified search

* fix Checks

* fix Checks

* fix Jest Tests, Checks

* fix Checks

* resolve comments

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-05 12:23:31 +05:00
Spencer
2ad2a4c271
[eslint] ensure that all imports are resolvable (#129002) 2022-04-04 15:37:06 -04:00
Joe Portner
19e43a305d
Fix "Assign object to spaces" flyout UX problems (#128946) 2022-03-31 12:11:31 -04:00
Yaroslav Kuznietsov
072fe63c0b
[XY] Expression chart. (#127150)
* added xy plugin.

* Added expressionXY limits.

* Added xy expression functions to the expression_xy plugin.

* Moved xy to a separate plugin.

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

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

* Updated dashboard tests.

* Fixed translations.

* Expression tests fixed.

* Cleaned up expression_xy.

* cleaned up lens xy_visualization.

* Moved XY state types to lens.

* 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

* Removed not used utils and styles.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-03-28 18:17:36 +03:00
Ying Mao
f77a18902b
[Event Log] Add consumer, rule_type_id and space_id to event log documents (#127804)
* Updating README

* Adding consumer to event log schema

* Adding consumer to event log alerting provider docs

* Fixing checks

* Adding kibana.alert.rule.rule_type_id to event log schema

* Adding kibana.alert.rule.rule_type_id to alerting event log docs

* Adding explicit space id to alerting event log docs

* Passing consumer and rule type id to action event log docs

* Refactor

* Fixing tests

* Updating functional tests

* Storing consumer in rule task params and using that in task runner

* Fixing functional test

* Fixing functional test

* Fixing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-24 14:53:44 -04:00
Marta Bondyra
2f9e6eeacf
[Lens] Manual Annotations (#126456)
* Add event annotation service structure

* adding annotation layer to lens. passing event annotation service

* simplify initial Dimensions

* add annotations to lens

* no datasource layer

* group the annotations into numerical icons

* color icons in tooltip, add the annotation icon, fix date interval bug

* display old time axis for annotations

* error in annotation dimension when date histogram is removed

* refactor: use the same methods for annotations and reference lines

* wip

* only check activeData for dataLayers

* added new icons for annotations

* refactor icons

* uniqueLabels

* unique Labels

* diff config from args

* change timestamp format

* added expression event_annotation_group

* names refactor

* ea service adding help descriptions

* rotate icon

* added tests

* fix button problem

* dnd problem

* dnd fix

* tests for dimension trigger

* tests for unique labels

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

* type

* add new button test

* remove noDatasource from config (only needed when initializing a layer or dimension in getSupportedLayers)

* addressing Joe's and Michael comments

* remove hexagon and square, address Stratoula's feedback

* stroke for icons & icon fill

* fix tests

* fix small things

* align the set with tsvb

* align IconSelect

* fix i18nrc

* Update src/plugins/event_annotation/public/event_annotation_service/index.tsx

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

* refactor empty button

* CR

* date cr

* remove DimensionEditorSection

* change to emptyShade for traingle fill

* Update x-pack/plugins/lens/public/app_plugin/app.scss

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2022-03-23 22:16:50 +01:00
Joe Portner
88d64dc3bb
Add "phase 2" dev docs for sharing saved objects (#128037) 2022-03-22 18:56:41 -04:00
Thomas Watson
e0d667b266
[docs] bring the Node.js upgrade docs up to date (#128126) 2022-03-21 00:41:39 -07:00
Joe Portner
4920ace1d5
Add enhancements for legacy URL aliases (#125960) 2022-03-18 13:11:11 -07:00
Ahmad Bamieh
3cc429d2cb
[i18n] a few docs updates (#127964) 2022-03-17 18:18:49 +02:00
Mat Schaffer
7ef97181db
Initial readme commit with some stub articles (#127420)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-10 14:56:20 +01:00
Jonathan Budzenski
ab109db73f
[package testing] Update networking profile to account for virtualbox update (#127298)
With a recent virtualbox update, we're getting failures in CI with:

> The IP address configured for the host-only network is not within the
> allowed ranges. Please update the address used to be within the allowed
> ranges and run the command again.

This updates the IP range used to be compatible.
2022-03-09 11:47:11 -06:00
Chris Roberson
0af4578c5f
[ResponseOps] Add new plugin to collect additional kibana monitoring metrics (#123241)
* Add new plugint to collect additional kibana monitoring metrics

* Readme

* Update generated document

* We won't use this route

* Use dynamic route style

* Add in mapping verification

* Fix types

* Feedback from PR

* PR feedback

* We do not need this

* PR feedback

* Match options to api/stats

* PR feedback

* Ensure we always require auth

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-08 15:27:44 -05:00
Paulo Henrique
e397dabe62
[Security Solution] Session View Plugin (#124575)
Co-authored-by: mitodrummer <karlgodard@elastic.co>
Co-authored-by: Jan Monschke <janmonschke@fastmail.com>
Co-authored-by: Paulo Henrique <paulo.scape@gmail.com>
Co-authored-by: Jack <zizhou.wang@elastic.co>
Co-authored-by: Karl Godard <karl.godard@elastic.co>
Co-authored-by: Jiawei Wu <jiawei.wu@cmd.com>
Co-authored-by: Jiawei Wu <74562234+JiaweiWu@users.noreply.github.com>
Co-authored-by: Ricky Ang <ricky.ang@cmd.com>
Co-authored-by: Rickyanto Ang <rickyangwyn@gmail.com>
Co-authored-by: Jack <wang.zizhou@outlook.com>
Co-authored-by: Maxwell Borden <maxwellborden@gmail.com>
Co-authored-by: Maxwell Borden <Tacklebox@users.noreply.github.com>
2022-03-04 13:54:37 -03:00
Yaroslav Kuznietsov
2b6885a74c
[Gauge] Vis Type (#126048)
* Added transparent background

* Added gauge/goal visType.

* Fixed palette, scale, and types.

* Set legacy chart as default.

* Removed deprecation message.

* Added percent format params, coming from visdimensions.

* Added support of labels/sublabels.

* Updated i18n label.

* Added support of showElasticChartsOptions

* Added autoextend ranges elastic charts tooltip.

* The outline elastic-charts message added.

* outline renaming and metric/buckets limitations

* reverted mistaken change of sample_vis.test.mocks.

* Warning message added to gauge split chart.

* Added warning message to the splitChart button at goal/gauge.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-04 11:06:06 +02:00
Spencer
0099591143
[docs/es-snapshot] add note to docs about skipping tests (#126843) 2022-03-03 14:54:05 -05:00
Stacey Gammon
e1ac9398d3
Add more details on developer documentation (#126674)
* Docs on docs

* dev docs

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>

* Address review feedback

* Update dev_docs/contributing/documentation.mdx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

Co-authored-by: Daniel Mitterdorfer <danielmitterdorfer@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-03-03 11:44:05 -07:00
Tobias Stadler
fc6897c17b
Fixed some typos (#125802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-03-02 16:40:34 -06:00
Ari Aviran
b95f891ea2 [Security Solution] Initial version of the Cloud Security Posture app (#124816)
Co-authored-by: Ido Cohen <ido.cohen@elastic.co>
Co-authored-by: Or Ouziel <or.ouziel@elastic.co>
Co-authored-by: Yarden Shalom <yarden.shalom@elastic.co>
2022-02-28 13:33:25 -06:00