Commit graph

3089 commits

Author SHA1 Message Date
Scotty Bollinger 5feca52dea
[Enterprise Search] Migrate Kibana plugin to TS project references (#87683)
* [Enterprise Search] Migrate Kibana plugin to TS project references

Part of #80508

* Add charts and un-comment added ‘features’

Also alphabetize.

* Uncomment recently added security and spaces

* Add last remaining reference

* Add shared typings to cover svgs

* Include package.json for version.ts

* REvery adding package.json to include

This did not fix the issue

* Add correct references
2021-01-29 11:43:34 -06:00
Nathan Reese ad8a2fb920
[Maps] Implement searchSessionId in MapEmbeddable (#89342)
* [Maps] Implement searchSessionId in MapEmbeddable

* clean up

* update method name

* fix _unsubscribeFromStore subscription

* fix unit test

* add maps assertion to send_to_background_relative_time functional test

* fix functional assertion

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 10:28:48 -07:00
Christiane (Tina) Heiligers 98b80484b5
Converts painlessLab to a TS project reference (#89626) 2021-01-29 09:47:15 -07:00
Devon Thomson 1fc45a7c37
Fix Lens Save and Return Removing Tags (#89613)
* use last saved tag ids in save and return...
2021-01-29 09:59:05 -05:00
Christiane (Tina) Heiligers 5c45e7dfcf
Migrates watcher to a TS project ref (#89622)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 07:48:51 -07:00
ymao1 049135192e
[Alerting] Search alert (#88528)
* Adding es query alert type to server with commented out executor

* Adding skeleton es query alert to client with JSON editor. Pulled out index popoover into component for reuse between index threshold and es query alert types

* Implementing alert executor that performs query and matches condition against doc count

* Added tests for server side alert type

* Updated alert executor to de-duplicate matches and create instance for every document if threshold is not defined

* Moving more index popover code out of index threshold and es query expression components

* Ability to remove threshold condition from es query alert

* Validation tests

* Adding ability to test out query. Need to add error handling and it looks ugly

* Fixing bug with creating alert with threshold and i18n

* wip

* Fixing tests

* Simplifying executor logic to only handle threshold and store hits in action context

* Adding functional test for es query alert

* Types

* Adding functional test for query testing

* Fixing unit test

* Adding link to ES docs. Cleaning up logger statements

* Adding docs

* Updating docs based on feedback

* PR fixes

* Using ES client typings

* Fixing unit test

* Fixing copy based on comments

* Fixing copy based on comments

* Fixing bug in index select popover

* Fixing unit tests

* Making track_total_hits configurable

* Fixing functional test

* PR fixes

* Added unit test

* Removing unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 07:45:00 -05:00
Marco Liberati 9733d2fdaa
[Lens] Use datagrid with resizable columns for datatable (#88069)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 12:09:26 +01:00
Jean-Louis Leysens 5f8f21bce5
[ILM] Basic a11y tests (#88445)
* cleaning up unused types and legacy logic

* added new relative age logic with unit tests

* initial implementation of timeline

* added custom infinity icon to timeline component

* added comment

* move timeline color bar comment

* fix nanoseconds and microsecnds bug

* added policy timeline heading, removed "at least" copy for now

* a few minor changes

 - fix up copy
 - fix up responsive/mobile first view of timeline
 - adjust minimum size of a color bar

* minor refactor to css classnames and make trash can for delete more prominent

* added delete icon tooltip with rough first copy

* added smoke test for timeline and how it interacts with different policy states

* update test and copy

* added basic a11y tests for ILM policy list view and create/edit policy view

* remove unused import

* remove old svg file

* remove old _timeline.scss file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 10:22:56 +01:00
Pete Harverson 827446bfcf
[ML] Stabilize accessibility tests for data frame analytics pages (#89423)
* [ML] Stabilize accessibility tests for data frame analytics pages

* [ML] Remove snapshot test after opening index pattern modal

* [ML] Remove snapshot test when index pattern modal opens

* [ML] Add back snapshot test at index pattern modal step
2021-01-29 09:15:45 +00:00
Oliver Gupte 8e57b63deb
[APM] fixes incorrect values in service overview throughput chart (#89348)
* [APM] fixes incorrect values in service overview throughput chart
2021-01-28 18:17:09 -08:00
Yuliia Naumenko 4de729f3c3
[Event Log] Added KQL queries support for Event Log API. (#89394)
* [Event Log] Added KQL queries support for Event Log API.

* refactored to use core.elasticsearch.client

* Fixed tests

* removed get index pattern for event log

* Fixed tests

* Fixed due to comments.
2021-01-28 11:19:59 -08:00
Mike Côté da8ce374cf
Make xpack.actions.rejectUnauthorized setting work (#88690)
* Remove ActionsConfigType due to being a duplicate

* Fix rejectUnauthorized not being configured

* Move proxySettings to configurationUtilities

* Fix isAxiosError check to code

* Add functional test

* Remove comment

* Close webhook server

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-28 13:44:25 -05:00
Candace Park 074003d4b4
[Security Solution][Endpoint][Admin] Ransomware card (#87945)
* [Security Solution][Endpoint][Admin] Ransomware card, package policy 7.12 migration
2021-01-28 13:35:06 -05:00
Dario Gieselaar cd9c79bec0
[APM] Add skip() method to registry.when (#89572)
Closes #89431.
2021-01-28 17:43:51 +01:00
Christiane (Tina) Heiligers 681b2397c6
Migrates license_management to a TS project ref (#89472) 2021-01-28 07:39:21 -07:00
Anton Dosov 07b210e42d
[Search Sessions] Improve session restoration back button (#87635) 2021-01-28 09:54:26 +01:00
spalger 4fc49ece4d skip flaky suite (#86950) 2021-01-27 20:02:12 -07:00
Wylie Conlon 445cb2ef87
[Lens] Fix crash in transition from unique count to last value (#88916)
* [Lens] Fix transition from unique count to last value

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 18:44:17 -05:00
Ryland Herrick 740155e214
Address intermittent test failure (#89367)
After observing the conditions when this test fails, it appears that
some (but not all) signals are available. As these signals are generated by a
rule via a bulk create, the odds of us retrieving signals in the middle
of that bulk creation is very slim (but not impossible).

The crux of the error here was: we wait for signals to be generated, but
not the ones that we need. Specifically, we are waiting for a single
signal to be available, but since we are asserting on sequences of
signals, we need several to be available to us.

While not perfect (because the signals we receive are not technically
guaranteed to be sequence signals), increasing the number of signals
that we wait for before proceeding should be sufficient to prevent this
failure state. In debugging, it was observed that every test returning
9-10 signals succeeded, while it was possible for the test to return
only one signal and fail.
2021-01-27 13:08:53 -06:00
Kerry Gallagher 42a9490e7b
[Logs UI] Display category in anomalies table (#88677)
* Add category pattern to anomalies table
2021-01-27 17:58:06 +00:00
Quynh Nguyen da9ad2ade4
[ML] Add embedded map to geo_point fields for Data Visualizer (#88880) 2021-01-27 11:39:50 -06:00
Ester Martí Vilaseca 289ca57bb5
[Metrics UI] Fix Host Overview boxes in Host Detail page (#89299)
* change from type:gauge to type:top_n in inventory models

* Add test for hostSystemOverview metric

* fix lint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 17:27:34 +01:00
Ahmad Bamieh 82902e8918
[Telemetry] Settings Collector: redact sensitive reported values (#88675) 2021-01-27 17:57:53 +02:00
Alison Goryachev 007e7e4506
[Upgrade Assistant] Migrate server to new es-js client (#89207) 2021-01-27 10:22:36 -05:00
Rudolf Meijering c8afae8a51
Enable v2 so migrations, disable in FTR tests (#89297)
* Enable v2 so migrations, disable in FTR tests

* Disable v2 migrations for ui_settings integration tests

* Disable v2 migrations for reporting without serucity api integration test
2021-01-27 12:13:15 +01:00
Anton Dosov b8947e3e15
[Search Sessions] Make search session indicator UI opt-in, refactor per-app capabilities (#88699) 2021-01-27 11:52:13 +01:00
Dario Gieselaar 053628cae8
[APM] Optimize API test order (#88654)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-27 09:54:56 +01:00
Rashmi Kulkarni 87992d01da
Watcher -functional xpack test using test_user with specific permissions. (#89068)
* fixes https://github.com/elastic/kibana/issues/74449

* watcher test with specific permissions

* adding the false parameter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 12:49:44 -08:00
Nathan Reese 3938fa67ad
[Maps] allow saving maps to dashboards (#88759)
* [Maps] allow saving maps to dashboards

* update saveMap functional test method

* update tags functional test

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 10:35:57 -07:00
Joe Reuter a4c884b92b
tsconfig file for lens (#89135) 2021-01-26 16:48:47 +01:00
Patrick Mueller 14fa82dc54
[alerts] adds support for index threshold index param string type (#88540)
resolves https://github.com/elastic/kibana/issues/68575

The index threshold alert defines an `index` parameter which is
typed as `string | string[]`.  However the UI for this alert has
been typing it as only `string[]`.

This PR changes the UI to work with an incoming string value for
this parameter.  If the parameter is edited in the UI, it will always
be set as an array, even if there is only one element.
2021-01-25 16:43:46 -05:00
Nathan Reese 15a45e8c38
[Maps] fix users without access to Maps should not have the option to create them (#88830)
* [Maps] fix users without access to Maps should not have the option to create them

* fix test message

* wrap add geo field trigger in show capabilities check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:25:52 -07:00
Alison Goryachev edb5e35151
[Painless Lab] Update server to use new es-js client (#88704) 2021-01-25 13:26:53 -05:00
Tiago Costa 342f9fbac1
skip failing es promotion suite (#89181) 2021-01-25 17:11:52 +00:00
Tiago Costa 592d79c210
skip failing es promotion suite (#89180) 2021-01-25 17:07:13 +00:00
Alison Goryachev 43db7e365f
[Search Profiler] Migrate server to new es-js client (#88725) 2021-01-25 11:27:59 -05:00
Pierre Gayvallet 93c46f5dfc
Remove tag name validation (#88800)
* Remove tag name validation

* remove i18n key

* add FTR test on searching for tag with special chars in name
2021-01-25 15:29:10 +01:00
Thom Heymann aeb6df30d5
Update user management page (#87133)
* Update user management page

* Fixed i18n errors

* Fix linting errors

* Add ids required for accessability

* Added suggestions from code review

* Fix test errors

* Fix types in fleet

* fix translations

* Fix i18n

* Added suggestions from code review

* Fix i18n errors

* Fix linting errors

* Update messaging

* Updated unit tests

* Updated functional tests

* Fixed functional tests

* Fix linting errors

* Fix React warnings

* Added suggestions from code review

* Added tests and renamed routes

* Fix functional tests

* Simplified API integration tests

* Updated copy based on writing suggestions

* Fixed unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 13:51:57 +00:00
Tiago Costa a5bb86482d
skip flaky suite (#89069) 2021-01-25 13:49:20 +00:00
Marco Liberati 99ffbbe357
[Lens] Restore a11y flacky tests (#88954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:46:23 +01:00
Tiago Costa 50d8c69ea8
skip flaky suite (#88639) 2021-01-25 13:36:38 +00:00
Joe Reuter 9d7cac76f5
increase timeout on graph test for cloud (#88612) 2021-01-25 11:26:30 +01:00
Joe Reuter 02f24de899
[Lens] Add drag drop tests (#88660) 2021-01-25 11:25:46 +01:00
Kevin Logan 49d95f6fb1
[Fleet] Add updateFleetRoleIfExists() in order to update fleet_enroll permissions if role already exists (#88000)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-22 12:12:59 -05:00
Matthew Kime ae0bd2fbba
Add runtime fields to index patterns and searchsource (#88542)
* Add runtime fields to index patterns and searchsource
2021-01-21 14:10:19 -06:00
Nicolas Chaulet 88be8a7148
[Fleet] Remove support for shared_id during enrollment (#88897) 2021-01-21 13:42:39 -05:00
Dario Gieselaar fde408545d
decorateSnapshotUi: get file from stacktrace (#88950) 2021-01-21 18:16:04 +01:00
Angela Chuang 92f0b7cade
[Security Solution] integration test failure on kpi hosts and kpi network (#88870)
* integration test failure

* integration test failure

* integration test failure

* kpi_network integration test failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 15:55:31 +00:00
Spencer 208ae0d2a4
[functional_cors] use pre-defined unique port in CI (#88919)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-21 08:34:03 -07:00
Gidi Meir Morris c89f1f18d3
[Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669)
When something causes an exception in `TaskRunner.markTaskAsRunning()` its execution fails, but this happens before we update the SO, which means that this failure does not count towards the `attempts` on the task. Task Manager will continue to try running this task for ever.

This PR increments the `attempts` when a failure occurs during `TaskRunner.markTaskAsRunning()` to ensure such a task doesn't continue to run to infinity.
Note that this fix will not affect `scheduled` tasks, as they are designed to _ignore_ their `attempts` and run for ever. In such a case this task will continue to consume Task Manager resources until canceled, but these failures will be logged and could be identified when needed.
2021-01-21 14:04:42 +00:00