Commit graph

13873 commits

Author SHA1 Message Date
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
Søren Louv-Jansen 7cd1fa3167
[APM] Cleanup: Remove isValidCoordinateValue and getResponseTimeTooltipFormatter (#87836) 2021-01-11 23:43:42 +01:00
Constance cf086b678b
[App Search] Minor const cleanup (#87885)
* DRY out repeated DOCUMENTS_TITLE

* Move temporary title const's in engine folder to their own respective folders

- might as well get it set up early + prevents us from forgetting to clean this up later

* Update engine nav & engine router files
2021-01-11 13:52:24 -08:00
Dominique Clarke 02f7956db3
[Uptime] Waterfall Chart - enable timings for local files by leveraging total time (#87424)
* uptime waterfall enable timings for static files by leveraging total time

* update cases for when their is no waterfall timing available

* add showTooltip propertier to WaterfallDataSeriesConfigProperties

* remove content downloading from the legend

* add mime type to content downloading label

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:35:02 -05:00
ymao1 666af32be4
[Alerting] Showing confirmation modal on Alert Add/Edit when flyout closed without saving and changes made. (#86370)
* Adding hasChanged check and showing confirmation modal if something has changed

* Showing confirmation always on close

* Adding functional test

* Setting name and tags for APM alerts using initial values instead of setAlertProperty

* Checking for alert param changes separately

* Checking for alert param changes separately

* Fixing functional test

* Resetting initial alert params on alert type change

* Fixing duplicate import

* Cloning edited alert

* PR fixes

* PR fixes

* Updating modal wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:16:10 -05:00
Rudolf Meijering f8b1cdd81d
Prevent kibana crashing when multiple processes start APM telemetry task in parallel (#87645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 21:38:54 +01:00
Lisa Cawley a9797999a1
[ML] Use documentation link service in more ML pages (#87389) 2021-01-11 11:39:04 -08:00
Chris Roberson ff8d30bc6c
[Monitoring] Stop using constructor.name for logstash pipelines (#87386)
* Use typeString instead

* Used wrong type string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 14:32:19 -05:00
Nathan Reese 89e7cd6808
[maps] abort sync data if any data request fails (#87381)
* [maps] abort sync data if any data request fails

* review feedback

* fix broken rename of e to error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:28:24 -07:00
Kevin Logan 379f9c9646
[Security Solution] ensure that license is preserved when loading policy details (#87780) 2021-01-11 13:55:15 -05:00
Gidi Meir Morris f384c484b7
[Task Manager] adds additional polling stats to Task Manager monitoring (#87766)
Adds additional polling stats to Task Manager monitoring:

- **duration**: Running average of polling duration measuring the time from the scheduled polling cycle start until all claimed tasks are marked as running
- **claim_conflicts**: Running average of number of version clashes caused by the markAvailableTasksAsClaimed stage of the polling cycle
- **claim_mismatches**: Running average of mismatch between the number of tasks updated by the markAvailableTasksAsClaimed stage of the polling cycle and the number of docs found by the sweepForClaimedTasks stage
- **load** - Running average of the percentage of workers in use at the end of each polling cycle.
2021-01-11 18:32:24 +00:00
Chris Roberson d4b3ea9c3d
Ensure we use the right duration for messaging on this alert (#87579)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:27:32 -05:00
Justin Ibarra f12228e635
[Detection Rules] Add 7.11 rules (#87422)
* [Detection Rules] Add 7.11 rules
* add empty array for missing technique
2021-01-11 08:54:38 -09:00
Sandra Gonzales 61987df922
[Fleet] use package storage when getting a package (#85337)
* getPackageFromSource to use package storage

* fix type

* use bulkGet

* add data streams and policy templates to package info from storage

* fix merge conflict

* comment out policy_templates for now

* add policy_templates to package info, remove required inputs from parseAndVerifyPolicyTemplates

* add storage assets to cache

* tidy up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:35:11 -05:00
Cauê Marcondes e3455ce35b
[APM] latencyAggregationType is not persisted when navigation to Transaction overview to detail (#87046)
* persisting latency aggregation type

* addressing PR comments

* removing useLatencyAggregationType hook

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 18:31:16 +01:00
Tiago Costa 183cf56fcd
chore(NA): move maps plugin test fixtures out of __tests__ folder (#87764)
* chore(NA): move maps plugin test fixtures out of __tests__ folder

* chore(NA): last missing __tests__ folders renamed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:14:46 +00:00
Marco Liberati 132e85144b
[Lens] Add specific IP and Range/Interval sorting to datatable (#87006)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:51:00 +01:00
Christos Nasikas a1931acdc5
[Security Solution][Case] Attach alerts to cases: Tests (#86305)
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:44:35 +02:00
Shahzad 8d385a4ebd
[Uptime] Fix kuery bar dark theme (#87827) 2021-01-11 16:30:01 +01:00
Liza Katz 3eeec0f571
[Search] Search Sessions Monitoring Task (#85253)
* Monitor ids

* import fix

* solve circular dep

* eslint

* mock circular dep

* max retries test

* mock circular dep

* test

* jest <(-:C

* jestttttt

* [data.search] Move search method inside session service and add tests

* merge

* Move background session service to data_enhanced plugin

* Better logs
Save IDs only in monitoring loop

* Fix types

* Space aware session service

* ts

* initial

* initial

* Fix session service saving

* merge fix

* stable stringify

* INMEM_MAX_SESSIONS

* INMEM_MAX_SESSIONS

* use the status API

* Move task scheduling behind a feature flag

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Add unit tests

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Use setTimeout to schedule monitoring steps

* Update request_utils.ts

* settimeout

* tiny cleanup

* Core review + use client.asyncSearch.status

* update ts

* fix unit test

* code review fixes

* Save individual search errors on SO

* Don't re-fetch completed or errored searches

* Rename Background Sessions to Search Sessions (with a send to background action)

* doc

* doc

* jest fun

* rename rfc

* translations

* merge fix

* merge fix

* code review

* update so name in features

* Move deleteTaskIfItExists to task manager

* task_manager to ts project

* Move deleteTaskIfItExists to public contract

* mock

* use task store

* ts

* code review

* code review + jest

* Alerting code review

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: restrry <restrry@gmail.com>
2021-01-11 16:36:38 +02:00
Christiane (Tina) Heiligers 0549f94332
[DX] Management to TS projects (#87660)
* Adds management to tsconfig refs

* removes preemptive script fix
2021-01-11 07:14:22 -07:00
Jean-Louis Leysens 8a21b64007
prettify json (#87612)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:26:46 +01:00
Robert Oskamp 55fe83d4d1
[ML] API integration tests - fix sorting in saved object status test (#87800)
This PR fixes the sorting of response body jobs in the saved object status test.
2021-01-11 12:26:55 +01:00
Casper Hübertz c545b32755
[APM] Define placement “Right” to offset tooltip (#87729) 2021-01-11 10:58:06 +01:00
Pierre Gayvallet a0d33dc3a9
Fix UI glitch on SOM delete confirmation modal (#87623)
* extract delete confirm modal

* extract the export modal

* add data-test-subj to confirm modal

* add comment on why we can't use EuiConfirmModal
2021-01-11 10:26:02 +01:00
Dominique Clarke 0ff6965cb3
[Uptime] Fix/details page tabs (#86296)
* Remove tabs from details page

* update

* fix monitord id

* var name

* add Uptime PageHeader tests to test for the presences of tabs or header

* add Uptime MonitorPageTitle test

* Uptime adjust auto generated monitor id regex

* Uptime add tests for MonitorPageTitle to test behavior for missing monitor names and auto generated monitor ids

* remove history from MonitorPageTitle test

* adjust uptime tabs tests

* adjust MonitorPageTitle tests to mock useSelector

* adjust uptime PageHeader tests

* adjust import order in page_header.test

* add props to Uptime PageHeader to determine render, rather than route context

* alphabetize props in Uptime PageHeader

* remove header from individual pages

* add indepdent page header route that matches all paths

* adjust monitor tests to use mockReduxHooks helper, and add mockReactRouterDomHooks

* update tests

* adjust header spacing

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-10 20:55:43 -05:00
Quynh Nguyen db022a3550
[ML] Fix earliest and latest texts for date fields (#87482)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-08 13:23:54 -06:00
Tiago Costa e20817e57c
chore(NA): move grokdebugger plugin test fixtures out of __tests__ folder (#87765) 2021-01-08 16:23:55 +00:00
Patryk Kopyciński 5c4e23045c
[Security Solution] Refactor Cypress scenarios to use internal contex… (#86609) 2021-01-08 11:10:37 +01:00
Angela Chuang 4986bea8b6
[Security Solution] Unskip cypress tests (#86653)
* unskip data provider cypress test

* remove extra whitespace for filter classes

* remove cy.wait

* update functional test

* fix cypress and add tabType to dataTestSubj

* fix cypress test

* revert createNewTimeline task

* fix dependency

* fix line error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-08 06:59:05 +00:00
Tyler Smalley 91d73cf981 skip flaky suite (#87105) 2021-01-07 15:32:01 -08:00
Davis Plumlee 285809e6b5
[Security Solution][Detections] Alert table status update bug (#87243) 2021-01-07 15:14:30 -07:00
Tiago Costa 354a79a280
chore(NA): move watcher plugin tests out of __tests__ folder (#87599)
* chore(NA): move watcher plugin tests out of __tests__ folder

* chore(NA): renaming client_integration into tests_client_integration

* chore(NA): rename test helper config file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 21:44:26 +00:00
Sébastien Loix 6d6a805734
[Index templates] Keep configuration of data stream when editing (#87666) 2021-01-07 21:42:12 +00:00
Yara Tercero d03b20a38c
[Security Solution][Detections] - Exceptions table endpoint list bug fix (disable delete of endpoint list) (#87694)
## Summary

Addresses issue 87112 .

With the addition of the exceptions table, users were able to now delete exception lists from the UI. However, the "endpoint_list" is particular in some ways and should not be so easily deleted from the UI. Moved to disable the delete button for "endpoint_list exception list.
2021-01-07 15:48:35 -05:00
Corey Robertson fdfe6559b0
[Canvas] Register addons async (#86977)
* Make canvas registries accept async functions

* Remove some comments

* Remove comment

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Add ts error types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2021-01-07 15:45:46 -05:00
Yuliia Naumenko 1c30525d46
[Alerting UI] Make connector reducer as generic type. (#86857)
* -

* fixed failing tests

* fixed typescript checks

* fixed typescript checks

* fixed failing build

* fixed typescript checks

* removed typo cast

* fixed failing test

* fixed faling build
2021-01-07 11:50:48 -08:00
Wylie Conlon 52e3371c39
[Lens] Transitions for reference-based operations (#83348)
* [Lens] Transition between functions involving references

* Organize transition cases and cover all the basic transitions

* Add functional test

* Change logic for displaying valid transitions

* Show valid transitions more accurately

* Fix transition to only consider valid outputs

* Update test names and style

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 14:37:27 -05:00
Matthew Kime 021bb4e3e9
Create runtime field plugin, runtime field editor plugin (#87387)
* create runtime field plugin, runtime field editor plugin
2021-01-07 13:10:30 -06:00
Alison Goryachev a22f2853ba
[ILM] Fix hot phase serialization (#87213) 2021-01-07 14:08:46 -05:00
Michael Olorunnisola 94b6087d74
[Security Solution][Resolver] Updated baselines to account for re-centering (#87547) 2021-01-07 13:50:42 -05:00
Candace Park cf641f7303
[Security Solution][Endpoint][Admin] malware custom notify user message tests (#87603) 2021-01-07 13:44:51 -05:00
Corey Robertson 19687765b1
[Canvas] Remove recompose and convert to Typescript expression component (#86969)
* Remove recompose from expression component

* Fix type check

* Fix expression not updating

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 13:27:31 -05:00
Mikhail Shustov 1b6f737546
task_manager to ts project (#87646) 2021-01-07 19:27:18 +01:00
Tiago Costa d6816384a7
chore(NA): move apm plugin tests out of __tests__ folder (#87601)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 18:26:16 +00:00
Nathan Reese 0ac6e6223e
[Maps] labels for polygons and lines (#86191)
* [Maps] labels for polygons and lines

* remove x-pack yarn.lock

* add labels to choropleth map wizard

* clean up comment

* add mvt tile support

* only add centroids if there may be lines or polygons

* tslint

* tslint

* do not add centroid to too many features polygon

* update get_tile expect statements

* move turf dependencies from devDependencies to dependencies

* update jest snapshot and functional test expects

* fix functional test expect

* another functional test expect update

* functional test updates

* expect

* pew pew source expect updates

* update joins expect

* update mapbox style expects

* update join visibility expects for geocentroids

* update join visibility expects for geocentroids

* another functional test expect update

* review feedback

* update yarn.lock

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 11:10:20 -07:00
Nathan Reese 8cb622617c
[Maps] fix multi-select query from Controls visualization not always getting applied to map in dashboard (#87310)
* [Maps] fix multi-select query from Controls visualization not always getting applied to map in dashboard

* fix underlying problem in blended layer

* clean-up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 10:47:52 -07:00
Tiago Costa 9d4ef37f4e
chore(NA): move monitoring out of __tests__ folder (#87556)
* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 17:47:17 +00:00
Lisa Cawley 9a17446495
Fix broken link to Lens documentation (#87392) 2021-01-07 09:13:19 -08:00
Devon Thomson cdee8599d1
[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour (#86922)
* Aligned Lens & Visualize Top nav behaviour and look
2021-01-07 12:02:11 -05:00
Paul Tavares 14df31b6a0
[SECURITY_SOLUTION][ENDPOINT] Trusted Apps List page Empty State when no trusted apps exist (#87252)
* Show loading spinner while trying to determine if entries exist
* Handle display of the 3 conditions: loading, entries exist, no entries
2021-01-07 11:22:23 -05:00
Shahzad b203eaf370
[uptime] Fix tab focus issue for settings page (#87466)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 16:58:39 +01:00
Liza Katz 91aed6f961
[Search][Sessions] Rename Background Sessions to Search Sessions (#87500)
* Rename Background Sessions to Search Sessions (with a send to background action)

* doc

* doc

* jest fun

* rename rfc

* translations

* update so name in features

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 17:28:27 +02:00
Steph Milovic 130a8e766e
[Security Solution] [Case] Fix Jira connector test form (#87580) 2021-01-07 08:23:19 -07:00
Yuliia Naumenko 794c6b3b08
[Alerting] Replaced single invalidateApiKey request with the bulk. (#87401)
* Replaced single invalidateApiKey request with the bulk

* fixed failing test

* Extended invalidate method to support multiple invalidation. Updated fleets plugin usage of this API.

* fixed due to comments
2021-01-07 07:17:24 -08:00
Alison Goryachev f4042dd566
[ILM] Minor UX improvements (#87515) 2021-01-07 09:47:58 -05:00
Felix Stürmer f170ce29cc
[Logs UI] Fix the ability to switch to the ratio alert type (#87563)
This fixes a bug introduced with #86488, which prevents the user from changing the log threshold alert type to `ratio`.
2021-01-07 14:58:50 +01:00
Joe Reuter 3c7bd2fdd0
[Lens]Test color syncing (#86906) 2021-01-07 14:28:58 +01:00
Kerry Gallagher 81f71086c6
[Logs UI] Fix alerts recovery (#87369)
* Ensure that if alert instances are instantiated they are used in a way recognised by the framework
2021-01-07 13:22:50 +00:00
Mikhail Shustov b75cd4bb29
[DX] Home & SO tagging OSS to TS projects (#87610)
* so tagging oss to ts project

* home to ts project
2021-01-07 13:58:09 +01:00
Cauê Marcondes 2d564ddf19
[APM] Refactoring service and transaction links (#86986)
* refactoring service and transaction links

* refactoring links

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 13:00:39 +01:00
Pierre Gayvallet f59711945d
Expose SO import/export APIs from the service's contract instead of exporting static functions (#86264)
* Add user doc for SO tagging

* add link to new page

* handle review feedbacks

* second pass

* create SO exporter class

* adapt spaces code

* typo fix

* adapt tests

* some doc

* update generated doc

* fix spaces tests

* move ALL the import things

* adapt / move types

* create context, adapt core code

* adapt integration tests

* rename for consistency

* adapt spaces usages

* adapt spaces routes usages

* remove unused getImportExportObjectLimit

* fix tsdoc

* update generated doc

* doc nits

* review comments

* add test for fetchByObjects failure

* add custom errors for exporter

* remove `getImportExportObjectLimit` API

* fix IT

* update generated doc

* adapt UT

* forgot one Boom usage

* rename import error to failure

* remove Boom usages from importer

* update generated doc

* fix spaces types
2021-01-07 11:23:28 +01:00
Jean-Louis Leysens ba20a74be3
added missing brace theme import (#87498) 2021-01-07 09:42:02 +01:00
Mikhail Shustov 69e2c38bd3
Migrate App services plugins to TS projects (#87294)
* migrate expressions to ts project refs

* bfetch to ts project

* ui_actions to ts project

* move fitures to data plugins

* add data ts project

* remove outdated ts-expect-error

* add data to x-pack tsconfigs

* navigation to ts project

* cleanup licensing tsconfig

* saved_objects to ts project

* embeddable to ts project

* ui_actions_enhanced to ts project

* embeddable_enhanced to ts project

* features to ts project

* data_enhanced to ts project refs

* fix i18n check

* fix find_plugins_ready_to_migrate_to_ts_refs script

* add a comment for bug ignoring json for composite projects

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 09:30:30 +01:00
Dima Arnautov 1d49166203
[Transform] Fix transform preview for the latest function (#87168)
* [Transform] retrieve mappings from the source index

* [Transform] fix preview for nested props

* [Transform] exclude meta fields

* [Transform] use agg config to only suggest term agg supported fields

* [Transform] refactor

* [Transform] remove incorrect data mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 00:28:05 +01:00
Steph Milovic e5cb55d377
[Security Solution] [Cases] Fix flaky jest test (moment.js) (#87518) 2021-01-06 15:31:27 -07:00
Tim Sullivan 5d135359d7
[Reporting] set viewport to include clip area (#87253)
* [Reporting] set viewport to include clip area

* remove getViewport

* fix tests

* simpler

* fix 1

* revert

* hacks

* scope the logging variables

* polish

* hacky fix

* quieter logging

* make less hacky

* fix functional test

* revert lowering log level of browser console messages

* revise comments

* setViewport only to happen once

* fix snapshot of layout type tests

* fix comment text

* Revert "setViewport only to happen once"

This reverts commit 15977f9db4.

* fix disgusting bug

* use x/y ordering for width/height

* fix fn test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:30:35 -07:00
Tiago Costa 693775ce03
chore(NA): move canvas plugin tests out of __tests__ folder (#87519)
* chore(NA): move canvas plugin tests out of __tests__ folder

* chore(NA): fix types import on fixtures

* chore(NA): rename helpers to test_helpers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 22:11:22 +00:00
Nicolas Chaulet 3b602f8668
[Fleet] Make the encryptedSavedObject plugin optionnal (#87470) 2021-01-06 17:54:56 -04:00
Zacqary Adam Xeper 6df7498a41
[Metrics UI] Disable recovery action scheduling (#87061)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:45:45 -06:00
ymao1 ff2d0f4659
[Alerting] Edit alert should show and update all actions with deleted connectors (#86838)
* Showing all broken connectors and updating all matching broken connectors on new connector create

* Adding unit test

* Adding functional test

* Fixing functional test

* Simplifying logic

* Fixing functional test

* Fixing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:11:28 -05:00
Christiane (Tina) Heiligers 70c70875c6
Telemetry plugins esclient migration (#87356) 2021-01-06 12:57:18 -07:00
Tiago Costa f09f19ac28
chore(NA): move beats_management plugin tests out of __tests__ folder (#87530) 2021-01-06 19:56:38 +00:00
Kevin Qualters ebc119d43e
[Security Solution] Fixes elastic/kibana#84757 Use basePath in getAppOverviewUrl (#87245)
* Use basePath in getAppOverviewUrl


Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 14:20:10 -05:00
Tiago Costa 9a0c331ab5
chore(NA): move uptime plugin tests out of __tests__ folder (#87416)
* chore(NA): move uptime plugin tests out of __tests__ folder

* chore(NA): re-add file into __mocks__ folder
2021-01-06 19:11:03 +00:00
Robert Oskamp 50bda81a05
[ML] API integration tests - stabilize saved objects endpoint tests (#87288)
This PR stabilizes some saved objects endpoint tests by making sure a different order of objects in a response array is still accepted.
2021-01-06 19:48:38 +01:00
Thom Heymann 2b5071ff36
Report audit logging feature usage (#87457)
* Report audit logging feature usage

* Fix mock

* Added unref
2021-01-06 18:47:41 +00:00
spalger c57efbb56d skip flaky suite (#87541) 2021-01-06 11:43:59 -07:00
Georgii Gorbachev e50ad384f7
[Security Solution][Detections] Follow up cleanup after two bugfixes (#87516)
## Summary

This is a follow-up PR addressing some of the comments in:

- https://github.com/elastic/kibana/pull/86908
- https://github.com/elastic/kibana/pull/87004
2021-01-06 19:37:36 +01:00
Constance 8c74bb3345
Also reset engineName and engineNotFound on clearEngine (#87259) 2021-01-06 10:04:58 -08:00
Nathan Reese bd91c16036
[Maps] show map saved objects in visualize listing page (#87165)
* [Maps] show map saved objects in visualize listing page

* tslint

* tslint

* tslint fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 11:01:56 -07:00
Gidi Meir Morris e0db4a3f0b
[Task Manager] adds more granular polling results to monitoring stats (#87494)
Added the following values to the Polling stats:

- **NoAvailableWorkers**: This tells us when a polling cycle resulted in no tasks being claimed due to there being no available workers 
- **RunningAtCapacity**: This tells us when a polling cycle resulted in tasks being claimed at 100% capacity of the available workers
- **Failed**: This tells us when the poller failed to claim
2021-01-06 18:00:52 +00:00
Ahmad Bamieh 93262ba736
[i18n] Integrate 7.11.0 Translations (#87452) 2021-01-06 19:51:49 +02:00
Constance b4f3a15458
[Enterprise Search] Kea mount test helper (#87247)
* Add Kea logic mount helper

* Update existing mount() helpers to use new DRY helper

* Add additional unmount helper + example test update
2021-01-06 09:48:44 -08:00
Gidi Meir Morris a95fdbdec3
[Actions] Exposes the typing for Actions Type Params (#87465)
This PR exposes the types for the Params & ActionTypeIds of all Action Types
2021-01-06 17:18:57 +00:00
Shahzad 4b4d6a6bb8
[Uptime] fix multiple scrolls on waterfall view (#87281)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 18:17:16 +01:00
spalger 316346ac3a skip flaky suite (#87425) 2021-01-06 09:16:52 -07:00
Nathan Reese 8a0c8f35bd
[Maps] term join limit (#86491)
* [Maps] term join limit

* update region map migration to set size

* display size in join expression

* tslint

* update jest snapshots

* remove default size and just default to max buckets

* add size to sourceMeta so join data is re-requested on size change

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 08:43:10 -07:00
Ryan Keairns 6c87222e67
Updated favicons (#87271)
* Replace favicons

* update build process to swap favion version

* Replace favicons with built, branded version at build time

* update snapshot

* Addressing feedback
2021-01-06 09:13:07 -06:00
Kate Farrar 086bc58a65
[Metrics UI] Responsive fixes for Legend Options / Bottom Drawer (#86009)
Responsive fixes for Legend Options / Bottom Drawer
2021-01-06 08:12:17 -07:00
Oliver Gupte a9820a53f1
Closes #85549 by always rendering the datepicker regardless of data (#87393)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 06:40:38 -08:00
Chris Roberson 450d297ddf
Tweak timeout for failing cloud test (#86671)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 09:13:57 -05:00
Joe Portner e68d9f3822
Fixes 500 error when using PKI authentication with an incomplete certificate chain (#86700) 2021-01-06 09:00:43 -05:00
Alison Goryachev 57afacfef2
[ILM] Delete index_codec option if disabled in UI (#87267) 2021-01-06 08:24:41 -05:00
Alison Goryachev c012977eec
[ILM] Update doc links (#87216) 2021-01-06 08:22:20 -05:00
Patryk Kopyciński 74731ef7dd
[Security Solution] Refactor Save Timeline modal to use useForm hook (#87103) 2021-01-06 14:13:35 +01:00
Thomas Watson b0a66da8f0
Remove support for setting server.host to '0' (breaking) (#87114) 2021-01-06 13:12:01 +01:00
Gidi Meir Morris b99ca969e0
[Alerting] revert the revert of Enforces typing of Alert's ActionGroups (#87382)
The https://github.com/elastic/kibana/pull/86761 PR was reverted due to a small typing issue.

This PR reverts that revert and adds a commit to address the issue: 9e4ab2002c.
2021-01-06 10:38:33 +00:00
Christos Nasikas 8ead390813
[Security Solution][Case] Attach/Sync alert to case: Fix toast messages (#87206) 2021-01-06 11:43:18 +02:00
Christos Nasikas 34a3982f3a
[Security Solution][Case] Fix comment content when pushing alerts to external services (#86812)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 11:40:40 +02:00
Casper Hübertz e63e3d869d
[APM] Remove top padding from Waterfall container (#87312)
* Removed unused imports and props
2021-01-06 08:45:22 +01:00
Davis Plumlee 8c9c72a6ba
[Security Solution][Detections Rules] Adds larger options for page sizes (#87410) 2021-01-06 00:36:11 -07:00
Devin W. Hurley b4bbd937c0
[Security Solution] [Detections] Update search after to use one single date range filter (#86921)
## Summary

Ref: https://github.com/elastic/kibana/issues/86874



replaces `should` with a single lower bounded and upper bounded date range filter.

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

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2021-01-05 22:16:40 -07:00
Davis Plumlee 327d0b5a9c
[Security Solution][Detection Rules] Adds a catch-all display tag for Mitre descriptions (#87240) 2021-01-05 21:38:46 -07:00
Oliver Gupte c0eeb86f52
Closes #87026 by ensuring the user also has save privileges for APM (#87343)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 17:13:37 -08:00
Georgii Gorbachev a1f949ba9c
[Security Solution][Detections] Fix severity and risk score overrides when field mapping exists but the mapped fields do not (#87004)
* Fix Source field combobox in Severity override and Risk score override sections

* Clean up

* Fix unit and Cypress tests
2021-01-05 17:53:13 -06:00
Georgii Gorbachev 933c6a5ae9
[SecuritySolution][Detections] Fix "Closing a signal silently fails with reduced privileges" (#86908)
## Summary

This PR introduces the following changes. If the user has insufficient write privileges on the signals index:

- we disable the status-changing actions on detection alerts ("Open alert", "Close Alert", "Mark in progress") in the context menu of an alert in alerts table
- we make sure to show the corresponding callout that tells about read-only access to detection alerts
- in the callout we provide links to docs for understanding why/how to fix
2021-01-05 18:50:42 -05:00
Nathan L Smith af4658fce9
Fix service name wrapping on mobile on inventory (#87390)
Fixes #85752.
2021-01-05 17:48:06 -06:00
Scotty Bollinger 3e3a809b4f
[Enterprise Search] Add a helper for clearFlashMessages (#87383)
This PR adds a convenience function for clearing flash messages to align with others.
2021-01-05 16:54:44 -06:00
Steph Milovic b0ba4f47ab
[Security Solution] [Case] Fixes "Case connector cannot be updated when created with a wrong field" (#87223) 2021-01-05 15:33:36 -07:00
Ryland Herrick e954306786
[Security Solution][Detections] Re-enable skipped integration test (#87254)
* Re-enable test skipped due to temporary failure

This failure may still be present/intermittent, but it passes reliably
locally; trying again on CI to check status.

* Triggering build

This should fail on the latest snapshot

* Update EQL integration tests to reflect new default pipe

We were previously using what is effectively `results | head` to
retrieve the desired amount of results. The default behavior was changed
in elastic/elasticsearch#66387, which caused these tests to fail as
different results were returned over such a large dataset.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:08:13 -06:00
Devon Thomson 38a7e2b00a
[Time to Visualize] Align Lens & Visualize Breadcrumbs (#86941)
* Aligned Lens & Visualize Breadcrumbs
2021-01-05 17:01:04 -05:00
Yuliia Naumenko dddd8e4fe7
[Alerting UI] Alert and Connector flyouts Save and Save&Test buttons should be active by default. (#86708)
* Alert and Connector flyouts Save and Save&Test buttons should be active by default.

* fixed typechecks

* fixed typechecks

* refactored repeted code

* fixed typechecks

* fixed typechecks

* fixed typechecks

* fixed due to comments

* fixed failing tests

* fixed due to comments

* fixed due to comments

* fixed due to comments

* fixed typescript checks
2021-01-05 11:49:44 -08:00
Jonathan Budzenski 051be28c69 Revert "[Alerting] Enforces typing of Alert's ActionGroups (#86761)"
This reverts commit 76b8c491ee.
2021-01-05 13:24:59 -06:00
Gidi Meir Morris 76b8c491ee
[Alerting] Enforces typing of Alert's ActionGroups (#86761)
This PR tightens the typing on the Alerting framework's `AlertType` and its deeper typing around `AlertServices ` and `AlertExecutorOptions`.

This ensures the following:

1. It's now impossible<sup>✴</sup> to schedule actions on any ActionGroup other than the groups specified on the AlertType (including the Recovery group)
2. It's now impossible<sup>✴</sup> to schedule actions with incorrect `InstanceState` or `InstanceContext`

✴ Unless they bypass the Typescript typing, which is an explicit choice to bypass type safety
2021-01-05 18:44:57 +00:00
Michael Olorunnisola bb3659c54d
[Security Solution][Resolver] - Maintain active node (#86682)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 13:27:12 -05:00
Yuliia Naumenko 9d12b1c71b
Flaky test fix for Actions and Triggers app alerts should delete all selection (#86175)
* Removed skip test for delete all alerts integration test

* fixed typechecks

* reduced nuber of selected alert to delete to a single one

* fixed due to comments

* removed long timing retry

* fixed typechecks

* fixed failing tests
2021-01-05 10:10:52 -08:00
Yara Tercero 51efc19920
[Security Solutions][Detections] - Fix exception list table referential deletion (#87231)
### Summary

This PR concentrates on fixing the deletion on the exceptions list table view. This fix is intermediary and a more thorough, backend solution is needed. Currently, if you delete an exception list, it deletes the exception list SO, but does not remove references to it from rules. This PR allows for a quick fix conducting this logic client side.
2021-01-05 12:49:53 -05:00
Nicolas Chaulet a4bbf470e2
[Fleet] Do not display inactive enrollment token in the agent enrollment flyout (#87300) 2021-01-05 13:48:33 -04:00
Dominique Clarke 16ad4d6685
[Uptime] only render ping status code badge when status code is available (#87096)
* uptime only render ping status code badge when status code is available

* uptime update ResponseCodeColumn error state

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 12:45:59 -05:00
ymao1 eabd7088bb
Disabling connectors for invalid connector types (#86910)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 12:44:48 -05:00
Constance 3fba4763fb
[App Search] Minor var names follow-up (#87258)
* Var rename

- so it doesn't sound negative or like a bug, but is instead an anticipated load/use case
- remove unncessary function
- move declaration down to right before it's used

* [Proposal] Other misc cleanup

- Rename engineNameParam to engineNameFromUrl to make reading flow a little bit more nicely + hopefully make the var source a bit clearer

- Change other references back to engineName for simplicity (they should really only be running after engineName has already been set, so there shouldn't be any race conditions there - moving engineBreadcrumb to after Loading should also solve that)
2021-01-05 08:36:40 -08:00
Scotty Bollinger 24748bff77
[Workplace Search] Add routes for settings (#87239) 2021-01-05 10:12:49 -06:00
Scotty Bollinger c69eaf872a
[Workplace Search] Move Personal Dashboard link to header (#87244)
* Remove comment

We aren’t going to use icons like we have in ent-search

* Add new constant

* Use constant instead of inline i18n

* Add link to top bar

The external href to sources will be changed once that component is built

* Remove link from sidebar

* Update i18n translation key names

CI was failing and this should fix it

* Alphabetize items
2021-01-05 10:12:03 -06:00
Angela Chuang 81887b7400
[Security Solution] JSON view for data is not displayed properly (#87008) 2021-01-05 17:07:04 +01:00
Christiane (Tina) Heiligers ff94674919
Use new es client in Uptime usage collector (#86718)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:32:39 -07:00
Lukas Olson a2b4517b9e
[data.search.session] Add extend functionality to server-side search service (#86195)
* [data.search.session] Store search strategy in saved object

* [data.search.session] Add extend functionality

* Update docs

* Update unit test to check strategy

* Throw kbnServerError instead of error

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:26:06 -07:00
Cauê Marcondes b9ff88f988
[APM] Alert preview threshold color doesn't match design.(#86958)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:24:41 +01:00
Cauê Marcondes 86d37ae2f3
[APM] transactionType should be required on service-specific endpoints (#86893)
* making transaction type required on some apis

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:23:51 +01:00
Dominique Clarke f0f88437b2
uptime add title to waterfall sidebar truncated text (#87102)
* uptime add title to waterfall sidebar truncated text

* Uptime add tooltip and screen reader only text to MiddleTruncatedText

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 09:06:43 -05:00
Mike Côté 875fde58fe
Improve webhook errror messages (#87044)
* Initial work

* Fix variables to pull from

* Rename some variables

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:04:58 -05:00
Marius Dragomir bece599856
Add standlone EMS server integration test (#87070)
* Initial EMS integration test

* Convert to TS

* extra cleanup and comments

* Removed common page objects

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 13:45:42 +01:00
Larry Gregory d6cf633e4f
Introduce mechanism to request default capabilities (#86473)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 07:37:14 -05:00
Casper Hübertz fdea747fb3
[APM] Settings: Move "HomeLink" into the sidebar (#87167)
* Fixed responsive state when opening the menu

* Update x-pack/plugins/apm/public/components/app/Settings/index.tsx

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-01-05 13:19:13 +01:00
Shahzad fb8a1ef505
[Uptime] Remove link to journey details page (#87146)
* Disable link to details page

* removed underline
2021-01-05 10:51:40 +01:00
Josh Dover 0af81310b6
Remove dynamic mapped types from UiActions (#87075)
* Remove dynamic mapped types from UiActions

* Remove import between data <-> embeddables

* remove outdated comments, export action types from discover_enhanced

* fix notice.txt

Co-authored-by: restrry <restrry@gmail.com>
2021-01-05 10:11:05 +01:00
Ryland Herrick 1363a2aa73
[Security Solution] Cypress documentation updates (#86835)
* Update/refactor some cypress documentation

* Fixes some whitespace/grammar/typos
* Condenses the explanation/instructions for the different modes of
  execution

* Condense Artifacts section

This is a big sprawling file; trying to cut down on the noise.

* Move test-running section to top of README

This is going to be what 90% of readers are looking for, methinks.

* Adds Security Solution's cypress suite to x-pack testing README

* Fix broken link

This file was moved as part of #64368.

* Remove broken link

This file was deleted in #67138.

* Apply suggestions from code review

Co-authored-by: Devin W. Hurley <snowmiser111@gmail.com>

* Fix typo

Co-authored-by: Devin W. Hurley <snowmiser111@gmail.com>
2021-01-04 18:47:08 -06:00
Nathan L Smith 42ba5a8e9f
Toggle action and service icon menus (#87220)
Make it so clicking the icon menu or action menu while the popover is open closes the popover. This also fixes the issue where the action menu would not close at all.

Rename the `onOpen` prop to `onClick` to match what it does.

Fixes #87161. Fixes #87131.
2021-01-04 18:40:10 -06:00
Lukas Olson 8ac632b068
[data.search.session] Store search strategy in saved object for background sessions (#86057)
* [data.search.session] Store search strategy in saved object

* Update unit test to check strategy

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 17:39:57 -07:00
John Schulz 52f6c7cf5c
Revert "[Fleet][EPM] Revert es-storage-related commits (#85942) (#86017)" (#87183)
This reverts commit 70fbe91fb1.
2021-01-04 18:23:11 -05:00
Nicolas Chaulet a0f330cc8c
[Fleet] Handle errors happenning during Fleet setup in the UI (#87185) 2021-01-04 19:02:25 -04:00
Spencer e3856a9e45
[security/apiKeys] migrate from id to ids in ES request (#87053)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:46:37 -07:00
Aaron Caldwell 284f422642
Set containment alert recovery action group to 'No longer contained' (#87182) 2021-01-04 14:21:20 -07:00
Christiane (Tina) Heiligers 8b2690723b
Migrates security solution usage collector es client from legacy to new (#86853)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:17:56 -07:00
Zacqary Adam Xeper e9b43cdd3f
[Metrics UI] Fix Process List layout issues (#87005)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:52:20 -06:00
Lisa Cawley 96e9fdd78c
[ML] Add doc link in help menu on more ML pages (#86500) 2021-01-04 12:32:41 -08:00
John Schulz a0b4aa35b9
Add the existing route to openapi schema (#87196) 2021-01-04 15:23:28 -05:00
Henry Harding 7dc7ac5303
update Logs/Metrics add data icons for consistency (#87193) 2021-01-04 15:12:10 -05:00
Jason Stoltzfus 0f04a8ee60
Fixed links to meta engine documents (#86702) 2021-01-04 14:56:09 -05:00
Chris Roberson aeaa0c2932
[Monitoring] Fully control the in memory table pagination/sorting properties (#85862)
* Fully control the basic table pagination/sorting properties

* Not necessary

* Support index listing page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:43:29 -05:00
Constance 5241603297
[App Search] Final Document Creation API, Logic, & Summary/Error views (#86822)
* [Setup] Server API route

* [Cleanup] Remove unnecessary DocumentCreationSteps

- errors can/should be shown in the EuiFlyoutBody banner (better UX since the JSON/file is right there for reference) vs its own page
- No need to distinguish between ShowErrorSummary and ShowSuccessSummary

+ placeholder Summary view for now

* Add DocumentCreationLogic file upload logic

* Update creation form components to show error/warning feedback

* Add final post-upload summary view

- split up into subcomponents for easier reading/testing

* [lint] oops, double licenses

* [PR feedback] map -> forEach

* [PR feedback] Reset form state on flyout close

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:09:43 -08:00
Liza Katz 4415e548b5
[Search] Session feature controls (#85846)
* Use filter to bulk find

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Dashboard in space test

* Add warning on update failure

* fix merge

* Added functional test for sessions in space

* snapshot

* test cleanup

* sub perms

* test snapshots

* Update tests

* test

* code review

* snap

* Added discover test

* Update x-pack/plugins/data_enhanced/public/search/ui/connected_background_session_indicator/connected_background_session_indicator.tsx

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
2021-01-04 20:57:51 +02:00
Angela Chuang 9ed0bbddde
[Security Solution] Fix pop up message (#86973)
* fix wording

* update wording

* remove logic in translation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 18:38:45 +00:00
Constance b66bf2b2db
[Enterprise Search] Misc test branch coverage (#86847)
* Remove unnecessary || {} branch

schema is always required / should never be undefined

* Cover if (addFieldFormErrors) branch

* Increase coverage of determineTooltipContent by simplifying branching

- most of these checks aren't necessary due to early returns

* Cover branch in WS source_icon

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 10:34:40 -08:00
Christiane (Tina) Heiligers d6eda39cec
Switches rollup usage collector's fetch es client to the new client (#86684)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:32:14 -07:00
Shahzad 0188b9f7ef
[Uptime] Fix breadcrumb for link back to monitor from waterfall page (#87125) 2021-01-04 19:16:39 +01:00
Jonathan Buttner d2b9fb3bde
[Security Solution][Resolver] Remove deprecated resolver routes (#86475)
* Removing old backend routes and cleaning up types

* updating the docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:14:40 -05:00
Lisa Cawley 28e60d47ad
[ML] Use doc links service for transforms (#86919) 2021-01-04 09:59:18 -08:00
Michael Olorunnisola bba076d45a
[Security Solution][Resolver] Fix text overflow in panel breadcrumb (#86905)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 12:49:38 -05:00
Katrin Freihofner 9c092d5264
[Logs UI] Adds purely visual changes to to the popovers and the settings view. (#86764)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 17:56:36 +01:00
Tiago Costa 8f82459647
skip failing es promotion suite (#87180) 2021-01-04 16:48:56 +00:00
Cauê Marcondes df1bfcc87f
[APM] Forbidden Error when opening Indices page with read only user (#87147)
* disabling create/edit button when user does not have write permission

* addressing PR comments
2021-01-04 17:33:01 +01:00
Gidi Meir Morris 084bc7be9b
[Alerting] Ensure a component is specified on the actionParamsFields field in all tests (#86789)
This PR makes the `actionParamsFields` field required, as it is in use by all plugins anyway and only tests were omitting it.
To make this change more streamlined I've added a `createMockActionTypeModel` helper which generates a basic mock `ActionTypeModel`.
2021-01-04 16:17:53 +00:00
Kevin Logan 5e5a410204
[Fleet] add leading dot to hidden indices (#86277)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: John Schulz <github.com@jfsiii.org>
2021-01-04 10:50:54 -05:00
Tiago Costa 4c3c2ac156
skip failing es promotion suite (#87166) 2021-01-04 15:23:18 +00:00
Tiago Costa 77d03eed09
skip failing es promotion suite (#87163) 2021-01-04 15:17:37 +00:00
Pete Hampton 757eece2e6
Update index name for diagnostic telemetry. (#86468)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:04:25 +00:00
Tiago Costa 16fa35cc2b
skip failing es promotion suite (#87157) 2021-01-04 15:03:06 +00:00
ymao1 b22210d7e3
[Alerting] Saved object remover for all e2e triggers_actions_ui tests (#86837)
* wip

* Using object remover for alerts list

* wip - using supertest instead of axios

* wip - using supertest instead of axios

* Removing custom services in favor of supertest

* Fixing test

* Fixing test

* Fixing types check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 09:59:41 -05:00
Jonathan Buttner c8a349e713
[Security Solution][Resolver] Adding docs for loading states and schema (#85480)
* Adding some docs for the new features

* Adding schema docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 09:51:12 -05:00
Casper Hübertz 1445c9f058
[APM] Change services panel guttersize to “xs” (#87137) 2021-01-04 15:49:17 +01:00
Tiago Costa 90a1961639
skip flaky suite (#82226) 2021-01-04 14:47:38 +00:00
Katrin Freihofner c6229c86a1
[Synthetic check UI] waterfall view: moves arrow icon of next check btn to the right (#86878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:32:54 +01:00
Dominique Clarke 7f71ca128d
adjust monitor status badge failed color (#87097)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 08:49:39 -05:00
Vadim Dalecky 5591e00717
URL encoding for URL drilldown (#86902)
* feat: 🎸 use EuiSwitch for "Open in new window" toggle

* feat: 🎸 add "URL encoding" option and "Additional options"

* feat: 🎸 make "Open in new window" true by default

* feat: 🎸 respect encoding config setting

* test: 💍 add encoding tests

* feat: 🎸 add URI encoding Handlebars helpers

* docs: ✏️ add URL encoding methods to URL Drilldown docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:56:21 +01:00
Patryk Kopyciński f654e06f76
[Security Solution] Fix few styling issues (#87045) 2021-01-04 13:53:23 +01:00
Cauê Marcondes cd06251fc4
[APM] Custom links can still be created with a read only user. (#87089)
* disabling buttons when user does not permission

* fixing test

* disabling create/edit button when user does not have write permission

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:50:04 +01:00
Cauê Marcondes 1ae33d945b
[APM] Every time the new Header Icon is clicked it fetches data (#87093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 12:02:44 +01:00
Dario Gieselaar 1934d34ee7
[APM] Add range query to service map trace walk (#86631)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:37:10 +01:00
Jonathan Budzenski 308827a67c skip "should schedule actions on legacy alerts" #87010 2021-01-01 11:22:10 -06:00
Spencer 1da5fcf444
[logstash] remove "upgrade" functionality now that .logstash is a system index (#87056)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-12-31 12:16:33 -07:00
Kevin Logan 602584a228
[Security Solution] add a consistent spelling of ES in Policy Response (#87073) 2020-12-30 16:30:20 -05:00
Paul Tavares e067f557de
[SECURITY_SOLUTION][ENDPOINT] Delete Endpoint Policy List code (#87063)
* Remove Endpoint Policy List code from security_solution plugin
2020-12-30 15:08:29 -05:00
Spencer 71f74314ce
[test/functional_cors] 9000 is sometimes in use, make getPort random (#87050)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-12-30 10:32:48 -07:00
Patryk Kopyciński 0c9a573515
[Security Solution] Fix Timeline filter EuiSuperSelect styling (#87033) 2020-12-30 18:05:31 +01:00
Wylie Conlon 83d9ef0f2d
[Lens] Fix duplicate suggestions on single-bucket charts (#86996) 2020-12-30 11:01:54 -05:00
Paul Tavares 5dd9c7d3c5
[Fleet] Fix Page title on Integrations Edit Package Policy (#87012) 2020-12-30 08:54:47 -05:00
Paul Tavares 9202fc845a
[SECURITY_SOLUTION][ENDPOINT] Fixes endpoint data generator (#87018)
* Fix enroll message not containing host information
* Ensure all Agent Policies created are unique
2020-12-30 08:53:50 -05:00
Kevin Logan 0d32640ab7
[Security Solution] Change 'anti-virus' text to 'antivirus' (#87001) 2020-12-29 15:05:29 -05:00
Tim Sullivan b120cb3218
[AppServices/Examples] Add the example for Reporting integration (#82091)
* Add developer example for Reporting

Refactor Reporting plugin to have shareable services

* Update plugin.ts

* use constant

* add more description to using reporting as a service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 09:55:48 -07:00
Tim Sullivan e699d91b2c
[Build Chromium] Improve git checkout (#83225)
* [Build Chromium] Document steps for local build, improve checkout

commit e817796d107d554504870cdb8e6dd10db1079a1e
Merge: 19e6b300260 61b4e052fdd
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:25:09 2020 -0700

    Merge branch 'chore/build_chromium/improvements' of github.com:tsullivan/kibana into chore/build_chromium/improvements

commit 19e6b300260822418cea4dc594bdfdf621a331e0
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:23:01 2020 -0700

    fixes

commit 9de24ec298792a46e88207f41c9f6aff1997dbf1
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:22:52 2020 -0700

    add instructions to build local

commit 872c0f68e0077ad50c541b605a87253befd1a891
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 11:58:25 2020 -0700

    simplify

commit 8dae9484efcdc483ad20ceab32cae4e97735ab1c
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 10:28:18 2020 -0700

    fixes

commit 492f5cfe25e2c7ccffce55a8733383a30aae1cb6
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 20:15:43 2020 -0700

    --wip-- [skip ci]

commit acba359b121f7be8e6c353f90e938bc5d88658a1
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 15:47:50 2020 -0700

    [Build Chromium] Improve git checkout

commit 61b4e052fdd04456fe23956ad8ce99c8e771c01e
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 20:15:43 2020 -0700

    --wip-- [skip ci]

commit 58300c9deeca15cce838b3956c55c2994f99f530
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 15:47:50 2020 -0700

    [Build Chromium] Improve git checkout

* Apply suggestions from code review

Co-authored-by: Joel Griffith <joel@joelgriffith.net>

Co-authored-by: Joel Griffith <joel@joelgriffith.net>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 09:54:19 -07:00
Mike Côté f3b43cbf3f
Deprecate services.callCluster in alerts and actions executors (#86474)
* Deprecate callCluster in alerts and actions services

* Update deprecation comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 11:21:48 -05:00
Patryk Kopyciński 262a204bb4
[Security Solution] Use system node version for Cypress and increase exec command timeout (#86985) 2020-12-29 14:51:09 +01:00
Marco Liberati 2781bf3855
[Lens] Add more chart editor tests based on the debug state (#86750)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 14:18:54 +01:00
Marco Liberati bd908c6ba3
[Lens] Integrate searchSessionId into Lens app (#86297)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 14:18:30 +01:00
Jonathan Budzenski d843450620 skip "pagination updates results and page number" #86975 2020-12-28 17:34:19 -06:00
Jonathan Budzenski 62fd430fdf skip "Custom detection rules" #83772 2020-12-28 15:24:15 -06:00
Jonathan Budzenski 54390f02f9 skip network and timeline inspection. #85677, #85678 2020-12-28 14:55:14 -06:00
Jonathan Budzenski 4290b58b6a skip "adds correctly a filter to the global search bar" #86552 2020-12-28 14:49:05 -06:00
Jonathan Budzenski 3ddc527d50 skip "Fields Browser rendering. #60209 2020-12-28 13:29:16 -06:00
Jonathan Budzenski 83f6440c03 skip "Closes and opens alerts" #83773 2020-12-28 11:10:36 -06:00
Patryk Kopyciński fd81692b98
[Security Solution] Skip failing Cypress tests (#86967) 2020-12-28 10:00:42 -06:00
MadameSheema c0d6e12c3c
Removes archives (#86537) 2020-12-28 08:08:04 +01:00
Dima Arnautov 47ce575cc0
[ML] Fix charts grid on the Anomaly Explorer page (#86904)
* [ML] fix AR charts grid items width

* [ML] update test snapshot
2020-12-24 13:52:09 +01:00
Cauê Marcondes 6fc041c1d4
filtering inventory page by transaction type (#86434)
* filtering inventory page by transaction type

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-24 09:36:58 +01:00
Devin W. Hurley 113634a66b
[Security Solution] [Detections] Multiple timestamp fields (#86368)
* query timestamp override and default @timestamp field, adds functional test for this

* fix logic for when to filter out timestamp override documents

* update the total hits field of the search result if we find hits within the secondary search. Without updating the total hits field, we could be finding events but not indexing them based on the bulk create logic

* update integration test, updates logic for performing second search and excluding documents with timestamp override field

* cleanup comments, remove commented out console logs, fix logic to break out of loop during secondary search after

* default param to 'succeeded'

* remove commented out code

* always perform a secondary search when timestamp override field is present

* perf improvement and fix bug where sortIds were being mixed between search after calls

* set sortIds to undefined when not present on search result

* exit loop and prevent extraneous searches from occurring if we exhaust sort ids
2020-12-23 21:44:57 -05:00
Xavier Mouligneau deae756756
[Security Solution] Fix flow/draggable in details event (#86834)
* fix details event

* fix types + add unit test

* review with angela

* fix lint error

Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2020-12-23 21:13:20 -05:00
Yara Tercero 0ffb9e72ed
[Security Solution][Exceptions][Tech Debt] - Refactor exceptions api file to follow value lists pattern (#86903)
## Summary

Currently working on issues related to exceptions and it was noted on a separate PR that the request payload validation being done in the client side API calls was unnecessary. It was helpful in development, but not of any added value in production. Not only that, but the extra validations also add to the performance hit. 

Removed the payload validation and formatted the code to follow the same pattern as that in the value lists api file.

Tested that exceptions flows not affected by testing out exceptions CRUD flows.
2020-12-23 19:25:21 -05:00
Joe Reuter a5cfc7fb4a
[Lens] Add percentile function (#86490) 2020-12-23 21:13:03 +01:00
Dominique Clarke cf6afe04ad
[Uptime] Fix/85236 user experience display low values (#86026)
* add hasVitals prop to CoreVitalItem

* pass hasVitals prop to CoreVitalsItem based on coreVitalPages

* adjust criteria for displaying no core vital item data

* add stories for CoreVitalItem edge cases

* remove comment from core web vitals index page

* update test comment in CoreVitalItem

* adjust APM get_web_core_vitals endpoint to return a number for cls value, and adjust corresponding observability components

* remove hasVitals from CoreVitalItem props and adjust storybook stories

* add comment to EuiStat aria-label in CoreVitalItem

* adjust CoreVitalItem tests

* adjust APM KeyUXMetrics test

* adjust APM get_web_core_vitals endpoint to return null for cls when cls is undefined

* adjust unit and integration tests that rely on apm get_web_core_vitals

* add comment in get_web_core_vitals

* update CLS value in Observability core_web_vitals index

* add withKibanaIntl to CoreVitalItem test to wrap in Intl Provider and KibanaReact provider

* update CoreVitalItem test to use testing-library/react test_helper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-23 14:25:34 -05:00
Christiane (Tina) Heiligers f7961998d9
Migrates spaces usage collector es client from legacy to new (#86900) 2020-12-23 12:18:13 -07:00
Constance 2cc2312f6d
[App Search] Result component - a11y enhancements (#86841)
* Refactor Result card layout

- Move toggle action to the bottom of the card content
- [TODO] Action button to the right will be used for new link button (separate for accessibility/screen readers)
- Use grid to get the layout we want without extra div wrappers

* Add action button link to document detail

+ remove <a> tag on article content - should have onClick only
- this allows screenreaders to granularly navigate through the card content while allowing mouse users the entire card to click
- the new actionButton details link is accessible to both keyboard & screen reader users

* [Polish] Hover effects to help guide mouse users

* [i18n] Add pluralization to fields copy

* Update tests

* [Cleanup] Remove unneeded wrapper

* [??] More specific title for result group

- since the aria-label for the new detail button link is basically that
2020-12-23 10:39:21 -08:00
Paul Tavares 0f838bfea1
[Fleet] Consistent display of agent counts on lists (#86827)
* move LinkedAgentCount component to top-level components and adjust output
* refactor integration details Policies list to use LinkedAgentCount component
* test cases for agent counts on integrations
2020-12-23 09:41:49 -05:00
Dima Arnautov d4d70f22cf
[ML] Enforce pause when it's set to false with 0 refresh interval (#86805)
* [ML] Enforce pause when it's set to false with 0 refresh interval

* [ML] add mocks, fix unit tests
2020-12-23 14:00:59 +01:00
Cauê Marcondes cfec38eea6
[APM] "View job" link from latency charts leads to a malfunctioning page (#86788)
* fixing ML links

* fixing ML links
2020-12-23 13:00:52 +01:00
Katrin Freihofner 0d3daa564f
[Logs UI] removes unnecessary panel in categories tabL (#86769) 2020-12-23 09:38:35 +01:00
Cauê Marcondes 15b80dd771
[APM] Filter out service nodes if there are no metrics (#86639)
* filtering out metrics without service.node.name

* filtering out metrics without service.node.name

* addressing pr comments

* fix TS issue
2020-12-23 09:31:01 +01:00
Cauê Marcondes 4613da5c27
[APM] Truncate long service names in Trace overview (#86759)
* truncating service name

* truncating service name
2020-12-23 09:02:15 +01:00
Christos Nasikas 21b34bcd24
[Security Solution][Case] Fix case status dropdown on modals (#86243) 2020-12-23 09:36:38 +02:00
Yara Tercero 3dfb1aba2a
[Security Solution][Detections] - Fix export on exceptions list view (#86135)
## Summary

This PR addresses a fix on the exceptions list table export functionality. A dedicated route for exception list export needed to be created. List is exported into an `.ndjson` format. 

Exception lists consist of two elements - the list itself, and its items. The export file should now contain both these elements, the list followed by its items.
2020-12-23 00:27:37 -05:00
Devin W. Hurley 35b10b5354
[Security Solution] [Detections] Bug fix for read privilege check during rule exec (#86852) 2020-12-22 21:14:22 -05:00
Constance e3896050fc
[App Search] Misc credentials key UI enhancements (#81817)
* Fix screen reader still reading out bullet bullet bullet

* Even out horizontal spacing

* Break long password text

* Make EUI table cell full width on mobile
2020-12-22 17:53:07 -08:00
Constance 62b5ef9459
Minor responsive text overflow tweaks to ApiCodeExample POST (#86848) 2020-12-22 17:52:32 -08:00
Tyler Smalley c9879c6fbd Skip test preventing ES snapshot promotion
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-22 16:31:14 -08:00
Melissa Alvarez 39dc4d0237
fix group edit popup format (#86836) 2020-12-22 17:58:22 -05:00
Devin W. Hurley 59298c5f91
[Security Solution] [Detections] Add "read index" privilege check on rule execution (#83134)
* adds privilege check in rule execution function, need to abstract these lines into a util function to be used in create rules and use that check on the UI too

* fixes tests

* cleanup code, adds a unit test

* set rule to failure status if the rule does not have read privileges to ANY of the index patterns provided
2020-12-22 17:01:39 -05:00
Dominique Clarke 23c9c7e302
fix uptime monitors donut chart labels (#86319)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 15:41:33 -05:00
Pete Hampton 978fa4325c
Add run and alert count to task state. (#86776) 2020-12-22 19:55:40 +00:00
Quynh Nguyen a75ca7abe9
[ML] Stabilize data visualizer functional tests (#86790) 2020-12-22 13:12:06 -06:00
Greg Thompson c0d6bd95b7
Upgrade EUI to v31.0.0 (#86689)
* eui to 31.0.0

* snapshot updates

* remove obsolete snapshot
2020-12-22 12:59:05 -06:00
Felix Stürmer 24db3a0070
[Logs UI] Fix initial selection of log threshold alert condition field if missing from mapping (#86488)
This avoid selecting the `log.level` field as the default in log threshold alerts if it is not present in the mapping of at least one source index.
2020-12-22 19:36:02 +01:00
Christiane (Tina) Heiligers a98550b4f1
Reporting usage collector fetch migration (#86675) 2020-12-22 11:23:54 -07:00
Quynh Nguyen 61eb83b467
[ML] Fix error callout for Anomaly detection jobs using runtime_mappings (#86407)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 12:22:56 -06:00
Quynh Nguyen 4c17faa023
[ML] Fix zoom missing in Anomaly detection URLs (#86182)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 12:12:12 -06:00
Melissa Alvarez bd13284bfe
[ML] Ensure job group badge fonts are same color (#86674)
* use badge component to keep group badge consistent. sort groups

* use all colors now that badge component is used

* set left margin on group badge wrapped in link to match badge margin

* add badge colors to edit flyout job groups
2020-12-22 12:41:18 -05:00
Joe Reuter 57a72a78f7
[Lens] Configurable color syncing (#86180) 2020-12-22 17:35:27 +01:00
Patryk Kopyciński 9c74a1090e
[Security Solution] Fix artifacts in Events table (#86767) 2020-12-22 17:33:36 +01:00
Lisa Cawley ce546adb04
[ML] Use doc links service for more ML pages (#86405) 2020-12-22 08:14:07 -08:00
Nick Partridge 3aeb344b7c
Enable new chart library setting (#86538) 2020-12-22 10:06:37 -06:00
Wylie Conlon 23fd044562
[Lens] Introduce 4 new calculation functions: counter rate, cumulative sum, differences, and moving average (#84384)
* [Lens] UI for reference-based functions

* Fix tests

* Add a few unit tests for reference editor

* Respond to review comments

* Update error handling

* Update suggestion logic to work with errors and refs

* Support ParamEditor in references to fix Last Value: refactoring as
needed

* Fix error states

* Update logic for showing references in dimension editor, add tests

* Fix tests

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 10:33:27 -05:00
Bohdan Tsymbala 128a772ee3
Fixed the extraction of ServerApiError. (#86732) 2020-12-22 15:43:01 +01:00
Jason Stoltzfus 8527b6cbe3
Fixed Result engine display (#86559) 2020-12-22 07:48:59 -05:00
Pete Harverson 39af596d69
[ML] Fix alignment of values in data frame analytics results view badges (#86621) 2020-12-22 10:48:47 +00:00
Stratoula Kalafateli a79e8a341c
[Visualizations] Remove charts - editor plugins cyclic dependencies (#84887)
* Remove charts - editor cyclic dependencies

* Move translations from the charts plugin to the editor plugin

* Remove the dependency from the script as it is gone

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 11:15:28 +02:00
Cauê Marcondes c4a8c688e9
fixing blank page (#86640) 2020-12-22 09:34:03 +01:00
Chris Roberson ecb4522910
[Monitoring] Convert Kibana-related server files that read from _source to typescript (#86364)
* Identifying kibana source fields

* Fix types

* Fix types, take 2

* Should really fix it now

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 20:54:35 -05:00
Lisa Cawley 5725e14b69
[ML] Edits saved object synchronization message (#86664) 2020-12-21 12:15:10 -08:00
Christiane (Tina) Heiligers 68ec9d2f22
Uses the new es client in canvas usage collector's fetch methods (#86668) 2020-12-21 13:06:59 -07:00
Dima Arnautov 58b429749f
[ML] Support legacy watcher URL (#86661)
* [ML] update watcher URL, support legacy state

* [ML] fix comment
2020-12-21 20:59:23 +01:00
Quynh Nguyen 8760fa5a4d
[ML] Fix Single Metric Viewer y domain extending beyond the visible focus area (#86655) 2020-12-21 13:30:41 -06:00
Gidi Meir Morris 2db76660ce
[Alerting] Encourage type safe usage of Alerting (#86623)
This PR encourages type safe usage of the Alerting framework by replacing the current default Params/State/InstanceState/InstanceContext types (which are `AlertTypeParams`/`AlertTypeState`/etc.) with `never`.
This means that code can continue to omit the specific types for these fields, as long as they aren't referenced.
Once an alert developer wishes to actually reference the parameters (or state/context), then they have to specify the type.

This PR also changed the typing of the `AlertTypeParams` and `AlertTypeState` from `Record<string, any>` to `Record<string, unknown>`, to ensure that where these catch-all types are used they will at least enforce `unknown` rather than `any`.
This change broke some usage in both @elastic/kibana-alerting-services  plugins, but also other plugins in the Stack/Solutions. I tried to fix these where I could, but some of these require new types and refactoring in other teams' code, which I decided is best done by the team who own and maintain that code - I've added explicit `TODO` comments in all of these places, describing the required fix.

This PR also introduced a Generics based typing for the `Alert` type so that the `params` field can be typed as something other than `AlertTypeParams`.
2020-12-21 19:17:04 +00:00
Dima Arnautov 7de243e7fd
[ML] Fix time range adjustment for the swim lane causing the infinite loop update (#86461)
* [ML] fix swim lane time selection adjustment

* [ML] fix adjustment

* [ML] fix tooManyBuckets condition

* [ML] fix typo
2020-12-21 19:54:45 +01:00
Paul Tavares 1e9e0400a0
Added docs for fleet UI extensions (#86654) 2020-12-21 11:59:03 -05:00
James Gowdy f349d0a398
[ML] Fix cloning of partition field in per-partition categorization jobs (#86635)
* [ML] Fix cloning of partition field in per-partition categorization jobs

* fixing cloned bucket span
2020-12-21 16:56:35 +00:00
Chris Roberson 805fc4b95c
Fix more sorts by adding unmapped_type (#85837)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 11:50:28 -05:00
James Gowdy 5bcef6f82e
[ML] Fix displaying of setup errors in recognizer wizard (#86430)
* [ML] Fix displaying of setup errors in recognizer wizard

* add saved object error

* sharing error message extractor

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 16:31:56 +00:00
Wylie Conlon 664a7553d2
[Lens] Refactor param editor to use layers (#86499)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 11:19:25 -05:00
Steph Milovic 513138ba7c
[Security Solution] Fixing jest warnings and errors (#86532) 2020-12-21 08:18:32 -07:00
ymao1 8d5dd1de63
[Alerting] Updating wording on "Notify" dropdown (#86453)
* Updating wording

* PR fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 10:11:19 -05:00
Walter Rafelsberger d744eaec8c
[ML] Data Frame Analytics: Scatterplot Matrix Fixes (#86357)
- use ml API service from the Kibana context
- adds jest tests for the Vega Lite Spec generator
- fix chart layout overflow with too many fields selected
2020-12-21 15:22:42 +01:00
Alejandro Fernández Gómez 34803ed98b
[Logs UI] Toggle log entry context menu when user clicks the trigger button (#86307)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 15:13:07 +01:00
Joe Reuter 36a8343064
fix time scaling bugs (#86444) 2020-12-21 15:02:51 +01:00
Joe Reuter 388b2508b3
[Lens] Make sure Lens does not reload unnecessarily (#86092) 2020-12-21 14:26:14 +01:00
James Gowdy 6d72042ca4
[ML] Fixing endpoint schema for can_delete_job endpoint (#86436)
* [ML] Fixing endpoint schema for can_delete_job endpoint

* changing get to post in docs

* renaming canUntag

* fixing typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-21 12:17:53 +00:00
Thom Heymann c05533ebbd
Fix ECS HTTP scheme and improve docs (#86612) 2020-12-21 11:42:51 +00:00
Cauê Marcondes 74d1e39ea4
[APM] Bug: Service overview: Link to Transactions list from the Overview page is broken (#86447)
* fixing link and refactoring some stuff

* addressing pr comments
2020-12-21 12:36:20 +01:00
Madison Caldwell 0d9b40dfef
[Security Solution][Detections][Threshold Rules] Threshold Rule Bug Fixes (#84918)
* Move threshold dupe detection logic to its own function

* Minor fixup

* Refactor and remove property injection for threshold signals

* Only show aggregatable fields for threshold rule grouping

* Add threshold rule kql filter to timeline

* Remove outdated getThresholdSignalQueryFields tests

* Filter aggregatable fields on client

* Revert "Only show aggregatable fields for threshold rule grouping"

This reverts commit 539fa49cc9.

* Fix bug with incorrect calculation of threshold signal dupes when no threshold field present

* Revert "Add threshold rule kql filter to timeline"

This reverts commit 64823744a3.

* Add test skeleton

* Finish tests

* Address comment
2020-12-20 14:10:52 -05:00
Yuliia Naumenko 396018fd4d
Removed a possibility to define two different names for Alert types on API and UI level. (#86236)
* Removed a possibility to define two different names for Alert types on API and UI level

* fixed typechecks

* fixed typechecks

* fixed due to comments

* fixed typechecks

* fixed jest tests

* fixed typechecks
2020-12-20 08:52:54 -08:00
Matthew Kime c129f93083
[index patterns] Fleep app - Keep saved object field list until field caps provides fields (#85370) 2020-12-19 21:56:06 -06:00
Xavier Mouligneau 9fce3b2c88
[Security Solutions] fix timeline tabs + layout (#86581)
* fix timeline tabs + fix screenreader

* review

* fix jest tests
2020-12-19 18:38:46 -05:00
Thomas Watson e8b21bc6c1
Upgrade to hapi version 20 (#85406) 2020-12-19 13:10:11 +01:00
Luke Elmers 9a3e2910a3
App Services: Remove remaining uiActions, expressions, data, embeddable circular dependencies. (#82791)
* Move applyFilter, selectRange, valueClick triggers to data/embeddables.

* Update imports.

* Remove embeddable references to non-existent data plugin dependency.

* remove data mocks from embeddable

* Remove query, filters, timeRange from EmbeddableInput and move to apps.

* Remove data plugin imports from embeddable test samples.

* Remove circular dependencies caused by expressions renderer handlers.

* Update circular deps allowList.

* Remove data dependency on embeddable.

* Revert accidental data plugin change.

* Fix new circular deps issues.

* Update generated docs.

* Fix type errors in vis_type_xy

* Fix inspector data table.
2020-12-18 18:34:07 -07:00
Thomas Neirynck 5493e8eace
[Maps] Use Json for mvt-tests (#86492) 2020-12-18 19:53:41 -05:00
Yulia Čech f7ace5e16d
[Rollup Jobs] Added autofocus to cron editor (#86324) 2020-12-18 16:53:09 -08:00
igoristic 94b49451ef
[Monitoring][Alerting] CCR read exceptions alert (#85908)
* CCR read exceptions all branches

* cleanup

* CR feedback

* Added UI/UX to ccr/shards listing and details

* Fixed snaps

* Added reason for the exception

* Added setup mode funtionality and alert status
2020-12-18 18:09:14 -05:00
Jason Stoltzfus 563fa6de22
[App Search] Updates to results on the documents view (#86181) 2020-12-18 17:01:05 -05:00
Constance 122f1e199b
[App Search] Convert DocumentCreationModal to DocumentCreationFlyout (#86508)
* Convert DocumentCreationModal to a Flyout

- Per discussion w/ Davey - it handles longer/detailed content better

* Update instances referencing DocumentCreationFlyout

* Update flyout children

- modal->flyout
- add hasBorder, set EuiTitle sizes, add flexgroup to footer buttons
2020-12-18 13:31:21 -08:00
Constance 8e71720502
[App Search] Sample Engines should have access to the Crawler (#86502)
* Remove logic preventing Crawler from being used on sample engines

* Remove check around crawler button in DocumentCreationButtons

- primarily a UI thing - ideally we always want to show 4 buttons
2020-12-18 13:25:35 -08:00
ymao1 b5197a36d4
[Alerting UI] Centered loading spinners (#86186)
* Creating shared loading spinner component

* Using section loading component where it makes sense

* Fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 15:26:24 -05:00
Candace Park 73068e755c
[Security Solution][Endpoint][Admin] Remove spaces in custom malware message brackets (#86393) 2020-12-18 14:45:29 -05:00
Candace Park b484071096
[Security Solution][Endpoint][Admin] Disables malware checkbox when switch is off and can now save in detect mode (#86402) 2020-12-18 14:07:26 -05:00
Scotty Bollinger 3379763965
[Workplace Search] Refactor AddSource component state and add tests (#86482)
* Rename variables

This will make reviewing later commits easier

* Use internal routing instead of history.push

Also updates path to Loading

* Move state from component to logic

* Add tests
2020-12-18 12:54:59 -06:00
Dan Panzarella e716106307
[Security Solution] Correct Policy Config to current license level on fetch (#85206) 2020-12-18 13:41:05 -05:00
Constance d73af3282f
[Enterprise Search] Basic DocumentCreation creation mode modal views (#86056)
* Add ApiCodeExample modal component

- Previously lived in EngineOverview / Onboarding

* Add basic PasteJsonText component

* Add basic UploadJsonFile component

* [Refactor] Have all modal components manage their own ModalHeader & ModalFooters

- Per feedback from Casey
+ Update DocumentCreationModal to use switch

* Set basic empty/disabled validation on ModalFooter continue buttons

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/document_creation/creation_mode_components/api_code_example.tsx

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

* [PR feedback] Typescript improvements

* [PR feedback] Remove need for hasFile reducer

- by storing either 1 file or null
- which gets around the stored FileList reference not triggering a rerender/change

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-18 10:16:27 -08:00
Christiane (Tina) Heiligers 0155974591
Migrates elasticsearch client in the settings usage collector (#86397) 2020-12-18 10:53:34 -07:00
Dan Panzarella 5376d6c8f1
[Security Solution] Fix Policy-License-Watcher payload (#86185) 2020-12-18 11:35:15 -05:00
Scotty Bollinger 62833a35df
[Workplace Search] Add AddSourceLogic tests (#86334)
* Remove missed action calls

These were missed in the PR that split apart add_source_logic from source_logic. These 2 mthods aren’t even in this file. My mistake

* Change order of method calls

For some reason the test would not pass with the order of the methods the way they were. Changing the order to where the error callback is called first somehow made the test pass

* Fix bug where query params never set

Uncovered a bug while writing this test. After moving from ent-search to Kibana, it was discovered that the Kibana server did not work well with an empty question mark in the URL. The fix attempted to use lodash’s isEmpty metthod. The problem is that the URLSearchParams class instance created is not an object but has getter/setter functionality so isEmpty always returned true. This fixes it to actually work.

* Remove throw blocks

In ent-search we had to account for edge cases where the error state wasn’t bubbling up. One of these has been covered with global flash messages. The other will be tested at later date. A tech-debt item has been created.

Reference PRs:
https://github.com/elastic/ent-search/pull/394
https://github.com/elastic/ent-search/pull/701

* Export interfaces for use in tests

* Add tests for add_source_logic

* Remove weird import

I guess the IDE autocompleted that. Should not have been there

* Remove redundant test

This test was added before this comit when trying to get coverage for the throw blocks
7ca9c2b244

* Lint fixes
2020-12-18 10:32:13 -06:00
Steph Milovic f8f1711688
[Security Solution] [Cases] Follow up jest tests for #84587 (#86231) 2020-12-18 09:23:09 -07:00
Thom Heymann e65c533d10
Add audit events for spaces (#86343)
* Add audit events for spaces

* fix eslint error
2020-12-18 15:29:35 +00:00
Lisa Cawley de0aceb4fb
[ML] Adds documentation links in the help menu for machine learning (#85366) 2020-12-18 07:12:31 -08:00
Christiane (Tina) Heiligers 3a6e2a31c7
[GS] Allows apps to register searchable keywords for Global Search (#85686) 2020-12-18 08:10:28 -07:00
Mike Côté ca24e1123e
Sort action type filters in alerts list and hide case action type (#86360)
* Hide case action type from alert list action type filter

* Apply a sort as well
2020-12-18 10:02:17 -05:00
Nick Partridge ddea10e718
Create vis_type_xy plugin to replace histogram, area and line charts (#78154) 2020-12-18 08:38:07 -06:00
Marta Bondyra cea865f5a9
[Lens] fix transition date_histogram/last_value -> top values/last_value (#86429) 2020-12-18 14:59:49 +01:00
Mike Côté d5d19f0652
Remove the wait_for refresh when partially updating the alert's execution status (#86316) 2020-12-18 08:13:49 -05:00
Christos Nasikas 12ddcbf9c9
[Security Solution][Case] Fix sync alerts label (#86422) 2020-12-18 13:15:15 +02:00
Christos Nasikas 3e5ca0b3c7
[Security Solution][Case] Fix bug where selected connector is not displaying by default when creating a new case (#86111) 2020-12-18 12:57:14 +02:00
Yulia Čech 932bdd3d29
[Index Management] Managed data streams renamed to Fleet-managed and table layout improvement (#86285)
* Updated fleet managed labels and table layout

* Added default width to health column
2020-12-18 11:48:18 +01:00
Felix Stürmer 5c50f08de6
[Logs UI] Replace custom auto-completion component with shared QueryStringInput (#85973)
This replaces the usage of a custom auto-completion component with the shared `<QueryStringInput>` component provided by the `data` plugin. Aside from fixing the focus loss issue that caused #84543 this also introduces the inclusion of historic, local-storage-persisted queries in the suggestions.
2020-12-18 11:23:51 +01:00
James Gowdy b1d18e5d9e
[ML] Fixing job id reuse when previous job was in diffrent space (#86270) 2020-12-18 09:40:27 +00:00
Nathan L Smith feecebf85e
Ensure transactionType is used in overview (#85665)
* Ensure transactionType is used in overview

Fix the places where it was not being used:

- Transactions table
- Error rate chart
- Errors table

Also fix broken column sorting on transaction table.

* fix a sort

* test fix

* Snapshot update

* adds missing required param transactionType to API test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2020-12-17 18:09:30 -08:00
Paul Tavares 915ec196be
Rename Fleet integration detail "Custom" tab to "Advanced" (#86359) 2020-12-17 19:51:20 -05:00
Michael Olorunnisola fd464bec4d
[Security Solution][Analyze Event] Fix refresh infinite loop (#86194)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 18:21:58 -05:00
Quynh Nguyen 426f96328c
[ML] Fix functional tests for index based Data Visualizer (#86071)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 15:31:47 -06:00
Nathan Reese 7eea1ba4f4
[Maps] fix layer style editor is empty for EMS boundaries layer (#86280)
* [Maps] fix layer style editor is empty for EMS boundaries layer

* remove cruft

* tslint
2020-12-17 14:28:41 -07:00
Jonathan Budzenski 4a51fef707 skip 'creates and activates a new ml rule' #86355 2020-12-17 14:29:52 -06:00
Alison Goryachev 2b98dc693c
[Ingest pipelines] Add support for URI parts processor (#86163) 2020-12-17 15:22:16 -05:00
Liza Katz 3eaf86b944
[Search] Session server side functional tests (#86152)
* OSS search functional tests

* x-pack tests

* Session tests

* Update search.ts

* Update session.ts

* Update test/api_integration/apis/search/search.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* reportServerError

* Improve response error codes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2020-12-17 22:04:53 +02:00
Jonathan Budzenski cb2b1624ce skip 'Alert rules, prebuilt rules' #86356 2020-12-17 13:45:49 -06:00
Jonathan Budzenski 94e663291a skip 'Export rules' #85217 2020-12-17 13:31:40 -06:00
Quynh Nguyen 271b45db3f
[ML] If there's no anomaly found, auto default to plotting the mean (#85866)
* [ML] If there's no anomaly found, auto default to plotting the mean

* [ML] Remove {}
2020-12-17 13:30:41 -06:00
Jonathan Budzenski d3aaf71843 skip 'Detection rules, sequence EQL' #85674 2020-12-17 13:24:17 -06:00
Walter Rafelsberger 755dc7e8ee
[ML] Anomaly Detection: Fix validation error when no data in index. (#86114)
For cardinality checks, an empty index of the fields checks not returning any results would block the user from moving to the next step in the Anomaly Detection job wizard.
This PR fixes it by adding more fine grained checks and only returning warning-level messages for the above cases. A warning-level message will allow the user to continue to the next step in the wizard.
2020-12-17 18:58:37 +01:00
CJ Cenizal 7bac741a1e
Fix bug in which Index Management data streams were being sorted incorrectly by storage size. (#86204)
They were previously being sorted alphabetically using the humanized size value. Now they're sorted numerically by the raw bytes value.
2020-12-17 09:52:16 -08:00
Melissa Alvarez 5d2014dec5
initial api integration test for DFA map api (#86225) 2020-12-17 12:35:50 -05:00
Paul Tavares 8c5f64f07e
[SECURITY_SOLUTION][ENDPOINT] Fix and enhance the Trusted Apps generator data loader (#86144)
* Fix and enhance the Trusted apps data loader
* add `--help` cli option
2020-12-17 12:04:08 -05:00
Yuliia Naumenko 76670ec05e
Removed mocking hacks from alert plugin.test.ts (#86206) 2020-12-17 08:27:57 -08:00
Constance 694bbd42dd
[Enterprise Search] Jest config & handy Jest script (#84839)
* Update Jest config to automatically report coverage

- No more super intricate yarn commands! Hooray

* Add handy shell script for running tests & coverage on specific folders/subdirectories
2020-12-17 08:19:33 -08:00
Melissa Alvarez 885c868717
ensure results not stuck in loading state when no docs returned (#86178) 2020-12-17 11:10:30 -05:00
MadameSheema 486e232be7
[Security Solution] Cypress back to live (#86093)
* removes signals extra sanity

* fixes signals cleaning

* cleans kibana before each test execution

* upgrades cypress to version 6.1.0

* enables cypress execution on jenkins

* generalises kibana cleanining indexes

* cleans after hooks

* fixes type check errors

* moves archive unloads to after hooks

* fixes alert test

* skips failed tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 17:05:53 +01:00
Paul Tavares f0234cbb9e
[Fleet] Bug fixes to Policies list under Integrations section (#86183)
* Fix table cell not having tooltips
* Show loading message while data is being retrieved
2020-12-17 10:22:48 -05:00
Nathan L Smith d2a7c32025
Fixes for service overview layout (#86205)
* Fixes for service overview layout

* Use 3/7 instead of 4/6 for `grow` between charts/tables
* Decrease chart height
* Use "s" gutterSize on tables
* Decrease table height
* Use `TruncateWithToolTip` on errors and transactions tables to remove tooltip inline-block style
* Use `responsive={false}` on dependency titles so icon/name pairs don't wrap
* Use `responsive={false}` on spark plots so plot/value pairs don't wrap
* Use `responsive={false}` on latency chart and table titles so controls and links don't wrap
* Make the fixed sizing overrides for the tables only be applied when we're using a wide, non-mobile (> 992) viewport
* Switch to "mobile" viewport (with one item per row) at 992 instead of 768

Since you cannot control the breakpoints at which EUI switches to "responsive" mode, we trigger these manually to change the number of columns. and whether or not the tables use a fixed height.

The overview now has three "modes":

* Two columns for chart/table rows
* Tables in non-responsive mode

* One column for charts/tables
* Tables in non-responsive mode

* One column for charts/tables
* Tables in non-responsive mode

Fixes #85781.

* remove unused imports
2020-12-17 06:24:13 -08:00
James Gowdy 6f8697e198
[ML] Removing space awareness for trained models (#86132) 2020-12-17 14:21:31 +00:00
Oliver Gupte 1007c8713a
Closes #84094 by adding configuration xpack.apm.maxServiceSelection. (#86234) 2020-12-17 06:15:07 -08:00
Dima Arnautov bf60796cd3
[ML] Fix Anomaly Explorer data refresh with relative time bounds (#86142)
* [ML] use time bounds from the timeFilter

* [ML] add manual type casting for times
2020-12-17 15:14:17 +01:00
Pete Harverson b70cabbdcb
[ML] Fix sort order of data recognizer module cards (#86250)
* [ML] Fix sort order of data recognizer module cards

* [ML] Add sort by ID to server side recognize endpoint

* [ML] Enhance docs for recognize endpoint success response.
2020-12-17 14:11:51 +00:00
Felix Stürmer 2106419007
[Logs UI] Fix value completion in the logs stream query bar (#85772)
This ensures that the correct index name pattern is passed as the fake `IIndexPattern` `title`.
2020-12-17 14:47:26 +01:00
Phillip Burch 93dcaeea68
[Metrics UI] Only allow one panel to be open at a time (#85977)
* Only allow one panel to be open at a time

* Move EuiOutsideClickDetector inside the portal

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 06:21:06 -06:00
Peter Pisljar b93034b72c
inspector table adapter cleanup (#84232) 2020-12-17 12:14:07 +01:00
Liza Katz 5be169a4fc
[Search] Use filter to bulk find (#85551)
* Use filter to bulk find

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Dashboard in space test

* Add warning on update failure

* fix merge

* Added functional test for sessions in space

* snapshot

* test cleanup

* Update src/plugins/data/common/es_query/kuery/node_types/node_builder.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Revert "Update src/plugins/data/common/es_query/kuery/node_types/node_builder.ts"

This reverts commit 4b7e781fe6.

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 12:17:02 +02:00
James Gowdy 2066b3d7ca
[ML] Fix synching jobs from other spaces (#86086)
* [ML] Fix synching jobs from other spaces

* updating text in delete modal

* updating translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-17 09:08:17 +00:00
Tyler Smalley c5e9543fc9 Revert "chore(NA): rebalance x-pack cigroups (#85797)"
This reverts commit 1e3a483b06.
2020-12-16 15:28:53 -08:00
Constance 7cbc295d76
Revert "[App Search] Temporarily remove sidebar layout and internal engine links for 7.11 release (#85820)" (#86138)
This reverts commit 4d398f2461.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:28:22 -08:00
Cauê Marcondes 53da425c8e
[APM] Updated header icons (#84760)
* creating service name header

* fixing icons

* removing unused api import

* fixing some stuff

* adding API tests

* refactoring some stuff

* fixing tests

* refactoring some stuff

* fixing i18n

* reverting

* renaming

* applying min width

* addressing PR comments and adding test

* sorting service version

* changing sort type to desc

* addressing pr comments

* changing to show total and not avg

* addressing pr comments

* addressing pr comments

* addressing pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 23:08:17 +01:00
Oliver Gupte 1fddf94274
Closes #83663 by adding a prepend label to the search bar in service overview (#86143) 2020-12-16 13:58:06 -08:00
Nathan L Smith 364a1c18f9
Set default for agent icons (#86023)
* Make `getAgentIcon` return a default icon instead of `undefined` when no icon is matched.
* Have the service map icon method check for the agent name to determine whether to use an agent or span icon. Both functions return the default icon when no match is found
* Remove the IE11 conditionals for service map icons
* Set a width on the icons used in the lists to prevent them from being stretched out
* Use EUI theme for icon sizing

Fixes #85150.
2020-12-16 15:40:35 -06:00
Marta Bondyra 5b9e285582
[Lens] (Accessibility) focus on adding/removing layers (#84900) 2020-12-16 21:58:14 +01:00
ymao1 e863bfb198
[Alerting UI] Fixing bug when switching between threshold comparators (#85844)
* Fixing bug when switching between comparators with different number of inputs

* Triggering onThresholdChange call on next render cycle
2020-12-16 15:51:51 -05:00
Scotty Bollinger 0ad88af894
[Workplace Search] Add unit tests for Add Source components (#86020)
* Add mocks

* Make mergeServerAndStaticData available to tests

This method is needed to combine the 3 types of data to use in the logic files. Exporting this so that the mock data can be combined for testing in components.

It was discovered that the serverData had the wrong typings. This was only discovered when actully mocking the real server data, so it was changed here.

* Add tests for AddSourceHeader

* Add tests for AddSourceList

* Add tests for AvailableSourcesList

* Add tests for ConfigCompleted

* Add tests for ConfigDocsLinks

* Add tests for ConfigurationIntro

* Add tests for ConfigureCustom

* Add tests for ConfigureOauth

* Fix typo

* Add coverage for missing functions

The converage tool was complaining and this change assures formSubmitSuccess and  handleFormSubmitError are covered

* Fix mocks

Needed an accountOnly source in this test so changed and update other tests where used

* Add tests for ConfiguredSourcesList

* Add tests for ReAuthenticate

Also changes the syntax of the redirect to use the replace method for easier testing

* Add sourceConfigData mock

* Add tests for SaveConfig

* Add tests for SaveCustom

* Add tests for SourceFeatures

* Add tests for ConnectInstance

As with the ReAuthenticate component, changes the syntax of the redirect to use the replace method for easier testing.
2020-12-16 14:25:16 -06:00
Dmitry 2fcce0bcbc
[coverage] re-enable jest (#85946)
* [coverage] re-enable jest

* fix coverage script for x-pack

* use presets in entry configs

* set max workers

* run tests from x-pack folde

* remove duplicate 'reporters' prop

* remove reporters for x-pack config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 20:20:55 +01:00
ymao1 7933f0458c
Fixes Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout·ts - Actions and Triggers app create alert should show save confirmation before creating alert with no actions (#85623)
* Unskipping test

* Using simpler alert type during test

* Fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:04:21 -05:00
Melissa Alvarez a0898715b3
[ML] Data Frame Analytics map: add initial functional tests (#86032)
* initial functional tests for job map

* move tests to own statement
2020-12-16 13:44:59 -05:00
Xavier Mouligneau 0586c06ffc
[Security Solution] Add Pinned Event tabs on Timeline (#85905)
* wip

* finish drag & drop from pinned events + fix top n

* Fix types

* update cypress

* Fix unit tests

* fix cypress test

* fix filter out/in

* remove unused components

* fix pagination cypress test

* cypress timelines selectors

* review and skip cypress test

* more to skip

* fix type

* skip case

* Fix types

* Fix tests

* skip resolver

* only query pinned events

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2020-12-16 18:44:37 +00:00
Eric Davis 42ee51b67d
Update index.tsx to note use can go to docs for DEB/RPM Agent deploy instructions (#86128) 2020-12-16 13:41:35 -05:00
Lukas Olson 272b2d0628
[KQL] Fix handling of backslashes when autocompleting values (#85457)
* [KQL] Fix handling of backslashes when autocompleting values

* Revert change to test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 11:21:51 -07:00
Nathan Reese 4b2c9de638
[Maps] convert MBMap component to TS (#85192)
* [Maps] convert MBMap component to TS

* clean up imports messed up by eslint fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 11:21:04 -07:00
Tiago Costa 1e3a483b06
chore(NA): rebalance x-pack cigroups (#85797) 2020-12-16 09:58:46 -08:00
Søren Louv-Jansen 744d6809de
[APM] Fix broken link to ML when time range is not set (#85976) 2020-12-16 16:17:03 +01:00
Melissa Alvarez 201b456a62
fix classification matrix actual label (#86060) 2020-12-16 10:03:01 -05:00
James Gowdy ed250faabc
[ML] Adding runtime_mappings to job wizards (#85817)
* [ML] Adding runtime_mappings to job wizards

* fixing test

* adding runtime fields to fields list in datafeed preview

* fixing cardinality count for runtime field

* fixing cardinality check in data visualizer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:55:01 +00:00
Jonathan Buttner fa2db85eac
[Security Solution][Resolver] Fix node data refresh and time range (#86014)
* Pass filters from SIEM to resolver

* Fix test type errors

* Revert loading state change, update snapshots

* Make correct check in nodeData selector

* Fix inverted logic in nodeData selector

* Adding request id to node data

* Working time range filters and node data stale selector

* Fixing random name from generator and panel icons

* Fixing unused import

* Remove hardcoded node id

* Ensure that the actions array is reset before each test

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:52:55 -05:00
DeFazio 2f5f1481fb
Changes alerting search bar to use EuiFieldSearch component (#85821)
* Changes search bar to use search field specific eui component

* Update type checks
2020-12-16 09:42:29 -05:00
Dario Gieselaar 003efb1cc4
expectSnapshot: throw on CI when snapshot is new (#85376) 2020-12-16 13:21:48 +01:00
James Gowdy 168782d261
[ML] Adding job sychronization warning to job list pages (#85794)
* [ML] Adding job sychronization warning to job list pages

* fixing overview page callout

* improving check logic

* adding render lock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:30:53 +00:00
Marta Bondyra 800f79e588
[Lens] add typeToAgg for median (#86078) 2020-12-16 10:27:00 +01:00
Mikkel Malmberg 39543e84e9
[APM] Add sanitize_field_names and transaction_ignore_urls config options to Ruby agent (#85646)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:41:54 +01:00
Robert Oskamp ba7111752e
[ML] Functional tests - stabilize summary count field input (#85974)
This PR stabilizes the summary count field input by adding a retry.
2020-12-16 08:42:39 +01:00
Andrew Goldstein d559f0c3b9
[Security Solution][Timeline] Timeline and Draggable Accessibility (a11y) Improvements (#85767)
# [Security Solution][Timeline] Timeline and Draggable Accessibility (a11y) Improvements

This PR improves the accessibility of Timeline and the draggables used throughout the Security Solution.

- ⌨️ Keyboard support for all draggables
  - 🖱 Click on any draggable with the mouse to give it keyboard focus

  - 🕵️‍♀️ Press `Enter` to display the draggable's action / options menu (e.g. Filter value, Investigate in Timeline, Show Top N). The menu also displays hyperlinks to allow for keyboard navigation from draggables containing links.

  - 🚀 Press `Space` to start dragging via keyboard, and press `Space` again to drop

- 🏓 Timeline, + all Timeline-based tables (i.e. Detections, Host / Network Events, External alerts) support keyboard navigation
  - ⬆️ ⬇️ ⬅️ ➡️ arrow key navigation per the `Keyboard Support` section of [w3.org grid examples](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html)

  - 📉 📈 `page down` and `page up` support per the `Keyboard interactions` section of the [MDN ARIA grid role documentation](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>) (and also the [w3](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html))

  - 🏠 🔚 `home` and `end` moves focus to the first and last cell in the row, per [w3.org](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) & [MDN](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>)

  - 🕹🏠 🕹🔚 `ctrl + home` and `ctrl + end` moves focus to the first and last cell in the row, per [w3.org](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) & [MDN](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>)

- 🎉 Screenreader improvements for Timeline, + all Timeline-based tables, and draggables (tested with Voiceover for `macOS` version `10.15`)

  - 👂 Draggables implement custom screenreader announcements. For example, when a draggable field is selected, the screenreader reads a custom message that reads the _field name_ in addition to the value, to provide additional context. For example, selecting a field named `network_flow` may be read phonetically by the screen reader as:
  > event.action network underscore flow Press enter for actions, or press space to begin dragging

  - 📅 Timeline, + all Timeline-based tables provide an enhanced screenreader experience via the use of `EuiScreenReaderOnly` and [w3 grid roles](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) to provide context. For example, after clicking an arrow key to select a cell, the screenreader reads:

  > You are in a table cell. row: 2, column: 5, event.module system Press enter for options, or press space to begin dragging.

  ![you-are-in-a-table-cell](https://user-images.githubusercontent.com/4459398/102074207-a7e95000-3dc1-11eb-8e01-5b14c72094c9.png)

  - 📰 Timeline's table supports Voiceover screenreader shortcuts that read all cells across a row, or all rows down a column. See <https://github.com/elastic/kibana/issues/83364> for details

  - 🍿 popovers and tooltips were enhanced via `EuiScreenReaderOnly` to provide additional context to screen readers

- 🪓 The [axe - Web Accessibility Testing Chrome extension](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd) was run interactively throughout the Security Solution to find and fix the highest-severity issues found by `axe`

- 🧹 Other keyboard-related improvements include

  - The `Customize Columns` popover traps keyboard focus, and allows navigation of content via arrow keys & home / end

  - The `Event details` view allows navigation of content via arrow keys & home / end

  - Improvements to keyboard-focus trapping in popovers throughout the Security Solution

This PR addresses the following issues:

- [X] [[Security Solution] Add support for Voiceover announcements In Timeline's table #83364](https://github.com/elastic/kibana/issues/83364)

- [X] [[Security app] Detections events list 'overflow' ... button and expand > button do not have hover over names #74140](https://github.com/elastic/kibana/issues/74140)

- [X] [SIEM app accessibility issues #64596](https://github.com/elastic/kibana/issues/64596)

- After merging with the _Timeline Evolution_ PR, the drop zone at the bottom of the screen stopped accepting draggables after the first draggable is dropped. The current workaround is to press `Enter` to open the draggables action menu, and select the `Investigate in timeline` action. When Timeline is open, the drag area at the top of the screen accepts additional draggables via keyboard. EDIT: I paired with @XavierM on this, and he has a fix for this issue (duplicate draggable IDs) in his PR.
2020-12-15 23:20:30 -07:00
Yara Tercero be055b85b8
[Security Solution][Detections] - Add skeleton exceptions list tab to all rules page (#85465)
## Summary

This PR is the first of 2 to complete the addition of a table displaying all exception lists on the all rules page. This PR focuses on the following:

- all exception lists displayed
- 'number of rules assigned to' displayed
- names and links of rules assigned to displayed
- refresh action button working
- no trusted apps list show
- search by `name`, `created_by`, `list_id`
  - just searching a word will search by list name
  - to search by `created_by` type `created_by:ytercero`
  - to search by `list_id` type `list_id:some-list-id`

#### TO DO (follow up PR)
- [ ] add tests
- [ ] wire up export of exception list
- [ ] wire up deletion of exception list

<img width="1121" alt="Screen Shot 2020-12-09 at 2 10 59 PM" src="https://user-images.githubusercontent.com/10927944/101676548-50498e00-3a29-11eb-90cb-5f56fc8c0a1b.png">

### Checklist
- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2020-12-15 22:45:18 -07:00
Garrett Spong 4dccbcad33
[SecuritySolution][Detections] Resolves referential integrity issues when deleting value lists (#85925)
## Summary

Resolves https://github.com/elastic/kibana/issues/77324, https://github.com/elastic/kibana/issues/77325, resolves https://github.com/elastic/kibana/issues/77325, and resolves https://github.com/elastic/kibana/issues/81302


This PR addresses referential integrity issues when deleting value lists. Previously when deleting value lists, any references in Exception Lists/Items would be left behind. This PR introduces a new confirmation modal when deleting value lists that are referenced in either space aware (`simple`) or space `agnostic` exception lists.

Also includes:

* Fixed Lists plugin `quick_start.sh` as it was using endpoint exception list + value lists (unsupported)
* Adds `quick_start_value_list_references.sh` to create exception lists/items, value lists, and references to easily test
* Add support to `findExceptionList` for searching for both `simple` and `agnostic` list types
* Two new query params have been added to the `deleteListRoute`
  * `ignoreReferences` (default:false) when true, maintains pre-7.11 behavior of deleting value list without performing any additional checks. 
    * NOTE: As written, this becomes an API breaking change as existing existing calls to the same API will `409` conflict if references exist. cc @jmikell821 @DonNateR 
  * `deleteReferences` (default:false) to perform dry run and identify referenced exception lists/items

## Testing
To test, run `quick_start_value_list_references.sh` and it will create all the necessary resources/references to easily exercise the above functionality. The below diagram details the resources created and how the references are wired up.

> Creates three different exception lists and value lists, and associates as
> below to test referential integrity functionality.
>
> NOTE: Endpoint lists don't support value lists, and are not tested here
>
> EL: Exception list
> ELI Exception list Item
> VL: Value list
>
>      EL1        EL2 (Agnostic)   EL3
>       |          |                |
>      ELI1       ELI2             ELI3
>       |\        /|                |
>       | \      / |                |
>       |  \    /  |                |
>       |   \  /   |                |
>       |    \/    |                |
>       |    /\    |                |
>       |   /  \   |                |
>       |  /    \  |                |
>       | /      \ |                |
>       |/        \|                |
>      VL1        VL2              VL3        VL4
>      ips.txt  ip_range.txt       text.txt   hosts.txt
>

Corner cases to be aware of:

* An exception item may have multiple value list entries -- only referenced value list entries should be removed
  * There is no API for removing individual entries. If all entries are references the entire item is deleted. If only some entries are references, the item is updated via a `PUT` (no `PATCH` support for exception items)
* It's not possible via the UI to create a space agnostic list that has value list exception items (only agnostic endpoint exception lists can be created and they do not support value lists). Please use above script to exercise this behavior.


Additional notes:
* Once the Exception List table is introduced (https://github.com/elastic/kibana/pull/85465), we can add an enhancement for deeplinking to exception lists from the reference error modal.
* The `deleteListRoute` response has been updated to include the responses from the reference checks to provide maximum flexibility
* There is no bulk API for deleting exception list items, and so they are iterated over via the `deleteExceptionListItem` API.


##### Reference error modal
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/102199153-813e1e80-3e80-11eb-8a9b-af116ca13df9.gif" />
</p>




##### Overflow example
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/102199032-5784f780-3e80-11eb-81c7-17283d002ce4.gif" />
</p>

### Checklist

Delete any items that are not applicable to this PR.

- [X] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [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
- [X] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

### For maintainers

- [X] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2020-12-15 19:50:31 -07:00
Catherine Liu 92a805f56f
[Dashboard] Panel toolbar (#83342)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 19:30:09 -07:00
Sandra Gonzales 7ae4f2d572
remove test that checks for data stream backing index names (#86052) 2020-12-15 20:34:55 -05:00
Thomas Neirynck 3b67384717
[Maps] Unify legend for percentiles, interpolate and custom ordinal color breaks (#86050)
* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)

* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks

* unify mapbox style expression

* snapshot updates

* update jest expects

* use less than and great than symbol for first and last stop

* tslint

* do not show legend if customColorRamp is not provided

* update functional test expects

* update functional test expect

* update mapbox expect expressions in join functional tests

* update mvt expects

* revert mapbox style expression changes for interpole color ramp

* add greater then and equal to symbol for last stop

* disable stop input for first ordinal color stop

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

* fix crossmerge

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 18:25:16 -07:00
Aaron Caldwell 767a052521
[Maps][File upload] Fix geojson upload diacritic handling (#83122)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 17:31:49 -07:00
Steph Milovic 8f8e933741
[Actions] [Security solution] Jest tests for case_params files (#86028) 2020-12-15 17:20:22 -07:00
Michael Olorunnisola a9adeee891
[Security Solution][Resolver] Stop tooltip from triggering on popover open (#86010) 2020-12-15 18:46:49 -05:00
Walter Rafelsberger 5bf6eeb8c6
[ML] Data frame analytics: Scatterplot matrix for outlier detection. (#73419)
Scatterplot Matrix for Data Frame Analytics Creation Wizard and Outlier Results pages.
2020-12-16 00:26:47 +01:00
Tyler Smalley c3770fd709 Revert " [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)"
This reverts commit 85dae266eb.
2020-12-15 14:43:41 -08:00
Lisa Cawley a9a06ffa74
[ML] Add machine learning documentation links (#85089) 2020-12-15 14:43:27 -08:00
Paul Tavares 69000ffb0d
[SECURITY_SOLUTION][ENDPOINT] Show Trusted Apps summary stats on Custom tab under fleet integrations (#86018)
* show trusted app summary
2020-12-15 17:30:38 -05:00
Georgii Gorbachev 06907b845e
[Security Solution][Detections] Update read-only callouts from warning to info so they persist when dismissed (#84904)
**Addresses:** https://github.com/elastic/kibana/issues/76587

## Summary

In this PR I'm doing basically 2 things:

1. Making readonly callouts we have in Detections `primary` instead of `warning` and thus persistable in local storage (if a callout is dismissed, we remember it there)
2. Creating a reusable implementation for that.

TODO:

- [x] Adjust all callouts used in Detections to be of type `primary`
- [x] Implement the local storage logic (dumb)
- [x] Implement the local storage logic (reusable)
- [x] Add a new user role: "Reader" (read-only user)
- [x] Add Cypress tests

Out of scope:

- Add unit tests. I'll probably address this in a follow-up PR. Do you think it's worth it or better to wait until the rework (see the next point)?
- Rework callouts to standardise them across Detections, Cases and other parts of the Security app? See my comment below in this PR.

## Screen recordings

Quick demo of how this implementation works:

- [primary callouts](https://drive.google.com/file/d/1SYQd_ihKPvzlVUxELI8qNEqLBOkL18Gd/view?usp=sharing)
- [warning, danger](https://drive.google.com/file/d/1lrAFPyXNjOYSiEsUXxY_fjXsvmyDcdWY/view?usp=sharing) (callout types here were manually adjusted)

## Additional notes

Cypress tests are based on the work done in https://github.com/elastic/kibana/pull/81866.

![](https://puu.sh/GXwOd/1c855cb03f.png)
2020-12-15 23:28:00 +01:00
Thomas Neirynck 24f463f84c
[Maps] Track enterprise use of on-prem EMS (#85885) 2020-12-15 16:50:26 -05:00
Nathan Reese 85dae266eb
[Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)
* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks

* unify mapbox style expression

* snapshot updates

* update jest expects

* use less than and great than symbol for first and last stop

* tslint

* do not show legend if customColorRamp is not provided

* update functional test expects

* update functional test expect

* update mapbox expect expressions in join functional tests

* update mvt expects

* revert mapbox style expression changes for interpole color ramp

* add greater then and equal to symbol for last stop

* disable stop input for first ordinal color stop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 14:42:02 -07:00
Dima Arnautov e17cd65196
[Transform] Add support for latest function (#85784)
* [Transform] add latest to the schema definition

* [ML] update interfaces, add guards

* [Transform] WIP support latest function

* [Transform] fix request with missing_bucket after merge

* [Transform] fix error in useDeleteTransforms

* [Transform] fix types and fields sorting for pivot

* [Transform] fix types and jest tests

* [Transform] fix error shape

* [Transform] fixed card width, change description

* [Transform] fixed API integration tests

* [Transform] fix config mapper

* [Transform] improve wizard performance
2020-12-15 22:40:13 +01:00
Constance 2a71d41a60
[App Search] Document Creation Buttons & bare-bones modal/logic (#85902)
* [Setup] Add EuiCardTo helper

* Set up very basic DocumentCreationLogic file modal management

* Create buttons and modal components

* Update EngineOverviewEmpty to use only DocumentCreationButtons

- Remove API section/example/constants for now: per design discussion, we'll be moving this section into the document creation modal
- Move preceding DOCUMENT_CREATION_DESCRIPTION paragraph directly into DocumentCreationButtons, since the Documents view will just use this verbatim

* Update Documents view Index Documents button to show DocumentsCreationModal

- with some extra logic to add a new creationStep view
+ some minor test cleanup / clarification for openDocumentCreation

* Update Crawler button with conditional check

- Forgot to port this over initially

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:34:19 -08:00
Patrick Mueller f693697c18
[actions] expand object context variables as JSON (#85903)
resolves https://github.com/elastic/kibana/issues/75601

Previously, if a context variable that is an object is referenced in a
mustache template used as an action parameter, the resulting variable
expansion will be `[Object object]`.  In this PR, we change this so that
the expansion is a JSON representation of the object.

This is primarily for diagnostic purposes, so that customers can see
all the context variables available, and their values, while testing
testing their alerting actions.
2020-12-15 16:31:36 -05:00
Quynh Nguyen 74ae348f2d
[ML] Redesign index-based Data Visualizer (#85726) 2020-12-15 15:19:47 -06:00
Michael Olorunnisola bfb65434a6
[Security Solution][Resolver] Fix failing test & cleaned up prop drilling (#85994) 2020-12-15 16:00:30 -05:00
Pierre Gayvallet a4c4fe0504
[SO Tagging] Update tag delete modal confirmation title (#85997)
* Update tag deletion modal confirmation text

* add .
2020-12-15 21:41:47 +01:00
Thomas Neirynck 47e2663473
[Maps] Add percentile (#85367) 2020-12-15 15:40:21 -05:00
Rudolf Meijering 89bd0fbf1e
Resilient saved object migration algorithm (#78413)
* Initial structure of migration state-action machine

* Fix type import

* Retries with exponential back off

* Use discriminated union for state type

* Either type for actions

* Test exponential retries

* TaskEither types for actions

* Fetch indices instead of aliases so we can collect all index state in one request

* Log document id if transform fails

* WIP: Legacy pre-migrations

* UPDATE_TARGET_MAPPINGS

* WIP OUTDATED_DOCUMENTS_TRANSFORM

* Narrow res types depending on control state

* OUTDATED_DOCUMENTS_TRANSFORM

* Use .kibana instead of .kibana_current

* rename control states TARGET_DOCUMENTS* -> OUTDATED_DOCUMENTS*

* WIP MARK_VERSION_INDEX_READY

* Fix and expand INIT -> * transition tests

* Add alias/index name helper functions

* Add feature flag for enabling v2 migrations

* split state_action_machine, reindex legacy indices

* Don't use a scroll search for migrating outdated documents

* model: test control state progressions

* Action integration tests

* Fix existing tests and type errors

* snapshot_in_progress_exception can only happen when closing/deleting an index

* Retry steps up to 10 times

* Update api.md documentation files

* Further actions integration tests

* Action unit tests

* Fix actions integration tests

* Rename actions to be more domain-specific

* Apply suggestions from code review

Co-authored-by: Josh Dover <me@joshdover.com>

* Review feedback: polish and flesh out inline comments

* Fix unhandled rejections in actions unit tests

* model: only delay retryable_es_client_error, reset for other left responses

* Actions unit tests

* More inline comments

* Actions: Group index settings under 'index' key

* bulkIndex -> bulkOverwriteTransformedDocuments to be more domain specific

* state_action_machine tests, fix and add additional tests

* Action integration tests: updateAndPickupMappings, searchForOutdatedDocuments

* oops: uncomment commented out code

* actions integration tests: rejection for createIndex

* update state properties: clearer names, mark all as readonly

* add state properties currentAlias, versionAlias, legacyIndex and test for invalid version scheme in index names

* Use CONSTANTS for constants :D

* Actions: Clarify behaviour and impact of acknowledged: false responses

* Use consistent vocabulary for action responses

* KibanaMigrator test for migrationsV2

* KibanaMigrator test for FATAL state and action exceptions in v2 migrations

* Fix ts error in test

* Refactor: split index file up into a file per model, next, types

* next: use partial application so we don't generate a nextActionMap on every call

* move logic from index.ts to migrations_state_action_machine.ts and test

* add test

* use `Root` to allow specifying oss mode

* Add fix and todo tests for reindexing with preMigrationScript

* Dump execution log of state transitions and responses if we hit FATAL

* add 7.3 xpack tests

* add 100k test data

* Reindex instead of cloning for migrations

* Skip 100k x-pack integration test

* MARK_VERSION_INDEX_READY_CONFLICT for dealing with different versions migrating in parallel

* Track elapsed time

* Fix tests

* Model: make exhaustiveness checks more explicit

* actions integration tests: add additional tests from CR

* migrations_state_action_machine fix flaky test

* Fix flaky integration test

* Reserve FATAL termination only for situations which we never can recover from such as later version already migrated the index

* Handle incompatible_mapping_exception caused by another instance

* Cleanup logging

* Fix/stabilize integration tests

* Add REINDEX_SOURCE_TO_TARGET_VERIFY step

* Strip tests archives of */.DS_Store and __MAC_OSX

* Task manager migrations: remove invalid kibana property when converting legacy indices

* Add disabled mappings for removed field in map saved object type

* verifyReindex action: use count API

* REINDEX_BLOCK_* to prevent lost deletes (needs tests)

* Split out 100k docs integration test so that it has it's own kibana process

* REINDEX_BLOCK_* action tests

* REINDEX_BLOCK_* model tests

* Include original error message when migration_state_machine throws

* Address some CR nits

* Fix TS errors

* Fix bugs

* Reindex then clone to prevent lost deletes

* Fix tests

Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 21:40:02 +01:00
Scotty Bollinger 15876f85b1
[Workplace Search] Split out logic between Source and AddSource (#85658)
* Copy SourceLogic to AddSourceLogic

This commit merely copies SourceLogic and renames it to AddSourceLogic with the name of the component and interfaces changed. This will make reviewing the changes easier later

* Delete duplicated logic data

* Update component paths

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 14:22:11 -06:00
John Schulz ec4fbf2901
[Fleet][EPM] Revert es-storage-related commits (#85942)
* Revert "[Fleet][EPM] Save installed package assets in ES (#83391)"

This reverts commit 81a340e681.

* Revert 00c2e96

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 15:11:46 -05:00
Nathan Reese 609d60705e
[Maps] provide function to create basemap layer descriptor (#85617)
* [Maps] provide function to create basemap layer descriptor

* update typing

* update APM map to use createBasemapLayerDescriptor

* fix useLayerList jest test

* tslint fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 12:40:44 -07:00
Nathan Reese fa82f630a0
[Maps] 7.11 documentation updates (#85857)
* [Maps] 7.11 documenation updates

* update search docs with time filter legend indicator

* clean up tracks description

* fix duplicate id

* Update docs/maps/search.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/vector-style.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/vector-style.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* review feedback

* add percentile metric aggregation

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-12-15 12:37:16 -07:00
Paul Tavares 23cd2670e1
[SECURITY SOLUTION][ENDPOINT] Trusted Apps API to retrieve item summary by OS (#85870)
* API to return trusted apps summary
2020-12-15 14:21:25 -05:00
Jane Miller 1c1e4981bb
Add malware.threshold field to mac and windows (#85971) 2020-12-15 14:15:23 -05:00
Devon Thomson e4114dc08f
Dashboard Print Optimize Class Change (#85878)
* Fixed print oversight from deangularize PR & removed grey lines from background of print optimized dashboard PDF
2020-12-15 14:01:11 -05:00
Pierre Gayvallet f4b7916699
do not throw when query parsing fails (#85970) 2020-12-15 19:54:11 +01:00
Mike Côté ccfb4b6b1d
Add footer to all emails sent by Kibana email connector with a link to open Kibana or to the alert details page (#84371)
* Initial work

* Change messaging from copy

* Fix jest tests for email connector

* Fix jest tests for alerts plugin

* Update copy

* Use server.publicBaseUrl

* Fix jest tests

* Update tests

* Cleanup jest test

* Code cleanup

* Improve email parameter names for kibana footer url

* Cleanup

* Add test for kibana footer link

* Fix type check

* Fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:51:44 -05:00
Kevin Qualters 47444e77c2
[Security Solution] Pass filters from SIEM to resolver, update resolver when refresh is clicked (#85812)
* Pass filters from SIEM to resolver

* Fix test type errors

* Revert loading state change, update snapshots

* Make correct check in nodeData selector

* Fix inverted logic in nodeData selector

* Revert nodeData invalidation logic

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:33:51 -05:00
Devon Thomson ee37f6dd91
[Time to Visualize] Transition Embeddable State Transfer to Session Storage (#85688)
* Transitioned embeddable state transfer service to use sessionStorage
2020-12-15 13:18:36 -05:00
Melissa Alvarez 11713acc7c
[ML] Data Frame Analytics: ensure map view supports dark theme (#85886)
* use current eui theme in map

* ensure labels do not overlap. add job type legend

* reduce padding in legend popover
2020-12-15 13:17:53 -05:00
Cauê Marcondes 013c1761ee
[APM] Bug: Service overview - change the Traffic and Error rate chart legend labels to the current metric (#85930)
* changing chart legends

* removing (avg) from value
2020-12-15 18:50:26 +01:00
Scotty Bollinger 7c6f1b8a0a
[Workplace Search] Add i18n to Add Source component tree (#85590)
* Add i18n for AddSourceList

* Add i18n for AvailableSourcesList

* Replace all instances of interal Link

This was missed during the migration. We need to use the components we wrap Eui components with internally.

Also fixes some imports that were unnecessarily going up one level and back down for imports.

* Add i18n for ConfigCompleted

* Add i18n for ConfigDocsLinks

* Add i18n for ConfigurationIntro

* Add i18n for ConfigureCustom

* Add i18n for ConfigureOauth

* Add i18n for ConfiguredSourcesList

* Add i18n for ReAuthenticate

* Add i18n for shared field labels

Also includea shared SourceConfigFields

* Add i18n for SaveConfig

* Add i18n for SaveCustom

* Add i18n for SourceFeatures

* Add i18n for ConnectInstance

* Fix duplicate i18n ID

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 11:44:18 -06:00
Melissa Alvarez 43e20112b1
[ML] Data Frame Analytics: check space permissions before deleting jobs (#85495)
* disable delete until checks complete

* add canDeleteJobs wrapper in saved objects service

* create DeleteJobCheckModal shared component

* wip: add deleteJobModal check in list and map views

* adding remove from current space endpoint

* updating error text

* fixing typo in variable name

* Update button content. Add untagging functionality

* adding anomaly detection delete job modal

* fix modal content bug

* refresh job map after deletion or untagging

* adding job refresh to anomaly detectors

* go straight to delete flow if only action available

* fixing test

* update text

* increase line spacing in check modal

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2020-12-15 12:44:03 -05:00
Marco Liberati 9b71c94ff1
[Lens] Add datasource fields group help text (#85544)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 18:23:41 +01:00
Davis Plumlee 13e5e55901
[Security Solution][Detection Rules] Makes threat techniques optional (#85481) 2020-12-15 12:08:15 -05:00
Constance 07f395f7dd
Misc responsive tweaks to Documents view (#85440)
+ misc cleanup - extra div, true

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 09:02:12 -08:00
Cauê Marcondes 04d4e71ff5
removing margin for sparkline charts (#85917) 2020-12-15 16:34:11 +01:00
Tiago Costa 47ffefec09
skip flaky suite (#85899) 2020-12-15 15:15:11 +00:00
Tiago Costa 5fdace379c
skip flaky suite (#85714) 2020-12-15 15:02:26 +00:00
ymao1 853f30e23d
[Alerts] Remove Add Alerts flyout onClose (#85462)
* Remove add alerts flyout after onClose

* Updating tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
2020-12-15 09:58:57 -05:00
Alison Goryachev 579ead8eaf
Handle multiple monaco editor instances for Painless lang (#85834) 2020-12-15 09:37:21 -05:00
Casper Hübertz 9ce6331ead
[APM] Increase Logstream height (#85913)
Increasing the component height for more optimal viewing experience.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 15:19:45 +01:00
Nicolas Chaulet 724b90e01b
[Fleet] Fix agent details logs on safari (#85884) 2020-12-15 09:10:17 -05:00
Steph Milovic 335cd1f6fc
[Security Solution] [Cases] Move field mappings from actions to cases (#84587) 2020-12-15 07:06:11 -07:00
Jonathan Buttner d4a631cf8e
[Security Solution][Resolver] Fixing resolver functional tests (#85647)
* Fixing resolver functional tests

* Import the animation constant

* Only check specific nodes instead of all the ones in view

* Removing check for link text

* updating test description

* Adding comments
2020-12-15 08:31:59 -05:00
Søren Louv-Jansen 20638a64e2
[APM] Correlations polish (#85116)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:15:00 +01:00
Daniil 845f716271
[Data table] Reactify & EUIficate the visualization (#70801)
* Use data grid for table vis

* Create basic table template

* Add table_vis_split component

* Apply cell filtering

* Add aria-label attributes

* Use field formatters for values

* Add no results component

* Remove legacy dependencies

* Add usePagination

* Create usePagination util

* Use percentage column and total row

* Use csv export button

* Update labels

* Fix merge conflicts

* Use split table

* Fix functional tests

* Fix dashboard tests

* Update data table functional tests

* Fix missed test

* Introduce showToolbar option

* Remove useless package

* Fix merge conflicts

* Return back kibanaUtils required bundle

* Revert "Remove useless package"

This reverts commit 144a7cd77c.

* Use feature flag for legacy vis

* Add footer row

* Remove lock files

* Revert "Remove lock files"

This reverts commit 5c5acd79f4.

* Minor fixes

* Use common no result message

* Fix broken tests

* Use ui state sorting

* Fix error

* Fix merge conflicts

* Add legacy functional tests

* Pull pagination footer up to keep with table

and fix column split growing continuously in dashboard

* Comments fixes

* Use cell actions for filtering

* Fix translations

* Fix comments

* Reduce legacy tests amount

* Update sorting

* Update split column layout

* Add telemetry for legacy vis

* Apply latest changes for split table

* Fix eslint errors

* Use aria labels with values

* Use aria label for export btn

* Fix functional test

* Update translations

* Cleanup

* Truncate cells content

* Enhance types in table_vis_response_handler.ts

* Persist columns width on change

* Fix sorting history

* Add a migration script for toolbar

* Export sorted table

* Use reportUiCounter instead of reportUiStats

* Fix integration tests

* Fix typos

* Adjust FieldFormat type

* Hide the density selector

* Update docs

* Fix pagination

* Restrict hiding the toolbar

* Fix column index on filter

* Add closePopover action

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 14:44:20 +03:00
Marco Liberati 62623cdab9
[Lens] New sorting feature for the datatable visualization (#84435)
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 12:37:59 +01:00
Vadim Dalecky a57cba4978
Drilldown allow list (#85779)
* feat: 🎸 add ROW_CLICK_TRIGGER

* feat: 🎸 wire row click event to UI Actions trigger in Lens

* feat: 🎸 add row click trigger to url drilldown

* feat: 🎸 add datatable to row click context

* feat: 🎸 pass in row index in row click trigger context

* feat: 🎸 add columns to row click trigger context

* feat: 🎸 fill values and keys event scope array

* feat: 🎸 generate correct row scope variables

* fix: 🐛 report triggers from lens embeddable

* feat: 🎸 add sample preview for row click trigger

* feat: 🎸 remove url drilldown preview box

* chore: 🤖 remove mock variable generation functions

* feat: 🎸 generate context and global variable lists

* feat: 🎸 preview event variable list

* feat: 🎸 show empty url error on blur

* feat: 🎸 add ability to always show popup for executed actions

* refactor: 💡 rename multiple action execution method

* fix: 🐛 don't add separator befor group on no main items

* feat: 🎸 wire in uiActions service into datatable renderer

* feat: 🎸 check each row if it has compatible row click actions

* feat: 🎸 allow passing data to expression renderer

* feat: 🎸 add isEmbeddable helper

* feat: 🎸 pass embeddable to lens table renderer

* feat: 🎸 hide lens table row actions which are empty

* feat: 🎸 re-render lens embeddable when dynamic actions chagne

* feat: 🎸 hide actions column if there are no row actions

* feat: 🎸 re-render lens embeddable on view mode chagne

* fix: 🐛 fix TypeScript errors

* chore: 🤖 fix TypeScript errors

* docs: ✏️ update auto-generated docs

* feat: 🎸 add hasCompatibleActions to expression layer

* feat: 🎸 remove "data" from expression renderer handlers

* fix: 🐛 fix TypeScript errors

* test: 💍 fix Jest tests

* docs: ✏️ update autogenerated docs

* fix: 🐛 wrap event payload into data

* test: 💍 add "alwaysShowPopup" test

* chore: 🤖 add comment requested in review

https://github.com/elastic/kibana/pull/83167#discussion_r537340216

* test: 💍 add hasCompatibleActions test

* test: 💍 add datatable renderer test

* test: 💍 add Lens embeddable input change tests

* test: 💍 add embeddable row click test

* fix: 🐛 add url validation

* test: 💍 add url drilldown tests

* docs: ✏️ remove url drilldown preview from docs

* docs: ✏️ remove preview from url templating

* docs: ✏️ add row click description

* chore: 🤖 move 36.5 KB bundle balance to url_drilldown

* test: 💍 simplify test case

* feat: 🎸 check if external URL is valid before redirecting user

* test: 💍 check for external URL validity

* feat: 🎸 check if external URL is allowed in exec and getHref

* test: 💍 fix test import
2020-12-15 12:17:19 +01:00
Gidi Meir Morris edb3bb732e
[Alerting] fixes broken Alerting Example plugin (#85774) 2020-12-15 10:39:56 +00:00
Dario Gieselaar 8ccad311d0
[APM] Service overview instances table (#85770) 2020-12-15 11:04:32 +01:00
Angela Chuang e261aa2649
[Security Solution] Unskip timeline creation Cypress test (#85871)
* fix cypress

* add a comment
2020-12-15 09:29:37 +00:00
Pierre Gayvallet bd7e7090a1
properly recognize enterprise licenses (#85849) 2020-12-15 10:26:43 +01:00
Ryland Herrick 5febe5fa7e
[SecuritySolution][Detections] Adds SavedObject persistence to Signals Migrations (#85690)
* Adds new SO type for persisting our signals migrations

* WIP: Migration status SO client

Trying to forge a patterrn using io-ts to validate at runtime. I think
I've got it working but I want to refactor the pipeline out into a
reusable function(s).

* Implements our SavedObjects service for signals migrations

* Defines a simple client that delegates to the base SO client with
our SO type
* Defines a service that consumes the simpler client, adding validations
  and data transforms on top.

* Refactoring migration code to work with saved objects

As opposed to the previous ephemeral, encoded tokens, we now retrieve migration
info from saved objects.

At the API level, this means that both the create and finalize endpoints
receive a list of concrete indices. No more passing around tokens.

As both endpoints are idempotent, users can hammer them as much as they
want with the same lists of indices. Redundant creates and finalizes
will be met with inline 400 messages, and as one continues to poll the
finalize endpoint they should see more and more indices respond with
"completed: true"

* Fixing integration tests first, and anything upstream breaking them

* Clean up API integration tests

* standardize assignment of responses (with types)
* deletes migration SOs as test cleanup

* Split API tests into separate files

This was getting big and unwieldy; this splits these into one file per
endpoint.

* Refactor: split existing migration service functionality into atomic functions

This will allow us to repurpose the service to compose more
functionality and be more specifically useful, while keeping the
component logic separate.

* WIP: moving logic into migrationService.create

* Splitting get_migration_status into component functions

getMigrationStatus was really two separate aggregations, so I split them
out and we recompose them in the necessary routes.

* Move finalization logic into function

* migrationService exposes this as .finalize()
* adds an error field to our migration SO
  * We currently only have one error that we persist there, but it would
    be very time-consuming to track down that information were it not
    there.

* Adds function for migration "deletion" logic

* migrationService leverages this function
* adds new boolean to our savedObject
* deletes unused function (deleteMigrationSavedObject)

* Adds route for soft-deletion of migrations

* Updating tests related to migration status

* Adding/updating mocks/unit tests necessary to satisfy the things I
  need to test
* I mainly wanted to test that the the status endpoint filtered out the
  deleted migrations; this was accomplished with a unit test after
  fleshing out some mocks/sample data.

* Move old migration service tests to the relevant function tests

This logic was previously moved out into component functions; this moves
the tests accordingly.

* Add some unit tests around our reindex call

* Fix create migration route tests

Mocks out our migration functions, rather than stubbing ES calls
directly.

* Updates finalize route unit tests

Addresses functionality that hasn't been moved to finalizeMigration()

* Unit tests our finalization logic

Fixes a bug where we weren't accounting for soft-deleted migrations.
ALso updates our test migration SO to have a status of 'pending' as
that's a more useful default.

* Fixes finalization integration tests

These were failing due:
* a change in the migration status API response
* a bug I introduced in the finalize route

* Adds tests for our migration deletion endpoint

* unit tests
* API integration tests
* Caught/fixed bug with deleting a successful migration

* Fixes types

Removes unused code.

* Prevent race condition due to template rollover during migration

If a user has an out of date index (v1) relative to the template (v2), but the
template itself is out of date (newest is v3), then it's possible that
the template is rolled over to v3 after the v1-v2 migration has been
created but before the new index has been created.

In such a case, the new index would receive the v3 mappings but would
incorrectl be marked as v2. This shouldn't necessarily be an issue, but
it's an unnecessary state that can easily be prevented with the guard
introduced here.

* Add real usernames to migration savedObjects

In addition to the SOs themselves giving us observability into what
migration actions were performed, this gives us the additional info of
_who_ performed the action.

* Index minimal migration SO fields needed for current functionality

* Add additional migration info to status endpoint

This will allow users to finalize a migration if they've lost the
response to their POST call.

* Finalize endpoint receives an array of migration IDs, not indices

This disambiguates _which_ migrations we were finalizing if you passed
an index (which was previously: the most recent migration).

* Fix type errors in tests after we threaded through username

* Update responsibilities of migration finalize/delete endpoints

Discussions with @marshallmain lead to the following refactor:

* finalize does not delete tasks
* finalize only applies cleanup policy to a failed migration
* delete takes an array of migration ids (like finalize)
* delete hard-deletes the SavedObject of a completed (failed or
  successful) migration

This gives a bit more flexibility with the endpoints, as well as
disambiguates the semantics: it just deletes migrations!

* Fix tests that were broken during refactoring

* Fix type errors

I removed some logic here but forgot the imports :(

* Move outdated integration test

In the case of a successful migration, application of the cleanup policy
is done by the deletion endpoint. In the interest of data preservation,
we do not delete a sourceIndex unless it is explicitly deleted.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 03:25:39 -06:00
Silvia Mitter 98308f8680
[Fleet] Change permissions for Fleet enroll role (#85802)
* Add APM traces index names to Fleet enroll role

* Removes fleet permissions for `events-*` as they became obsolete

fixes #85761
2020-12-15 09:31:39 +01:00
Marshall Main 818246e467
[Security Solution][Detections] Add alert source to detection rule action context (#85488)
* Adds context.alerts as available parameter for detection rule actions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 01:43:50 -05:00
Tyler Smalley 003396e75b skip flaky suite (#78553) 2020-12-14 20:51:56 -08:00
Yuliia Naumenko 37525f80a0
License checks for alerts plugin (#85649)
* [Alerts][License] Define minimum license required for each alert type (#84997)

* Define minimum license required for each alert type

* fixed typechecks

* fixed tests

* fixed tests

* fixed due to comments

* fixed due to comments

* removed file

* removed casting to LicenseType

* [Alerts][License] Add license checks to alerts HTTP APIs and execution (#85223)

* [Alerts][License] Add license checks to alerts HTTP APIs and execution

* fixed typechecks

* resolved conflicts

* resolved conflicts

* added router tests

* fixed typechecks

* added license check support for alert task running

* fixed typechecks

* added integration tests

* fixed due to comments

* fixed due to comments

* fixed tests

* fixed typechecks

* [Alerting UI][License] Disable alert types in UI when the license doesn't support it. (#85496)

* [Alerting UI][License] Disable alert types in UI when the license doesn't support it.

* fixed typechecks

* added licensing for alert list and details page

* fixed multy select menu

* fixed due to comments

* fixed due to comments

* fixed due to comments

* fixed typechecks

* fixed license error message

* fixed license error message

* fixed typechecks

* fixed license error message

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-14 19:29:39 -08:00
Tiago Costa 8539c6727c
skip flaky suite (#84992) 2020-12-15 03:03:16 +00:00
Jonathan Budzenski 63bc7e1e2d skip 'query return results valid for scripted field' #78553 2020-12-14 20:59:23 -06:00
Patrick Mueller 7873e3685b
Allow action types to perform their own mustache variable escaping in parameter templates (#83919)
resolves https://github.com/elastic/kibana/issues/79371
resolves https://github.com/elastic/kibana/issues/62928

In this PR, we allow action types to determine how to escape the
variables used in their parameters, when rendered as mustache
templates.  Prior to this, action parameters were recursively
rendered as mustache templates using the default mustache
templating, by the alerts library.  The default mustache
templating used html escaping.

Action types opt-in to the new capability via a new optional
method in the action type, `renderParameterTemplates()`.  If not
provided, the previous recursive rendering is done, but now with
no escaping at all.

For #62928, changed the mustache template rendering to be
replaced with the error message, if an error occurred,
so at least you can now see that an error occurred.  Useful
to diagnose problems with invalid mustache templates.
2020-12-14 20:41:13 -05:00
Yuliia Naumenko b7c9d22133
Removed Alerting & Event Log deprecated fields that should not be using (#85652)
* Removed Alerting & Event Log deprecated fields that should not be using

* fixed due to comments
2020-12-14 17:05:58 -08:00
Oliver Gupte 6f050779d7
Closes #79995 by adding new tab in transaction details to show related trace logs. (#85859) 2020-12-14 19:24:01 -05:00
Chandler Prall 9d60d2da41 Fix outdated jest snapshot 2020-12-14 16:54:44 -07:00
Thomas Neirynck 75ec9c1cab
[Maps] Surface on prem EMS (#85729) 2020-12-14 18:44:41 -05:00
Oliver Gupte 6017cb539d
[APM] Makes service overview page default (#85786)
* Closes #81948 by setting the default route for services to the service overview page
also updates links to the general path which gets redirected according to user settings

* fixes incorrect test names

* Update x-pack/plugins/apm/public/components/app/Main/route_config/index.tsx

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

* fixes linting

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2020-12-14 18:31:34 -05:00
Nathan L Smith 84a0ab0dc0
APM Alerts Preview charts (#85868) 2020-12-14 17:30:37 -06:00
Nathan Reese 59390a60b1
[maps] geo_line aggregation notify licensed feature usage (#85807) 2020-12-14 16:24:28 -07:00
Tiago Costa b8954b6527
skip flaky suite (#85714) 2020-12-14 22:24:02 +00:00
Chandler Prall 84d7b9e4ac
Upgrade EUI to v30.6.0 and update jest snapshots (#85504) 2020-12-14 15:18:29 -07:00