Commit graph

17212 commits

Author SHA1 Message Date
Felix Stürmer 2392b4f24a
[Logs UI] Improve log threshold alert factory argument order (#106532)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 15:26:39 +02:00
Marco Liberati 3c6b85469b
[Lens] Move Lens functions to common (#105455)
* 🚚 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>
2021-07-26 15:26:29 +02:00
Nicolas Chaulet 8924ff3219
[Fleet] Replace hash router by router with scoped history (#106267) 2021-07-26 07:50:29 -04:00
Dmitry Tomashevich 2bb1309514
[Graph] Remove angular from inspect panel (#106368)
* [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>
2021-07-26 14:27:07 +03:00
Yaroslav Kuznietsov cf1761c65a
[Canvas] ElementContent refactor. (#106645)
* Removed `recompose` in favour of `hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 14:23:32 +03:00
Marta Bondyra 91aa2bb8ec
[Lens] Truncate field dropdown in the middle (#106285)
* [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>
2021-07-26 11:32:00 +02:00
Yaroslav Kuznietsov 3027999435
[Canvas] Expression image (#104318)
* Added `expression_image` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 11:48:45 +03:00
Yaroslav Kuznietsov 89b8dc6095
Datasource refactored from recompose to hooks. (#106640)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 11:34:38 +03:00
Yaroslav Kuznietsov 293a6d6c42
[Canvas] Datasource/index refactor. (#106643)
* Refactored from `recompose` to `hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-26 11:33:37 +03:00
David Sánchez 1d9ec12b5b
[Security solution] [Endpoint] Unify subtitle text in flyout and modal for event filters (#106562)
* 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>
2021-07-26 09:41:07 +02:00
Byron Hulcher f7a308859f
[App Search] New Add Domain Flyout for Crawler (#106102)
* Added /api/app_search/engines/{name}/crawler/domains to Crawler routes

* New AddDomainLogic

* New AddDomainFormSubmitButton component

* New AddDomainFormErrors component

* New AddDomainForm component

* New AddDomainFlyout component

* Add AddDomainFlyout to CrawlerOverview

* Use exact path for CrawlerOverview in CrawlerRouter

* Clean-up AddDomainFlyout

* Clean-up AddDomainForm

* Clean-up AddDomainFormSubmitButton

* Extract getErrorsFromHttpResponse from flashAPIErrors

* Clean-up AddDomainLogic

* Remove unused imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-25 10:53:17 -04:00
Steph Milovic c0ceb06f4b
[Security Solution] UEBA Spacetime Project (#104973)
Merging with known issues documented here: https://github.com/elastic/kibana/issues/106648
2021-07-23 09:49:55 -05:00
Yaroslav Kuznietsov 3e4b64b779
[Canvas] Expression repeat image (#104255)
* Repeat Image plugin added.
2021-07-23 11:29:06 +03:00
Dominique Clarke a8da74df56
[Uptime] monitor list layout fix (#106159)
* update monitor list component to hide downtown history and accordion toggle in medium and large screens

* force page headings with flex content to wrap

* adjust types

* adjust variable naming for uptime monitor list

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 21:58:22 -04:00
Chris Cowan bda98e70f2
[Metrics UI] Ensure alert dropdown closes properly (#106343) 2021-07-22 18:21:14 -07:00
Chris Cowan 75d4250fd4
[Metrics UI] Create functional tests for Metrics Explorer (#105869)
* [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>
2021-07-22 15:37:25 -07:00
Dominique Clarke 62b81093f5
[Uptime] [User experience] prevent search input focus loss (#106601)
* user experience - preserve focus on search input when clicked

* dismiss popover on escape and input blur

* adjust types
2021-07-22 18:10:54 -04:00
John Schulz 02e8e7f55c
[Fleet] OpenAPI add specs for all missing routes from #79574 (#106594)
## 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
2021-07-22 17:44:33 -04:00
Ahmad Bamieh dbfca5c0a0
[i18n] Test EUI i18n tokens coverage (#106377) 2021-07-23 00:26:54 +03:00
Dominique Clarke a9d645410e
[Observability] adjust FieldValueSuggestions test to prevent flakiness (#106420) 2021-07-22 16:11:03 -04:00
Frank Hassanabad 0a5c96b117
[Security Solutions] Fixes exception lists to be able to filter on os type (#106494)
## 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
2021-07-22 12:54:40 -06:00
Frank Hassanabad cd667d06bc
[Security Solutions][Detection Engine] Creates an autocomplete package and moves duplicate code between lists and security_solution there (#105382)
## 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
2021-07-22 12:44:54 -06:00
Michael Dokolin e952f9a135
[Reporting] Fix the delete button in the reporting management dashboard (#106016)
* Fix the delete button in the reporting management dashboard
* Update delete button copy for consistency
2021-07-22 20:22:05 +02:00
Michael Olorunnisola f30cfd4f7a
[Security Solution][Flyout] Fix timeline action visibility and filter present on scroll (#106527)
* fix timeline action visibility and filter present on scroll

* remove unused class
2021-07-22 19:20:55 +02:00
Nicolas Chaulet 1dd77f227e
[Fleet] Fix flickering while opening add agent flyout with a policy (#106546) 2021-07-22 12:58:49 -04:00
Alejandro Fernández Gómez 9255c586fc
[Fleet] Tighten up agent monitoring permissions (#105419)
* 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>
2021-07-22 09:49:36 -07:00
Ece Özalp 14ca699c48
[CTI] adds performance improvements to threat match event query (#106150) 2021-07-22 11:52:03 -04:00
Dima Arnautov 10ef0e9e3e
[ML] Alerting rule for Anomaly Detection jobs monitoring (#106084)
* [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
2021-07-22 17:30:41 +02:00
Jonathan Budzenski ba2915e54f Revert "[Security solution] [Endpoint] Unify subtitle text in flyout and modal for event filters (#106401)"
This reverts commit 7f758731ae.
2021-07-22 10:18:19 -05:00
Angela Chuang 745db3063a
[Security Solution] Flyout overview hover actions (#106362)
* 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-22 16:11:32 +01:00
Joey F. Poon 5b0d679c60
[Security Solution] fix metadata api tests (#106340) 2021-07-22 10:04:49 -05:00
James Gowdy d9e236b052
[ML] Jobs import and export (#101037)
* [ML] Jobs import and export

* adding dfa job import/export

* job id validation

* fixing conflicts

* adding index pattern validation

* updates to job list

* validation changes

* refactoring job id editing

* validating check

* file read error

* translation ids

* duplicate translation id

* small fix

* updating route and schema

* code clean up

* catching and displaying job creation errors

* useMemo for notifications

* small refactor

* cleaning up types

* adding job import success toast

* adding exporting toast

* small changes based on review

* adding loading spinner

* changing util files to services

* code changes baased on review

* adding missing bind change

* file rename

* adding confirm for tab changes

* adding destination index checks

* grouping import errors

* fixing translation ids

* fixing dest index update

* small changes based on review

* renaming exported file name

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:57:20 +01:00
Yaroslav Kuznietsov 4c3a3977d4
[Canvas] Dropdown filter refactor (#105707)
* Refactered from `recompose` to `react hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 17:53:26 +03:00
Wylie Conlon 9616a55f81
[Lens] Add render complete tags to empty states (#106163)
* [Lens] Add render complete tags to empty states

* Fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 10:50:44 -04:00
David Sánchez 7f758731ae
[Security solution] [Endpoint] Unify subtitle text in flyout and modal for event filters (#106401)
* 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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 16:42:18 +02:00
Michael Olorunnisola 2905aed6fb
[Security Solution][RAC] - Change json view tab name to json (#106524) 2021-07-22 10:40:02 -04:00
John Schulz a9743715d6
[Fleet] OpenAPI - add missing routes and clean up names, types, etc (#106464)
### 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
```
2021-07-22 09:50:23 -04:00
Chris Cowan d921df04c9
[Metrics UI] Increase number of saved objects fetched to 1000 (#106310) 2021-07-22 06:44:34 -07:00
Jean-Louis Leysens 385b6588ff
[Reporting] Only show migration callout to authzd users (#105181)
* wrapped deprecations endpoints in authz wrapper

* remove unused import

* added KibanaProvider interface

* removed second call of "handler" and moved api functional test to authd version of supertest

* fix api integration tests

* added api integration test for authzd users

* do not check for privileges if security is disbaled

* run organize imports

* updated jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:37:00 +02:00
Jean-Louis Leysens 58e2dd328e
[Reporting] Add deprecation notice to the upgrade assistant (#104303)
* add deprecation notice to the upgrade assistant

* fix types and update jest snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 15:36:40 +02:00
Yaroslav Kuznietsov d5b5a425a1
[Canvas] Number ui argument refactor. #105720 (#105721)
* Refactored `number` arg view from `recompose` to `hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 16:19:17 +03:00
Felix Stürmer 1a7469f756
[Logs UI] Index reason in log threshold executor (#106291) 2021-07-22 15:06:36 +02:00
Ahmad Bamieh a428492d3c
[i18n] Integrate 7.14.0 Translations (#106361) 2021-07-22 09:00:34 -04:00
Alejandro Fernández Gómez a397e0f60a
[Logs UI] Prevent the "Alerts and rules" context menu from sticking (#106408) 2021-07-22 14:46:41 +02:00
Tiago Costa 1002125238
skip flaky suite (#106388) 2021-07-22 13:36:03 +01:00
mgiota eaa6dcb579
[RAC] [Metrics UI] Register Inventory rule types with new RAC rules registry (#105706)
* WIP: register inventory metric threshold as lifecycle rule

* fix inventory executor error

* save alerts into ES

* temp

* basic format reason for inventory threshold

* clean up, fix i18n error and temporarily remove types

* delete serialized params

* include group name in the reason

* cleanup

* link to default metrics page

* grab the value and threshold for the inventory item

* fix typo

* fix check types

* remove threshold and currentValue, the reason field will contain this info for combined conditions

* remove thereshold and value from the reason, soon will be replaced by indexed reason field

* remove unnecessary export

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:46:40 +02:00
Yuliia Naumenko 4c7037b44a
[Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology. (#106382)
* [Alerting] Renamed Alerting framework AlertsClient to RulesClient according to the new terminology.

* fixed path

* fixed type checks

* fixed type checks
2021-07-22 02:29:29 -07:00
Felix Stürmer a09fcf017d
[Security Solution] Fix timelineEventsAll field expansion for heterogeneous document schemas (#105452)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:07:58 +02:00
Christos Nasikas e383b57ba1
[Alerting] Pass EuiIcon props to connectors logos (#106449)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-22 11:15:50 +03:00
Shahzad 48e6195dc1
[Exploratory View] Multi Series View (#103855)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2021-07-22 10:14:43 +02:00