Commit graph

43446 commits

Author SHA1 Message Date
Frank Hassanabad
4021576436
[Security Solution][Detection Engine] Adds runtime field tests (#101664)
## Summary

Adds runtime field tests with skips around the tests that we do not support just yet.

* Adds tests around corner cases involving ".", "..", ".foo", "foo.", etc...
* Adds tests around overriding values from the runtime fields within the source document
* Adds tests around ambiguity for when we override an array in a runtime field
* Fixes minor wording around previous tests
* Fixes one line string when we do testing in one area

### 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-06-08 17:31:54 -06:00
Alexander Wert
6c02081ed7
Added APM PHP agent to the list of agent names (#101062)
* Added APM PHP agent to the list of agent names to include it into the agent telemetry collection

* put php label into alphabetical order

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-09 01:13:47 +02:00
Brian Seeders
e2d75c2b47
[CI] Restore old version_info behavior when .git directory is present (#101642) 2021-06-08 19:03:32 -04:00
Nicolas Chaulet
8c2c83cb7d
[Fleet] Add fleet server telemetry (#101400) 2021-06-08 18:55:48 -04:00
Oliver Gupte
ff0349d048
[APM] Syncs agent config settings to APM Fleet policies (#100744)
* [APM] Syncs agent config settings to APM Fleet policies (#95501)

* fixes eslint issues

* fixes malformed line comment

* - consolidated logic that applies agent configurations to package policy objects
- update package policy agent_configs to include etag, agent.name, and change settings -> config

* Synchronizes agent configs whenever configuration is deleted.

* PR feedback

* nest agent_config within `apm-server` in the package policy input

* nests agent_config under the requried 'value' property of config['apm-server']
in order to pass validation checks

* - externalizes getApmPackagePolicies for reusability
- parallelizes operations for improved performance

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 18:52:49 -04:00
Spencer
f466ebf1a3
[esArchiver] drop support for --dir, use repo-relative paths instead (#101345)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 17:37:42 -04:00
spalger
686ade7808 Revert "[xpack/test] restore incremental: false in ts project"
This reverts commit 3c68a0c810.
2021-06-08 14:26:26 -07:00
Kevin Logan
8699803255
[Security Solution] Remove Host Isolation feature flag (#101655) 2021-06-08 17:17:19 -04:00
spalger
3c68a0c810 [xpack/test] restore incremental: false in ts project 2021-06-08 13:30:42 -07:00
gchaps
87dde4cb2d
[DOCS] Adds link to video landing page (#101413) 2021-06-08 13:17:59 -07:00
Quynh Nguyen
65b8dda157
[ML] Move Index Data Visualizer into separate plugin (Part 1) (#100922)
* [ML] Add index visualizer

* [ML] Readd support for global state

* [ML] Add time buckets & fix dependencies

* [ML] Working ver

* [ML] Add back and boolean support

* [ML] Remove old files inside ml

* [ML] Rename files

* [ML] Move field type icon

* [ML] Create new folder structure

* [ML] Organize index_data_visualizer

* [ML] Move types into index_data_visualizer folder

* [ML] Move more files into file_data_visualizer

* [ML] Move more files into index_data_visualizer

* [ML] Add new data visualizer model

* [ML] Remove getVisualizerFieldStats which is not used by dv

* [ML] Delete redundant folder

* [ML] Copy old data visualizer routes to new plugin

* [ML] Remove old routes

* [ML] Disable for ml job cards tests for now

* [ML] Remove todos

* [ML] Move the toast error to the UI component

* [ML] Fix map styling

* [ML] Add runtime_mappings for internal/file_upload/time_field_range

* [ML] Move routes into folder

* [ML] Update permissions

* [ML] Update texts

* [ML] Update schemas import and api get_field_stats

* [ML] Reorg folders into common

* [ML] Update types & tests

* [ML] Update internal/data_visualizer permissions and action panel tests

* [ML] Update imports after #100863

* [ML] Fix CI

* [ML] Rename folder from file_data_visualizer to data_visualizer

* [ML] Rename i18n ids

* [ML] Update fileDataVisualizer -> dataVisualizer dependency name in ml plugin

* [ML] Remove ml prefix in data test subjs

* [ML] Fix settings and docs

* [ML] Update plugin description

* [ML] Remove mlContext dependency completely

* [ML] Set query to optional

* Revert "[ML] Update plugin description"

This reverts commit 4ab1a25c

* [ML] Update plugins list docs

* [ML] Fix types and i18n

* [ML] Revert ml data test subj/class name changes

* [ML] Split up data visualizer model, remove Logger

* [ML] Remove empty file and indexPatternFieldEditor

* [ML] Move imports of file_upload

* [ML] Update plugin dependencies

* Re-add missing data_visualizer.json

* Remove capabilities in data_visualizer

* Fix test subjs

* Update ownership for data_visualizer and file_upload code to be ml

* Update estypes after 98266

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 14:50:14 -05:00
Stacey Gammon
8aa370ba3b
Improve security plugin return types (#101492)
* Add explicit security types

* Remove sessionTimeout, seems unused

* add comments

* Add comments and fix test since removing the unused APIs

* remove unused import

* wording cleanup

* Export some types that are part of the public API but not exported

* more improvements for api docs

* update security docs

* Update x-pack/plugins/security/public/nav_control/nav_control_service.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/nav_control/nav_control_service.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/plugin.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/plugins/security/public/plugin.tsx

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* remove unneccessary readonly prefix

* Update all api docs

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-06-08 14:05:14 -04:00
Spencer
bdafd27e19
[ts] migrate x-pack/test to composite ts project (#101441)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 12:54:05 -04:00
Jason Stoltzfus
a9e64abe8c
[App Search] Updated Search UI to new URL (#101320) 2021-06-08 12:42:50 -04:00
Lisa Cawley
59dae3defd
[ML] Add popover help in Single Metric Viewer (#101446) 2021-06-08 09:37:50 -07:00
Felix Stürmer
664cc5f163
[Logs UI] Fix applying a filter from the log entry detail flyout (#101011)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 18:29:50 +02:00
Angela Chuang
6e514d4f5c
disable Add to favorites button for Elastic templates (#101471)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 17:24:04 +01:00
Nathan Reese
1c225d71a8
[Maps] fix EMS Boundaries with joins not rendering (#101604)
* [Maps] fix EMS Boundaries with joins do not rendering

* make newData required
2021-06-08 10:18:53 -06:00
Paul Tavares
7b2c03f2a6
[Security Solution][Endpoint] Set Endpoint.configuration and Endpoint.state optional in endpoint Metadata (#101592)
* make `Endpoint.configuration` and `Endpoint.state` optional in the Host Metadata
* Set types in generator to also be optional
2021-06-08 12:13:16 -04:00
Christos Nasikas
13e20e7887
[Cases] Performance and RBAC improvements (#101465)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 19:01:33 +03:00
Tyler Smalley
ec212c0618
[es-archiver] Use alias for Kibana mappings (#101537)
In 7.x, when saved objects point to an index and not an alias it will
assume it's pre-6.8 and perform a legacy migration. This causes issues
with the removal of oss builds. This update prevents that from happening
by using an alias.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 08:48:43 -07:00
Stacey Gammon
356b7d6c92
Add ssl instructions to example alerting plugin (#101529)
* Update documentation.tsx

* Update documentation.tsx

* Update documentation.tsx

* fix type issue

* Noticed a lack of a space in the screenshot
2021-06-08 11:43:16 -04:00
Thomas Watson
9acbce963b
Upgrade cheerio from v0.22.0 to v1.0.0-rc.9 (#101394) 2021-06-08 17:40:25 +02:00
Pierre Gayvallet
ebdda9e110
Propagate request cancelation though basePath proxy (#101561)
* bump `@hapi/h2o2` to `9.1.0`

* add unit test
2021-06-08 17:27:27 +02:00
Caroline Horn
51e2da9630
[Stack Management] Converted to use KibanaPageTemplate (sort of) (#101335)
* Just replace the old wrapper and uses the `solutionNav` prop
* Examples of: Empty Page, Error state, Page Header, and Split Panel
2021-06-08 11:25:52 -04:00
gchaps
08ff557ca6
[DOCS] Updates search for relevance doc (#101439)
* [DOCS] Updates search for relevance doc

* [DOCS] Better explanation of multi-column sorting

* [DOCS] Fixes typo
2021-06-08 08:06:44 -07:00
Jen Huang
0894f67df9
[Fleet] Fix packages being upgraded accidentally after adding to policy (#101542) 2021-06-08 07:56:48 -07:00
Yuliia Naumenko
ff0bcea337
[Alerting UI] Fixed broken ES Index action type validation. (#101504)
* [Alerting UI] Fixed broken ES Index action type validation.

* Revert unnecesary changes
2021-06-08 07:54:49 -07:00
Quynh Nguyen
c2fe9413e4
[ML] Fix missing overflowY in Anomaly charts embeddable (#101404)
* [ML] Add requestAnimationFrame and dd back overflowY auto

* [ML] Remove request

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 09:22:29 -05:00
Pete Hampton
f0e2a50da4
Collect additional fields for alert telemetry. (#101578) 2021-06-08 09:51:31 -04:00
Scotty Bollinger
c1924c38ef
[Enterprise Search] Refactor Role mappings landing pages for both products (#101534)
* Add constants and type

* Add RoleMappingsHeading component

I toyed with trying to make a shared component between the Role mappings and Users sections since they both have the same layout, but the need to have all of the conditional copy and button text just seemed too messy, so I opted to share this component between the two products and will make a UsersHeading component in a future PR

* Remove action from table

This is now in the RoleMappingsHeading component from the previous commit

* Remove empty states

Also removed the add mapping button since it is in the heading component

* Remove page headings in favor of table headings

* Remove a bunch of constants and translations

* Update placeholder to match mockup
2021-06-08 08:08:45 -05:00
Mikhail Shustov
d920682e4e
Update @elastic/elasticsearch to 8.0.0-canary13 (#98266)
* bump @elastic/elasticsearch to canary.7

* address errors in core

* address errors in data plugin

* address errors in Alerting team plugins

* remove outdated messages in Lens

* remove unnecessary comments in ML

* address errors in Observability plugin

* address errors in reporting plugin

* address errors in Rule registry plugin

* fix errors in Security plugins

* fix errors in ES-UI plugin

* remove unnecessary union.

* update core tests

* fix kbn-es-archiver

* update to canary 8

* bump to v9

* use new typings

* fix new errors in core

* fix errors in core typeings

* fix type errors in data plugin

* fix type errors in telemetray plugin

* fix data plugin tests

* fix search examples type error

* fix errors in discover plugin

* fix errors in index_pattern_management

* fix type errors in vis_type_*

* fix errors in typings/elasticsearch

* fix type errors in actions plugin

* fix type errors in alerting and apm plugins

* fix type errors in canvas and cases

* fix errors in event_log

* fix type errors in ILM and ingest_pipelines

* fix errors in lens plugin

* fix errors in lists plugin

* fix errors in logstash

* fix errors in metrics_entities

* fix errors in o11y

* fix errors in watcher

* fix errors in uptime

* fix errors in upgrade_assistant

* fix errors in task_manager

* fix errors in stack_alerts

* fix errors in security_solution

* fix errors in rule_registry

* fix errors in snapshot_restore

* fix remaining errors

* fix search intergration tests

* adjust assetion

* bump version to canary.10

* adapt code to new naming schema

* use mapping types provided by the client library

* Revert "adjust assetion"

This reverts commit 19b8fe0464.

* fix so intergration tests

* fix http integration tests

* bump version to canary 11

* fix login test

* fix http integration test

* fix apm test

* update docs

* fixing some ml types

* fix new errors in data plugin

* fix new errors in alerting plugin

* fix new errors in lists plugin

* fix new errors in reporting

* fix or mute errors in rule_registry plugin

* more ML type fixes

* bump to canary 12

* fix errors after merge conflict

* additional ML fixes

* bump to canary 13

* fix errors in apm plugin

* fix errors in fleet plugin

* fix errors in infra plugin

* fix errors in monitoring plugin

* fix errors in osquery plugin

* fix errors in security solution plugins

* fix errors in transform plugin

* Update type imports for ES

* fix errors in x-pack plugins

* fix errors in tests

* update docs

* fix errors in x-pack/test

* update error description

* fix errors after master merge

* update comment in infra plugin

* fix new errors on xpack tests/

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-08 15:06:06 +02:00
Nathan L Smith
fc8ca1da63
Updates to APM alert annotations (#101106)
Make alert annotations on the latency chart show a line annotation at the beginning and have a tooltip.
2021-06-08 07:58:06 -05:00
Sergi Massaneda
b740640a2a
[Core][Navigation] Chrome nav display application deepLinks (#100590)
* chrome nav allows deepLinks

* docs updated

* use ChromeNavLink.url to call navigateToUrl

* to_nav_link test cases added for deepLink parameter

* snapshots updated

* deep nav links functional test added

* AppNavOptions type encapsulation

* docs updated

* docs for AppNavOptions

* implement navigateToApp deepLinkId option

* app searchable flag implementation

* code cleaning and test case added

* use explicit type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 14:20:39 +02:00
Peter Pisljar
15ab9d70fd
some fixes to expression tutorial (#101558) 2021-06-08 13:36:35 +02:00
Christos Nasikas
451f64bde0
[Cases] Get connector's information from actionsTypeRegistry (#101279)
Co-authored-by: Yuliia Naumenko <yuliia.naumenko@elastic.com>
2021-06-08 13:35:54 +03:00
Yulia Čech
2d3340b543
Unskip the test (#101414)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 11:38:12 +02:00
Matthias Wilhelm
65251051fd
[Discover] Deangularize discover controller (#96766)
Co-authored-by: Tim Roes <mail@timroes.de>
2021-06-08 11:27:00 +02:00
renovate[bot]
4fbb6f0baa
Update dependency @elastic/charts to v30 (master) (#101409)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2021-06-08 10:49:31 +02:00
Stacey Gammon
c489bcaa45
update api docs (#101528) 2021-06-07 17:55:35 -04:00
Devon Thomson
b3ed014c1a
[Dashboard] Rebuild State Management (#97941)
* Rebuilt dashboard state management system with RTK.
2021-06-07 15:17:24 -04:00
Stratoula Kalafateli
1cd88f4a44
[Visualize] Fixes functional tests to run for vislib and es-charts (#101461) 2021-06-07 22:10:51 +03:00
Stacey Gammon
f670fd23d6
Update api docs (#101509) 2021-06-07 15:02:57 -04:00
Nathan Reese
7033741885
[maps] fix map embeddable using separate refresh interval timer from container (#97298)
* [maps] remove refresh interval timer from MapContainer

* tslint

* use redux store to determine when loading is finished

* tslint

* tslint

* tslint

* apm tslint

* security_solution tslint

* review feedback

* remove unused file

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-07 12:31:49 -06:00
Corey Robertson
e63816577d
Adds 'event' handler for canvas expression renderers (#101502)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-07 13:50:55 -04:00
Spencer
49350b72f1
[gitignore] only ignore snapshot.js at the root (#100840)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-07 13:42:52 -04:00
Yulia Čech
f7e6bfd6de
[ILM] Split edit policy test helpers into separate files (#100807)
* Refactored edit policy actions into separate files

* Fixed types errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-07 19:31:15 +02:00
Scotty Bollinger
1e3f916cd9
[Enterprise Search] Fix edge case UI issues in Role Mapping flyouts (#101436)
* Add invalidation to Attribute Value field when empty

Also added some missed i18n strings for the form row labels

* Disable forms if attribute value is invalid

* Move error from saving role mapping to inline form error

Flash message was rendering behind flyover.
*Best to view this commit with whitespace changes hidden

* Fix i18n

Copy/Paste FTW

* Attempt at fixing lint issue

My local linter seems to be broken

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-07 12:13:02 -05:00
Pablo Machado
065e378c8f
Fix UI breaks on providing long search keyword in 'Search Box' (#101385)
Allowing words to wrap on whitespaces fixes the issue.
I also added word-break for allowing long words to wrap.
2021-06-07 12:09:38 -04:00
David Sánchez
26badfcb55
Adds css class to EuiDescriptionListDescription in order to break word on exception details card (#101481) 2021-06-07 17:12:53 +02:00