Commit graph

35914 commits

Author SHA1 Message Date
Spencer 7d3fe58dfa
[jenkins/security-cypress] send status emails to entire team (#75171)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-17 09:54:59 -07:00
Constance 0b28dc2f48
[Enterprise Search][tech debt] Refactor external URL generation to a single DRY helper (#75093)
* Set up App Search routes constants file

* Create new helper/generator for external URLs

* Update plugin to pass externalUrl helper in KibanaContext

* Update AS & WS navs to use new external url generator

* Update App Search views to use new externalUrl.getAppSearchUrl helper

* Update Workplace Search to use externalUrl.getWorkplaceSearchUrl helper

+ remove old useRoutes.getWSRoute helper, which was the inspiration for this

* Rename top-level enterpriseSearchUrl to config.host

- This allows us to more clearly separate concerns between the URL set in config.host and externalUrl.enterpriseSearchUrl (used for front-end links, may be a vanity/public URL)
- This change also enables us to not mutate Kibana's config obj, which is much cleaner

Misc tech debt:
- Reorder renderApp args (from least to most likely to change)
- Rename our public url methods/vars to more generic "init data" names - this is in preparation for upcoming changes where we pull more than just external_url from our client endpoint

* Fix broken Workplace Search nav links

- that require a hash for routing to work

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:37:21 -07:00
Nathan Reese 4ac0e81554
[Maps] fix double fetch when filters are modified (#74893)
* [Maps] fix double fetch when filters are modified

* add unit tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:44:08 -06:00
Nathan Reese b07db9dec8
[Maps] convert kibana_services to TS (#74901)
* [Maps] convert kibana_services to TS

* tslint

* fix jest test

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 09:41:08 -06:00
Chris Roberson 4c2f0760dc
Use actual link for cluster listing page (#75016)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 11:27:41 -04:00
Alejandro Fernández Gómez cf65b6ba8c
Track "view in context" usage (#74752)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 17:06:13 +02:00
Shamin Meerankutty 9295378d59
Fixed issue with query bar not taking full width in safari (#74987)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 16:54:39 +02:00
Peter Pisljar a987cef583
preparing datatable for unifying with kibana_datatable (#73654) 2020-08-17 15:47:37 +02:00
Nathan Reese ea545312e9
[Maps] allow for extensible sourceDescriptor typings (#74758)
* [Maps] allow for extensible sourceDescriptor typings

* revert changes to blended_vector_layer.test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 07:23:57 -06:00
Anton Dosov 3c5f2e7e7b
[Drilldowns] Trigger picker (#74751)
Drilldowns now support trigger picker. It allows to create a drilldown and specify which trigger it should be attached to.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 14:47:25 +02:00
Gidi Meir Morris fcb1a2848a
[Task Manager] Handles case where buffer receives multiple entities with the same ID (#74943)
Handles the case where two operations for the same entity make it into a single batched bulk operation and avoid the clashing ID issue that could cause the poller to hang and stop poling for work).
2020-08-17 13:19:04 +01:00
Tiago Costa 46e313daef
skip flaky suite (#68472) 2020-08-17 13:07:55 +01:00
Tiago Costa 9cd55614a8
skip flaky suite (#75127) 2020-08-17 12:58:02 +01:00
Tim Roes 1212f50e97
Replace legacy esClient in Discover single document viewer by search service (#75032)
* Fixed issue with query bar not taking full width in safari

* Replace legacy esClient with search API

* Fix tests and typing issues

* Revert "Fixed issue with query bar not taking full width in safari"

This reverts commit a83e5d9f2c.

Co-authored-by: Shamin <shamin616@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 13:28:35 +02:00
Uladzislau Lasitsa d5fd34e016
Vega vis needs to have visible fonts for dark theme dashboard (#73675)
* Support dark theme in vega

* Fixed tests

* Fixed colors

* Fixed tests

* Fixed comment

* Fixed colors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-17 13:16:01 +03:00
Robert Oskamp a9860f3675 [ML] Functional tests - skip regression and classification tests 2020-08-17 09:51:17 +02:00
Sandra Gonzales 46a268fb99
[Ingest Manager] fix removing ingest pipelines from elasticsearch (#75092)
* fix removing ingest pipelines bug

* undo unneeded changes to default.yml entry pipeline
2020-08-15 16:18:24 -05:00
Sandra Gonzales 48deb7b0a1
move tests for placeholder indices to setup (#75096)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-15 16:16:08 -05:00
Spencer cf93604e43
[jest] temporarily extend default test timeout (#75118)
* [jest] temporarily extend default test timeout

* fix, 30 seconds

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-15 13:31:37 -07:00
Spencer 41262d1b64
[cli] remove reference to removed --optimize flag (#75083)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 22:11:17 -07:00
spalger d4f52471bf skip flaky suite (#75044) 2020-08-14 17:29:07 -07:00
Aaron Levy 9760498ebf
Adding /etc/rc.d/init.d/functions to the init script when present to … (#22985)
* Adding /etc/rc.d/init.d/functions to the init script when present to improve integration with systemd on systemd-based distros. See https://github.com/elastic/kibana/issues/22255

* Adding SysV Init Functions for Debian and SUSE distros

* Adding /etc/rc.d/init.d/functions to the init script when present to improve integration with systemd on systemd-based distros. See https://github.com/elastic/kibana/issues/22255

* Adding SysV Init Functions for Debian and SUSE distros

* docs(NA): include a comment to explain the change

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2020-08-15 01:27:07 +01:00
Spencer 1439b11fd2
[jenkins] add pipeline for hourly security solution cypress tests (#75087)
* [jenkins] add pipeline for hourly security solution cypress tests

* support customizing email for status emails

* apply review feedback

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 16:32:45 -07:00
Tim Sullivan ef5c95ea37 [Reporting/Flaky Test] Skip test for paging list of reports (#75075) 2020-08-14 15:49:14 -07:00
Spencer 2129b13155
remove .kbn-optimizer-cache upload (#75086)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-14 15:30:24 -07:00
Brian Seeders df7221245d skip flaky suite (#74814) 2020-08-14 17:37:23 -04:00
Yuliia Naumenko 52bd6d98ea
Actions add proxy support (#74289)
* Added proxy support for action types

* Fixed tests

* added rejectUnauthorizedCertificates config setting

* removed slack not used code

* Fixed Slack proxy

* fixed typecheck errors

* Cleanup code

* Fixed slack

* Added unit tests

* added proxy server for test

* Fixed build

* Added functional tests

* fixed due to comments

* Fixed tests and some changes due to comments

* Fixed functional tests

* fixed circular deps

* Added proxy unit test to action type
2020-08-14 14:20:12 -07:00
Yulia Čech 64b8b88c64
[ILM] TS conversion of Edit policy components (#74747)
* [ILM] Convert node allocation component to TS and use hooks

* [ILM] Fix jest tests

* [ILM] Fix i18n check

* [ILM] Implement code review suggestions

* [ILM] Fix type check, docs link and button maxWidth in NodeAllocation component

* Fix internaliation error

* [ILM] Convert node details flyout to TS

* [ILM] Fix useState declaration

* [ILM] Fix useState declaration

* [ILM] Fix jest test

* [ILM] Change error message when unable to load node attributes

* [ILM] Change error message when unable to load node details

* [ILM] Delete a period in error callout

* [ILM] Delete a period in error callout

* [ILM] Convert node details flyout to TS

* [ILM] Fix i18n check

* [ILM] Fix useState declaration

* [ILM] Fix useState declaration

* [ILM] Fix jest test

* [ILM] Change error message when unable to load node details

* [ILM] Delete a period in error callout

* [ILM] edit components

* [ILM] Fix review suggestions

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 23:12:01 +02:00
Robert Austin 459e9d603d
[Resolver] simulator tests select elements directly instead of using descendant selectors. (#75058)
Our tests shouldn't rely on the DOM structure of Resolver (when its arbitrary) because that will make them brittle. If the user doesn't care about the DOM structure, then neither should our tests.

Note: sometimes the user does care about the DOM structure, and in those cases the tests should as well.
2020-08-14 16:31:28 -04:00
Scotty Bollinger ac04e0546a
[Enterprise Search] Add Workplace Search side navigation (#74894)
* Add routes

* Add version for use in doc link

* Set up basic router layout + WorkplaceSearchNav

* Update views to account for Layout

* Move version to common folder

* Fix version path

* Remove product button

No longer needed since we have all top-level app links in Kibana as a part of this PR

* You know, for search

* Remove comment

* Remove unused i18n properties from JSON

Tests were failing after removing component:
https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/67797/execution/node/382/log/

* Revert button and i18n copy  removal

This reverts commit ba0535187e.

* Move Overview out of layout to hide nav

For now, the route for groups was added to avoid having comment out the code. Will add the groups component in a future PR

* Revert layout changes to Overview

Since there is no nav, the padding was missing and the view looked off. Reverting to the 7.9, centered column view

* Remove extra Overview component

Was causing tests to fail

* Revert error state to use EuiPage

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 15:28:34 -05:00
Steph Milovic 1626490c36
[Security solution] Sourcerer: Kibana index pattern selector for security views (#74706) 2020-08-14 13:09:47 -05:00
Felix Stürmer 0f1128281e
[Logs UI] Remove apollo deps from log link-to routes (#74502)
This replaces the use of the old graphql-based `useSource` hook with the new plain JSON `useLogSource` hook.

It also fixes two more problems:

- A rendering problem with the source configuration loading screen and a `setState` race condition in the `useLogSource` hook.
- A non-backwards-compatible change of the `/link-to/:sourceId/logs` route in #61162.
2020-08-14 19:50:20 +02:00
Nathan Reese 1ac87168b1
[Maps] add map configurations to docker list (#75035) 2020-08-14 11:28:22 -06:00
Lee Drengenberg 5627ab3193
[functional test][saved objects] update tests for additional copy saved objects to space (#74907)
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 12:20:38 -05:00
Mike Côté d56b792e9c
Make the alerts plugin support generics (#72716)
* Initial work

* Expand generic support to alert instances

* Convert index threshold to use generics

* Make fixture alert types use generics

* Make alert instance related types use unknown

* Fix typecheck failures

* Cleanup + add instance generic support to registry.get API

* Shallow clone

* Rename some TS variables

* Fix failing api integration tests

* Change code for easier review and keep more history

* Fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 12:52:42 -04:00
Melissa Alvarez 8559ed87d1
[ML] DF Analytics creation: display explain error message (#75006)
* display explain error message to the user

* fix translation

* update error message
2020-08-14 12:44:42 -04:00
Greg Thompson bbee1f92b0
Upgrade EUI to v27.4.0 (#74004)
* eui to 27.1.0

* eui to 27.2.0

* buttoniconside type

* euiselectable type

* update onScroll callback and polyfill size references

* findTestSubject ts

* buttoncontent and collapsiblenav src snapshot updates

* update prop retrieval

* xpack snapshots

* jest updates

* type fixes

* more snapshots

* virtual list changes

* more virtualization changes

* merge

* fix functional tests

* data-test-subj for indexPatter-switcher

* storyshots

* eui to 27.3.1

* Fix unit tests

* Fix broken unit test

* Updated snapshots

* Fixed types

* search for value in euiselectable before selection

* select the correct element

* mock virtualized dep

* ts fix

* reinstate storyshot

* ts fix

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 10:31:15 -06:00
Quynh Nguyen f1ad1f1b7b
[ML] Add new storeInHashQuery and replaceUrlQuery (#74955)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 10:34:08 -05:00
Jean-Louis Leysens 344e1de7e1
[Upgrade Assistant] Fix potentially long URI (#74485)
* _cluster/state/metadata/* and added a comment to function

* add another comment regarding why we are asking for *

* update jest test

* refactor and clean up use of cluster status to get index state

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 17:14:03 +02:00
Stratoula Kalafateli 458bf9fb0d
Fix bug on TopN weird behavior with zero values (#74942) 2020-08-14 17:57:08 +03:00
Wylie Conlon ec5112b9cc
[Lens] Fix table sorting bug (#74902)
* [Lens] Fix table sorting bug

* Fix types
2020-08-14 10:54:43 -04:00
Kevin Logan 8aa8b04cee
[SECURITY_SOLUTION] Retry on ingest setup (#75000) 2020-08-14 10:06:51 -04:00
Nathan Reese 187a13075b
[file upload] lazy load to reduce page load size (#74967)
* [file upload] lazy load to reduce page load size

* tslint
2020-08-14 07:15:16 -06:00
Alexey Antonov f6f59ec261
Drilldowns for TSVB / Vega / Timelion (#74848)
* Drilldowns for TSVB / Vega

Closes: #60611

* fix PR comment

* fix PR comments

* add support for Timelion

* rename vis.API.events.brush -> vis.API.events.applyFilter
2020-08-14 15:46:55 +03:00
Patrick Mueller 67e28ac8b4
[EventLog] Populate alert instances view with event log data (#68437)
resolves https://github.com/elastic/kibana/issues/57446

Adds a new API (AlertClient and HTTP endpoint) `getAlertStatus()` which returns
alert data calculated from the event log.
2020-08-14 08:34:26 -04:00
Anton Dosov 7bd014abb3
[UiActions] pass trigger into action execution context (#74363)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 12:07:04 +02:00
Cauê Marcondes bcf8719824
Adding API test for custom link transaction example (#74238)
* Adding api test for custom link transaction example

* expecting specific fields

* expecting specific fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 09:55:39 +02:00
Shahzad 7cf0e49c89
[Uptime] Singular alert (#74659)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 09:45:02 +02:00
Tim Roes 4d6592edc8
Revert "attempt excluding a codeowners directory" (#75023)
This reverts commit 250a0b17b0.
2020-08-14 09:17:43 +02:00
Chris Cowan 1632391f35
[Metrics UI] Remove TSVB dependency from Metrics Explorer APIs (#74804)
* [Metrics UI] Remove TSVB dependency from Metrics Explorer APIs

* Update x-pack/plugins/infra/public/pages/metrics/metrics_explorer/components/chart_title.tsx

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update x-pack/plugins/infra/server/lib/metrics/lib/calculate_bucket_size/calculate_auto.ts

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update x-pack/plugins/infra/server/lib/metrics/lib/convert_histogram_buckets_to_timeseries.ts

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Update x-pack/plugins/infra/server/routes/metrics_explorer/lib/find_interval_for_metrics.ts

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

* Fixing some names, changing some units

* Reverting TSVB calculate_auto; fixing names in infra

* Fixing translation names

* Fixing typo

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2020-08-13 18:45:47 -07:00