Commit graph

32556 commits

Author SHA1 Message Date
Dario Gieselaar 8243fc4b41
Add APM paths to path-labeller.yml (#63772)
* Add APM paths to path-labeller.yml

* Sort alphabetically on labels

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-23 11:34:28 +02:00
Diana Derevyankina 7045b02b36
[NP] Migrate Tagcloud to NP (#63445)
* [NP] Migrate Tagcloud to NP

* Fixed eslint issue

* Added styles import and disabled eslint in some lines with paths

* Added a simple server part and moved tests

* Imported setFormatService to fix initialization

* Fixed import of setFormatService

* Removed unnecessary eslint disable comment
2020-04-23 12:30:00 +03:00
Gidi Meir Morris dc5fb63cb9
[Task Manager] improves cancelation messaging in Task Manager (#64075)
Instead of warning that a task isn't cancellable despite having been cancelled, we now do so as a debug warning.
We now warn when a task has expired and is about to be cancelled including when it expired and how long it ran for.
2020-04-23 10:10:15 +01:00
Joe Reuter 58d56884c2
fix plugin id (#64166) 2020-04-23 09:44:49 +02:00
Catherine Liu 1a0988f964
[Canvas] Top Menu (#59982)
* Redesigned workpad_header to top menu layout

* Added comments

* Fixed element spec

* Removed element preview images

* Removed tooltip from menus

* Removed extraneous JSX

* Fixed element fixtures

* Moved component strings

* top menu design tweaks

* Added filter debug element

* Fix file picker in asset manager

* Sort components strings object keys

* Removed ElementTypes component in favor of SavedElementsModal

* Updated stories

* Fixed custom elements functional tests

* Removed unused tag strings

* Fixed test fixtures

* Updated element_menu stories

* Updated view_menu stories

* TS for SavedElementsModal

* Updated types

* Fixed TS errors

* Fix i18n errors

* Renamed stories

* Fixed test file name

* Fixed stories

* Updated storyshots

* Reverted storybook webpack config change

* Fixed SavedElementsModal stories

* Updated comments

* Removed unnecessary ts-ignores

* Moved workpad_shortcuts back to /components

* Unskip custom elements functional test

* Reverted workpad_loader changes

* Added element_menu stories and mocks

* Fixed element i18n strings

* Updated storyshots

* Updated storyshot

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 21:06:49 -07:00
Wylie Conlon 4fc1c5f5cb
[search source] Stop building invalid queries and then rewriting them (#60954)
* Stop rewriting invalid filters in search source

* Fix type issue

* Use automated fixing tool

* Update test

* Fix test

* Fix docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 17:42:38 -04:00
Wylie Conlon dd094f2333
[Lens] Split apart config panel component to more manageable chunks (#63910)
* [Lens] Split apart config panel component to more manageable chunks

* Moving around and renaming SASS appropriately

* Remove layer limit

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-04-22 17:36:36 -04:00
Nathan Reese f7ea9b99ba
[Maps] Show spatial filters on map to provide context when for active filters (#63406)
* [Maps] show spatial filters

* pass data into __dataRequests

* extractFeaturesFromFilters

* geo_shape support

* putting it all together

* lower alpha

* update removeOrphanedSourcesAndLayers to avoid removing spatialFiltersLayer

* change array iteration to forEach

* use less precision when distance filter covers larger distances

* fix double import

* add map settings for to configure spatial filters layer

* add map settings alpha slider

* finish rest of map settings

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 15:10:39 -06:00
Nathan Reese 65264aa790
Set readFromDocValues to false for geo_shape fields (#64014)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 14:40:09 -06:00
Nicolas Chaulet 7eab5d2ddf
[Ingest] Allow to reassign agent to a new config (#63847) 2020-04-22 16:25:55 -04:00
Chris Roberson 23fbf7d67d
[Monitoring] Update docs based on config change (#63860)
* Update a bunch of docs

* PR feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 15:31:25 -04:00
nnamdifrankie 51479fda9b
[Endpoint,Ingest]EMT-357: Move Exported Ingest Manager Services to plugin Start (#64138)
[Endpoint,Ingest]EMT-357: Move Exported Ingest Manager Services to plugin Start
2020-04-22 15:17:56 -04:00
Matthias Wilhelm 5f269b7ee6
[Discover] Unskip functional tests for field visualize buttons (#62614) 2020-04-22 21:15:51 +02:00
Tim Sullivan c0c3e76bc0
add additional reporting config properties to docker whitelist (#63766)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 11:09:22 -07:00
Zacqary Adam Xeper 12aae67467
[Metrics Alerts] Add outside range comparator (#63993) 2020-04-22 13:09:09 -05:00
Corey Robertson cd054285c8
[CANVAS] Pull UI Settings from Kibana Platform (#63397)
* Pull UI Settings from Kibana Platform

* Typecheck

* Fix type check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 14:02:19 -04:00
Josh Dover fc1f4f2695
Do not serve legacy JS when serving a Kibana Platform applicat… (#61011) 2020-04-22 11:14:21 -06:00
Chris Roberson e708b415c9
[Monitoring] Use custom route to ensure global state is preserved (#63891)
* WIP

* PR  updates

* Fix testing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 13:03:37 -04:00
Chris Roberson 8b6f6700b7
Ensure time picker is actually disabled (#63709)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 13:02:49 -04:00
Chandler Prall 126d187429
Upgrade to EUI v22.3.0 (#62963)
* snapshot updates

* bump to eui 22.3.0

* snapshots

* Fix css selector in test to match EUI internal DOM change

* Updated snapshots

* Insert react-beautiful-dnd@10 into top-level kibana to force siem's node_modules to hold its correct version

* More snapshot updates, resolved a typescript issue

* Move react-beautiful-dnd dependency around to make things happy again

* Use SearchFilterConfig from the top-level eui export

* Swallow 'ResizeObserver error does not have an err object' error in canvas

* Swallow ResizeObserver error cross-browser
2020-04-22 11:01:49 -06:00
Alexey Antonov 0a6da70a89
[Regression] Histogram aggregation always shows an error message (#63484)
* WIP [Regression] Histogram aggregation always shows an error message

Closes: #62624

* make getInternalStartServices private

* fix ts issues

* remove createSearchSource from static contract

* fix some jest test

* move searh_source to static contract

* fix types

* fix function tests

* fix jest / add createStartServicesGetter

* fix comments: saved_object_management

* maps: fix PR comments

* maps: update types

* fix heck_published_api_changes

* move searchSource into runtime contract

* cleanup

* fix ts error

* cleanup

* remove extra dependencies

* fix Discover

* fix Discover JEST

* fix PR comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 19:21:14 +03:00
Matthias Wilhelm 54ca7ed8a1
Migrate sample-data-telemetry registration to Kibana platform (#63965) 2020-04-22 17:30:35 +02:00
gchaps 8ebd0c1b71
[DOCS] Fixes hierarchy in alerting and actions section (#64133) 2020-04-22 08:19:09 -07:00
Casper Hübertz e22398942a
[APM] Add new Service map external icons (#63844)
* [APM] Add new external icons for Service map

* [APM] Add icons to icons.ts
2020-04-22 17:01:29 +02:00
Liza Katz a80348ee6a
Async search observable can return a non-final response #64132 (#64155)
* resolves #64132

* simplify condition

* added IAsyncSearchResponse type

* update and add jest tests
2020-04-22 17:33:53 +03:00
Maryia Lapata 7969382081
[NP] Migrate saved object mappings and migration scripts for Dashboard (#63864)
* Migrate saved objects

* Move common used types and fucntions to dashboard/common

* Fix unit tests

* Update server.api.md

* Fix TS

* Update i18n IDs

* Update TS

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 17:33:10 +03:00
CJ Cenizal 91f7911d15
Move CCR out of legacy (#62890)
* Convert common/services and server/lib to TypeScript. Update Jest tests.
  - Remove deserializeAutoFollowPattern behavior that returned an empty object if the pattern was undefined.
* Localize mocks with the component integration tests.
* Update API unit tests to use NP mocks.
  - Break up test files.
  - Use inline mocked ES response instead of fixture files.
  - Move remaining fixture files into client integration tests directory.
* Make API route validation more strict.
* Publish isUiDisabled as part of Remote Clusters contract.
* Default trackUiMetric service to be a no-op.
* Remove security dependency.
  - Fix license check so that CCR won't render if the license is invalid.
  - Fix server security check to be more precise by checking if ES has security disabled.
* Render timestamp for autofollow errors.
2020-04-22 07:15:25 -07:00
Kaarina Tungseth aa560353f8
[DOCS] Adds dashboard controls options (#64079) 2020-04-22 08:38:53 -05:00
Kerry Gallagher 9a47926b90
[Logs / Metrics UI] Switch to scopedHistory and enhance useLinkProps hook (#61667) 2020-04-22 14:25:39 +01:00
Thomas Neirynck 939bf2a6ec
[Maps] Convert AbstractSource and AbstractLayer to TS (#63533) 2020-04-22 09:19:18 -04:00
Tiago Costa 5e2dbdaa69
refact(NA): remove set loop from upgrade assistant usage collector (#63977)
* refact(NA): use default telemetry obj in the set loop

* chore(NA): fix typecheck

* fix(NA): test run with lodash has

* chore(NA): fix older lodash has

* chore(NA): remove lodash has usage
2020-04-22 14:11:17 +01:00
Sandra Gonzales db642f0b96
[EPM] handle unremovable packages (#64096)
* remove endpoint handles unremovable packages

* adjust UI to disallow removing of unremovable packages
2020-04-22 09:08:50 -04:00
Joe Reuter ed3c94bc76
fix leftover timelion paths (#64041) 2020-04-22 15:07:12 +02:00
Chris Roberson 989245793e
[Monitoring] Fix monitoring 7.7 deprecations (#63738)
* Fix monitoring 7.7 deprecations

* Switch order

* Add comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 09:06:40 -04:00
MadameSheema e17755ecef
[SIEM] Adds 'Create new case' Cypress test (#63971)
* adds timeline data

* adds 'cases' spec

* adds test

* implements test

* refactor

* prepares test to be executed with the new platform

* finishes refactor

* fixes typo

* renames case interface
2020-04-22 15:04:00 +02:00
Anton Dosov 2f75810f16
fix dashboard memory leak (#64154) 2020-04-22 14:29:48 +02:00
Vadim Dalecky c6125fc795
Filter action icons (#64073)
* feat: 🎸 add filter icons to filter actions

* test: 💍 add unit test for icon type for createFilterAction()

* test: 💍 fix TypeScript error
2020-04-22 14:06:02 +02:00
Maja Grubic ffc8741da2
[Dashboard] Deangularize navbar, attempt nr. 2 (#61611)
* Attempt at deangularization, nr.2

* Remove padding in fullscreen

* Fixing failing functional test

* Fixing remaining functional test

* Fixing typescript errors

* Fixing filter bar not being visible in fullscreen

* Fixing filter bar not being visible in fullscreen

* Rebasing against master

* Fixing a small leftover

* Fix order of functions

* Fixing linting error

* Changing noPadding to a custom class

* Use filterManagers to handle filters

* Rename class

* Attempt at deangularization, nr.2

* Remove padding in fullscreen

* Fixing failing functional test

* Fixing remaining functional test

* Fixing typescript errors

* Fixing filter bar not being visible in fullscreen

* Fixing filter bar not being visible in fullscreen

* Rebasing against master

* Fixing a small leftover

* Fix order of functions

* Fixing linting error

* [APM] Agent config select box doesn't work on IE (#63236)

* adding value property to select options

* fixing test

* Use globe icon for "ext" span type on service map (#63205)

Both "external" and "ext" can be returned and should have the same icon.

* Move shared vislib components into Charts plugin (#62957)

* Closes #56310

Move shared vislib components into Charts plugin

* Fixed imports in tests

* Changed i18n IDs to match charts namespace

* Renamed ColorSchemaVislibParams to ColorSchemaParams, added enums and got rid of useValidation function

* Renamed ColorSchemaVislibParams to ColorSchemaParams and got rid of useValidation function

* Fixed merge conflict

* Replaced enums with objects again

* Make uptime alert flyout test a little more resilient (#62702)

* [SIEM] [Cases] Unit tests for case UI components (#63005)

* Endpoint: Remove unused `lib` module (#63248)

* [Lens] Fix error in query from generated suggestion (#63018)

* [Lens] Fix error in query from generated suggestion

* Update from review comments

* Fix test

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

* Resolver/node svg 2 html (#62958)

* Remove some SVG in Resolver nodes and replace with HTML

* [Reporting] convert all server unit tests to TypeScript (#62873)

* [Reporting] convert all server unit tests to TypeScript

* fix ts

* revert unrelated change

* [SIEM] Link ML Rule card CTA to license_management (#63210)

* Link ML Rule card CTA to license_management

Taking the user directly to the license management page within kibana
(where they could immediately start a trial subscription) is much more
actionable than taking them to the subscriptions marketing page.

* Revert translation key change

Neither of these is totally accurate, and there've already been
translations written for the old one.

* Correctly type ILM's optional dependencies as optional (#63255)

And guard against their absence.

* [Telemetry] use prod keys (#63263)

* update chromedriver dependency to 81.0.0 (#63266)

* task/mac-eventing-form (#62999)

adds mac events form for endpoint policy details
Co-authored-by: oatkiller <robert.austin@elastic.co>

* bc6 rule import april 9 (#63152)

* bc6 rule import april 9

Increased the lookback of the ML rules

* re-import

with LF chars

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

* Added UI for pre-configured connectors. (#63074)

* Added UI for pre-configured connectors.

* fixed due to comments

* Fixed jest tests

* Fixed due to comments and added some functional tests

* test fix

* Fixed failed checks

* Fixed functional tests failing

* TaskManager tasks scheduled without attempting to run (#62078)

* TaskManager tasks scheduled without attempting to run

* Removing unused import

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

* Changed alerting wrong param name for help xpack.encrypted_saved_objects.encryptionKey to xpack.encryptedSavedObjects.encryptionKey (#63307)

* fix ScopedHistory.createHref to prepend location with scoped history basePath (#62407)

* fix createHref to prepend with scoped history basePath + add option to exclude it.

* fix prependBasePath behavior

* fix test plugins urls

* add pathname to endpoint url builder methods

* Revert "add pathname to endpoint url builder methods"

This reverts commit 7604932b

* adapt createHref instead of prependBasePath

* use object options for createHref

* update generated doc

* fixing custom link popover size and hiding scroll (#63240)

* Changing noPadding to a custom class

* Use filterManagers to handle filters

* Rename class

* Applying some changes

* Reverting search_bar code changes

* Removing some stuff that was causing functional tests to fail

* Removing refresh dashboard container which was causing errors during navigation

* Do not destroy dashboardContainer

* Adding updateSavedQueryId method

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: DianaDerevyankina <54894989+DianaDerevyankina@users.noreply.github.com>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Robert Austin <robert.austin@elastic.co>
Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
Co-authored-by: Brent Kimmel <bkimmel@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
Co-authored-by: Dmitry Lemeshko <dzmitry.lemechko@elastic.co>
Co-authored-by: Candace Park <56409205+parkiino@users.noreply.github.com>
Co-authored-by: The SpaceCake Project <randomuserid@users.noreply.github.com>
Co-authored-by: Yuliia Naumenko <jo.naumenko@gmail.com>
Co-authored-by: Brandon Kobel <brandon.kobel@elastic.co>
Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
2020-04-22 09:59:43 +01:00
Peter Pisljar 222fdc5029
refactor action filter creation utils (#62969) 2020-04-22 10:41:58 +02:00
Joe Reuter 2f794e6c42
Refresh index pattern list before redirecting (#63329) 2020-04-22 09:29:51 +02:00
Cauê Marcondes aecd00f3d8
[APM]fixing custom link unit tests (#64045) 2020-04-22 07:34:40 +02:00
John Schulz edac6669f7
[Ingest] EPM & Fleet are enabled when Ingest is enabled (#64103) 2020-04-21 20:41:13 -04:00
Yuliia Naumenko 28313c4890
[Alerting] Fixed bug with no possibility to edit the index name after adding (#64033)
* Fixed bug with no possibility to edit the index name after adding

* fixed test

* fixed test

* fixed selector

* Move the testing to unit tests
2020-04-21 17:00:55 -07:00
Nathan Reese ea4eb3385b
[Maps] Map settings: min and max zoom (#63714)
* [Maps] Map settings: min and max zoom

* eslint

* header and footer

* zoom range UI

* save session state in mapStateJSON

* disable button when flyout is open

* tslint

* update layer_control jest test

* tslint

* move settings button to top map chrome

* move map_settings_panel to NP

* remove merge conflict artifact

* fix import for NP migration

* remove unused CSS class

* fix path from NP move

* review feedback

* load map settings in embeddable
2020-04-21 16:27:00 -06:00
Nathan L Smith f254ee682c
[kbn-storybook] Use raw loader for text files (#64108)
Starting Storybook (with `yarn storybook apm`) was failing to start because it was having trouble loading Angular .html templates.

Use the raw loader in the webpack config for storybook, same as the Webpack config in kbn-optimizer.
2020-04-21 17:12:36 -05:00
Sandra Gonzales adc9b0d757
[EPM] /packages/{package} endpoint to support upgrades (#63629)
* install template after pipeline creation

* return installed pkg if this pkg version is already installed

* remove pipelines after templates are updated

* remove kibana saved objects assets before installing

* update current write indices

* add back removal of merging previous references lost in rebase

* improve some typing names, consolidate, fix bad merges

* update query to use aggregate on _index

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-21 16:39:32 -04:00
Ryland Herrick 592a0ff224
[SIEM] New Platform Saved Objects Registration (#64029)
* WIP: Register saved objects types in NP

This works, but responsibilities are spread around. Refactor incoming.

* Moves new SO definitions into corresponding folders

This way our top-level file still acts as the index, but these are
more/less unconnected if/when we split these out into separate
applications.

* Replace raw SO updates with our ruleStatusSavedObjectsClient

This mainly consolidates the SO type name and the attributes type to a single
file so that we don't have to import both any time we want to work with
RuleStatus SavedObjects.
2020-04-21 15:33:27 -05:00
Paul Tavares ed912751c1
[Endpoint] Hook to handle events needing navigation via Router (#63863)
* new hook providing generic event handler for use with react router
* Refactor of Header Naviagtion to use useNavigateByRouterEventHandler
* Policy list refactor to use useNavigateByRouterEventHandler hook
* Policy list Policy name link to use useNavigateByRouterEventHandler hook
* Host list use of useNavigateByRouteEventHandler
2020-04-21 16:30:09 -04:00
Devon Thomson 5501fb4e5d
Fixed small issue in clone functionality (#64085) 2020-04-21 15:57:50 -04:00
nnamdifrankie 4ca86103b3
[Endpoint]EMT-146: use ingest agent for status info (#63921)
[Endpoint]EMT-146: use ingest agent for status info
2020-04-21 15:51:51 -04:00