Commit graph

13505 commits

Author SHA1 Message Date
Joe Reuter cea39d90b7
close popover on repeated button click (#87834) 2021-01-13 13:31:24 +01:00
Nicolas Chaulet 156fb3d33c
[Fleet] Only display logs UI for agent >= 7.11 (#87926) 2021-01-13 07:30:21 -04:00
Dominique Clarke ff17581f45
[Uptime] update synthentics screenshot preview images (#87602)
* update PingTimestamp caption and add spinner for loading images

* use FETCH_STATUS to determine render state for PingTimestamp

* add tests for ping timestamp

* adjust ping timestamp caption

* update screenshot to use EuiImage

* remove deprecated translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 04:48:37 -05:00
Madison Caldwell af02f3d83f
[Security Solution][Threshold Rules] Fixes for 7.11 (#88120)
* Use OR for threshold timeline query (not AND)

* Speed up aggregatable fields filter with mutation
2021-01-13 04:44:08 -05:00
Marius Dragomir a98052bc72
dismiss telemetry banner for ems_test (#88096)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 10:29:16 +01:00
Dima Arnautov 1f131b250f
[Transform] Functional tests for latest method (#86966)
* [ML] create latest transform from index pattern

* [Transform] refactor, tests for saved search

* [Transform] cloning tests for latest transform

* [Transform] fix cloning test, add editing tests

* [Transform] fix typo

* [Transform] disable cloning tests

* [Transform] add assertion for selected tranform function

* [Transform] disable editing tests

* [Transform] disable editing and cloning tests for latest function
2021-01-13 10:05:05 +01:00
Shahzad ba05b7b007
fix waterfall scroll color for dark theme (#87833) 2021-01-13 09:18:45 +01:00
Tyler Smalley d306c85d03 skip flaky suite (#88130) 2021-01-12 21:18:29 -08:00
Oliver Gupte ed531bb4c2
Closes #85328. Adds 'repositionOnScroll' prop to expression popovers (#88085) 2021-01-12 21:15:27 -08:00
Devin W. Hurley e339018285
[Security Solution] [Detections] Fix bug to allow lower privileged users to close alerts (#87761)
* remove canUserCRUD from signal actions and remove refresh param from open_close_signals route. 'refresh' requires maintenance / manage / all privileges for signals index

* adds 'maintenance' to privileges route

* fix unit teset typing

* update tests, updated lists e2e tests since it relies on the readPrivileges function of SIEM so any changes to the expected response from there must also be changed in the lists privileges route

* update scripts roles to include maintenance for roles that do not have privileges higher than 'maintenance'

* fix open-close signals integration test
2021-01-12 21:16:06 -05:00
Patryk Kopyciński 500edba975
[Security Solution] Fix Investigate in Timeline Threshold rule signal… (#87907)
* [Security Solution] Fix Investigate in Timeline Threshold rule signals logic

* fix tests

* PR comments

* Fix positioning of FieldsBrowser

* update cypress tests
2021-01-12 20:56:08 -05:00
Yuliia Naumenko fb67443e6d
[EventLog] Added event log API to get events for multiple saved objects. (#87596)
* Added alerting API to get all active instances

* modofied event log findEventsBySavedObject to support bulk ids, renamed to findEventsBySavedObjectIds

* fixed faling typechecks

* fixed crash on zpd/api/event_log/alert/84c00970-5130-11eb-9fa7/_find for non existing id

* fixed faling typechecks

* fixed faling typechecks

* fixed due to comments

* fixed due to comments

* fixed failing test

* fixed due to comments
2021-01-12 16:25:23 -08:00
Gidi Meir Morris 5e4402c374
[Alerting] Shift polling interval by random amount when Task Manager experiences consistent claim version conflicts (#88020)
This PR Introduces a `pollingDelay` which is applied to the polling interval whenever the average percentage of tasks experiencing a version conflict is higher than a preconfigured threshold (default to 80%).
2021-01-12 23:34:07 +00:00
Thomas Neirynck 14d96da750
[Maps] Show plus sign for term join metrics (#88049) 2021-01-12 17:01:55 -05:00
Nathan L Smith d53f832f16
TS project references for translations plugin (#88022)
Observability has this as a dependency, so adding TS project references in service of that.
2021-01-12 15:07:27 -06:00
Justin Kambic 1094274556
[Uptime] Remove prototype overwrite in unit test (#73709)
* Remove prototype overwrite in unit test.

* Wrap calls to prototype functions with jest.spyOn.

* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* Move updated test files to correct locations.

* Move other test file to correct location.

* Revert unintended changes from merge.

* Revert unintended changes from merge.

* update mock core

* combine wrappers into one custom render function

* Move mock helpers to helper file. Update snapshots.

* Refactor tests to use RTL over enzyme.

* Refactor \`PingHistogram\` component tests to prefer RTL to Enzyme.

* Drop obsolete snapshot file.

* Remove obsolete file leftover from merge error.

* Fix outdated import path.

* Prefer custom render to vanilla.

* Fix formatting issue uncovered by unit test, and update test assertion.

* Add test for single location.

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 15:08:10 -05:00
Melissa Alvarez 1ab46afef1
disable actions if no permissions (#88034) 2021-01-12 15:02:32 -05:00
Oliver Gupte 440123e958
Closes #86989. Disable caching for fetched custom links (#87932) 2021-01-12 12:02:18 -08:00
Constance 04739d851c
[App Search] Add AnalyticsChart component to EnginesOverview (#87752)
* Set up Kibana charts plugin dependency

- required for using shared colors/themes/etc.
- see https://github.com/elastic/kibana/tree/master/src/plugins/charts

* Add reusable AnalyticsChart component

+ util for converting data from our server API to data that Elastic Charts can use

* Update EngineOverview to use AnalyticsChart

+ remove now-unnecessary endDate value (we don't really need it just IMO)

* [PR feedback] Return type

* [Self feedback] naming - remove pluralization
2021-01-12 11:43:01 -08:00
Quynh Nguyen a1c2422261
[ML] Fix inconsistent padding for long top_values in Data Visualizer & hover color of expanded row (#87937) 2021-01-12 12:57:21 -06:00
Thomas Neirynck d321950b93
[Maps] Support geometry-collection (#87867) 2021-01-12 13:49:59 -05:00
Chris Roberson 33603e749d
[Monitoring] Cloud property not properly passed when no monitoring data found (#87649)
* Fix parameter usage

* Fix up incorrect usage again

* Add another check

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 13:15:08 -05:00
Joe Portner 07a3756a62
Create Spaces OSS plugin (#87585) 2021-01-12 12:26:40 -05:00
Tiago Costa 5fb5605ffa
chore(NA): move missing monitoring plugin tests out of __tests__ folder (#88016) 2021-01-12 17:23:11 +00:00
Tiago Costa 47cac6c401
chore(NA): move missing canvas plugin tests out of __tests__ folder (#87898) 2021-01-12 17:21:16 +00:00
Jen Huang 44ccf285e5
Move creation of state container to render-time in order to initialize state from URL correctly (#87955) 2021-01-12 09:15:07 -08:00
Patrick Mueller 8fe204fcab
[actions] fixes action proxies to set the right agent based on target url (#86415)
Previously, the http and https proxy agents used by actions were created based
on the protocol of the proxy URL itself - if the proxy was an http URL, both
the generated http and https agents supplied to axios were actually both
http proxy agents; if the proxy was an https URL, both the generated http and
https agents supplied to axios were both https proxy agents.

This PR changes so that both an http and https proxy agent are created and
assigned as the appropriate agents for axios.  Similar changes were made to
the slack action, which does not directly use axios.
2021-01-12 11:54:40 -05:00
Chris Roberson a21ad0d126
[Monitoring] Remove deprecated watcher-based cluster alerts (#85047)
* First draft

* Update to use actual API

* Remove this file

* Update translation key

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:48:18 -05:00
Chris Roberson fc994dfe97
Update logstash files to ts where we read from source (#86787)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:47:49 -05:00
Chris Roberson 04d4d8523d
Use fetchClustersRange (#87882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:47:30 -05:00
Anton Dosov 86d53b683e
[Search Sessions][Discover] Send to background integration improvements and fixes (#87311) 2021-01-12 17:45:37 +01:00
Lisa Cawley 78dea4f03f
Use documentation link service for security links (#87409) 2021-01-12 08:40:10 -08:00
Alejandro Fernández Gómez 1a9836b296
[Logs UI] Add <LogStream/> documentation to the infra Storybook (#87169)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-01-12 17:33:50 +01:00
Joe Reuter 807e8bdeb2
Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
Alexey Antonov 0b7e83f736
[TSVB] Allow custom label for fields via index pattern field management (#84612)
* [TSVB] Allow custom label for fields via index pattern field management

Closes: #84336

* replace saveObject, elasticsearch client to new one

* fix CI

* update schema

* fix Top Hit

* some changes

* partially move getting fields into client side

* fix PR comments

* fix issue with getting fields

* move SanitizedFieldType to common types

* fix issue on changing index pattern

* fix issue

* fix regression

* some work

* remove extractFieldName, createCustomLabelSelectHandler

* request/response processors should be async

* some work

* remove tests for createCustomLabelSelectHandler

* fix table

* fix placeholder

* some work

* fix jest

* fix CI

* fix label for table view

* test: visualize app visual builder switch index patterns should be able to switch between index patterns

* fix functional tests

* fix sorting

* fix labels for entire timerange mode

* add createFieldsFetcher method

* table view - fix pivot label

* fix PR comments

* fix issue with selecting buckets scripts

* fix types

* Update create_select_handler.test.ts

* fix PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 19:28:45 +03:00
igoristic ef441cca24
Alerts Status on clusters listing page (#87969) 2021-01-12 11:06:48 -05:00
Davis Plumlee 25bac19321
[Security Solution][Detection Rules] Fixes Threshold rule schema validator (#87946) 2021-01-12 08:57:06 -07:00
Bohdan Tsymbala 752a2bd943
Extracted some parts of server side validation from schema into shared space. Changed the schema structure a bit to avoid casting inside validation code. (#87523) 2021-01-12 16:31:35 +01:00
Anton Dosov d3303f28bb
[Search] Search Sessions with relative time range (#84405) 2021-01-12 14:51:04 +01:00
Paul Tavares 02695ef5ad
[Fleet] Show Count of Agent Policies on Integration Details (#86916)
* component to show count of agent policies for integration
* API route and service to return stats of package usage
2021-01-12 07:56:05 -05:00
Aleh Zasypkin 31e66979b9
Do not embedd credentials into ES URL and enable anonymous tests. (#87987) 2021-01-12 13:51:54 +01:00
Dima Arnautov 83e8fe8ef0
[Transform] Show destination index mapping warning for the latest transform (#87858)
* [Transform] show callout for the latest transform

* [Transform] fix flex styles

* [Transform] change to vertical layout, update warning message

* [Transform] fix messages
2021-01-12 13:03:47 +01:00
Joe Reuter 94b02d97ed
[Lens] Implement deep linking and embedding (#84416) 2021-01-12 10:45:53 +01:00
Andrew Goldstein 46083c0973
[Security Solution] Accessibility (a11y) fixes (#87783)
## [Security Solution] Accessibility (a11y) fixes

This PR fixes the following accessibility (a11y) issues:

- Fixes an issue that prevented tabbing through all elements on pages with embedded Timelines
- Fixes an issue where the Timeline data providers popover menu was not displayed when Enter is pressed
- Fixes an issue where duplicate draggable IDs caused errors when re-arranging Timeline columns
- Fixes an issue where Timeline columns could not be removed or sorted via keyboard
- Fixes an issue where focus is not restored to the `Customize Columns` button when the `Reset` button is pressed
- Fixes an issue where filtering the `Customize Event Renderers` view via the input cleared selected entries
- Fixes an issue where the active timeline button wasn't focused when Timeline is closed
- Fixes an issue where the `(+)` Create / Open Timeline button's hover panel didn't own focus
2021-01-12 01:02:53 -07:00
Tiago Costa 5dca937c01
chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888)
* chore(NA): move reporting plugin test fixtures out of __tests__ folder

* fix(NA): fix a test import
2021-01-12 02:44:07 +00:00
Tiago Costa e8285668a7
chore(NA): move missing apm plugin tests out of __tests__ folder (#87894) 2021-01-12 02:43:03 +00:00
Dominique Clarke ca31bd80b6
[Uptime] Tests/uptime testing utils (#87650)
* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* update mock core

* combine wrappers into one custom render function

* split enzyme helpers and rtl helpers into different files and adjust types

* adjust types

* spread core on render function

* remove unnecessary items from MLJobLink test

* update use_monitor_breadcrumbs test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 20:02:23 -05:00
Phillip Burch f54f155305
[Metrics UI] Add APM, uptime and create alert links to overlay (#87883)
* Add APM, uptime and create alert links to overlay

* Remove unused i18n
2021-01-11 18:36:39 -06:00
Nathan Reese ddf1b67559
[Maps] move map embeddable display properties to map settings (#86395)
* [Maps] move map embeddable display properties to map settings

* update uptime EmbeddedMap

* tslint

* more cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:18:01 -07:00
Patryk Kopyciński 1e7c3f88ec
[Security Solution] Fix sorting on unmapped fields in Timeline Events… (#87241)
* [Security Solution] Fix sorting on unmapped fields in Timeline Events table

* set unmapped_type to the column type

* add missing types

* Update saved_object_mappings.ts

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-01-11 18:09:38 -05:00