Commit graph

41587 commits

Author SHA1 Message Date
Quynh Nguyen 0d4edb286a
[7.x] [ML] Move Index Data Visualizer into separate plugin (Part 1) (#100922) (#101665)
* Resolve merge conflicts

* Make sure CODEOWNERS file is empty
2021-06-09 17:50:33 -04:00
Kibana Machine c604c8d4f4
[Security Solution][Endpoint] Adds Endpoint Host Isolation Status common component (#101782) (#101810)
* Common component for displaying Endpoint Host Isolation status

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-09 20:31:40 +00:00
Kibana Machine e46640dd53
Upgrade ws v7.3.1->v7.4.2 and v6.2.1->v6.2.2 (#101402) (#101808)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-06-09 19:57:41 +00:00
Lisa Cawley 14abc0823b
[DOCS] Adding file upload to add data page (#101674) (#101823) 2021-06-09 12:46:55 -07:00
Kibana Machine 1dc573d6b2
[Canvas] Update slow query in sample ecommerce workpad (#100714) (#101806)
* Update slow query in sample ecommerce workpad

* Remove demodata use from sample ecomm workpad

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

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
2021-06-09 15:33:24 -04:00
Søren Louv-Jansen 5f01e726c8
[APM] Replace side nav with tabs on Settings page (#101460) (#101803)
Co-authored-by: Casper Hübertz <casper@formgeist.com>

Co-authored-by: Casper Hübertz <casper@formgeist.com>
2021-06-09 15:25:53 -04:00
Kibana Machine aa2b43dc7c
Add sh scripts with _bulk_action route usage examples (#101736) (#101792)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-06-09 13:54:21 -04:00
Kibana Machine feaa672fe4
[Uptime] Only register route in side nav if uptime show capability is true (#101709) (#101789)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-09 17:41:24 +00:00
Constance 996903c28f
[Enterprise Search] Mocks/tests tech debt - avoid hungry mocking (#101107) (#101788)
* Move enzyme & misc test helpers out of __mocks__/ and into new test_helpers/

They're not technically mocks since nothing is being mocked, so we should move them into a test_helpers folder for specificity & organization

* Move React Router mocks into its own separate folder/import

This was part of the initial feedback, that it was unclear why importing something for Kea in __mocks__/index.ts was mocking react router along for the ride. Separating this out makes things clearer and imports more explicit

+ add some handy new mock useX jest.fn()s helpers, so we're not doing `useParams() as jest.Mock` errywhere

* Move Kea & logic mocks/helpers into kea_logic subfolder
- for organization

NOTE: It can't be a plain kea/ folder because then Jest automatically mocks the `kea` module itself kea 🤦

* Fix type failures

- Caused by switch from any to unknown (changed back to any + added a .test_helper suffix exclusion for any)

* Fix Enterprise Search tests/imports

- I checked all application folders but this one, whoops

* PR feedback: comment copy

* Update tests/files added since PR open with new import locations

* Fix misc react router typing

- null not being type-able as a boolean
- forgot to remove various useParam imports after adding mockUseParams
+ misc unused kea import, probably added while debugging kea mocks
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview.test.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.test.ts
2021-06-09 13:36:05 -04:00
Kibana Machine af18596f63
[Alerting][Event log] Persisting duration information for active alerts in event log (#101387) (#101784)
* WIP

* Storing start, duration and end in alert state

* Writing to event log

* Updating unit tests

* Adding unit tests

* Fixing uuid in tests

* Updating functional test

* Adding functional test

* Removing console logs

* Fixing unit tests

* PR fixes

* Removing uuid from alert information

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-09 13:15:20 -04:00
Gidi Meir Morris 679574709c
clarify which parts of TM are experimental (#101757) (#101800) 2021-06-09 10:10:57 -07:00
Kibana Machine 69bc08ee83
Address design issues in Discover/Graph (#101584) (#101783)
* Remove Discover panel shadow

* Fix graph issues

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-06-09 13:10:07 -04:00
Anton Dosov af45343bee
[7.x] [Index Patterns] Runtime fields CRUD REST API (#101164) (#101770)
* [Index Patterns] Runtime fields CRUD REST API  (#101164)

Part of index pattern REST API
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.md

* fix bad docs merge
2021-06-09 12:37:53 -04:00
Kibana Machine e4a251d043
Optimize performance for document table (#101715) (#101774)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-06-09 12:36:21 -04:00
Kibana Machine 009a6d02be
[Fleet] Fix routing issues with getPath and history.push (#101658) (#101763)
* Fix getPath usage in Fleet app

* Fix pathname in failing test

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-09 16:17:42 +00:00
Kibana Machine 083be95600
Improve security server types (#101661) (#101767)
* Remove RecursiveReadonly wrapper on public API items

* Remove Pick and export some types that are part of the public API

* Udpate api docs

* Export API items that are part of the public API

* Add extra comments

* update api docs

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-09 16:14:49 +00:00
Kibana Machine e8d1428d0b
[Fleet] Tighten policy permissions, take II (#97366) (#101766)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
2021-06-09 16:14:12 +00:00
Kibana Machine 012d26c1a3
[ML] Add debounce to the severity control update (#101581) (#101765)
Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-06-09 12:12:59 -04:00
Kibana Machine 84e1af4ab8
[APM] Add link-to/transaction route (#101731) (#101754)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-09 11:50:58 -04:00
Kibana Machine 2098aec3f4
[APM] Visual improvements for new APM layout with left navigation (#101360) (#101747)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-06-09 11:08:27 -04:00
Yulia Čech bd7f3646c5
[ILM] Refactor types and fix missing aria labels (#101518) (#101742)
* Refactor phase types (mostly moving imports)

* Refactor phase types (mostly moving imports)

* Renamed a type for consistency and replaced more hard coded strings with types

* Fixed remaining references to the deleted MinAgePhase
2021-06-09 10:49:44 -04:00
Kibana Machine efbad21257
[Lens] New summary row feature for datatable (#101075) (#101740)
*  New summary row feature for datatable

*  Allow empty strings behind flag + tests

* 🐛 Address the transition problem + refactor

*  Add some unit tests

*  Add first functional tests

* 👌 first feedback addressed

*  Make it handle numeric array values

* 📝 Improved message

*  Fix functional test

* 🔥 Remove warning message for last value

* 🚨 Remove unused import

* 🐛 Fix a bug with last value

* 👌 Integrated feedback

* 💄 Migrated to combobox

*  Fix unit tests + restore right data-test-id

* 🏷️ Fix type issue

* 👌 Address all issues reported

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

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-09 10:32:00 -04:00
Kibana Machine 5abfeca428
Blocks save event filter with a white space name (#101599) (#101738)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-09 10:25:37 -04:00
Kibana Machine 24f99de750
Implement "select all" rules feature (#100554) (#101722)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-06-09 10:24:24 -04:00
Kibana Machine e0fb513bd1
[APM] Only register items in side nav if user has permissions to see app (#101707) (#101728)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-06-09 09:02:36 -04:00
Kibana Machine f9ca6ff932
[Security solution][Endpoint] Add back button when to the event filters list (#101280) (#101727)
* Add back button when to the event filters list. Isolated back to external app button to be used as generic component

* Adds unit tests for back button

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

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-09 08:19:54 -04:00
Kibana Machine 105a5d153a
[ML] Remove script fields from the Anomaly detection alerting rule executor (#101607) (#101716)
* [ML] remove script fields

* [ML] fix initial score

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-06-09 07:04:16 -04:00
Kibana Machine 4152284335
[Security solutions][Endpoint] Update event filtering texts (#101563) (#101713)
* Changes multilang for add endpoint event filter action on events tab

* Changes more multilangs and display name error only when needed

* Changes variable names and aria labels to be consistent with namings

* Fixes unit test due multilang changes

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-09 10:20:47 +00:00
Tyler Smalley 9838db392e [FTR] Updates esArchive paths
PR's merged after #101345

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 21:23:20 -07:00
Tyler Smalley 982feab4d3 [FTR] Updates esArchive paths
PR's merged after #101345

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 21:22:57 -07:00
Spencer bcdeccb39b
[7.x] [esArchiver] drop support for --dir, use repo-relative paths instead (#101345) (#101676)
* [esArchiver] drop support for --dir, use repo-relative paths instead (#101345)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/suggestions/suggestions.js
#	test/functional/apps/discover/_large_string.ts
#	test/functional/apps/visualize/index.ts
#	x-pack/test/functional/apps/infra/feature_controls/logs_security.ts
#	x-pack/test/functional/apps/saved_objects_management/import_saved_objects_between_versions_6.x_7.x.ts
#	x-pack/test/functional/apps/upgrade_assistant/upgrade_assistant.ts

* convert references to `saved_objects/basic` archive

* adapt other `saved_objects/*` archives

* update management/saved_obejcts/relationships archives

* replace old monitoring setup() usage

* remove reference to `empty_kibana` archive

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-08 22:45:04 -04:00
Kibana Machine 81d67b3df9
[Security Solution][Detection Engine] Adds runtime field tests (#101664) (#101689)
## 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-06-08 21:36:51 -04:00
Kibana Machine 0b6db8820a
Added APM PHP agent to the list of agent names (#101062) (#101688)
* 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>

Co-authored-by: Alexander Wert <AlexanderWert@users.noreply.github.com>
2021-06-08 21:17:19 -04:00
Kibana Machine a32629cfa2
[CI] Restore old version_info behavior when .git directory is present (#101642) (#101687)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
2021-06-08 21:10:06 -04:00
Oliver Gupte 8a21bd5da1
[APM] Syncs agent config settings to APM Fleet policies (#100744) (#101685)
* [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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 21:05:46 -04:00
Kibana Machine 7b6c599d8e
[Fleet] Add fleet server telemetry (#101400) (#101684)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-08 21:00:27 -04:00
Kibana Machine 3b8eb5337e
[Security Solution] Remove Host Isolation feature flag (#101655) (#101673)
Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-06-08 19:23:12 -04:00
gchaps 5d5194cd3c
[DOCS] Adds link to video landing page (#101413) (#101670) 2021-06-08 14:14:47 -07:00
Corey Robertson 68a8af65d5
[Canvas] Switch Canvas to use React Router (#100579) (#101659)
* Switch Canvas to use React Router

* Fix typescript errors

* Remove @scant/router from package.json

* Fix tests

* Fix functional test

* Fix functional tests

* Fix bad merge in package.json

* Cleanup from code review comments

* Fix double basepath append

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-08 16:40:43 -04:00
Stacey Gammon fba0dcc79e
Improve security plugin return types (#101492) (#101657)
* 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>
# Conflicts:
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/deprecations.mdx
#	api_docs/licensing.json
#	api_docs/lists.json
#	api_docs/triggers_actions_ui.json
#	api_docs/usage_collection.json
2021-06-08 16:26:37 -04:00
Kibana Machine 1591f39070
[es-archiver] Use alias for Kibana mappings (#101537) (#101626)
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>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-08 12:21:54 -07:00
Christos Nasikas f2a5c47484
[Cases] Performance and RBAC improvements (#101465) (#101652)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 15:05:37 -04:00
Spencer 11ecb4e6fc
[ts] migrate x-pack/test to composite ts project (#101441) (#101651)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional/page_objects/gis_page.ts
#	x-pack/test/functional/page_objects/index.ts
#	x-pack/test/functional/page_objects/reporting_page.ts
2021-06-08 15:04:53 -04:00
Angela Chuang 8855123b86
disable Add to favorites button for Elastic templates (#101471) (#101645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 14:51:54 -04:00
Lisa Cawley ab28c88c3d
[ML] Add popover help in Single Metric Viewer (#101446) (#101643) 2021-06-08 14:46:15 -04:00
Kibana Machine 93ca47b1f0
[App Search] Updated Search UI to new URL (#101320) (#101644)
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-08 14:44:41 -04:00
Kibana Machine cb04ed22ae
[Logs UI] Fix applying a filter from the log entry detail flyout (#101011) (#101641)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-08 14:32:48 -04:00
Kibana Machine 436132496c
[Maps] fix EMS Boundaries with joins not rendering (#101604) (#101636)
* [Maps] fix EMS Boundaries with joins do not rendering

* make newData required

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-08 14:21:13 -04:00
Kibana Machine 3b027da7e0
[Security Solution][Endpoint] Set Endpoint.configuration and Endpoint.state optional in endpoint Metadata (#101592) (#101634)
* make `Endpoint.configuration` and `Endpoint.state` optional in the Host Metadata
* Set types in generator to also be optional

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-08 18:17:09 +00:00
Kibana Machine 647a849d55
Add ssl instructions to example alerting plugin (#101529) (#101624)
* Update documentation.tsx

* Update documentation.tsx

* Update documentation.tsx

* fix type issue

* Noticed a lack of a space in the screenshot

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-08 17:50:24 +00:00