Commit graph

42930 commits

Author SHA1 Message Date
Kibana Machine b0ca99fa08
[Dashboard] Adds migration smoke tests for TSVB panels on dashboard (#105655) (#106745)
* Adds migration smoke tests for TSVB panels on dashboard

* Adds index pattern TSVB panel

* Update 7.13.3 export

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

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-07-26 14:11:44 -04:00
Kibana Machine e103f1ae49
Display full featured header when creating policies from policy page (#106715) (#106738)
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-07-26 13:21:20 -04:00
Christos Nasikas c49c4199b8
[Cases] Fix action type naming on field mapping (#106695) (#106731) 2021-07-26 13:06:32 -04:00
Kaarina Tungseth b5c3d85982
[DOCS] Removes image from color field formatter (#106744) (#106759) 2021-07-26 13:02:28 -04:00
DeDe Morton cc0b042450
Update Fleet settings for 7.14 (#103380) (#106750)
* Update Fleet settings for 7.14

* Apply jen-huang's suggestions from code review

Co-authored-by: Jen Huang <its.jenetic@gmail.com>

* Add fixes from the review

Co-authored-by: Jen Huang <its.jenetic@gmail.com>

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-07-26 12:20:23 -04:00
Jonathan Budzenski a5e3de886f skip flaky test #106749 2021-07-26 11:08:13 -05:00
Kaarina Tungseth b57b739039
[DOCS] Updates the screenshots for Reporting and sharing (#106435) (#106747)
* [DOCS] Updates the Reporting and sharing images for 7.14

* [DOCS] Updates the screenshots for Reporting and sharing

* Adds links to anon access and reporting settings
2021-07-26 12:04:01 -04:00
Kibana Machine c59111a6b5
[Logs UI] Improve log threshold alert factory argument order (#106532) (#106720)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-07-26 15:48:25 +00:00
Kibana Machine 1b92b798ed
[Lens] Move Lens functions to common (#105455) (#106719)
* 🚚 First move batch to common

* 🚚 Second batch of move

* 🏷️ Import types only

* 🚚 Third batch

* 🚚 Fourth batch move

* 🚚 Another module moved

* 🚚 More function moved

* 🚚 Last bit of move

*  Reduce page load bundle size

* 🐛 Fix import issue

* 🐛 More import fix

*  Registered functions on the server

* 🐛 Expose datatable_column as well

*  Add server side expression test

* 🚚 Moved back render functions to public

*  Add a timezone arg to time_scale

* 🔥 Remove timezone arg

* 🔥 Remove server side code for now

* 👌 Integrated feedback

* 🚚 Move back datatable render function

* 🏷️ Fix imports

* 🏷️ Fix missing export

* 🚚 Move render functions back!

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

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-07-26 15:45:26 +00:00
Kaarina Tungseth bdceec1b39
[DOCS] Updates Canvas images for 7.14 (#106424) (#106740)
* [DOCS] Updates Canvas images for 7.14

* Fixes refresh image size
2021-07-26 11:29:41 -04:00
Kibana Machine 4b6fcd6a1f
[Fleet] Replace hash router by router with scoped history (#106267) (#106709)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-07-26 10:10:31 -04:00
Kibana Machine 92fec7cd43
adding migrateToLatest to embeddable and expressions plugins (#106207) (#106708)
Co-authored-by: Peter Pisljar <peter.pisljar@gmail.com>
2021-07-26 10:07:13 -04:00
Alexey Antonov 536e059678
[Vega, TSVB, Timeline] fix send data request twice when opening visualizations. (#106398) (#106687)
Closes: #106398

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 10:04:31 -04:00
David Sánchez 585686821f
[Security solution] [Endpoint] Unify subtitle text in flyout and modal for event filters (#106562) (#106674)
* Unify subtitle text in flyout and modal for event filters

* Change variable name and make it more consistent with trusted apps showing subtitle only when adding event filters

* Remove old unused keys

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 10:01:54 -04:00
Stratoula Kalafateli bb559b2be0
[Pie, XY] MAkes the filter button in legend keyword accessible (#106374) (#106707)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 09:57:15 -04:00
Kibana Machine 12dd691af6
[Graph] Remove angular from inspect panel (#106368) (#106704)
* [Discover] remove angular from inspect panel

* [Graph] remove ui-ace module import

* [Graph] remove uiace angular injected module

* [Graph] remove redundant interface

* [Graph] remove ui-ace from package.json

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

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-07-26 09:48:31 -04:00
Yaroslav Kuznietsov daa98ee0c6
[Canvas] Expression image (#104318) (#106683)
* Added `expression_image` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2021-07-26 09:45:09 -04:00
Kibana Machine 9440dc0ccd
[Canvas] ElementContent refactor. (#106645) (#106703)
* Removed `recompose` in favour of `hooks`.

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

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-26 09:41:53 -04:00
Ahmad Bamieh 9790cf759b
[i18n] Test EUI i18n tokens coverage (#106377) (#106702)
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2021-07-26 09:34:47 -04:00
Aleh Zasypkin 2e80797d18
Include upcoming default values for the session timeouts in the deprecation log. (#106673) 2021-07-26 15:31:35 +02:00
Kibana Machine fc7cb7a844
[Discover][Search Sessions] force pause refresh when restoring discover state (#105743) (#106700)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-26 09:20:52 -04:00
Angela Chuang f0ba275c3f
[Security Solution][Flyout] Fix timeline action visibility and filter present on scroll (#106527) (#106692)
* fix timeline action visibility and filter present on scroll

* remove unused class

Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2021-07-26 08:08:08 -04:00
Alexey Antonov 096aaa2f06
[TSVB] fix Default index pattern is requested while it shouldnt (#106119) (#106688)
* [TSVB] fix Default index pattern is requested while it shouldnt

* update index_patterns_utils.ts

* fix wrong behaviour on no index found

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 07:54:42 -04:00
Kibana Machine fc37266aad
[Lens] Truncate field dropdown in the middle (#106285) (#106689)
* [Lens] Truncate field dropdown in the middle

* implementation

* aligning width of the elements, calculating width in canvas, serving edgecases like selected element, tests update

* revert selectedField as it doesn't solve all cases

* code review

* cr

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

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2021-07-26 07:49:12 -04:00
Ahmad Bamieh 51a5f79af1
[i18n] [7.x] Integrate 7.14.0 Translations (#106682) 2021-07-26 07:08:08 -04:00
Kibana Machine 8ba446f488
Datasource refactored from recompose to hooks. (#106640) (#106679)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-26 06:53:53 -04:00
Kibana Machine edbc78d604
[Canvas] Datasource/index refactor. (#106643) (#106678)
* Refactored from `recompose` to `hooks`.

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

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-26 06:51:32 -04:00
Dima Arnautov 525f424335
[ML] Alerting rule for Anomaly Detection jobs monitoring (#106084) (#106675)
* [ML] init job health alerting rule type

* [ML] add health checks selection ui

* [ML] define schema

* [ML] support all jobs selection

* [ML] jobs health service

* [ML] add logger

* [ML] add context message

* [ML] fix default message for i18n

* [ML] check response size

* [ML] add exclude jobs control

* [ML] getResultJobsHealthRuleConfig

* [ML] change naming for shared services

* [ML] fix excluded jobs filtering

* [ML] check for execution results

* [ML] update context fields

* [ML] unit tests for getResultJobsHealthRuleConfig

* [ML] refactor and job ids check

* [ML] rename datafeed

* [ML] fix translation messages

* [ML] hide non-implemented tests

* [ML] remove jod ids join from the getJobs call

* [ML] add validation for the tests config

* [ML] fix excluded jobs udpate

* [ML] update jobIdsDescription message

* [ML] allow selection all jobs only for include

* [ML] better ux for excluded jobs setup

* [ML] change rule type name

* [ML] fix typo

* [ML] change instances names

* [ML] fix messages

* [ML] hide error callout, show health checks error in EuiFormRow

* [ML] add check for job state

* [ML] add alertingRules key to the doc links

* [ML] update types

* [ML] remove redundant type

* [ML] fix job and datafeed states check

* [ML] fix job and datafeed states check, add comments

* [ML] add unit tests
# Conflicts:
#	src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 06:29:41 -04:00
Kibana Machine a9ef943bf0
[Canvas] Register expression_functions in {expression}/public/plugin.ts. (#106636) (#106666)
* Registered `revealImageFunction` in `public/plugin`.

* Registered `shapeFunction` in `public/plugin`.

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-26 04:27:43 -04:00
Angela Chuang 8a6edd8165
[Security Solution] Flyout overview hover actions (#106362) (#106654)
* flyout-overview

* integrate with hover actions

* fix types

* fix types

* move TopN into a popover

* fix types

* fix up

* update field width

* fix unit tests

* fix agent status field
2021-07-24 06:11:37 -04:00
Yaroslav Kuznietsov 17933a559c
[7.x] [Canvas] Expression repeat image (#104255) (#106638)
* [Canvas] Expression repeat image (#104255)

* Repeat Image plugin added.
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json

* Removed not defined plugin `userSetup`.
2021-07-23 07:10:00 -04:00
Chris Cowan f276d0732a
[Metrics UI] Ensure alert dropdown closes properly (#106343) (#106635) 2021-07-23 03:15:22 -04:00
Chris Cowan 47f24e0f8e
[Metrics UI] Create functional tests for Metrics Explorer (#105869) (#106618)
* [Metrics UI] Create saved view tests for Metrics Explorer

* Adding basic functionality tests

* Adding missing metric test

* Adding chart customizations

* Fixing import

* Fixing es archive path

* fixing home page tests for saved objects to match metrics explorer

* Update x-pack/test/functional/apps/infra/home_page.ts

Co-authored-by: Sandra Gonzales <neptunian@users.noreply.github.com>

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sandra Gonzales <neptunian@users.noreply.github.com>
2021-07-22 20:57:49 -04:00
Kibana Machine cb0373b273
[Uptime] [User experience] prevent search input focus loss (#106601) (#106615)
* user experience - preserve focus on search input when clicked

* dismiss popover on escape and input blur

* adjust types

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-07-22 20:30:14 -04:00
Frank Hassanabad 94fc5d1139
[Security Solutions][Detection Engine] Creates an autocomplete package and moves duplicate code between lists and security_solution there (#105382) (#106612)
## Summary

Creates an autocomplete package from `lists` and removes duplicate code between `lists` and `security_solutions`
* Consolidates different PR's where we were changing different parts of autocomplete in different ways.
* Existing Cypress tests should cover any mistakes hopefully

Manual Testing:
* Ensure this bug does not crop up again https://github.com/elastic/kibana/pull/87004
* Make sure that the exception list autocomplete looks alright

### 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

# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
2021-07-22 20:13:58 -04:00
Kibana Machine 50b9784dd7
[Fleet] OpenAPI add specs for all missing routes from #79574 (#106594) (#106611)
## Summary
Add OpenAPI specs for all the missing routes mentioned in https://github.com/elastic/kibana/issues/79574

- [x] `/settings` [commit](da25a6091d)  & [PR docs](http://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/jfsiii/kibana/79574-missing-from-openapi/x-pack/plugins/fleet/common/openapi/bundled.json#operation/get-settings)
- [x] `/outputs` ef14345871 & 0c1be7eae0 [PR docs start here](http://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/jfsiii/kibana/79574-missing-from-openapi/x-pack/plugins/fleet/common/openapi/bundled.json#operation/get-output)
- [x] `/epm/packages/{pkgName}/stats` [commit](7d98448287) & [PR docs](http://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/jfsiii/kibana/79574-missing-from-openapi/x-pack/plugins/fleet/common/openapi/bundled.json#operation/get-package-stats)



### Checklist
- [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-07-22 20:02:49 -04:00
debadair 5b89600f61
[DOCS] Removed obsolete UA info. (#106620) (#106625) 2021-07-22 16:42:15 -07:00
Tim Sullivan bbd2c35828
[7.x] [Reporting] Unskip failing ES promotion tests (#106304) (#106453)
* [Reporting] Unskip failing ES promotion tests (#106304)

# Conflicts:
#	x-pack/test/reporting_api_integration/reporting_and_security/__snapshots__/download_csv_dashboard.snap

* fix for 7.x
2021-07-22 19:20:12 -04:00
Kibana Machine db64776ca0
[Security Solutions] Fixes exception lists to be able to filter on os type (#106494) (#106597)
## Summary

Fixes https://github.com/elastic/kibana/issues/102613, and targets `7.14.0` as a blocker/critical

Previously we never fully finished the plumbing for using the `os_types` (operating system type) in the exception lists to be able to filter out values based on this type. With the endpoint exceptions now having specific selections for os_type we have to filter it with exceptions and basically make it work.

Some caveats is that the endpoints utilize `host.os.name.casless` for filtering against os_type, while agents such as auditbeat, winlogbeat, etc... use `host.os.type`. Really `host.os.type` is the correct ECS field to use, but to retain compatibility with the current version of endpoint agents I support both in one query to where if either of these two matches, then that will trigger the exceptions.

* Adds e2e tests
* Enhances the e2e tooling to do endpoint exception testing with `os_types`.
* Adds the logic to handle os_type
* Updates the unit tests

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-07-22 17:12:45 -04:00
Kibana Machine d28b7a4ef9
[Fleet] OpenAPI - add missing routes and clean up names, types, etc (#106464) (#106540)
### Add specs for several missing routes
See additions in `openapi/entrypoint.yaml`

- `/agents/{agentId}/reassign`
- `/agents/bulk_reassign`
- `/agents/bulk_unenroll`
- `/package_policies/delete`

### Add enum of string values for delete package response
See 5c04dfc

### Fixed inaccurate operation spec
spec for `delete-agent-policy` operation currently shows it accepting an array of ids`agentPolicyIds: string[]`  and returning an array of results, but it actually accepts a single `agentPolicyId: string` id an returns a single object

### Internal changes
#### Better / more consistent operation names
e.g.

```diff
-  operationId: post-agent-policy
+  operationId: create-agent-policy
```
and 
```diff
-  operationId: put-agent-policy-agentPolicyId
+  operationId: update-agent-policy
```

#### Better schema titles
e.g.
```diff
- title: UpdatePackagePolicy
+ title: Update package policy
```

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-07-22 13:49:54 -07:00
spalger 78b3b3b98b Revert "[i18n] [7.x] Integrate 7.14.0 Translations (#106359)"
This reverts commit 4d356ed432.
2021-07-22 13:47:56 -07:00
Michael Dokolin 6d85bd9efd
[Reporting] Fix the delete button in the reporting management dashboard (#106016) (#106590)
* Fix the delete button in the reporting management dashboard
* Update delete button copy for consistency
2021-07-22 16:39:16 -04:00
Tim Sullivan d5067d4291
[Reporting] Update kibana.json files with owner information (#106463) (#106588) 2021-07-22 16:31:45 -04:00
Kibana Machine 358f139892
[Fleet] Fix flickering while opening add agent flyout with a policy (#106546) (#106575)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-07-22 15:17:16 -04:00
Kibana Machine 96f2392fad
[Fleet] Tighten up agent monitoring permissions (#105419) (#106571)
* Prepare code for multiple datasets

* Add specific datasets

* Add endpoint monitoring datasets

* Add auditbeat and consolidate lists

Co-authored-by: Jen Huang <its.jenetic@gmail.com>

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-07-22 15:06:43 -04:00
Kibana Machine 1c46f5e328
[CTI] adds performance improvements to threat match event query (#106150) (#106564)
Co-authored-by: Ece Özalp <ozale272@newschool.edu>
2021-07-22 14:14:14 -04:00
Kibana Machine 54a018b188
[Security_Solution][RAC] - Update flyout table design (#105996) (#106493)
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2021-07-22 17:54:15 +00:00
Kibana Machine 483a5ef77b
Fix doc on ok rule status (#106545) (#106583)
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-07-22 13:50:22 -04:00
James Rodewig 126bb2ed88
[DOCS] Update Watcher reference (#106565) (#106577)
Kibana Alerting is now the preferred method for alerting in Elastic. To avoid confusion, we should use "Watcher" and avoid terms like "Elasticsearch alerting."

This updates a reference on the Alerting page. Relates to https://github.com/elastic/elasticsearch/pull/75220
2021-07-22 13:30:18 -04:00
Kibana Machine 6779604ccd
[Security Solution] fix metadata api tests (#106340) (#106560)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-07-22 13:22:51 -04:00