Commit graph

31845 commits

Author SHA1 Message Date
Joel Griffith
714743d829
[dev] Update download.js tests to be "stateless" (#61525)
* Make download.js test stateless so it can be parallelized

* Proper clean up etc

* Use CI prefixes for tmp dir creation + export it
2020-03-26 15:13:33 -07:00
marshallmain
b1fa159e17
[Endpoint] Get current host info when retrieving alert details (#60906)
* create new alert details type

* update integration test

* add await to esarchiver call

* remove unused host stats type

* does the ui types good

* change host.host to host_metadata.host

* fix mock result type

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Davis Plumlee <davis.plumlee@elastic.co>
2020-03-26 17:30:41 -04:00
Alison Goryachev
77a5b9e8ac
[Snapshot Restore] Add cloud as optional plugin (#61523) 2020-03-26 17:18:42 -04:00
Brandon Morelli
df9f2ac577
docs: [APM] custom links (#60595) 2020-03-26 13:30:41 -07:00
Christos Nasikas
f462b10863
[SIEM][CASE] Add the correct user information to each comment (#61513) 2020-03-26 22:17:52 +02:00
Stacey Gammon
65452bddf9
Typescript map embeddable (#61264)
* typescript map embeddable

* Address code review comments and update some usages in SIEM and uptime to the new types

* More clean up - carry over some of the SIEM types to maps for render tool tip

* Address more review comments
2020-03-26 16:14:23 -04:00
spalger
207428a332 Revert "EMT-248: renable test (#60882)"
This reverts commit 1b7d15cdce.
2020-03-26 13:09:54 -07:00
Rashmi Kulkarni
c4df77e604
configurable test users for xpack -homepage tests. (#60808)
* configurable test users for xpack

* removed exclusive tests

* added data-test-subj for the access denied page

* updated the JEST snapshot, cleaned up the test

* changes to the test_api_keys role

* more changes to consolidate the page object function

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 13:08:20 -07:00
Angela Chuang
36a4944f0c
[SIEM] Allow Import timeline for authorised users (#61438)
* allow users importing data if they are authorized

* rename props

* rename types

* hide import timeline btn if unauthorized
2020-03-26 19:54:33 +00:00
Joe Portner
7fe06f7bea
Upgrade vega-util (#61125) 2020-03-26 15:02:37 -04:00
Melissa Alvarez
0fcaf0b8be
[ML] Data Visualizer, Explorer, Transform wizard: Ensure query bar syntax errors are shown (#61333)
* remove deprecated kqlFilterBar dir

* remove unused explorer code

* show syntax error message below query input

* remove unused translations

* syntax error message for datavisualizer

* add syntax error handling to transform wizard

* fix translation label
2020-03-26 14:41:51 -04:00
Marta Bondyra
25221f7675
[Lens] Fix display single bar in XYChart Bar Vis (#61452) 2020-03-26 19:32:24 +01:00
CJ Cenizal
194cc87c30
Fix padding around Painless Lab left pane. (#61373)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 10:34:21 -07:00
Madison Caldwell
f53d433233
[ERT-221] Add backwards paging (#60986)
* Add backwards paging

* Fix types and add constants for readability/maintainability

* more type errors

* Address comments on test maintainability

* fix ts errors, remove expect in before()

Co-authored-by: Pedro Jaramillo <pedro.jaramillo@elastic.co>
2020-03-26 13:25:36 -04:00
Dima Arnautov
b29b1641a0
[ML] Wizards with dynamic model memory estimation (#60888)
* [ML] WIP wizards model memory estimation

* [ML] estimatorProvider

* [ML] add toasts for errors

* [ML] notification, fixes

* [ML] move estimator from jobCreator to the wizard

* [ML] rename modelMemoryEstimatorProvider

* [ML] call estimate endpoint only when config changed, unit tests

* [ML] rename _updateModelMemoryEstimation

* [ML] improve payload validation and toast warning message

* [ML] call _updateModelMemoryEstimation in setByField of the population job creator

* [ML] revert page.tsx

* [ML] add isModelMemoryEstimationPayloadValid,update toast notification

* [ML] refactor, estimate model memory based on jobCreatorUpdate
2020-03-26 18:18:48 +01:00
Thomas Watson
672a81032a
Bump @elastic/makelogs from v5.0.0 to v5.0.1 (#61396) 2020-03-26 17:40:17 +01:00
Thomas Watson
c21419c6d4
Bump glob-all from v3.1.0 to v3.2.1 (#61215) 2020-03-26 17:39:19 +01:00
Pierre Gayvallet
7ab38ff6de
Migrate savedObjectManagementActionRegistry to NP plugin (#60481)
* create empty plugin + move home feature registration to it

* move the so action_registry to new plugin

* adapt existing calls to the registry

* fix i18n namespace

* fix table unit tests

* update codeowners

* rename plugin to match other PRs

* remove registerLegacyAPI from spaces public plugin

* fix typo

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 17:25:27 +01:00
Nathan Reese
9a53c08c3c
[Maps] use blended layer when linking discover to maps (#61467) 2020-03-26 10:15:58 -06:00
Yuliia Naumenko
aa7779f4d3
Fixed EncryptedSavedObjectsClientWrapper to not fails with trying to stripEncryptedAttributes if attributes is undefined in saved object response - in case of a type related error (#61385) 2020-03-26 08:45:10 -07:00
Kaarina Tungseth
9ec240a752
[DOCS] Canvas assets (#57494)
* [DOCS] Canvas assets

* Structure reorganization

* Separated out workpad content

* Images, content reorg

* Review comments

* Review comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 10:28:55 -05:00
Maryia Lapata
45a5ad55bc
[Default editor] Catch invalid calendar exception (#60494)
* Catch invalid calendar exception

* Use isValidEsInterval directly

* Show field error message right away

* Fix for the case 2w

* Update time_interval.tsx

* Restructure validation

* Rename fn to isValidCalendarInterval

* Refactoring

* Update time_interval.tsx

* Add functional tests

* Add functional tests for interval

* Update _area_chart.js

* Don't show error when value is empty

* Use error message from InvalidEsCalendarIntervalError

* Update _area_chart.js

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 18:24:03 +03:00
Nick Peihl
8673fb6c59
Update ems landing page link (#61351) 2020-03-26 08:21:17 -07:00
Robert Oskamp
2371ee56c1
[ML] Functional API test - disable mml value check (#61446)
This PR re-activates the model memory estimation endpoint test and disabled the response value check.
2020-03-26 16:11:24 +01:00
Peter Pisljar
cceb538211
Fixing abort error on dashboard (#61279) 2020-03-26 15:50:54 +01:00
Pete Harverson
6d23735223
[ML] Fixes Anomaly Explorer swimlane label and chart tooltips (#61327)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 14:34:47 +00:00
Pierre Gayvallet
cec9165663
Migrate SO management libs to typescript (#60555)
* migrate most libs

* migrate last lib files

* fix get_relationships

* fix getSavedObject

* migrate tests to TS

* address review comments

* move test files outside of __jest__ folder
2020-03-26 14:49:16 +01:00
Henry
f56d5c86e0
use fixed table layout (#61294) 2020-03-26 09:48:22 -04:00
Melissa Alvarez
90d70288ce
ensure reselected fields are sorted correctly (#61342) 2020-03-26 09:33:29 -04:00
Mike Côté
9c123bc018
Use new grantAPIKeyAsInternalUser and invalidateAPIKeyAsInternalUser APIs from the security plugin (#60967)
* Use new grantAPIKeyAsInternalUser and invalidateAPIKeyAsInternalUser APIs from the security plugin

* Update x-pack/plugins/alerting/server/alerts_client_factory.ts

Co-Authored-By: Patrick Mueller <pmuellr@gmail.com>

* ESLint fixes

* Temp test using unverified snapshot

* Revert "Temp test using unverified snapshot"

This reverts commit a39499bed3.

Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 09:16:54 -04:00
Andrew Cholakian
6222be59e4
Fix unhandled telemetry promise (#61376) 2020-03-26 07:32:18 -05:00
Christos Nasikas
933b6ee996
[SIEM][CASE] Track unsaved changes (#60925)
* Hide bottom bar when flyout is open

* Track unchanged saves

* Make function optional

* Show action bar when close flyout

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 14:17:55 +02:00
Paul Tavares
af316c59ed
[Endpoint] Common PageView and LinkToApp components (#60819)
* a common PageView component
* Policy List cleanup + improvements to PageView
* Policy details refactored to use PageView layout
* Fix bug: header nav - ensure section sub-routes set nav to `isSelected`
* Added useNavigateToAppEventHandler hook
* Remove use of `appBasePath` and use `history` for initializing router
  - For details - see https://github.com/elastic/kibana/pull/56705
* Removed `hello-world` API
* Added `LinkToApp` component + refactor policy list to use it
* Add icon to plugin registration
2020-03-26 08:01:50 -04:00
Pierre Gayvallet
a7508b8f20
Migrate SO management routes to new plugin (#59734)
* unexpose SavedObjectsManagement from legacy server

* migrate saved object management routes to new plugin

* fix endpoint methods

* adapt code due to rebase

* extract types

* improve findAll params

* adapt existing api integration tests and migrate to TS

* update generated doc

* add API integration tests for /scroll/count

* add unit tests for plugin and routes

* add injectMetaAttributes tests

* extract relation type

* add find_relationships tests

* add find_all tests

* do not complete migrator$ to avoid unhandled promise rejection

* fix data for search endpoint integration tests

* remove falsy comment

* rename plugin folder to match plugin id

* address review comments

* update CODEOWNERS
2020-03-26 12:43:54 +01:00
Dmitry Lemeshko
3fe48fe8b3
Fix empty coverage folder, collect coverage when some tests fail (#61349)
* create coverage folder only if json file being saved

* skip some tests

* unskip test

* do not fail coverage run if some tests fail

* unskip fixed test
2020-03-26 13:50:58 +03:00
Cauê Marcondes
a16d446492
[APM] Link preview breaks when editing a custom link (#61053)
* refactoring custom link server side

* refactoring custom link server side

* fixing pr comments

* fixing unit test

* fixing unit tests

* renaming server directory

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 11:49:41 +01:00
MadameSheema
01e3cc307e
[SIEM] Adds 'Deleting prebuilt rules' tests (#61328)
* implements 'Deleting prebuilt rules' tests

* refactors code

* extracts the number of prebuilt riles to a constant that can be used in any test
2020-03-26 11:34:28 +01:00
Alejandro Fernández Haro
d55553711e
[Telemetry] Re-enable telemetry.config (#61408) 2020-03-26 10:28:13 +00:00
Maryia Lapata
d51b26d9b6
[NP] Vislib: createFiltersFromEvent goes through plugin class (#61072)
* Use createFiltersFromEvent vis plugin class

* Update legend.test.tsx

* Use createGetterSetter helper

* Fix TS

* Fix TS

* Refactoring

* Update services.ts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 13:17:31 +03:00
Alejandro Fernández
2b113e1ec8
[Logs UI] Cleanup /log_entries/entries's underlying implemen… (#60764)
* Rename temporary name

* Rename `LogEntryDocument` fields to match `LogEntry`

* Dedupe types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 10:51:51 +01:00
Pierre Gayvallet
468de51153
Add plugin start contract to getStartServices return value (#61216)
* add plugin own contract as third element of getStartServices result

* adapt plugins code

* update tests

* revert unknown to use void again

* update generated doc

* fix UT

* update mock to allow non-object `pluginStartContract`

* add @typeParam documentation
2020-03-26 10:49:05 +01:00
Robert Oskamp
9d0d3f7a53 [ML] Disable mml api integration test 2020-03-26 10:30:05 +01:00
Gidi Meir Morris
3f80d89eb5
[Alerting] Makes the tooltips in the ES Index Action a little clearer. (#61301)
Made the tooltips in the ES Action flyout a little clearer.
2020-03-26 09:29:23 +00:00
Jean-Louis Leysens
535b933b66
[Console] Clean up after initial 7.7.0 spec definitions update (#61227)
* Move JSON files in console_extensions to mirror console struct.

Also update the spec-to-console package README.md with the new
instructions.

* Re-add flat settings completion in indices.put_template

* Re-add template completion suggestions for indices.get_template

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 10:13:09 +01:00
MadameSheema
4b4c5bca2d
increases timeouts (#61229)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-26 09:19:10 +01:00
spalger
1abd2c3e79 fix kbn/pm dist 2020-03-26 00:56:26 -07:00
Daniil Suleiman
1d278d4494
[Discover][Visualize] Fix visualizing a selected field in discover search (#61226)
* Fix visualize a discover search

* Move deep clone into vis.ts

* Add functional tests

* Fix passing filters to visualize

* Revert fixing filters
2020-03-26 10:52:57 +03:00
Peter Pisljar
cf5c8f60bb
fixing tabifyAggResponse (#61214) 2020-03-26 07:34:18 +01:00
Thomas Watson
fe2ae7ea0d
Bump extract-zip from v1.6.7 to v1.7.0 (#61209)
This commit also consolidates our versions of the mkdirp sub-dependency
to use the newest 0.5.x version (v0.5.4) wherever possible.
2020-03-26 07:07:42 +01:00
Thomas Watson
9dd7ac2de9
Bump cypress dev-dependency from 4.0.2 to 4.2.0 (#61128) 2020-03-26 06:59:13 +01:00