Commit graph

33946 commits

Author SHA1 Message Date
Alison Goryachev 82ce718b01
[CCR] Fix follower indices table not updating after pausing (#69228) 2020-06-18 15:15:15 -04:00
Aaron Caldwell 55a73616ab
[Maps] Migrate maps client router to react (#65079)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:56:51 -06:00
Christiane (Tina) Heiligers b41ade3588
Fixes home page welcome link (#69539) 2020-06-18 11:50:03 -07:00
Nicolas Chaulet 0c477478a4
[Ingest Manager] Use long polling for agent checkin (#68922) 2020-06-18 14:42:27 -04:00
Shahzad 550b95f172
[RUM Dashboard] Initial version resubmit (#69531)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 20:32:10 +02:00
patrykkopycinski 72ec6eeea3
[Security Solution] Add cypress tests for global search bar (#68535) 2020-06-18 20:31:10 +02:00
Marshall Main 4a26f56f31
Update endpoint event and alert types (#69292)
* start redoing types

* finish redoing types

* fix bad test

* rework tests

* fix more types

* fix test

* Fix endpoints test and render error

* add deletePolicyStream to alerts api tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
2020-06-18 13:50:53 -04:00
Sandra Gonzales f4b0d5cbbc
don't include group fields with no child fields in index pattern (#69457) 2020-06-18 13:49:03 -04:00
Jean-Louis Leysens 2436e2c9a6
[Console] Added license headers to worker files (#69387)
* added license headers to worker files

* add missing @notice

* update notice.txt

* fix notice

* remove start-end license block markers

* Added license pre-amble
2020-06-18 19:46:26 +02:00
Jean-Louis Leysens 38747670ca
[Ingest Pipelines] Encode URI component pipeline names (#69489)
* Properly encode URI component pipeline names

* safely URI decode to handle % case
2020-06-18 19:29:16 +02:00
Jean-Louis Leysens e0460290b0
[Ingest Pipelines] Add test coverage for ingest pipelines editor component (#69283)
* first iteration of CIT tests

* address pr feedback

- use dot notation where we can
- use string literals instead of + concatentation
2020-06-18 19:24:41 +02:00
Yara Tercero 2544daf21b
[SIEM][Exceptions] - Updates exception structure and corresponding UI types (#69120)
### Summary

This PR is meant to update the `ExceptionListItemSchema.entries` structure to align with the most recent conversations regarding the need for a more explicit depiction of `nested` fields. To summarize:

- Adds schema validation for requests and responses within `lists/public/exceptions/api.ts`. It was super helpful in catching existing bugs. Anyone that uses the api will run through this validation. If the client tries to send up a malformed request, the request will not be made and an error returned. If the request is successful, but somehow the response is malformed, an error is returned. There may be some UX things to figure out about how to best communicate these errors to the user, or if surfacing the raw error is fine.
- Updates `entries` structure in lists plugin api
- Updates hooks and tests within `lists/public` that make reference to new structure
- Updates and adds unit tests for updated schemas
- Removes unused temporary types in `security_solution/public/common/components/exceptions/` to now reference updated schema
- Updates UI tests
- Updates `lists/server/scripts`
2020-06-18 12:47:24 -04:00
Kerry Gallagher 38a88e1019
Amend export used for default (#69158)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 17:32:30 +01:00
Sébastien Loix 5e8d824a64
[Index template] Refactor index template wizard (#69037)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2020-06-18 18:28:12 +02:00
Joel Griffith c58f4d54a1
[rfc][skip-ci][reporting] Rendering API RFC (#64372)
* WIP working on reporting rfc round 2

* First draft is complete
2020-06-18 09:26:05 -07:00
Nicolas Chaulet acdae1595d
[Ingest Manager] Fleet require encrypted saved object encryption key … (#69408) 2020-06-18 12:15:13 -04:00
spalger 03a24fbb67 Revert "[RUM Dashboard] Initial Version (#68778)"
This reverts commit 72111702e9.
2020-06-18 09:13:26 -07:00
Stacey Gammon cf1d5e0260
Embed documentation on input and output state (#69443)
* Embed documentation on input and output state

* json -> js

* Add section on how id is used by custom time range badge action to determine isCompatible
2020-06-18 12:00:14 -04:00
Nathan L Smith af5874d9d7
[APM] Service map download in debug mode (#69350)
* [APM] Service map download in debug mode

Add a download button when debug mode is enabled that downloads JSON of
the map.

Add an upload button to the Storybook.
2020-06-18 10:53:27 -05:00
Nicolas Chaulet 338ae00384
[IngestManager] fix endpoint setup in api integration tests (#69503) 2020-06-18 11:37:14 -04:00
Thomas Neirynck a383468163
[Maps] Remove bounds param (#69396) 2020-06-18 11:28:49 -04:00
Daniil Suleiman 90f61abd3f
Fix home page loading if telemetry plugin disabled (#69394)
* Fix home page loading

* Fix jest test, update telemetry mocks
2020-06-18 18:27:46 +03:00
Shahzad 72111702e9
[RUM Dashboard] Initial Version (#68778)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-06-18 17:13:28 +02:00
Frank Hassanabad e552a96121
[SIEM] Fixes REST formatter bugs from io-ts migration
## Summary

Fixes io-ts formatter bugs for REST and validation by:

* First trying to get the correct key from the io-ts context. If no keys are found, then it will fall back on trying to get the first name from the context.
* If the key is a value and an object then this will do a `JSON.stringify()` on the value object
* This fixes a few places where `formatError` was not being used within the code base resulting in `[object Object]` within the validations to show up.

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-18 08:16:39 -06:00
Pierre Gayvallet 9e8448fc06
HttpService: duplicate some APIs from setup to start and clean mocks. (#69021)
* add apis to http start contract and clean mocks

* add apis to http start contract and clean mocks

* add `getStartContract` method

* fix new calls

* remove isTlsEnabled

* deprecates HttpServiceSetup.auth
2020-06-18 15:55:47 +02:00
Anton Dosov f33192d35f
[refactor] remove drilldown plugin, move components to uiActionsEnhanced (#69403)
* refactor: remove drilldown plugin by moving components to uiActionsEnhanced

* fix

* fix mistake in test

* fix i18n
2020-06-18 15:35:22 +02:00
Casper Hübertz 4f271c0cbb
[APM] Change the unsaved changes text color (#69493)
Fixes dark mode issue where the text would render dark on a dark background.
2020-06-18 15:32:26 +02:00
Cauê Marcondes 4ce91b342c
[APM] Add error rate chart to Errors overview and detail views (#67327)
* creating error rate chart

* adding error line chart

* creating error rate chart

* using date_histogram

* reapplying prettier style

* changing to theme color

* dont sync tooltips

* adding avg on error charts

* addressing pr comments

* adding possibility to disable legend toggle

* removing x-axis ticks from histogram

* return no percent when transaction count doesn return hits

* addressing PR comments

* addressing PR comments

* returning null when there is no transaction count

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:31:22 +02:00
Mikhail Shustov c8c20e4ca8
Add functional test for Kibana embedded in iframe (#68544)
* convert kbn test config into TS

* add test  for Kibana embedded in iframe

* run embedded tests in functional suite

* ignore tls errors in functional tests by default

* switch test to https

* remove env vars mutation

* allow to pass ssl config to Kibana

* pass ssl config to axios

* adopt KbnClient interfaces

* adopt KibanaServer

* use KbnRequester in security service

* set sameSiteCookies:None in test

* acceptInsecureCerts in chrome

* remove leftovers

* fix type error

* remove unnecessary field

* address comments

* refactor plugin

* refactor test

* make acceptInsecureCerts configurable

* run firefox tests on ci

* up TS version

* fix firefox.sh script

* fix path

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:02:56 +02:00
Pierre Gayvallet d2006ea8a0
savedObjects: add score to repository.find results (#68894)
* add `score` to repository.find results

* update generated doc

* fix FTR result set

* remove score from exports

* fix FTR for find API

* fix label

* fix tsdoc
2020-06-18 11:39:25 +02:00
Pierre Gayvallet 7dd4fa2618
Add section about marble testing to TESTING.md (#68749)
* Add section about marble testing

* improve `callServerAPI` example

* review comments

* add comment on abort observable anti-pattern
2020-06-18 11:37:41 +02:00
Pierre Gayvallet daf20daf2d
Beats Management: Pre-migration cleanup (#69155)
* adapt KibanaDatabaseAdapter to use core ES service

* remove unused `exposeStaticDir` method

* create empty KP plugin

* remove unused and broken tests

* delete unused wallaby config file

* delete unused utils

* delete unused d.ts and move formsy definition to new plugin

* fix findNonExistentItems

* remove dead code and useless exports from common package

* delete non migratable test suite + remove unused test adapter

* remove yet another unused adapter

* restore awaits in KibanaDatabaseAdapter
2020-06-18 11:32:13 +02:00
Casper Hübertz f27162a213
[Observability] Creates "Add data" links in all Observability app headers (#69016)
* Add data options to all Observability app headers

* Updated failing snapshot

* [Uptime] Update snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 09:35:48 +02:00
Mikhail Shustov 9f9a5c69f9
Remove unused deps (#69243)
* remove unused deps

* move types in devDeps
2020-06-18 08:53:16 +02:00
MadameSheema dea2768545
fixes screenshots upload (#69392) 2020-06-18 08:22:50 +02:00
Nathan L Smith 2642d658c4
[APM] License feature tracking for service maps (#69455)
Use the license feature API to register the service maps feature and track its usage when the API endpoint is accessed.

Fixes #64850.
2020-06-17 19:18:15 -05:00
spalger 789851eb1a skip flaky suite (#52854) 2020-06-17 16:46:16 -07:00
Nathan Reese f7266d3b7b
[Maps] layer wizard select re-design (#69313)
* [Maps] layer wizard select re-design

* review feedback

* tslint

* add unit test

* use smaller gutters

* review feedback
2020-06-17 16:17:30 -06:00
Jonathan Budzenski b434cac29a
[docker] add spaces settings (#69019)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 14:57:45 -05:00
Dima Arnautov 1dd5db2cf0
[ML] Add Anomaly Swimlane Embeddable to the dashboard from the Anomaly Explorer page (#68784)
* [ML] WIP attach swimlane embeddable to dashboard from the explorer page

* [ML] fix deps

* [ML] getDefaultPanelTitle

* [ML] fix TS issue

* [ML] DashboardService

* [ML] unit tests

* [ML] redirect to the dashboard

* [ML] swimlane_panel

* [ML] Anomaly Timeline panel

* [ML] swimlane container

* [ML] fix ts

* [ML] Add multiple swimlanes

* [ML] fix SwimlaneType usage

* [ML] disable edit button on update

* [ML] fix i18n translation key

* [ML] use ViewMode enum

* [ML] use navigateToUrl

* [ML] TODO for edit dashboard

* [ML] check kibana dashboard capabilities

* [ML] mlApiServicesProvider

* [ML] mlResultsServiceProvider

* [ML] fix alignment

* [ML] labels and tooltips

* [ML] fix ts issue for proxyHttpStart

* [ML] canEditDashboards check

* [ML] fix TS

* [ML] update add_to_dashboard_control.tsx

* [ML] add form label, disable control on empty swimlanes selection

* [ML] resolve PR review comments

* [ML] e2e test

* [ML] increase panel padding

* [ML] position in row

* [ML] update e2e

* [ML] add data-test-subj for search box

* [ML] PR remarks
2020-06-17 21:25:37 +02:00
Jen Huang 052dfe9f9a
[Ingest Manager] Replace datasources with inputs when generating agent config (#69226)
* Adjust agent config generation, change `datasources` to `inputs`

* Add dataset.type

* Remove dead code

* Revert "Add dataset.type"

This reverts commit fbcf50cbe2.

* Update endpoint policy test assertion
2020-06-17 12:23:31 -07:00
Michail Yasonik bb03b75416
Removing flaky axe rule (#69418) 2020-06-17 13:00:52 -05:00
Jean-Louis Leysens a077fdea32
[Ingest Pipelines] Add doc links to processor types (#69279)
* added doc links to processor types

* Bring doc links in line with mappings editor

Also refactor the processors type map

* remove helpText prop from Custom field

* fix i18n

* rename doc button and refactor type map const name

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 18:47:20 +02:00
Kevin Logan 1cef65e56f
[Endpoint] add policy data to Host list UI (#69202) 2020-06-17 11:27:00 -04:00
Vadim Dalecky b8e6b54428
Drilldown docs 2 (#69375)
* docs: ✏️ add drilldown user docs link to REAMDE

* feat: 🎸 wire drilldown docs link into <HelloBar> component

* feat: 🎸 set new page attributes on drilldown docs link

* feat: 🎸 add external prop to link to show icon

* fix: 🐛 remove rel= attribute

* fix: 🐛 add TypeScript type for drilldown docLink
2020-06-17 17:00:22 +02:00
Oliver Gupte 0ed7597822
[APM] Replace ML index queries with searching via mlAnomalySearch API (#69099)
* Closes #69092 by replacing direct queries on ml indices with seaching
via the `mlAnomalySearch` client API + job_id filters. Also removes
`getMlIndex` since it is no longer relevant.

* Use the mlCapabilities API to ensure the required license is active for ml queries

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 07:45:04 -07:00
Paul Tavares abdc0f17a9
[Ingest Manager][Endpoint] Add Endpoint Create Policy flow with Ingest (#68955)
* Ingest: add data-test-subj prop support to Ingest components
* Ingest: Add Context Provider to bridge History from Kibana to Hash router
* Ingest: Added support for route state in Create Datasource page
* Endpoint: Add Create button to Polices List header
* Endpoint: Added support for passing of state from endpoint to ingest on policy
* Endpoint: additional functional test cases
2020-06-17 10:39:22 -04:00
gchaps e04624ace0
[DOCS] Updates titles in Maps docs (#68703)
* [DOCS] Updates titles in Maps docs

* [DOCS] Changes Elastic Maps to Maps to match the UI

* [DOCS] Fixes titles

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-17 07:31:37 -07:00
Christos Nasikas 208b580061
[SIEM][Timeline] Minor timeline improvement (#69386) 2020-06-17 17:21:49 +03:00
Marco Vettorello f9f1158e1f
Update dependency @elastic/charts to v19.5.2 (#69126)
Update @elastic/charts to 19.5.2

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2020-06-17 16:02:34 +02:00