Commit graph

31856 commits

Author SHA1 Message Date
Marco Vettorello
ba3d639201
fix(line_annotation): keep the spec in state after chart rerender (#61499) 2020-03-27 12:01:20 +01:00
Jean-Louis Leysens
3373bb8613
[Grokdebugger] Fix grokdebugger simulate call in non-default s… (#61423) 2020-03-27 11:35:22 +01:00
Christos Nasikas
5b8de94616
[SIEM][CASE] Improve connector flyout (#61450)
* Disable action types

* Disable autofill

* Warn user on edit flyout about empty secrets

* Change column name

* Disable field mapping
2020-03-27 11:03:59 +02:00
Alexey Antonov
37c4fd4b71
[data.search.aggs] Remove service getters from agg types (#61069)
* [data.search.aggs] Remove service getters from agg types

Part of #60333

* fix JEST

* fix karma:unit

* fix PR commnets

* fix PR comments

* try to fix ci

* fix CI

* fix karma:unit

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-27 11:57:00 +03:00
MadameSheema
55ed873f32
[SIEM] Adds 'Delete custom rules' tests (#61495)
* adds test data

* implements 'Deletes one rule' test

* adds new data

* fixes 'Deletes one rule' for the new data

* adds 'Deletes more than one rule' test
2020-03-27 09:34:14 +01:00
Daniil Suleiman
eedf64b091
[Discover] Fix filters passing down to visualize (#61392)
* Fix visualize a discover search

* Move deep clone into vis.ts

* Add functional tests

* Fix passing filters to visualize

* Add functional tests
2020-03-27 11:02:29 +03:00
spalger
25ffab23b5 skip flaky suite (#61562) (#61563) 2020-03-26 23:19:14 -07:00
Matthias Wilhelm
041dcc06af
[Discover] Fix ignoring uiSetting discover:searchOnPageLoad (#61393)
* Add checks for changed query and update in $scope.updateQuery

* Add functional test by counting fetches
2020-03-27 06:42:51 +01:00
Xavier Mouligneau
327f5a099a
[SIEM] [CASES] bug/clean up phase I (#61354)
* clean up comments + add update_by/update_at  case when comment are added/updated + return all comments

* add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page

* fix i18m

* review I

* review II
2020-03-26 20:09:58 -04:00
Yuliia Naumenko
40d50343c9
Fix alert and action telemetry reporting to stop sending data that contains dot in the name (#61389)
* fix alert and action telemetry reporting to stop sending data that starts or ends with a '.'

* Fixed due to comments

* fixed test

* revert testing data
2020-03-26 16:49:07 -07:00
Nathan Reese
3431697a3a
[Maps] add functional test for category autocomplete (#61386)
* [Maps] add functional test for category autocomplete

* remove duplicated method
2020-03-26 16:26:26 -06:00
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