Commit graph

32380 commits

Author SHA1 Message Date
James Gowdy
2b4c3003ab
[ML] Improving parsing of large uploaded files (#62970)
* [ML] Improving parsing of large uploaded files

* small clean up

* increasing max to 1GB

* adding comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 18:58:22 +01:00
James Gowdy
959a0e5d3d
[ML] Listing global calendars on the job management page (#63124)
* [ML] Listing global calendars on the job management page

* tiny refactor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 18:57:26 +01:00
Paul Tavares
a4464c22ba
[Ingest][Endpoint] Add Ingest rest api response types for use in Endpoint (#63373)
* Added REST Response types to datasouces
* Adjust Types in Endpoint to reference those from Ingest
* Remove un-used endpoint type
2020-04-14 13:36:54 -04:00
Phillip Burch
7cb3ee44ea
Add help text to form fields (#63165)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 12:13:44 -05:00
Pete Harverson
3e26654416
[ML] Converts utils Mocha tests to Jest (#63132)
* [ML] Converts utils Mocha tests to Jest

* [ML] Remove unused imports

* [ML] Switch out enzyme mount for react testing library render

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 17:49:46 +01:00
Chris Cowan
c2f2a79acb
[Metrics UI] Refactor With* containers to hooks (#59503)
* [Metrics UI] Refactor containers to hooks

* clean up depends; move useInterval out of useWaffleTime;

* converting WithWaffleFilters to useWaffleFilters

* Removing WithWaffleOptions

* Refactor WithWaffleViewState to useWaffleViewState

* Removing obsolete files

* Fixing race condition with complext state

* Adding undefined to RisonValue; unwinding changes trying to work around bad type

* Switching to context

* Change assertion to ignore the length of the current URL

* Fixing test frameork to accept urls longer then 230 characters

* Fixes #59395; Refactor WithMetricsTime to hook; Fixes brushing on metric detail page; fixes refresh button on metric detail page

* Fixing tests with adding timeRange

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 09:01:41 -07:00
Mikhail Shustov
d015c24509
[NP] Migrate logstash server side code to NP (#63135)
* convert api_integration test into TS

* create logstash NP plugin and move models

* move common/constants to NP

* type fetch all from scroll

* move route declaration to NP

* add licence checker wrapper

* register logstash route handlers in NP

* track logstash NP i18n

* address shaunak comment

* fix validation

* udpdate security tests since for new mock defaults

* address Pierres comments

* rename upgrade file route
2020-04-14 17:45:40 +02:00
Uladzislau Lasitsa
4ce2412316
Clicking cancel in saved query save modal doesn't close it (#62774)
* use validation by clicking on save, added autotrim

* Fixes form errors.

* Fixed comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 18:45:21 +03:00
Wylie Conlon
8489efc034
[Lens] Migration from 7.7 (#62879)
* [Lens] Migration from 7.7

* Fix types

* Fix types in test

* Add docs

* Commit forgotten file

* Remove extra types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 11:04:47 -04:00
Wylie Conlon
48d528ff2e
[Lens] Fix bug where suggestions didn't use filters (#63293)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 10:59:01 -04:00
Candace Park
11e2e08396
Task/linux events (#63400)
* linux events for endpoint policy details, additional windows events
2020-04-14 10:56:25 -04:00
Alison Goryachev
b38c98a730
[Remote clusters] guard against usageCollection plugin if unav… (#63284) 2020-04-14 09:13:20 -04:00
Justin Kambic
e6095fcd03
[Uptime] Remove pings graphql (#59392)
* WIP replacing GQL with redux/rest.

* Finish implementing migration.

* Introduce new connected component for ping list.

* Replace GraphQL type with io-ts.

* Update some broken tests.

* Add test for new helper function.

* Write test snapshots.

* Migrate api tests from graphql to rest.

* Update fixtures that rely on pings.

* Move ping types to runtime_types folder with rest of io-ts files.

* Update Ping type location and imports, type checking.

* Remove reliance on fixtures for ping functional API tests.

* Fix broken unit tests.

* Fix broken types.

* Remove local state storage from parent components.

* Add functional test to cover Ping List functionality.

* Fix monitor page functional test that was broken by merge conflicts.

* Fix broken tests.

* Fix broken API test.

* Replace a test with a describe block that will pre-navigate all tests.

* Delete unused reducer keys.

* Re-introduce loading to ping list reducer.

* Inroduce code that will cause PingList to re-fetch when refresh button is pressed.

* Update expanded rows to support multiple concurrent expanded rows.

* Modify pingList reducer to have singular optional error field.

* Delete unnecessary helper code.

* Delete unused interface.

* Add runtime_type to parse getPings params, fix pagination index.

* Add dedicated monitor type to runtime_types.

* Fix broken tests.

* Fix broken tests.

* Rename '@timestamp' property to 'timestamp' on Ping type.

* Fix broken type and key pings list table on document ID instead of timestamp.

* Fix broken unit tests.

* Fix broken tests and types.

* Fix broken functional test.
2020-04-14 08:35:31 -04:00
Matthew Kime
69ed664dd9
Index Pattern Field class - factor out copy_field code for future typescripting (#63083)
* Index Pattern Field class - factor out copy_field code for future typescripting
2020-04-14 06:58:56 -05:00
Sandra Gonzales
1a6398b983
[EPM] add/remove package in package settings page (#63389)
* fix bug where assets were not being returned, use archive info for assets

* add settings page, add install/remove button and text

* check existence of datasources associated with this package

* add package title variable to text

* update modal text and rename to uninstall
2020-04-14 07:56:24 -04:00
Larry Gregory
040e7b464e
Adjust API authorization logging (#63350) 2020-04-14 07:33:14 -04:00
Dmitry Lemeshko
637a9e11a2
Revert FTR: add chromium-based Edge browser support (#61684) (#63448) 2020-04-14 13:25:26 +02:00
Gidi Meir Morris
1f732ad29a
[Event Log] Adds namespace into save objects (#62974)
Adds a namespace attribute to the saved object object within the Event Log so that each Saved Object can have its own. This change also removes the existing kibana.namespace field.

As Event Log is not yet in use, this does not include a migration.
2020-04-14 10:57:46 +01:00
Mikhail Shustov
f44d951300
document code splitting for client code (#62593)
* add lazy loading section for client bundles

* add Pierres suggestion
2020-04-14 09:11:03 +02:00
Jean-Louis Leysens
f4abaabaee
Escape single quotes surrounded by double quotes (#63229)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 08:47:23 +02:00
kqualters-elastic
5d7c651cd7
[Endpoint] Update cli mapping to match endpoint package (#63372)
* Update cli mapping to match endpoint package
2020-04-14 02:05:06 -04:00
Gil Raphaelli
5bc539c6db
update in-app links to metricbeat configuration docs (#63295) 2020-04-13 22:06:09 -04:00
The SpaceCake Project
b54388746d
investigation notes field (documentation / metadata) (#63386)
* notes field

added text to the "investigation notes" field in md which the field supports.

* Revert "notes field"

This reverts commit dae6ffc683.

* Revert "Revert "notes field""

This reverts commit f9de4bfc92.

* Update linux_anomalous_network_activity.json

* text change

change to "Signals from this rule indicate"
2020-04-13 18:42:10 -04:00
Nathan Reese
3623875175
[Maps] fix bug where toggling Scaling type does not re-fetch data (#63326)
* [Maps] fix bug where toggling Scaling type does not re-fetch data

* reset to empty array instead of deleting

* move setting of layer type to action creator instead of side effect of UPDATE_SOURCE_PROP

* review feedback
2020-04-13 15:53:07 -06:00
Patrick Mueller
500b069efd
[Alerting] set correct parameter for unauthented email action (#63086)
PR https://github.com/elastic/kibana/pull/60839 added support for
unauthenticated emails, but didn't actually do enough to make it work.

This PR completes that support, and adds some tests.

You can do manual testing now with [maildev](http://maildev.github.io/maildev/).
2020-04-13 17:41:22 -04:00
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