Commit graph

36176 commits

Author SHA1 Message Date
Josh Dover a19484abe0
Add plugin status API - take 2 (#76732) 2020-09-09 18:08:48 -06:00
Larry Gregory cc590b67b9
Adds lens as a readable saved object for read-only dashboard users (#77067) 2020-09-09 19:52:47 -04:00
Larry Gregory 2965f3e183
Skip checking for the reserved realm (#76687)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 19:48:07 -04:00
Joel Griffith 9edb8d9ae2
Reporting/diagnostics (#74314)
* WIP: Adding in new reporting diag tool

* WIP: chrome-binary test + log capturing/error handling

* More wip on diagnostic tool

* More work adding in diagnose routes

* Alter link in description + minor rename of chrome => browser

* Wiring UI to API + some polish on UI flow

* WIP: Add in screenshot diag route

* Adding in screenshot diag route, hooking up client to it

* Add missing lib check + memory check

* Working screenshot test + config check for RAM

* Small test helper consolidation + screenshot diag test

* Delete old i18n translations

* PR feedback, browser tests, rename, re-organize import statements and lite fixes

* Lite rename for consistency

* Remove old validate check i18n

* Add config check

* i18n all the things!

* Docs on diagnostics tool

* Fixes, better readability, spelling and more for diagnostic tool

* Translate a few error messages

* Rename of test => start_logs for clarity. Move to observables

* Gathering logs even during process exit or crash

* Adds a test case for the browser exiting during the diag check

* Tap into browser logs for checking output

* Rename asciidoc diag id

* Remove duplicate shared object message

* Add better comment as to why we merge events + wait for a period of time

* Cloning logger for mirroring browser stderr to kibana output

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 16:11:23 -07:00
Tim Sullivan 791a73c1eb
Reporting/Test: unskip non-screenshot tests (#77088) 2020-09-09 14:42:30 -07:00
Josh Dover 9bc603e7d9
Move metrics to setup and add cgroup metrics (#76730) 2020-09-09 14:01:29 -06:00
Constance d67a421e68
[Enterprise Search] Add Overview landing page/plugin (#76734)
* [public] Register Enterprise search plugin

+ move new Home strings to constants

* [server] Register plugin access/visibility

* Set up Enterprise Search Kibana Chrome

- Add SetEnterpriseSearchChrome
- Update Enterprise Search breadcrumbs to link to new overview plugin (+ update overview plugin URL per team discussion)
  - Add ability to break out of React Router basename by not using history.createhref
  - Update createHref mock to more closely match Kibana urls (adding /app prefix)
- Minor documentation fix

* Set up Enterprise Search plugin telemetry

- client-side: SendEnterpriseSearchTelemetry
- server-side: register saved objects, usage collector, etc.

* Enterprise search overview views (#23)

* Add formatTestSubj util

This allows us to correctly format strings into our casing for data-test-subj attrs

* Add images and stylesheet

* Add product card component

* Add index component

* Remove unused styles

* Fix inter-plugin links
- by add shouldNotCreateHref prop to RR helpers
- similiar to breadcrumb change

* Fix/clean up CSS

- Prefer EUI components over bespoke CSS (e.g. EuiCard)
- Remove unused or unspecific CSS
- Pull out product card CSS to its component
- Fix kebab-cased CSS classes to camelCased

* Clean up ProductCard props

- Prefer passing in our plugin consts instead of separate props
- Move productCardDescription to constants
- Update tests

* Add telemetry clicked actions to product buttons

+ revert data-test-subj strings to previous implementation
+ prune format_test_subj helper by using lodash util directly

* [PR feedback] Add new plugin to applicationUsageSchema per telemetry team request

* Fix failing functional navLinks test

* Fix telemetry schema test

* [Perf] Optimize assets size by switching from 300kb SVG to 25kb PNG

* Only show product cards if the user has access to that product

- adds access checks
- fixes flex/CSS to show one card at a time

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2020-09-09 12:53:51 -07:00
John Schulz 87ca6ff70c
First pass. Change TS type. Update OpenAPI (#76434)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 14:55:21 -04:00
Brian Seeders 92ab49c100
[CI] Balance xpack ci groups a bit (#77068) 2020-09-09 14:42:47 -04:00
Marshall Main 42a693475d
[Security_solution][Detections] Refactor signal ancestry to allow multiple parents (#76531)
* Refactors signal ancestry to allow multiple parents

* Fix depth calculation for 7.10+ signals on pre-7.10 signals

* Comment build_signal functions

* Rename buildAncestorsSignal to buildAncestors

* Update detection engine depth test scripts and docs

* Update halting test readme

* Match up rule ids in readme

* Continue populating signal.parent along with signal.parents

* pr comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 14:05:01 -04:00
Nathan Reese 7e84661471
[Maps] convert MetricsEditor to TS (#76727)
* [Maps] convert MetricsEditor to TS

* fix jest test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 11:44:58 -06:00
Pierre Gayvallet 7fc4bb3799
IndexMigrator: fix non blocking migration wrapper promise rejection (#77018)
* fix transformNonBlocking

* add test for indexMigrator
2020-09-09 19:37:08 +02:00
Constance a0defb8196
[Enterprise Search] Update config data endpoint to v2 (#76970)
* Update our internal config/app data to v2 specs

- Update endpoint to v2
- Update data accordingly to new API structures
- Update types accordingly

* Fix failing type check for other endpoints that use IAccount

* Update role type casing

- ent search was fixed from camel to snake
2020-09-09 10:01:28 -07:00
Quynh Nguyen 619108cac3
[ML] Add decision path charts to exploration results table (#73561)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 11:41:52 -05:00
Thomas Watson 20b2e31deb
Bump eventemitter3 from 4.0.0 to 4.0.7 (#77016) 2020-09-09 18:18:25 +02:00
James Rodewig 86582a5501
[Ingest Pipelines] Add descriptions for ingest processors K-S (#76981) 2020-09-09 12:01:28 -04:00
Chris Cowan 0ca647286a
[Metrics UI] Replace Snapshot API with Metrics API (#76253)
- Remove server/lib/snapshot
- Replace backend for /api/infra/snapshot with data from Metrics API
- Fixing tests with updates to the snapshot node

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 11:00:27 -05:00
Mikhail Shustov 7955a02437
legacy utils cleanup (#76608)
* move prompt to cli_keystore

* move binder to cli

* remove unused path_contains

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 17:57:32 +02:00
David Roberts c7dac8000c
[ML] Account for "properties" layer in find_file_structure mappings (#77035)
This is the UI side companion for elastic/elasticsearch#62158

Previously the "mappings" field of the response from the
find_file_structure endpoint was not a drop-in for the
mappings format of the create index endpoint - the
"properties" layer was missing. The reason for omitting
it initially was that the assumption was that the
find_file_structure endpoint would only ever return very
simple mappings without any nested objects. However,
this will not be true in the future, as we will improve
mappings detection for complex JSON objects. As a first
step it makes sense to move the returned mappings closer
to the standard format.
2020-09-09 16:31:09 +01:00
Devon Thomson 538bd4be51
fixed typo 2020-09-09 11:30:37 -04:00
Scotty Bollinger 55bd3b3bb8
Upgrade to Kea 2.2 (#77047)
This PR updates Kea from the last RC to the stable release 2.2.
2020-09-09 10:03:20 -05:00
Bhavya RM 78f6410bb2
a11y tests on spaces home page including feature control (#76515) 2020-09-09 10:26:53 -04:00
Melissa Alvarez e985f1a272
[ML] Transforms list: persist pagination through refresh interval (#76786)
* use basic table in transforms to persist pagination

* simplify state and update types
2020-09-09 10:04:47 -04:00
Pete Harverson a0495090c0
[ML] Replace all use of date_histogram interval with fixed_interval (#76876)
* [ML] Replace all use of date_histogram interval with fixed_interval

* [ML] Fix data visualizer API test
2020-09-09 14:49:22 +01:00
Stratoula Kalafateli bb0b8f80a4
[Timelion] Update timelion deprecation links (#77008) 2020-09-09 16:45:40 +03:00
Patryk Kopyciński bfab38020a
[Security Solution] Refactor Network Details to use Search Strategy (#76928)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 15:30:38 +02:00
Nick Partridge bd384822f2
Upgrade elastic charts to 21.1.2 (#76939) 2020-09-09 08:26:39 -05:00
Christos Nasikas db5652e020
[Alerting][Connectors] Refactor Jira: Generic Implementation (phase one) (#73778) 2020-09-09 16:17:11 +03:00
Jean-Louis Leysens 1c3f0fc7d0
[Snapshot & Restore] fix pre existing policy with no existing repository (#76861)
* implement fix and add callout with copy

* added test

* make callout a danger callout and revise copy

* block the form if we have a repo, but it does not exist

* added test to assert that form wizard blocks on validation for not found repo

* fix types and add a doc comment

* move callout to above the form

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 15:10:15 +02:00
Joe Portner 60294cbcf4
Update saved object management UI text (#76826) 2020-09-09 08:56:04 -04:00
Sébastien Loix 1ea58d96cb
[Form lib] Add validations prop to UseArray and expose "moveItem" handler (#76949) 2020-09-09 14:40:29 +02:00
Alejandro Fernández Gómez d89e6d3702
[Logs UI] Use fields api in log stream (#76919) 2020-09-09 12:58:32 +02:00
Alejandro Fernández Haro 61edcb32f9
[UI Metrics] Support multi-colon keys (#76913) 2020-09-09 11:38:49 +01:00
Dario Gieselaar 2a451c9c3f
[APM] Script for creating functional test archive (#76926)
* [APM] Script for creating functional test archive

* Lock down variables; add documentation

* Update tests
2020-09-09 11:55:05 +02:00
Bohdan Tsymbala 87380f5917
[ENDPOINT] First version of the trusted apps list. (#76304)
* First version of the trusted apps list.

* Added proper visualisation of OS and Date Created columns.

* Small change in naming in middleware.

* Renamed function to avoid naming confusion.

* Migrated to usage of selectors and memo in list component.

* Added explicit return types.

* Changed to use server schema for service parameter.

* Removed some over generalisation in types.

* Renamed types and properties related to trusted apps page state.

* Renamed types and properties related to trusted apps page state.

* Renamed the action type to be namespaced to trusted apps.

* Merged the exports and declarations in reducer and used constants for defaults.

* Memoization of pagination data structure.

* Used a shared constant for REST API path.

* Improvements and consistency on pagination across tabs.

* Added a bit more typing and used Partial<>

* Made constants readonly and added some useMemo usages.

* Fixed extracting page index from URI.

* Fixed the case of infinite refreshes when there is loading failure (need to rethink a bit conditions when to refresh).

* Resetting state to initial when we navigate away from trusted apps list.

* Fixed mapping page index to the table pagination.

* Changed to using AppAction in reducer.

* Made ServerApiError a default error type for data binding.

* Renamed all types related to data binding to resource state.

* Created index file for state types.

* Fixed parameter extracting code to meet expectations of endpoints list behavior.

* Updated snapshot.

* Changed middleware to only use selectors.

* Added tests for routing.

* Added documentation to the types in async resource state module.

* Added tests for async resource state module.

* Added tests for store selectors.

* Added tests for reducer.

* Moved around imports.

* Added tests for the middleware.

* Added list component tests.

* Removed a redundant function.

* Commiting snapshots.
2020-09-09 11:43:26 +02:00
Shahzad a127766d32
Correct field for rum page url (#76916) 2020-09-09 11:17:53 +02:00
Patryk Kopyciński 7ba33abee6
[Security Solution] Fix redirect properly old SIEM App routes (#76868) 2020-09-09 11:13:50 +02:00
Thomas Watson b6731b42d1
Bump http-proxy from 1.17.0 to 1.18.1 (#76924) 2020-09-09 09:20:24 +02:00
Shahzad 23e1b74de0
[RUM Dashboard] Visitor breakdown usability (#76834) 2020-09-09 09:12:55 +02:00
Liza Katz 52c12eac32
[Search] Add a new advanced setting searchTimeout (#75728)
* Add new x-pack advanced setting searchTimeout and use it in the EnhancedSearchInterceptor

* docs

* Rely on server timeout in OSS (?)
Use UI setting in xpack.

* Rename function

* doc

* Remove esShard from client

* cleanup request parameters from FE

* doc

* doc

* Align request parameters on server,
Remove leftover parameters from client
Shim responses for search and msearch routes

* docs
Stop using toSnakeCase
Updates jest tests

* add management docs

* docs

* Remove import

* Break circular dep + fix msearch test

* Remove deleted type

* Fix jest

* Bring toSnakeCase back

* docs

* fix jest

* Fix merge

* Fix types

* Allow timeout to be undefined

* Fix jest test

* Upldate docs

* Fix msearch jest

* docs

* Fix rollup search merge

* docs

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 10:06:45 +03:00
gchaps e3a322d65f
[DOCS] Adds timelion deprecation to new visualize docs structure (#76959) 2020-09-09 09:19:12 +03:00
Brandon Morelli 8ef31f6684
docs: fix link to APM Server (#77002) 2020-09-08 19:36:41 -07:00
nnamdifrankie 2ed4b57776
[SecuritySolution-Ingest]: use new metadata current and add transform installation (#74394)
[SecuritySolution-Ingest]: use new metadata current and add transform installation
2020-09-08 17:56:38 -04:00
Shamin Meerankutty 194d0b0a3f
Convert map client routing files to TS (#76387)
* Converted maps_router and store operations files

* Converted files in map routes to typescript

* Removed an unwanted ts-expect-error

* Fixed the lint errors from jenkins

* Naming changes, type for mapStateJSON etc.

* More type fixes in map routes

* More type fixes in map routes

* Added back some removed props

* Added types to app state manager

* Autogenerated api documentation

* Type fixes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 15:51:28 -06:00
Wylie Conlon cb5979ad51
[Lens] Show field stats for IP fields and scripted fields (#76457)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 17:29:26 -04:00
Wylie Conlon 02233e740e
[Field formatters] Time suffix for duration formatter (#76729)
* [Field formatters] Time suffix for duration formatter

* Fix missing arg

* Fix test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 16:53:24 -04:00
Mikhail Shustov bcaffba12b
Remove legacy SavedObjects (#76852)
* remove legacy SO integration

* cleanup integration in the legacy platorm

* remove so schema

* update docs

* remove leftovers, update docs

* update docs after merge master
2020-09-08 22:01:31 +02:00
Paul Tavares bb2aa42e39
[SECURITY_SOLUTION][ENDPOINT] Fix created_by for Trusted Apps Create api to reflect current logged in user (#76557)
* Fix: use exceptionLists client from route handler context
* Adjust test to use `listMock`
* Remove exceptionListClient service from `EndpointAppContextService`
* Added UT for Trusted Apps to validate that ExceptionListClient from context is used

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-08 15:48:01 -04:00
Sandra Gonzales 851c125fc8
[Ingest Manager] install previous version of package if update fails (#76694)
* add InstallType and getInstallType helper

* rollback to previous version if update fails or unisntall if not an update

* fix pipelines from failed update not removing if update fails after installing pipelines and rolling back to previous version

* change type from enum to union, improve getInstallType, add ts-config comment

* throw error if no install type, update logging errors
2020-09-08 14:59:18 -04:00
Matthew Kime 842bcf4560
Index pattern save => Index pattern service (#76706)
* Index pattern save => Index pattern service
2020-09-08 12:59:02 -05:00