Commit graph

28882 commits

Author SHA1 Message Date
Nathan L Smith a93534f327
[7.x] [APM] Fix service map license check and controls (#54286) (#54593)
* Check for a trial license as well as platinum when loading the map
* Increase the z-index of the controls so clicking on them works
* Rename the styled component to `ControlsContainer` from `Container` to make a less ambiguous class name on the element
2020-01-13 12:07:08 -06:00
Josh Dover 331138237f
[7.x] Add support for workspaces in NP x-pack plugins (#53825) (#54479)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 10:27:02 -07:00
Thomas Watson 43997a4dde
fix(package): upgrade transitive dependency elliptic to v6.5.2 (#54476) (#54559) 2020-01-13 18:18:33 +01:00
Brian Seeders 5ffb19b7d3
[7.x] Flaky test runner improvements/fixes (#49367) (#54591)
* Allocate multiple flaky test runner agents as executions grow

* WIP support for deleting kibana install dir during CI

* Add setup script for testing scripts

* Add REMOVE_KIBANA_INSTALL_DIR=1 to flaky test runner

* Change flaky test runner worker processes from 8 to 12
2020-01-13 12:14:42 -05:00
Brandon Kobel 53fd409a38
Fixing the spaces header aria-controls a11y issue (#54512) (#54587)
* Fixing the spaces header aria-controls a11y issue

* Updating snapshots

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 08:57:55 -08:00
Chris Mark df21c91faa
[Home][Tutorial] Add data UI for IBM MQ Filebeat module (#54238) (#54563) 2020-01-13 18:09:23 +02:00
Nathan L Smith cbc3f24f69
[7.x] [APM] License prompt for service map (#52668) (#54503)
Display a link to platinum license upgrade on the service map.

Also add `useKibanaUrl` and `useLicense` hooks.

Make the `LicenseContext` (which is used in a couple class components and on page load) use the license observable from the NP plugin.

Add missing export of `useObservable` to kibana_react.
2020-01-13 09:59:17 -06:00
cachedout 94391c15fe
[7.x] Display APM server memory in bytes (#54275) (#54580)
* Display APM server memory in bytes

* Add tests for helpers
2020-01-13 15:56:44 +00:00
Liza Katz 7c9a38ca24
Management advanced settings telemetry (#54369) (#54584)
* management telemetry

* Use getUserProvided
2020-01-13 17:55:52 +02:00
Shahzad dc46864501
[Uptime] Fix/location map hide layer view control (#53568) (#54135)
* hide layer control and added loc tags

* update test

* remove unused comment

* remove capitalization

* style fix

* update types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 16:40:30 +01:00
Nathan Reese d409bfa149
[Maps] refactor isPointsOnly, isLinesOnly, and isPolygonsOnly to make synchronous (#54067) (#54569)
* [Maps] refactor isPointsOnly, isLinesOnly, and isPolygonsOnly to make synchronous

* fix jest test

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 10:31:43 -05:00
Mikhail Shustov 807fcc20db
[NP] Remove observables from es internal contract (#54556) (#54581)
* request context always uses the latest es client

* update integration tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 16:24:51 +01:00
Corey Robertson 105c4523e5
[Maps] Add hiddenLayers option to embeddable map input (#54355) (#54485)
* Add hiddenLayers option to embeddable map input

* Move hiddenLayers logic to actions and reducers. Adds Documentation

* Address code review suggestions

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 08:42:38 -05:00
Jean-Louis Leysens 1630e89359
Fix floating tools rendering logic (#54505) (#54566)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 14:28:07 +01:00
Anton Dosov 26b5cd89c2
[State Management] State containers improvements (#54436) (#54562)
Some maintenance and minor fixes to state containers based on experience while working with them in #53582

Patch unit tests to use current "terminology" (e.g. "transition" vs "mutation")
Fix docs where "store" was used instead of "state container"
Allow to create state container without transition.
Fix freeze function to deeply freeze objects.
Restrict State to BaseState with extends object.
in set() function, make sure the flow goes through dispatch to make sure middleware see this update
Improve type inference for useTransition()
Improve type inference for createStateContainer().

Other issues noticed, but didn't fix in reasonable time:
Can't use addMiddleware without explicit type casting #54438
Transitions and Selectors allow any state, not bind to container's state #54439
2020-01-13 14:12:25 +01:00
Maja Grubic 19ddf27275
[Data Table] Formatting CSV properly (#54127) (#54565)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 13:03:44 +00:00
Jean-Louis Leysens 71a6fa5435
Handle another double quote special case (#54474) (#54560)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 13:13:48 +01:00
Joe Reuter a64013f4f6
[Graph] Fix various a11y issues (#54097) (#54552) 2020-01-13 12:22:38 +01:00
Dima Arnautov a8e578fd19
[ML] APM modules configs for RUM Javascript and NodeJS (#53792) (#54553)
* [ML] apm modules

* [ML] apm modules

* [ML] update mocha test

* [ML] fix config

* [ML] single line JSON formatting for queries

* [ML] remove an empty path component with a trailing slash

* [ML] change detector descriptions, remove scroll size

* [ML] remove chunking_config from datafeeds

* [ML] fix configs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 11:48:06 +01:00
Joe Reuter b50e5ff4c7
[Graph] Improve error message on graph requests (#54230) (#54501) 2020-01-13 10:26:42 +01:00
Anton Dosov 5f52cf0bf3
[State Management] State syncing utilities (#53582) (#54454)
Today, apps rely on AppState and GlobalState in the ui/state_management module to deal with internal (app) and shared (global) state. These classes give apps an ability to read/write state, when is then synced to the URL as well as sessionStorage. They also react to changes in the URL and automatically update state & emit events when changes occur.

This PR introduces new state synching utilities, which together with state containers src/plugins/kibana_utils/public/state_containers will be a replacement for AppState and GlobalState in New Platform.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-13 10:10:56 +03:00
Pierre Gayvallet 8636011d7c
Add ApplicationService app status management (#50223) (#54545)
* add unimplemented registerAppStatusUpdater & remove observers for apps and legacyApps

* adapt NavLinksService to use new application observables

* merge availableApps$ and availableLegacyApps$

* updating core docs

* adapt the navLink updating methods

* filters the inaccessible apps from availableApps$

* restrict access to navigateToApp depending on app status

* fixes due to merge

* add statusUpdater$ to AppBase

* export new types

* disable navlink depending on app status

* update generated doc

* update snapshots for disabled prop

* Address josh review

* Address review comments

* fix merge conflicts

* adapt changes due to merge

* update generated doc

* add comment and fix navlink url for custom url apps

* add AppNavLinkStatus type to split app/navlink states

* fix typo

* review comments and improvements

* add functional tests

* update generated docs and migration guide

* fix wrong type cast on AppsMenuProvider.readLinks

* properly type return of navigateToApp
2020-01-13 07:41:36 +01:00
MadameSheema cffb690188
logs in one time (#54447) (#54540) 2020-01-12 16:58:10 +01:00
Larry Gregory 8b0b09a4ea
Security - Role Mappings UI (#53620) (#54534)
* Initial role mappings UI

* apply design edits

* address PR feedback

* fix type cast for number field

* Update x-pack/legacy/plugins/security/public/views/management/role_mappings/edit_role_mapping/components/mapping_info_panel/mapping_info_panel.tsx

Co-Authored-By: Joe Portner <5295965+jportner@users.noreply.github.com>

* Cleanup FTR configuration, and handle role mapping 404 errors properly

* align naming of role mappings feature check

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* add missing test assertions

* inlining feature check logic

* switch to using snapshot

* use href instead of onClick

* adding delete unit test

* consolidate href building

* unify page load error handling

* simplify initial loading state

* documenting unconditional catch blocks

* use nodes.info instead of transport.request

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* move model out of LP into NP

* convert except_field_rule to except_any_rule

* docs, take 1

* update gif

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-11 20:05:46 -05:00
Joe Portner 96b3b23edb
Deprecate using elasticsearch.ssl.certificate without elasticsearch.ssl.key and vice versa (#54392) (#54536) 2020-01-11 16:38:32 -05:00
Xavier Mouligneau c8c1c5197a
[SIEM] [Detection engine] Permission II (#54292) (#54530)
* allow read only user with no CRUD

* use ../../lib/kibana

* fix timeline-template

* add re-routing on page

* bug

* cleanup

* review I

* review II

* a pretty shameful bug I will live thanks Frank

* bug select rule

* only activate deactivate if user has the manage permission

* add permissions rule with manage api key

* bug on batch action for rules

* add permissions to write status on signal
2020-01-11 10:54:32 -05:00
Xavier Mouligneau 49f1c3b02f
[Detection engine] Some UX for rule creation (#54471) (#54519)
* wip

* update timelien select to design

* Rename label to design
Timeline Select match design with favorite
Now, you are able to add mutiple items for url and false positive
Add tm for Mitre Att&ck (tnaks Frank)
And match mitre selection to design

* cleanup with michael

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 22:35:33 -05:00
Spencer 02eead710d
[7.x] share specific instances of some ui packages (#54079) (#54514)
* share specific instances of some ui packages

* remove unnecessary eslint changes, every package will define deps anyway

* remove mentions of moment webpackShims in eslint resolver

* remove use of lodash

* list angular as dep for x-pack

* add operations as codeowner of shared-deps pkg

# Conflicts:
#	.github/CODEOWNERS
#	src/optimize/base_optimizer.js
#	yarn.lock
2020-01-10 20:20:18 -07:00
Alison Goryachev ce6d6b5978
[ILM] Kibana should allow a min_age setting of 0ms in ILM policy phases (#53719) (#54499) 2020-01-10 20:57:16 -05:00
Tim Schnell 050e7977ee
Unit Tests for common/lib (#53736) (#54496)
* converting mocha tests to jest

* adding a few lib tests

* adding more lib tests

* moving test files and adding autocomplete tests

* updating test definition

* fixing import and test definitions

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 18:01:58 -06:00
Chris Davies 4636f1077a
Add support for scripted fields and (#53948) (#54048) 2020-01-10 16:28:15 -05:00
Chris Roberson d811e4d5b9
[Monitoring] Fetch shard data more efficiently (#54028) (#54489)
* For the nodes listing page, do not fetch shard data for indices

* Optimize our shard queries for the index and node listing pages

* This change isn't necessary

* Rename file and function

* Use optimized query for ml jobs and es overview

* Apply to node/index detail page, and more renaming

* Unnecessary change

* Fix tests

* Add basic tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 16:06:49 -05:00
CJ Cenizal 7b34315014
Pass termOrder and hasTermsAgg properties to serializeThresholdWatch function (#54391) (#54484)
* Fix Watcher regression in which a threshold watch's termOrder and hasTermsAgg properties weren't being passed to the serializeThresholdWatch function.
* Remove unused upstreamJson getter method from server models.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 13:06:06 -08:00
James Gowdy 5396b4f249
[ML] Job validation loading spinner (#54450) (#54473)
* [ML] Job validation loading spinner

* adding to modal version

* updating snapshots
2020-01-10 21:01:54 +00:00
Joe Reuter ba88ce334c
[Graph] Only show explorable fields (#54101) (#54492) 2020-01-10 22:01:30 +01:00
Joe Reuter 7927dd724f
remove linting rule exception for markdown (#54232) (#54491) 2020-01-10 22:01:20 +01:00
Joe Reuter d95d799de1
Improve kql error message handling and avoid fetcihng twice (#54239) (#54468) 2020-01-10 20:29:39 +01:00
Shahzad 921e9332b5
[Uptime] Added date range filter into expanded list query (#52609) (#54453)
* added filters into expanded list query

* update filters

* update query

* update snap

* update tests

* update filters

* update test

* remove side effect

* ignore typcehck

* update to remove location filter from query

* update filter groups

* remove code

* update test
2020-01-10 19:17:50 +01:00
Pierre Gayvallet decf467d4c
fix request validation to accept arrays or primitives (#54331) (#54461) 2020-01-10 18:40:16 +01:00
Pete Harverson 73236985e0
[ML] Display anomaly actual in chart tooltip when model plot enabled (#54364) (#54465)
* [ML] Display anomaly actual in chart tooltip when model plot enabled

* [ML] Fixes translations for chart tooltip fixes

* [ML] Edits to chart tooltip div following review
2020-01-10 16:53:40 +00:00
Justin Kambic 100613950d
Reorganize structure of component render to avoid errors. (#54251) (#54367)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 11:16:47 -05:00
Alison Goryachev 4560a79787
[Watcher] Support scheme field when creating a Threshold alert with a Webhook action (#53757) (#54459)
Co-authored-by: Jimmy Kuang <jimmy@elastic.co>
2020-01-10 11:06:54 -05:00
Shaunak Kashyap 5d5e5b8575
Enable functionbeat telemetry (#54267) (#54455)
* Adding placeholder for functionbeat telemetry in test fixture

* Adding placeholder for functionbeat telemetry expectation

* Adding placeholder for aggregating functionbeat telemetry per cluster

* Update test + fixture

* Updating code
2020-01-10 07:44:19 -08:00
Tiago Costa 8dd1413715
chore(NA): add exception for timelion server function folders on clean dll logic (#54086) (#54421)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 15:16:59 +00:00
Corey Robertson b32727885c
[Canvas] Fixes bugs with autoplay and refresh (#53149) (#54301)
* Fixes bugs with autoplay and refresh

* Fix typecheck

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 09:54:21 -05:00
Nick Partridge b57d6b738c
[7.x] [TSVB] Add domain fit option to 0 opacity tsvb line charts (#54314) (#54402)
* [TSVB] Add domain fit option to 0 opacity tsvb line charts (#54314)

- Line charts is TSVB will no again fit to the data and provide a padding when away from the zero baseline

* remove erroneous @elastic/apm-rum dependency
2020-01-10 08:47:39 -06:00
James Gowdy 5bdf771573
[ML] Auto selecting categorization field (#54365) (#54448)
* [ML] Auto selecting categorization field

* updating translations

* reverting unrelated translation changes
2020-01-10 14:46:02 +00:00
Patrick Mueller 84a9ac6d1d
pass more alert info into alert executor (#54035) (#54412)
resolves https://github.com/elastic/kibana/issues/50522

The alert executor function is now passed these additional alert-specific
properties as parameters:

- spaceId
- namespace
- name
- tags
- createdBy
- updatedBy
2020-01-10 09:38:24 -05:00
MadameSheema 38542427d2
[SIEM] Improves navigation Cypress tests time execution (#54273) (#54445)
* extracts before

* fixes the type check failure
2020-01-10 15:14:17 +01:00
MadameSheema b1e0c9372c
[SIEM] Improves fields browser Cypress tests time execution (#54236) (#54440)
* groups fields browser tests by context

* saves cookies between tests

* fix types

* renames 'cleansFieldsBrowser' to 'clearFieldsBrowser'

* adds 'SID cookie to whitelist'

* fixes type check

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-10 15:13:47 +01:00