Commit graph

32305 commits

Author SHA1 Message Date
Ahmad Bamieh
5bc233f3c7
[Telemetry] force staging urls in tests (#63356)
* specify telemetry url configs

* opt out by default except where we are testing telemetry
2020-04-13 23:45:13 +03:00
Aaron Caldwell
6f46e6b827
Migrate legacy maps service to NP & update refs (#60942)
* Get legacy maps into basic NP plugin form. Swap out legacy services for NP

* Pull service settings from injected vars. Return new instance of service settings from setup

* Use NP service settings in vega maps. Clean up legacy shim

* Use NP maps service in region maps. Clean up shim. Add exports to NP service

* Pull zoom precision out to separate module since it's dependent on config

* Update paths to point to NP resources

* More path updates, clean up, use IServiceSettings

* Remove dependency on legacy service settings. Add tile_map dependency ng-sanitize

* More path cleanup. Use zoomPrecision provided through plugin inteface

* Move getPrecision into contract-provided function since it depends on config

* Move tests to new service location, remove vis dir

* Update test paths. Move origin const declaration into public

* Clean up, fixes

* Fix type errors. General cleaning

* Inject toast service into map when needed

* Fix typo in regionmap config

* i18n fixes

* Update jest test path

* Fix karma tests

* i18n fixes

* Type updates. Add mapsLegacy to np karma mock

* Remove html sanitizer

* Fix vega test that depends on serviceSettings

* Revise xpack license handling to use NP serviceSettings. Remove angular bindings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 14:32:32 -06:00
Mike Côté
0666dbd35f
Fix task manager query to return tasks to retry (#63360)
* Fix task manager query to also return tasks to retry

* Fix failing jest tests
2020-04-13 16:29:48 -04:00
Paul Tavares
48fd5c0255
[Endpoint] Policy list support for URL pagination state (#63291)
* store changes to support pagination via url

* Fix storing location when pagination happens

* Initial set of tests

* Redux spy middleware and async utility

* Add better types to `waitForAction`

* Add more docs

* fix urlSearchParams selector to account for array of values

* full set of tests for policy list store concerns

* More efficient redux spy middleware (no more sleep())

* Set spy middleware `dispatch` to a `jest.fn` and expose `mock` info.

* Fix url param selector to return first param value when it is defined multiple times

* Removed PageId and associated hook

* clean up TODO items

* Fixes post-merge frm `master`

* Address code review comments
2020-04-13 16:26:45 -04:00
Corey Robertson
25cedbe60c
[Canvas] Migrate saved object mappings and migrations to Kibana Platform (#58891)
* Move saved object mappings and migratins to kibana platform

* Remove ts-ignore

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 16:26:00 -04:00
Melori Arellano
9b25fe1ebd
[DOCS] Add ILM tutorial (#59502)
* Add tutorial for ILM with filebeat

* Change screenshots and add additional steps

* Update screenshots, add numbered steps, and other minor edits

* Incorporate feedback: update links, formatting, and minor edits

* Move tip inline with list

* Apply suggestions from code review

Co-Authored-By: James Rodewig <james.rodewig@elastic.co>

* Move TIP inline . . . again

* Put TIP inline

Co-authored-by: James Rodewig <james.rodewig@elastic.co>
2020-04-13 13:57:50 -06:00
Thomas Neirynck
a6ecd4c278
[Maps] Add SOURCE_TYPES enumeration (#62975) 2020-04-13 15:33:43 -04:00
Nathan Reese
301b795db6
[Maps] update geospatial filters to use geo_shape query for geo_point fields (#62966)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 13:30:18 -06:00
Corey Robertson
e27526fd92
Move away from npStart for embeddables in canvas (#62680)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 15:29:24 -04:00
Corey Robertson
19fcc6111a
Use MapInput type from Maps plugin (#61539) 2020-04-13 14:21:02 -04:00
Maggie Ghamry
1084b1c7b9
Update to pagination for workpad and templates (#62050)
Added logic to hide pagination if no Canvas workpads exists, and disable the previous/next arrows if there is only one page, for both workapds and templates
2020-04-13 13:41:12 -04:00
patrykkopycinski
a58cc5da12
[SIEM] Fix AlertsTable id (#63368) 2020-04-13 19:40:48 +02:00
Ryland Herrick
5559b09dcc
Consistent terminology around cypress test data (#63279)
* Uses "data" or "test data" when referring to the general idea
* Uses "archive" when referring to the specific data/implementation
* Adds a few grammar/spelling tweaks
2020-04-13 12:24:09 -05:00
Nathan Reese
69b436e820
[Maps] turn on blended layer for geojson upload (#63200)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 11:22:11 -06:00
Yuliia Naumenko
0c09a7756f
Added connectors loading spinner to show the actions forms only when connectors is loaded (#63211)
* Added connectors loading spinner to show the actions forms only when connectors is loaded

* Added warning message for actions with removed connectors

* Fixed loading connectors spinner
2020-04-13 09:47:03 -07:00
Brandon Kobel
52747c9c17
Only fetching TaskManager's available tasks once per call to fillPool (#61991)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 09:02:48 -07:00
Alexey Antonov
7ea3f12e31
Index pattern management UI -> TypeScript (scripted_fields_table) (#63247)
* Index pattern management UI -> TypeScript (scripted_fields_table)
2020-04-13 11:02:22 -05:00
Alexey Antonov
d5fc944b4b
Index pattern management UI -> TypeScript (source_filters_table) (#62925)
* [WIP] Index pattern management UI -> TypeScript (source_filters_table)
2020-04-13 10:59:48 -05:00
Robert Austin
d00c90510d
Endpoint: Move files, add README, replace implicit any with stricter types. Reorganize types. (#63262)
* Removed `FIXME` comments and references to private repos. Please use Github issues to track work
* Added a README describing the modules in `applications/endpoint`
* Removed dead code
* Moved `AppRoot` component to its own module
* Moved `applications/endpoint/services` under `store`
* Moved some exported types to `applications/endpoint/types`
* Moved all React code to `view`
* Added types in some places that were implicitly `any`
* Moved `PageId` type from common directory (where it could be shared with the server) to the public directory
2020-04-13 11:33:14 -04:00
Nicolas Chaulet
8cef9457c1
[Ingest] Update Create datasource UI to fit in one page (#62858) 2020-04-13 10:39:40 -04:00
Nathan Reese
c604eb9e63
[Maps] fix regression in loading left join fields (#63325)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 08:00:15 -06:00
MadameSheema
e74d360adb
fixes test flakiness (#63331) 2020-04-13 15:38:32 +02:00
Thomas Neirynck
bbd501ea51
[Maps] Cleanup sources (#63175)
- Introduces additional TS typing for sources
- Organizes sources in sub-directories by type
- migrates XYZTMSSource to TS
2020-04-13 09:24:16 -04:00
Dario Gieselaar
36b4ad9888
[APM] Separate count/retainment telemetry requests (#63225)
Separate count/retainment telemetry requests to make them less prone to timing out.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 14:06:20 +02:00
Shahzad
c7f61f956a
[Uptime] Update Ml functional test (#62562)
* update test

* added test

* updated type

* updated test

* updated test

* update test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 13:49:46 +02:00
Shahzad
61271c0652
[Uptime] Simplify monitor param usage (#63121)
* add useMonitorId hook

* update url param hook

* update type

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 13:44:10 +02:00
Pierre Gayvallet
358d13919b
Migrate SO management section to NP (#61700)
* move libs to new plugin

* adapt libs to use NP apis

* add required plugins

* add get_allowed_types route

* move object_view components

* add service registry

* migrate table header component

* migrate table component

* migrate saved_objects_table component

* remove migrated legacy files

* fix re-export from legacy management + section label

* migrate services registration

* adapt management section mock

* fix imports

* migrate flyout component

* migrate relationships component

* migrate saved_objects_table tests

* migrate breadcrumb

* add redirect if unauthorized check

* migrate translations to new savedObjectsManagement prefix

* remove obsolete translations

* convert action registry to service pattern

* wire extra actions

* remove importAndExportableTypes from injected vars

* handle newIndexPatternUrl

* remove duplicate dashboard dependency

* remove old TODO

* remove old TODO

* properly mock lodash in tests

* add async management section loading

* expose createSavedSearchesLoader from discover plugin contract

* address most review comments

* fix merge conflicts
2020-04-13 13:28:09 +02:00
Anton Dosov
1199c8c8b0
Bugfix dashboard unpins filters (#62301)
Fixes following cases:

Saving dashboard with pinned filter unpins it. Do not save pinned filters with dashboard see #62301 (comment)
When navigating with global filter to dashboard with same saved filter, filter becomes unpinned
When navigating from listing to dashboard with saved filter, back button didn't work

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-12 17:06:03 +02:00
Cauê Marcondes
2be6b7fdce
fixing custom link popover size and hiding scroll (#63240) 2020-04-11 11:06:39 +02:00
Pierre Gayvallet
bd159c7d59
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
2020-04-11 09:27:45 +02:00
Yuliia Naumenko
53ee20b306
Changed alerting wrong param name for help xpack.encrypted_saved_objects.encryptionKey to xpack.encryptedSavedObjects.encryptionKey (#63307) 2020-04-10 19:18:19 -07:00
Brandon Kobel
cc85573c8a
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>
2020-04-10 16:01:30 -07:00
Yuliia Naumenko
fbd15ec867
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
2020-04-10 14:55:03 -07:00
The SpaceCake Project
39fbc5e103
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>
2020-04-10 17:50:23 -04:00
Candace Park
6393e08ce3
task/mac-eventing-form (#62999)
adds mac events form for endpoint policy details
Co-authored-by: oatkiller <robert.austin@elastic.co>
2020-04-10 17:20:40 -04:00
Dmitry Lemeshko
eb3fe8eb50
update chromedriver dependency to 81.0.0 (#63266) 2020-04-10 23:05:20 +03:00
Ahmad Bamieh
ed5dd0a325
[Telemetry] use prod keys (#63263) 2020-04-10 22:18:11 +03:00
CJ Cenizal
8a283de3c5
Correctly type ILM's optional dependencies as optional (#63255)
And guard against their absence.
2020-04-10 12:05:20 -07:00
Ryland Herrick
d8a295dcbc
[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.
2020-04-10 14:00:11 -05:00
Tim Sullivan
aed5253b53
[Reporting] convert all server unit tests to TypeScript (#62873)
* [Reporting] convert all server unit tests to TypeScript

* fix ts

* revert unrelated change
2020-04-10 09:57:59 -07:00
Brent Kimmel
9d2ecc7c06
Resolver/node svg 2 html (#62958)
* Remove some SVG in Resolver nodes and replace with HTML
2020-04-10 12:38:26 -04:00
Wylie Conlon
f96f928e69
[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>
2020-04-10 12:29:26 -04:00
Robert Austin
d5d610f168
Endpoint: Remove unused lib module (#63248) 2020-04-10 12:19:29 -04:00
Steph Milovic
55a3cc4583
[SIEM] [Cases] Unit tests for case UI components (#63005) 2020-04-10 09:55:38 -06:00
Brian Seeders
36acb37387
Make uptime alert flyout test a little more resilient (#62702) 2020-04-10 11:18:12 -04:00
DianaDerevyankina
ed975d0169
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
2020-04-10 17:59:50 +03:00
Nathan L Smith
e8491adbab
Use globe icon for "ext" span type on service map (#63205)
Both "external" and "ext" can be returned and should have the same icon.
2020-04-10 09:04:17 -05:00
Cauê Marcondes
77d22f55d9
[APM] Agent config select box doesn't work on IE (#63236)
* adding value property to select options

* fixing test
2020-04-10 14:54:48 +02:00
Jean-Louis Leysens
d662cb5f45
[ESUI] Move XJson Mode to src/plugins/es_ui_shared (#62758)
* Move XJson to x-pack/es_ui_shared

Also convert files to TS and clean up use of @ts-ignore

* Move console_lang to public

* Proper use of mocks

* Globally mock out .ace.worker.js modules

Having worker code exported in `public` of es_ui_shared poisoned
a lot of Jest tests with the need to mock out the ace worker.

Instead of adding mocks everywhere we handle the importing in
Jest by adding an entry to module mapper.

* Remove manual imports of mocks

* Delete es_ui_shared/public/mocks for now

* Put useXJson code in single place

* Import and instantiate xJsonMode

* Remove language mocks imports

Besides the fact that these paths are wrong these are no longer
needed because we mock at use Jest module mapper

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-10 12:58:18 +02:00
Jean-Louis Leysens
93971dbfab
[Watcher] Preserve the watch active status after updates (#61999)
* Preserve the watch active status after updates

* Use route validation params to set isActive

* Fix Jest test

* Implement PR feedback

- Make the isActive flag required on the save watch endpoint
- Move the isActive state to base_watch and serialize from
  there.

* Fix Jest tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-10 12:28:55 +02:00