Commit graph

45038 commits

Author SHA1 Message Date
Nicolas Chaulet
3438a70ec3
[Fleet] Replace usages of EuiCodeEditor by CodeEditor (#107434) 2021-08-05 11:40:40 -04:00
Dima Arnautov
39bd188818
[ML] Delayed data test for Anomaly Detection jobs health rule type (#107183)
* [ML] enable test selection

* [ML] executor update for annotations

* [ML] update unit tests

* [ML] fix i18n

* [ML] update schema

* [ML] fix ts

* [ML] account for docs count, update unit tests

* [ML] update translation strings

* [ML] add types

* [ML] fetch the latest annotation sorted by modified_time

* [ML] getDelayedDataAnnotations

* [ML] update unit tests

* [ML] set default number of docs to 1, update schema validation

* [ML] getDelayedDataLookbackTimestamp

* [ML] filter null values, update unit tests

* [ML] account for query delay, refactor with memoize

* [ML] update unit test

* [ML] remove previousStartedAt

* [ML] filter based on the job config

* [ML] fix tests

* [ML] add maps

* [ML] combine filters

* [ML] move range query inside of a filter

* [ML] filter out jobs with missing datafeed

* [ML] resolveLookbackInterval only from jobs with datafeeds

* [ML] do not show an error on empty time interval

* [ML] add help tooltips

* [ML] update description for the datafeed check
2021-08-05 10:31:51 -04:00
Anton Dosov
af3a976e17
[FieldFormats] Break from data plugin (#107173) 2021-08-05 16:25:22 +02:00
Ahmad Bamieh
b6a9f0323b
[Telemetry] Add telemetry.sendUsageTo config (#107396) 2021-08-05 17:15:37 +03:00
David Sánchez
d56b22fccb
[Security solution][Endpoint] Users can filter trusted apps by policy name (#106710)
* Allow users select policies from a dropdown

* Policy filters are passed throguh the API call and the results are now filtered by policy

* Moved policies selector inside search component and triggers search only when refresh button is clicked

* Fixes tests

* Triggers policy filter when policy is selected. Also fix unit test because now policies are loaded at the trusted apps list

* Renamed components and added an index.ts for the exports

* Adds unit tests for policies selector component

* Fix unit tests and changed camelcase by snack case for url params

* adds multilang

* Fixes i18n keys

* Move mock resonse to the mocks file

* Use string templating in test

* remove === true from boolean comparison

* Set function in useCallback. Renames some variables and types. Use reourceState helper function to get the prev state. Use generated data for policies in tests

* Fix ts errors

* Removes unused type and fix type name for Item

* Puts exclude clause on policy dropdown behind a feature flag

* Adds missing feature flags in some tests and in global reducer

* Fix test adding useExperimentalValua mock for FF

* Wrapp handlers in a useCallback in order to prevent useless rerenders

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-05 15:08:30 +02:00
Tre
3b387e2619
[Archive Migration] x-pack..discover/default (#107665)
* [Archive Migration] x-pack..discover/default

* Fix load to unload in after hook.
2021-08-05 13:39:13 +01:00
Anton Dosov
9d42d670e1
[FieldFormats] Unskip url field formatter test (#107651) 2021-08-05 10:28:11 +02:00
Madison Caldwell
d34cd91fc5
[Security Solution][RAC] Flatten alert fields (#107581)
* incremental changes

* No more type errors

* Type guards

* Begin adding tests

* Flatten

* Reduce scope of branch

* Remove extraneous argument to filter_duplicate_signals
2021-08-05 08:09:31 +02:00
Tiago Costa
d187259836
chore(NA): moving @kbn/server-route-repository to babel transpiler (#107571)
* chore(NA): moving @kbn/server-route-repository to babel transpiler

* chore(NA): update types
2021-08-05 08:05:34 +02:00
Tyler Smalley
ee6ffc03bd
Removes unused @babel/plugin-transform-modules-commonjs dependency (#107250)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 18:56:18 -04:00
Yuliia Naumenko
30f68dda66
[Alerting UI] Added visual indicator when enable switched click is processed on the server side. (#107272)
* [Alerting UI] Added visual indicator when enable switched click is processed on the server side.

* fixed rule details

* fixed functional tests

* fixed unit tests

* fixed due to comments

* fixed due to comments
2021-08-04 14:42:49 -07:00
Tiago Costa
cfdd92cd29
chore(NA): moving @kbn/telemetry-tools to babel transpiler (#107540) 2021-08-04 22:31:18 +01:00
Jonathan Budzenski
5e5580e687
[package testing] Create target dir before copying artifacts (#107679)
gsutil requires a directory to exist before copying artifacts in.
Prior to https://github.com/elastic/kibana/pull/107217, a
.bootstrap-cache file was written, providing the directory for these
writes.  Now that we're no longer writing this file, we need to ensure
it exists.
2021-08-04 17:12:35 -04:00
Dmitry Shevchenko
0f2d837a2b
Integrate RuleExecutionLogClient with new rule types (#107624) 2021-08-04 21:28:12 +02:00
Domenico Andreoli
9b55868a15
Revert "fixes the provider name flexibility" (#107649)
The heuristic to select provider name `cloud-basic` breaks the CCS
integration tests, where protocol is https, and actually is not needed in
any of the automated tests.

For a better solution we need @MadameSheema to be back from PTO.

This partially reverts commit 9f2d9d4d54.
2021-08-04 12:23:12 -07:00
Alexey Antonov
f62a0a1f76
[Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard (#106845)
* [Lens] Synchronize cursor position for X-axis across all Lens visualizations in a dashboard

Closes: #77530

* add mocks for active_cursor service

* fix jest tests

* fix jest tests

* apply PR comments

* fix cursor style

* update heatmap, jest

* add tests

* fix wrong import

* replace cursor for timelion

* update tsvb_dashboard baseline

* fix CI

* update baseline

* Update active_cursor_utils.ts

* add debounce

* remove cursor from heatmap and pie

* add tests for debounce

* return theme order back

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 22:20:03 +03:00
Diana Derevyankina
2605bd81cf
[Timelion Viz] Add functional tests (#107287)
* First draft migrate timelion to elastic-charts

* Some refactoring. Added brush event.

* Added title. Some refactoring

* Fixed some type problems. Added logic for yaxes function

* Fixed some types, added missing functionality for yaxes

* Fixed some types, added missing functionality for stack property

* Fixed unit test

* Removed unneeded code

* Some refactoring

* Some refactoring

* Fixed some remarks.

* Fixed some styles

* Added themes. Removed unneeded styles in BarSeries

* removed unneeded code.

* Fixed some comments

* Fixed vertical cursor across Timelion visualizations of a dashboad

* Fix some problems with styles

* Use RxJS instead of jQuery

* Remove unneeded code

* Fixed some problems

* Fixed unit test

* Fix CI

* Fix eslint

* Fix some gaps

* Fix legend columns

* Some fixes

* add 2 versions of Timeline app

* fix CI

* cleanup code

* fix CI

* fix legend position

* fix some cases

* fix some cases

* remove extra casting

* cleanup code

* fix issue with static

* fix header formatter

* fix points

* fix ts error

* Fix yaxis behavior

* Fix some case with yaxis

* Add deprecation message and update asciidoc

* Fix title

* some text improvements

* [Timelion Viz] Add functional tests

* Add more complex cases for _timelion

* Update test expected data

Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-04 21:56:46 +03:00
Nicolas Chaulet
04f0774977
[Fleet] Fix integrations count in category facet (#107652) 2021-08-04 14:33:36 -04:00
Michael Dokolin
1e8bc92f2f
[Reporting] Abstract reports storage (#106821)
* Add duplex content stream
* Add content stream factory
* Move report contents gathering and writing to the content stream
* Update jobs executors to use content stream instead of returning report contents
2021-08-04 19:52:28 +02:00
Christos Nasikas
a89f6a1944
[Cases] Fix connector's icon bug (#107633) 2021-08-04 19:21:25 +03:00
Kaarina Tungseth
5d71c9922b
[DOCS] Updated 8.0.0-alpha1 breaking changes with master (#107063) 2021-08-04 11:12:11 -05:00
Angela Chuang
60f8da452f
[Security Solution] Add more actions to alerts flyout (#105767)
* add investigate in timeline action to flyout

* close context menu on item clicked

* add investigate in timeline

* add investigat in timeline button

* fix failing tests

* add alerts status actions

* update unit test

* export alerts actions from hook

* add disable props

* add case action items

* clean up

* split alert status hook and hide add to case action

* add useHoseIsolationAction hook

* move out take action dropdown

* refeactor hooks to only manage one thing

* apply hooks to alerts table

* clean up

* fix unit tests

* replace euiCodeBlock

* take actions from case

* fetch ecs in flyout footer

* move fetch alert ecs to container

* add AddExceptionModalWrapperData interface

* fix cypress tests

* update snapshot for json view

* fix cypress test

* update AddEndpointExceptionComponent

* fix data retrieved from event details

* fix host isolation action

* use endpointAlertCheck

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-08-04 16:49:42 +01:00
Tim Sullivan
e69d57cf77
[Reporting] revive "existing indices" functional test (#107537)
* [Reporting] revive "existing indices" functional test

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

* fix test service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:37:09 -04:00
Lisa Cawley
67634ecfef
[DOCS] Remove redundant attributes (#107583) 2021-08-04 08:29:26 -07:00
Christos Nasikas
c4e374f512
[Cases] Fix config bug (#107637) 2021-08-04 18:22:25 +03:00
gchaps
b52a2b8052
[DOCS] Updates description of (#107604) 2021-08-04 07:43:00 -07:00
Jonathan Buttner
96f27b9899
[Cases] Migrate connector ID to references (#104221)
* Starting configure migration

* Initial refactor of configuration connector id

* Additional clean up and tests

* Adding some tests

* Finishing configure tests

* Starting case attributes transformation refactor

* adding more tests for the cases service

* Adding more functionality and tests for cases migration

* Finished unit tests for cases transition

* Finished tests and moved types

* Cleaning up type names

* Fixing types and renaming

* Adding more tests directly for the transformations

* Fixing tests and renaming some functions

* Adding transformation helper tests

* Adding migration utility tests and some clean up

* Begining logic to remove references when it is the none connector

* Fixing merge reference bug

* Addressing feedback

* Changing test name and creating constants file
2021-08-04 10:39:21 -04:00
David Sánchez
ec4de0d95e
[Security solution][Endpoint] Disallow list operator in event filters form (#107122)
* adds entries.list.id field in the searchable event filters fields list

* adds test case for list.id operator

* Revert "adds entries.list.id field in the searchable event filters fields list"

This reverts commit 45a66fd966.

* Revert "adds test case for list.id operator"

This reverts commit 9dba145df2.

* Disable large value list option in operators dropdown

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 15:51:24 +02:00
Tyler Smalley
7415b7a797 skip flaky suite (#107057) 2021-08-04 06:44:55 -07:00
Sandra G
b03d85a20a
[Stack Monitoring] Enable OOTB alerts in RAC page and multiple rules of a rule type (#106457)
* allow rules to be managed in RAC page

* return all rules of a rule type instead of first one

* update UI to handle multiple rule types

* add comments about creating the menus by category for alerts and rules

* fix parsing of cluster alerts
2021-08-04 09:16:52 -04:00
Mikhail Shustov
41b6a99282
Remove legacyEs test service (#107567)
* migrate uptime tests to the new client. it didn't use legacy one anyway

* remove legacyEs service
2021-08-04 14:21:35 +02:00
Andrew Wilkins
2ad7d68412
[APM] always prefer url over trasaction.page.url (#107613)
Since 7.9.0, APM Server has been copying the `transaction.page.url`
value to the ECS `url` field. We should still use `transaction.page.url`
if it exists and `url` does not (i.e. for very old docs), but we should
stop expecting it in newly written documents.
2021-08-04 20:05:14 +08:00
mgiota
36f5930a18
[Observability RAC] change alerts table filter text box placeholder (#107366)
* change alerts table filter text box placeholder

* update alerts table placeholder to use the status field

* use threshold for the alerts table placeholder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 13:36:59 +03:00
Yaroslav Kuznietsov
dbab7d9f70
[Canvas] Expression progress (#104457)
* Added `expression_progress` plugin.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-04 11:33:01 +03:00
Jason Rhodes
1186b7d7ce
Updated observability CODEOWNERS (#107606)
Some updated accuracy for stack monitoring and logs/metrics, the rest is just better organization and labelling
2021-08-04 10:09:48 +02:00
Cauê Marcondes
ca137ea44b
[APM] Services inventory: add time comparisons to match service overview design (#107094)
* adding comparison to inventory page

* new api to get detailed statistics

* show comparison data

* adding api test

* fixing unit test

* fixing ts issue

* adding loading to table

* refactoring

* fixing TS issue

* addressing PR comments

* fixing merge

* addressing PR comments

* fixing api test

* adding comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 19:15:49 -04:00
Andrew Goldstein
f4bc4d1ea4
[RAC] [TGrid] Implements sorting in the TGrid (#107495)
## Summary

This PR implements sorting in the `TGrid`, per the animated gifs below:

![observability-sorting](https://user-images.githubusercontent.com/4459398/127960825-5be21a92-81c1-487d-9c62-1335495f4561.gif)

_Above: Sorting in Observability, via `EuiDataGrid`'s sort popover_

![security-solution-sorting](https://user-images.githubusercontent.com/4459398/128050301-0ea9ccbc-7896-46ef-96da-17b5b6d2e34b.gif)

_Above: Sorting and hiding columns in the Security Solution via `EuiDataGrid`'s column header actions_

## Details

* Sorting is disabled for non-aggregatble fields
* This PR resolves the `Sort [Object Object]` TODO described [here](https://github.com/elastic/kibana/pull/106199#issuecomment-883668966)
* ~This PR restores the column header tooltips where the TGrid is used in the Security Solution~

## Desk testing

To desk test this PR, you must enable feature flags in the Observability and Security Solution:

- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:

```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```

- To desk test the TGrid in the following Security Solution, edit `x-pack/plugins/security_solution/common/experimental_features.ts` and in the `allowedExperimentalValues` section set:

```typescript
tGridEnabled: true,
```

cc @mdefazio
2021-08-03 16:41:44 -06:00
Tyler Smalley
0bbba23cc1 skip flaky suite (#106934) 2021-08-03 15:28:42 -07:00
Ece Özalp
c6a70621e9
[CTI] updates Alert Summary UI (#107081) 2021-08-03 17:47:54 -04:00
Tiago Costa
7a3436fda3
chore(NA): moving @kbn/server-http-tools to babel transpiler (#107572) 2021-08-03 16:11:54 -05:00
Tiago Costa
7d5f3a2c63
chore(NA): moving @kbn/babel-code-parser to babel transpiler (#107574)
* chore(NA): moving @kbn/babel-code-parser to babel transpiler

* chore(NA): fix package.json main field
2021-08-03 17:06:28 -04:00
Cauê Marcondes
cc014f5a56
[APM] Adding stickTo on charts and adjusting search bar breakpoints (#107433)
* adding stickTo prop to tooltip

* adjusting search bar breakpoints

* adjusting breakpoints

* addressing pr comments

* fixing ts issue

* fixing comparison size
2021-08-03 17:06:14 -04:00
Tiago Costa
4351d7c954
chore(NA): moving @kbn/es to babel transpiler (#107577) 2021-08-03 17:02:56 -04:00
Nathan Reese
946e145e51
[maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+ (#107442)
* [maps] fix More than 2 maps embeddables with geo-shape layers results in empty layers for 3+

* comment

* add unit test

* eslint
2021-08-03 14:18:24 -06:00
James Gowdy
1fbb34ad21
[ML] Disable query delay editing for non-admin users (#107517) 2021-08-03 20:40:16 +01:00
Cauê Marcondes
1ddb1eedf7
[APM] Share components across Service overview and transactions. Add time comparison to the Transactions page (#107299)
* adding comparison to transactions pages

* adding new transactions table

* adding throughput

* refactoring transacon group api

* adding missing filter

* fixing i18n

* fixing tests

* addressing PR comments

* moving table to shared folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 14:35:14 -04:00
Sergi Massaneda
b5e8db2443
[RAC] [TGrid] Bulk actions to EuiDataGrid toolbar (#107141)
* tGrid EuiDataGrid toolbar replace utilityBar

* tgrid new prop in observability

* types and translations fixes

* bulkActions props and encapsulation

* update limits

* code cleaning

* load lazy and remove export from public

* add memoization to bulk_actions

* icon change and test fixed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 14:02:44 -04:00
Dario Gieselaar
1e1d669650
[APM] Add and link to service dependencies page (#107522)
* [APM] Add and link to service dependencies page

* Update labels
2021-08-03 18:57:13 +02:00
Nathan Reese
8df883ad49
[maps] deprecate xpack.maps.showMapVisualizationTypes (#105981)
* [maps] deprecate xpack.maps.showMapVisualizationTypes in upgrade assistent

* use custom function instead of unusedFromRoot so config does not get removed

* fix i18n ids and align deprecation message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:53:15 -06:00
Madison Caldwell
8f9086b4c2
[RAC][Security Solution] Add base Security Rule Type (#105096)
* injects bulkCreate and wrapHits to individual rule executors

* WIP create_security_rule_type_factory based on Marshall's work in #d3076ca54526ea0e61a9a99e1c1bce854806977e

* removes ruleStatusService from old rule executors, fixes executor unit tests

* fixes rebase

* Rename reference_rules to rule_types

* Fix type errors

* Fix type errors in base security rule factory

* Additional improvements to types and interfaces

* More type alignment

* Fix remaining type errors in query rule

* Add validation / inject lists plugin

* Formatting

* Improvements to typing

* Static typing on executors

* cleanup

* Hook up params for query/threshold rules... includes exceptionsList and daterange tuple

* Scaffolding for wrapHits and bulkCreate

* Add error handling / status reporting

* Fixup alert type state

* Begin threshold

* Begin work on threshold state

* Organize rule types

* Export base security rule types

* Fixup lifecycle static typing

* WrapHits / bulk changes

* Field mappings (partial)

* whoops

* Remove redundant params

* More flexibile implementation of bulkCreateFactory

* Add mappings

* Finish query rule

* Revert "Remove redundant params"

This reverts commit 87aff9c810.

* Revert "whoops"

This reverts commit a7771bd392.

* Fixup return types

* Use alertWithPersistence

* Fix import

* End-to-end rule mostly working

* Fix bulkCreate

* Bug fixes

* Bug fixes and mapping changes

* Fix indexing

* cleanup

* Fix type errors

* Test fixes

* Fix query tests

* cleanup / rename kibana.rac to kibana

* Remove eql/threshold (for now)

* Move technical fields to package

* Add indexAlias and buildRuleMessageFactory

* imports

* type errors

* Change 'kibana.rac.*' to 'kibana.*'

* Fix lifecycle tests

* Single alert instance

* fix import

* Fix type error

* Fix more type errors

* Fix query rule type test

* revert to previous ts-expect-error

* type errors again

* types / linting

* General readability improvements

* Add invariant function from Dmitrii's branch

* Use invariant and constants

* Improvements to field mappings

* More test failure fixes

* Add refresh param for bulk create

* Update more field refs

* Actually use refresh param

* cleanup

* test fixes

* changes to rule creation script

* Fix created signals count

* Use ruleId

* Updates to bulk indexing

* Mapping updates

* Cannot use 'strict' for dynamic setting

Co-authored-by: Marshall Main <marshall.main@elastic.co>
Co-authored-by: Ece Ozalp <ozale272@newschool.edu>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:48:07 -04:00