Commit graph

42332 commits

Author SHA1 Message Date
Alejandro Fernández Haro 4295f85124
[flaky-test] Unskip SOM edit_saved_object tests (#97846) 2021-04-22 13:22:42 +01:00
Angela Chuang f094d9fdc2
[Security Solution] Events integration test (#97519)
* events integration test

* add constants

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 12:50:35 +01:00
Kerry Gallagher c8bd4b0bf8
Use create over update (#97818) 2021-04-22 12:24:35 +01:00
Jean-Louis Leysens fbc6eb733d
[Ingest Pipelines] Fix descriptions not showing and minor appearance tweaks (#97799)
* fix descriptions not showing and minor appearance tweaks

* remove unnecessary prop

* added jest test for presence of descriptions

* refactored variable names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 13:12:21 +02:00
Liza Katz b2a9dd12a5
[Search] Remove msearch from searchsource (#96936)
* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* delete client side legacy msearch code

* ts

* override to sync search in search source

* delete more legacy code

* ts

* delete moarrrr
2021-04-22 13:23:51 +03:00
Tim Roes 87fa92bf3a
Fix broken advanced setting i18n (#97782) 2021-04-22 10:30:53 +02:00
Pete Harverson 705feeb87b
[ML] Indicate Apache and Nginx modules as legacy versions (#97801)
* [ML] Indicate Apache and Nginx modules as legacy versions

* [ML] Edits to module titles to capitalize Filebeat
2021-04-22 09:18:01 +01:00
David Sánchez bc240f0af7
[Security Solution] User can select event from event list and create a filter (#96940)
* Initial version of event filtering form/dialog. Pending to add all redux services

* Uses redux store instead of props to get the form values

* Manage errors on redux

* Creates even filter list on service constructor

* Add os type selector depending on form parent by props. Also added create action

* Allows add exception to an event. This commit has to be reviewed and maybe it will change depending on next changes

* Fix imports because changes on ExceptionBuilder component and add needed type export

* Adds constants. Rename eventFilters to eventFilter. Add http wrapper as a hook to check if the list has been created or not

* Adds missing files on last commit.

* Relocate async resource state to be shared between different pages

* Use async resource state to manage async operations on components. Relocate initial entry status to an utils module instead of hook.

* Adds comments into redux store from component

* Fixes typechecks and wrong imports

* Fixes translations and adds subheader and description modal

* Relocates form description

* Removes unused import

* Sanitize entries before submit to remove entry.id

* Missed file on last commit

* Use specific fields for endpoint_event type builder

* Split error field for each kind of errors to prevent unexpected renders. Adds unit test for event filter form component

* Set event.kind == event by default

* Changes folder names. Add notifications when success. Remove default event.king

* Adds notifications when api error and fixed multiple notifications showed for same error

* Adds new test for event filter modal and changes component name to be consistent

* Adds unit tests for event filter notification

* Adds middleware unit tests. Also isolate common event for all tests

* Adds unit tests for event filter reducer

* Adds unit tests for event filter selector

* Fixes same key on different multilanguages. Fixes naming incoherence

* Adds feature flag for event filtering

* Fixes unit tests and weird behavior when changing items after name or comments on event filter form

* Removes unused import

* Fixes unit tests. Add imports from lists plugin. Add expects on tests. Change some names

* Renames everything from eventFilter to eventFilters (plural)

* Rename state variable

* Create hook for notifications instead of a component. Removes className from modal body.

* Updates available fields for enpoint events builder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 10:08:33 +02:00
Angela Chuang 59bd5e5b54
fix tooltip content (#97847) 2021-04-22 07:20:28 +01:00
Matthew Kime a158ee17aa
set initial STRING for confirm box (#97907)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 18:53:26 -05:00
Jason Stoltzfus 6e64e15f95
[App Search] Remove unknowns: 'allow' from enterprise_search routes (#97510)
* Remove unknown allows from enterprisesearch routes

It is a best practice to avoid `unknowns: allow` in request
body validations.

Usage of `unknowns: allow` in the App Search plugin has primarily
been to avoid creating full validation schemas, as they can often
be complex.

Rather than have a half-baked validation that uses `unknowns: allow`,
we have the option to skip parsing and validating a JSON body entirely,
and simply pass it through "as-is" to the enterprise_search server
for validation.

* Move to helper

* Swap comment block style

* PR feedback

* Update x-pack/plugins/enterprise_search/server/lib/route_config_helpers.test.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update x-pack/plugins/enterprise_search/server/lib/route_config_helpers.test.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update x-pack/plugins/enterprise_search/server/lib/route_config_helpers.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update x-pack/plugins/enterprise_search/server/lib/enterprise_search_request_handler.ts

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Better TS

* Change to TS validations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-04-21 16:53:08 -07:00
Jonathan Budzenski 9938f5c9a3
[deb/rpm] Cleanup log and pid folders on package uninstall (#97884)
This is a consistency check with elasticsearch, which removes the log
and pid folders on package uninstall.

Part of #86042
2021-04-21 19:05:18 -04:00
spalger 6077816cf7 bump version label in elastic/charts section of renovate config 2021-04-21 15:39:41 -07:00
Jonathan Budzenski cbd6bf5b4a
[cli/keystore] Transpile sources in dev (#97501)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 17:39:04 -05:00
spalger fc15032242 bump 7.x version in renovate config 2021-04-21 15:38:52 -07:00
Tyler Smalley c59d0ddeef
[kbn-es] Increase ES heap (#97905)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-04-21 18:37:44 -04:00
Melissa Alvarez 0a0fd695d3
[ML][Transform] display script_exception compile error message in wizards (#97697)
* ensure error rootCause script gets added to message

* ensure script part of error is shown in DFA wizard

* use isPopulatedObject to check for script field
2021-04-21 17:52:07 -04:00
Nicolas Chaulet ee7ba71b43
[Fleet] Always create agent policy as active (#97874) 2021-04-21 17:13:48 -04:00
Cauê Marcondes 78c0c6eb83
[APM] Adding comparison data to the dependencies table (#97843)
* adding comparison to dependencies api

* fixing client

* fixing client

* changing client
2021-04-21 16:51:04 -04:00
Cauê Marcondes e76987e13c
[APM] add comparison to Instances latency distribution (#97710)
* adding comparion data to chart

* fixing api test

* addressing comments

* refactoring
2021-04-21 16:47:03 -04:00
Marshall Main 1fb00900e1
[Security Solution][Detections] Fix flaky threshold API tests (#97768)
* Explicitly refreshes signals index for threshold api tests to prevent flakiness

* Unskip test suite
2021-04-21 16:13:15 -04:00
spalger 688bb6d3e2 remove jest-environment-jsdom-thirteen from package.json 2021-04-21 13:03:59 -07:00
John Schulz 45255425f4
Add the more explicit & actionable text listed in ticket (#97857)
## Summary
closes #92591

Create a new `HostedAgentPolicyRestrictionRelatedError` which ensures the additional text from #92591 is included in all the appropriate places, but only specified once.

#### Some current examples
 * `Cannot update integrations of hosted agent policy ${id}`
 * `Cannot remove integrations of hosted agent policy ${id}`
 * `Cannot reassign an agent to hosted agent policy ${newAgentPolicy.id}`


#### In this PR are now
 * `Cannot update integrations of hosted agent policy ${id}  in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`
 * `Cannot remove integrations of hosted agent policy ${id} in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`
 * `Cannot reassign an agent to hosted agent policy ${newAgentPolicy.id} in Fleet because the agent policy is managed by an external orchestration solution, such as Elastic Cloud, Kubernetes, etc. Please make changes using your orchestration solution.`


### 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
2021-04-21 15:52:02 -04:00
Tiago Costa 4fbb48daea
chore(NA): chore(NA): moving @kbn/std into bazel (#97771) 2021-04-21 20:50:05 +01:00
Spencer fad45022c1
[npm] upgrade all jest related dependencies (#96367)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 15:32:10 -04:00
Tim Roes 2744f70466
Remove the no longer used release-notes script (#97806)
* Remove the no longer used release-notes script

* Commit missing file
2021-04-21 20:58:39 +02:00
spalger c60411ed4a skip flaky suite (#97864) 2021-04-21 11:41:13 -07:00
Dima Arnautov 58d4334c71
[ML] UI enhancements for Anomaly detection rule type (#97626)
* [ML] update labels

* [ML] update job summary endpoint to return associated alert rules

* [ML] add alert rule icon to the table

* [ML] edit alert rules from ML UI

* [ML] register navigation

* [ML] support single job selection only

* [ML] remove groups options from the job selection

* [ML] deps on rule id to avoid re-rendering

* [ML] fix i18n

* [ML] add info message to the alert context

* [ML] fix typo

* [ML] register usage collection

* [ML] fix telemetry
2021-04-21 14:21:07 -04:00
Tiago Costa fa0c74fe30
chore(NA): adds 7.13 branch and bumps 7.x on backportrc (#97804) 2021-04-21 19:08:28 +01:00
gchaps e6e36102f0
[DOCS] Reorganizes concepts and discover sections (#97019)
* [DOCS] Reorganizes concepts and discover sections

* [DOCS] Updates time filter and saved query sections

* Update docs/discover/save-search.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* [DOCS] Updates time filter and saved query doc

* [DOCS] Updates images

* [DOCS] Adds missing images

* [DOCS] Minor edits

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2021-04-21 11:02:00 -07:00
Constance 1985e0a1c0
Improve focus UX of MultiInputRows (#97695) 2021-04-21 10:28:25 -07:00
Steph Milovic efaaa40b40
[Security Solution] [Cases] Remove dynamic mappings for 3rd party cases mappings (#97754) 2021-04-21 11:22:38 -06:00
spalger dfde5cbdf7 skip flaky suite (#97584) 2021-04-21 10:05:08 -07:00
Tre 1832259757
[QA] Switch tests to use importExport - discover (#94006)
Switch es archiver for kbn archiver everywhere possible

Partially closes #93797
2021-04-21 10:17:58 -06:00
Quynh Nguyen 47d863b0ff
[ML] Fix Anomaly Detection job model memory limit input editable when datafeed is open (#97723)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 11:16:46 -05:00
Nathan Reese 07c45e1bcf
[Maps] convert LayerControl to TS (#97728)
* [Maps] convert LayerControl to TS

* layer_control
2021-04-21 09:51:27 -06:00
Nicolas Chaulet d66147fa18
[Fleet] Update open API spec with removed agent routes (#97811) 2021-04-21 11:32:36 -04:00
ymao1 c27245b201
Removing unnecessary hit count check from es query alert (#97735)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 11:28:58 -04:00
Tyler Smalley e01d5fd255
[FTR] Disables GeoIP downloader (#97813)
A temporary workaround to the increased segment memory issues we have in
the new ES snapshots

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-04-21 08:15:38 -07:00
Pete Hampton 103fea456a
[7.13][Security Solution] Fetch detection adoption metrics (#97789)
* pushing initial experiments.

* Add name, version tags.

* Get alert count.

* Include rule type.

* Fetch cases count.

* Get all data sources working together.

* Stage work.

* Add detection adoption metrics.

* Add usage collector schema.

* Add usage collector schema.

* Update telemetry schema.

* Use let instead of const

* Fix spelling on array key.

* Update telemetry schema.

* Add unit tests.

* Fix type.

* Move types to index.

* Bug fix

* Update telemetry schema.

* Pass in signals index.

* Opps. Broke tests.

* Update.

* Fix types.

* Reflect @FrankHassanabad feedback in PR.

* Separate metric / usage telemetry code for complexity reduction.

* Add first e2e jest test.

* Add some additional tests for custom cases.

* Fix up type error.

* Update telemetry schema.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 09:09:02 -06:00
Christiane (Tina) Heiligers 4a8067bd58
[DOCS] Updates notifications lifetime advanced settings descriptions (#97692) 2021-04-21 07:55:09 -07:00
Maja Grubic 6532478ca0
[Discover] Attempt at fixing a failing test (#97790) 2021-04-21 14:08:46 +01:00
Tiago Costa ffc3db5a30
skip flaky suite (#53575) 2021-04-21 13:38:14 +01:00
Tiago Costa 4811253576
skip flaky suite (#97403) 2021-04-21 13:33:15 +01:00
Anton Dosov bd4f461c70
[Search] Unify search plugin step 1 (#95811)
Remove the defaultStrategy override
Move async search strategy to data
Move EQL search strategy to data
Move rest of common/search/session data (Moving whole search/session is blocked by security and taskManager)
2021-04-21 14:23:49 +02:00
Dima Arnautov 7405a22cf3
[ML] Add telemetry for Anomaly detection alert rules (#97727)
* [ML] register usage collection

* [ML] fix telemetry

* [ML] fix definition schema for collector

* [ML] get kibana config synchronously
2021-04-21 07:34:15 -04:00
Marta Bondyra f1747733f5
[Lens] transfer custom labels when swapping (#97612)
* [Lens] transfer custom labels when swapping

* always to default when incompatible

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 12:04:49 +02:00
Uladzislau Lasitsa 4a17123ef8
Advanced JSON input in visualize editor is always light scheme (#97232)
* Use CodeEditor from react-utils which supports dark theme instead of deprecated EuiCodeEditor

* fix CI

* Fix CI

* Fix tests

* Update monaco_editor.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 12:19:12 +03:00
Marco Liberati cb242322c1
[Lens] Improve error message for scripted (and runtime) fields (#96611)
*  Improve error message for scripted fields

* 👌 Extract nested error info

* 💄 Use word break

* ♻️ reworked code to better use data types

* 🐛 Fix i18n issue

* ✏️ Fix typo

* 📝 Update data plugin API

* 🐛 Fix react issue

*  Check more error scenarios and add tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-21 10:22:11 +02:00
Matthias Wilhelm d1387816c4
[Discover] Increase default pagination size to 100 (#97742) 2021-04-21 10:13:34 +02:00