Commit graph

55938 commits

Author SHA1 Message Date
Yara Tercero
082a3629b4
[Security Solution][Rule details] - Updates rule details page to allow tabs to be a part of url (#139592)
## Summary

Similar to how the Hosts page maintains the tab state in the URL, recreating that in the rule details page. This is in anticipation of some of the exceptions UI changes being worked on where this would create a better user experience.
2022-08-31 13:05:31 -07:00
Tim Sullivan
160058a8c1
[search/public] expose showWarnings(inspector) method on search service (#138342)
* add showWarning to search service

* add comments

* add unit tests

* test foo

* cleanup

* add s to property name in test

* comments for api items

* use the warnings when calling showWarnings

* change showWarning to just show a single warning

* put handleWarnings on the request adapter

* comment

* simplify 1

* fix lens unit test

* remove underscoring for unused variables

* revert inspector changes, extract the response warnings in the search service

* fix bug

* remove console.log

* re-apply typescript fixes to app test code

* declutter

* add test, improve comments

* fix some unexported public api items

* include rawResponse in the warning structure

* fix lint

* tweak clean up example app

* SearchResponseWarnings and SearchResponseWarningNotification

* fix export bug

* not include shardStats if there are no warnings

* Update src/plugins/data/common/search/types.ts

* simplify SearchResponseWarnings interface

* remove array copying

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

* comments for api_docs

* simplify per feedback

* Pass callback to handleResponse in showWarnings

* export more public types

* update example to make possible to show shard failure

* pr cleanup

* eslint fix

* allow example app to not show default warnings

* move extractWarning and related types to inspector plugin

* wip functional test of example app

* fix test references

* finish functional test

* relocate extractWarnings back to search/fetch

* fix test

* remove need for isTimeout, isShardFailure

* ts fix

* improve test

* Change showWarnings to accept the RequestAdapter

* use showWarnings in vis_types/timeseries

* more tests

* use handle_warning name

* fix ts

* add reason field to SearchResponseWarning

* fix component snapshot

* update comments

* test cleanup

* fix test

* ensure notification appears only once

* fix and cleanup

* fix ts

* fix response.json bug

* use top-level type, and lower-level reason.type

* cleanup

* fix shard failure warning in tsvb per feedback

cc @flash1293

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2022-08-31 11:22:24 -07:00
Steph Milovic
28ab14cbe1
[Security Solution] Redux input type updates v2 (#139835) 2022-08-31 10:13:31 -06:00
Dario Gieselaar
c258e52147
@kbn/utility-types: DotObject and DedotObject (#139539) 2022-08-31 17:51:34 +02:00
Rodney Norris
38fda420ac
[Enterprise Search] introduce ui settings for feature flags (#139723)
* [Enterprise Search] introduce ui settings for feature flags

Added ui settings for the enterprise search plugin to store feature
flags and feature flagged the new powerups tab for the index page in the
content plugin.

* [Enterprise Search] define ui settings category name

* powerups tab will be limited to connectors, for now

* use transforms instead of powerups for new index tab

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-31 10:17:14 -05:00
Dima Arnautov
cb7b03106f
[ML] Attach the anomaly charts embeddable to Case (#139628)
* reusable get_embeddable_component.tsx

* register attachment type

* useCasesModal

* fix anomaly charts input resolver and fetching

* fix jest test

* functional tests

* add anomaly charts to ml functional test services

* check for undefined cases modal

* remove todo

* filter and query condition

* update assertion

* stabilize set debug state

* memoize component

* move embeddable components init

* refactor react lazy

* refactor react lazy for swim lane

* memo callbacks

* update deps for attachment
2022-08-31 16:37:57 +02:00
Wafaa Nasr
2a3cf660ab
Fixing leading or trailing whitespace in exception entries (#139617)
* add param_contains_space + handle spaces in match, match_any and field_value_wildcard + translations

* add warning text to onChange events as well + add test for match with snanpshot

* add warning text to onChange events as well + add test for match with snanpshotcd

* add tests and snapshots for match_any and value_wildcard

* remove snapshots

* show warning in nested condition

* add param_contains_space + handle spaces in match, match_any and field_value_wildcard + translations

* add warning text to onChange events as well + add test for match with snanpshot

* add tests and snapshots for match_any and value_wildcard

* remove snapshots

* show warning in nested condition

* add ValueWithSpaceWarning component + tests in Exeption viewer

* add ValueWithSpaceWarning component + tests in Exeption viewer

* return </EuiFlexItemNested>

* apply ux comments

* use themeprovider

* apply docs-team comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-31 16:14:56 +02:00
spalger
8291e1c7d0 Revert "[Security Solution] Redux input type updates (#139766)"
This reverts commit 2796900ebb.
2022-08-31 09:03:47 -05:00
Pierre Gayvallet
980e80b902
Migrate server-side deprecation service to packages (#139789)
* Move files to packages

* start fixing usages

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

* fix more usages

* move mdx files

* update READMEs

* add author to package files

* snake casing

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-31 16:01:26 +02:00
Rudolf Meijering
a2dbc68e57
Use an explicit 60s timeout for cluster state updates (#139823)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-31 07:00:59 -07:00
Steph Milovic
2796900ebb
[Security Solution] Redux input type updates (#139766) 2022-08-31 07:44:03 -06:00
Alexey Antonov
4e2c4b7269
[Doc] update deprecation message for visualization:colorMapping setting (#139794) 2022-08-31 16:03:31 +03:00
Joseph McElroy
48ad65f992
[Enterprise Search] [Analytics] Analytics Collection list view (#139554)
Implements the analytics collection list view.

Co-authored-by: Casey Zumwalt <casey.zumwalt@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-31 14:11:25 +02:00
Marta Bondyra
dc43193d73
[Lens] fetching annotations: small fixes (#139695)
* [Lens] fetching annotations: don't replace label with textField

* don't pass timezone but read uiSettings

* some params should be required

* passing id from annotations for expressions

* adapt the rendering code to later use datatable structure
2022-08-31 13:01:11 +02:00
Robert Oskamp
ccad8fa122
[ML] Functional tests - stabilize trained models tests (#139727)
This PR stabilizes the functional tests for trained models.
2022-08-31 12:43:24 +02:00
Pablo Machado
24fabe29d6
Add anomalies table to Entity Analytics dashboard (#139462)
* Add Anomalies table to Entity analytics page
2022-08-31 02:24:10 -07:00
Dario Gieselaar
1def7cbaf7
[APM] Mock synthetic source for metric documents (#139643) 2022-08-31 10:52:58 +02:00
Joe Reuter
43e7050865
improve "debug in sandbox" functionality (#139724) 2022-08-31 10:27:17 +02:00
Joe Reuter
5e86ffa801
do not load all data views (#139690) 2022-08-31 10:27:04 +02:00
Joe Reuter
d0c1cae4bd
[TSVB] Remove exclamation circle icon (#139686)
* remove exclamation circle

* fix snapshot file

* fix i18n
2022-08-31 10:24:57 +02:00
Joe Reuter
c04eac8f54
[Lens] Expose adapters in onLoad callback (#139647)
* expose adapters in onLoad callback

* fix test
2022-08-31 10:24:11 +02:00
Peter Pisljar
35ab5628eb
fix wrong property names (#139787) 2022-08-31 10:23:34 +02:00
James Gowdy
2b9faa0d12
[File data visualizer] Adding ecs_compatibility setting for find structure calls (#139708)
* [File data visualizer] Adding ecs_compatibility setting for find structure calls

* fixing tests
2022-08-31 09:07:07 +01:00
Lisa Cawley
68e0a2aab2
[DOCS] Add Webhook - Case Management connector to case APIs (#138583) 2022-08-31 11:06:40 +03:00
Kibana Machine
75566a6e82
[api-docs] Daily api_docs build (#139783) 2022-08-31 14:18:17 +09:30
Tiago Costa
1bc7fdaf96
chore(NA): update versions after v8.4.2 (#139715) 2022-08-31 04:33:41 +01:00
Brandon Morelli
4c281a8995
[APM] docs: explain unknown service health (#139672)
* Update machine-learning.asciidoc

* Update docs/apm/machine-learning.asciidoc

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
2022-08-30 15:46:33 -07:00
Najmieh Sadat
8cb5677ed2
[Snapshot + Restore] Make Snapshot stats labels clear (#139172) 2022-08-30 18:08:39 -04:00
Ashokaditya
91f0b833b9
[Security Solution][Endpoint][Response Actions] Show hostnames on response actions log page (#139379)
* Add hosts to `ActionDetails`

Adds a `hosts: [{id, name}]` key - that is a set of agent ids and names - to type `ActionDetails` that is used by
"action details by agent id" `api\endpoint\action\{id}` and actions log `api\endpoint\action` APIs.

fixes elastic/security-team/issues/4815

* rename 😅

* Conditional `hosts` property on list API response

Since we need hostnames only on the landing page, we decided to return this property in the API response with an additional flag

* truncate and tooltip already works for long hostnames

* schema test for `showHostsInfo` query param

fixes elastic/security-team/issues/4815

* include `hosts` in all API responses

...that use `ActionDetails` shape.

We agreed in review discussions that since host metadata API is called just once on every page and using the new united metadata index it is reasonably performant and so the `hosts` property that has the hostnames should be present in action details and action list API responses.

* update comment for type change

review changes

* add missing param

type check fix

* remove unused i18n translations
2022-08-30 14:46:23 -07:00
Clint Andrew Hall
af422461f7
[drift] Update Drift Storybook to apply context, fix bug (#139510)
* [drift] Update Drift Storybook to apply context

* A few tweaks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 16:12:15 -05:00
Jack
fe9610b1ea
[8.5] [Session View] [TTY output] Add tty output controls buttons (#139673)
* Implement tty output controls

* Add tooltips and translations

* Update zoom in/out icons and styles
2022-08-30 13:40:37 -07:00
Lisa Cawley
c9e3d33656
[DOCS] Clarify alerting security setup (#139587) 2022-08-30 13:26:53 -07:00
Kevin Logan
e745e3624c
[Security Solution] Fix flaky policy tests (#139660) 2022-08-30 15:01:31 -04:00
Bhavya RM
275e319406
Dashboard panel a11y tests refactoring and addition of missing tests (#139597) 2022-08-30 14:24:54 -04:00
Steph Milovic
d4f71659cb
[Security Solution] SOC Trends, secondary time range selector and stats (#139508) 2022-08-30 11:24:41 -06: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
Marshall Main
6c4c78aaea
[Security Solution][Alerts] Report error when EQL rule fails to bulk create alerts (#139499)
* Report error when EQL rule fails to bulk create alerts

* Fix bug and tests
2022-08-30 09:20:15 -07:00
Ricardo Ungureanu
c6a360d978
[Security Solution] Add Persistence to allow filter list (#139515)
* Add Persistence fields

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Colson Wilhoit <48036388+DefSecSentinel@users.noreply.github.com>
2022-08-30 10:17:36 -06:00
Marshall Main
49cfb3b07a
Set total fields limit to 10k for test archive (#139009) 2022-08-30 08:59:39 -07:00
Joe Reuter
9a248a1b15
inject theme provider into save modal root (#139685) 2022-08-30 17:14:40 +02:00
Xavier Mouligneau
b1f50300ff
[RAM] add refresh functionality to alert table (#139669)
* add refresh functionality to alert table

* add exhaustive deps

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 08:00:44 -07:00
jennypavlova
3cec0fc2fb
Fix typo in LegendControls (#139706) 2022-08-30 17:00:07 +02: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
Ying Mao
8d888be4d3
Fixing flaky test (#139662)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 10:57:12 -04:00
Tyler Smalley
26a503daa7
[docs] Removes another instance of kibCoreSavedObjectsPluginApi (#139735)
Follow-up to #139682

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-08-30 07:56:36 -07:00
Vitalii Dmyterko
eb525ce0b5
[Security solution][Detections] increases test coverage for bulk edit (#137165)
## Summary

- addresses https://github.com/elastic/kibana/issues/135201, apart from data views
- adds tests for scenarios in test plan: [internal document](https://docs.google.com/document/d/116x7ITTTJQ6cTiwaGK831_f6Ox7XB3qyLiHxC3Cmf8w/edit#)
- adds data-test-subj attributes to error toasts


### Checklist

Delete any items that are not applicable to this PR.

- [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-08-30 15:10:33 +01:00
Jonathan Budzenski
04d1ffea7e
set NODE_ENV=production for bin/* (#139649)
* Set NODE_ENV=production for bin/*

* add tests

* Revert "Set NODE_ENV=production for bin/*"

This reverts commit 8012ed6a2e.

* Revert "Revert "Set NODE_ENV=production for bin/*""

This reverts commit 2fd499c112.
2022-08-30 09:01:51 -05:00
Sean Story
53b55937d8
First pass at creating pipeline definitions (#139595)
* First pass at creating pipeline definitions

* Linting and added a real test

* fix bad import

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

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 08:42:18 -05:00
doakalexi
eee492ab7e
[ResponseOps][Connectors] Common request axios utility function across frameworks (#139549)
* Adding common axios util

* Fixing tests

* Removing patch

* Moving config to be first param
2022-08-30 09:30:46 -04:00
Andrew Tate
f9e4c64f03
[Lens] fix action menu (#139588)
* empty commit

* protect lens actions

* tighten checking logic

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2022-08-30 08:25:25 -05:00