Commit graph

30888 commits

Author SHA1 Message Date
Josh Dover 970bb75b84
[skip-ci] Fix broken links to saved objects APIs in MIGRATION.md (#58033) 2020-02-20 13:57:10 -07:00
Melissa Alvarez 3f4640b13d
[ML] New Platform server shim: update datafeed routes (#57739)
* convert datafeed routes to new platfrom

* update datafeed schema

* consolidate datafeedConfig schema for datafeed + job validation
2020-02-20 15:50:12 -05:00
Poff Poffenberger 2623976237
Add flag for building static storybook site (#58050)
* Adding storybook static site generation and percy storybook script

* feat: 🎸 build each Storybook in own folder, add --site flag doc

* Add flags site tag for exiting process

Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>

* Back out of percy-storybook integration

Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
2020-02-20 14:01:31 -06:00
Spencer 4aedf2b75b
add monaco to kbn/ui-shared-deps and load required features for all uses (#58075)
* add monaco to kbn/ui-shared-deps and load required features for all uses

* forgot to save a change

* remove unused imports

* include a cache buster to counteract issue #58077

* include monaco.ts in ts project
2020-02-20 12:58:42 -07:00
Frank Hassanabad 3bd639dd68
[SIEM] Let us try out code owners for a little while and see what happens
## Summary

Code owners for SIEM team.
2020-02-20 12:56:03 -07:00
Zacqary Adam Xeper d96cf70cd4
Add throttle param to Alerting readme (#57609)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 13:45:58 -06:00
Maryia Lapata 857f9f8379
[NP] Move ui/saved_objects to NP (#57452)
* Move saved_objects to NP

* Update path for imports

* Remove ui/saved_objects

* Update i18n IDs

* Convert test

* Replace Bluebird to Promise; fix unit tests

* Mock openConfirm in test

* Add kibana.json

* Check unit test

* Update unit tests
2020-02-20 21:20:23 +03:00
Alejandro Fernández 5953e62a72
[Logs UI] Fix column reordering in settings page (#58104)
* Ensure only one element has scroll

Apparently having multiple elements with scroll confuses the
`react-beautiful-dnd` mechanism to determine the position of the
elements. Adding `overflowY` to the app root fixes it.

* Fix upper bound check for log column reordering

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 17:57:00 +01:00
Matthew Kime dfd19596e1
Fix browser date format (#57714)
* fix browser date formatter
2020-02-20 10:40:35 -06:00
CJ Cenizal c3001c4469
Add filter for ILM phase to Index Management (revert #45486) (#57402) 2020-02-20 08:27:53 -08:00
Rachel Shen 289b2fa611
Clarify Precision function in Timelion Kibana (#58031)
* Closes issue 26100
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 08:59:44 -07:00
Mike Côté 783663fa52
Skip flaky alert details test (#58120)
* Skip flaky test

* Skip suite

* Skip suite
2020-02-20 08:46:28 -07:00
Xavier Mouligneau 602aca3387
[SIEM] Detections container/rules unit tests (#58055)
* add unit test for rules api

* add unit test for useFetchIndexPatterns

* fix useFetchIndexPatterns and add unit test for usePersistRule

* add more unit test for container/rules

* review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 10:39:43 -05:00
Maggie Ghamry 3cba05128e
[Canvas] Adds argument to open all links in new tab within markdown element (#57017)
* Adds toggle to open links in new tab within markdown element

* Updating test for markdown function

* Switch to using Markdown Component

* Update ui.ts

Update to change toggle verbiage per Ryan's request, and reuse the Kibana Markdown per Corey's help and recommendation. Still working on updating the styles (consulting Ryan)

* Update toggle.js

Update to prevent text for "Open links in new tab from wrapping" - the example from the horizontal bar chart is quite differently, and reads from "axisConfig" - when I changed the argType to "axisConfig", the layout was the same, but I'll need some input on which specific styles to add to the "ToggleArgInput" - I think this is where the style updates need to occur to get the toggle to stay on the same line, but may be wrong.

* Update ui.ts

Update to original message string per Ryan's feedback, now that there is no wrapping

* Update to UI styles per Ryan's feedback

* updating message per Ryan's request

* Update ui.ts

update to fix internationalization issues

Co-authored-by: Corey Robertson <crob611@gmail.com>
2020-02-20 10:12:19 -05:00
Michail Yasonik 5cfc5ef9ff
Reverting grouped nav UI (#57724)
* reverting grouped nav ui

* removing Management name change
2020-02-20 09:14:11 -05:00
Melissa Alvarez 47bb7c61b6
update estimateBucketSpan schema and api test (#58004) 2020-02-20 09:13:49 -05:00
Sebastian Grodzicki 39c835af60
Add owners for monitoring plugin (#57987) 2020-02-20 14:05:21 +01:00
Alexey Antonov ed2ca68d79
[ui/agg_response/tabify] -> TypeScript & Jest & Shim (#57660)
* [ui/agg_response/tabify] -> TypeScript & Jest & Shim

[ui/agg_response/tabify] -> TypeScript & Jest & Shim

Part of #57394

* fix CI

* move tabify into new folder

* TypeScript _bucket.js

* rename _buckets -> bucket

* fix CI

* tabify.test.js -> tabify.test.ts

* tabify.js -> tabify.ts

* fix JEST

* Update src/legacy/core_plugins/data/public/search/tabify/types.ts

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* fake_hierarchical_data.js -> fake_hierarchical_data.ts

* TimeRange -> TabbedRangeFilterParams

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
2020-02-20 15:40:00 +03:00
Robert Oskamp 16eb81628f
[ML] Transform functional tests - bootstrap transform job for clone test (#57992)
This PR adds transform bootstrapping to the functional test transform.api service and demonstrates the usage in a new cloning test file, which will be completed as part of the transform cloning PR.
2020-02-20 13:31:03 +01:00
Jean-Louis Leysens b07aa09606
[Watcher] Refactor to use client from RequestHandlerContext (#57834)
* Remove elasticsearch setup service from route deps

Removed the callWithRequestFactory entirely. This setup was introducing a pattern where
route handlers were not pulling the ES client fromt the route handler context. For this
refactor we need to extend the route handler context with watcher specific client actions
and so we also extend RequestHandlerContext globally.

In this commit we also update the types for params, query and body schema on each route to avoid
using any everwhere.

* Add generic types to license wrapper

Adding <P, Q, B> to the license wrapper made it a transparent
wrapper from a type perspective so we can remove the need to
eplicitly set RequestHandler<P, Q, B> on the handler.

Also cleaned up a variable name "response" -> "searchResults"

Also removed elasticsearch from the RouteDependencies type.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 13:25:02 +01:00
Dmitry Lemeshko d6aff77485
remove NODE_ENV=test (#58037)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-20 13:12:04 +01:00
Mikhail Shustov dd8eb62d9a
Test NP logging config reload on SIGHUP (#57681)
* TSify reload config test and simplify logic

* get rid of mutable config in tests

* increase timeouts

* address comments
2020-02-20 12:05:08 +01:00
Daniil Suleiman 0b644117b8
[Visualize] Remove legacy appState in visualize (#57330)
* Remove legacy appState in visualize

* Read query and linked prop from scope

* Fix persisted state instance

* Fix functional tests

* Bound url updates with an editor

* Some improvements

* Fix comments
2020-02-20 13:40:34 +03:00
Joe Reuter e23b547fb0
Use static time for tsvb rollup test (#57701) 2020-02-20 10:30:00 +01:00
patrykkopycinski b70d54438f
[SIEM] Fix ResizeObserver polyfill (#58046) 2020-02-20 08:27:51 +01:00
Frank Hassanabad 8097bd8dc1
[SIEM][Detection Engine] Fixes return codes where some were rule_id instead of id
## Summary

Fixes some return error codes where they were `rule_id` when they should have been `id`

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-02-19 19:44:11 -07:00
spalger 1464706b5c skip flaky suite (#56816) 2020-02-19 19:32:58 -07:00
spalger dbb4a66e0d skip flaky suite (#58059) 2020-02-19 19:29:20 -07:00
spalger ba983f0683 skip flaky suite (#45348) 2020-02-19 19:26:40 -07:00
Melissa Alvarez 8d5a02fc90
migrates notification server routes to NP (#57906) 2020-02-19 20:57:40 -05:00
John Dorlus a36467e66e
Moved all of the show/hide toggles outside of ordered lists. (#57163)
* Moved all of the show/hide toggles outside of ordered lists.

* Fixed styling issues for indice list.

* Fixed i10n tag that I accidentally changed.

* Added component to show/hide indices.

* Abstracted out some of the common parts of the Show Hide component and implemented the general component in the pages. Also made conditional for the i18n tags.

* Fixed changes per comments. Restored <EuiText> to fix the issue with the bullet points. Updated the i18n tags to be more generic. Created 2 components for formatted message.

* Fixed internalization issues..

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 17:27:50 -05:00
Oliver Gupte 96a0aa0266
[APM] NP Migration - Moves plugin server files out of legacy (#57532)
* Closes @56832 Migrates uses of the saved objects client to the internal
and context scoped clients exposed in the new platform core setup

* moves apm server, common, and typings dirs to the new plugin directory

* fixes path imports and type errors

* fixes some lint errors

* fixes CI failure. Use internal saved objects client like before.

* uses the context-scoped saved objects client for saving runtime APM indices,
and uses the internal saved objects client when creating apm index
pattern, so that any user who navigates to apm can trigger it

* fixes the type check error by updating import paths

* renamed files and directories to snake_case to pass scripts/check_file_casing

* rebase fixes and commit filename case changes

* moves get_indices_privileges.ts out of legacy path
2020-02-19 13:43:03 -08:00
Aaron Caldwell ef1565347c
[Maps][Telemetry] Migrate Maps telemetry to NP (#55055)
* Move maps telemetry to NP. Some clean-up, some ts conversion

* Update naming & org to be more in-line with guidelines

* Get TELEMETRY_TYPE from constants

* Ignore ts error importing from js file

* Set original array type passed into the function to array of ILayerTypeCount. Set return type on reduce function

* Remove unneeded 'any' types where used. Add in interfaces for map & index pattern saved objects

* Review feedback. Add layer, source, map saved object types and use

* Review feedback. Updates based on type check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 13:57:36 -07:00
Stacey Gammon 63cfffbe11
Embeddable add panel examples (#57319)
* Embeddable add panel examples

* add tests

* Fix type error after merge

* address code review comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 15:16:58 -05:00
Nicolas Chaulet 5946729097
Fix useRequest to support query change (#57723) 2020-02-19 14:52:09 -05:00
Liza Katz e1fa139976
Allow custom paths in plugin generator (#57766)
* Allow custom paths

* Add translation file

* Fix jest test

* Added more tests

* Update docs
Content of translation jsons

* Leave only one translation file

* generate default translations file

* Simplify i18n setup

* Code review changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 19:10:32 +00:00
Christos Nasikas ff0d2d9988
[SIEM][Case] Merge header components (#57816)
* Create edit node component

* Accept EditNodeComponent

* Switch to old header

* test

* Remove iconType

* Remove isEditTitle

* Move translations

* Delete header_page_new component

* Move editable title component to different folder

* Update jest snapshot

* Rename prop

* Make EditableTitleComponent more generic

* useCallback instead of inline functions in props

* Hardcode titles

* Move UI state inside EditableTitleComponent

* Seperate title's tests

* Create tests for EditableTitleComponent

* useCallbacks on EditableTitle component

* Create translation for aria-label in edit icon

* Check if switched to edit mode after pressing submit

* Test title when canceled

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 21:08:31 +02:00
Melissa Alvarez c2d98a0841
[ML] New Platform server shim: update job audit messages routes (#57925)
* migrate all job audit messages routes to NP

* update types and add missing api names from validation
2020-02-19 13:48:21 -05:00
Spencer fbae654da6
[kbn/optimizer] emit success event from reducer when all bundles cached (#57945)
* emit success event from reducer when all bundles cached

* verify that infinite streams can be broken by unsubscribing

* shift naming a smidge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 11:19:50 -07:00
Søren Louv-Jansen 0340fac149
[APM] Don’t include UI filters when fetching a specific transaction (#57934)
* [APM] Don’t include UI filters when fetching transaction

When fetching an error sample, the related transaction is also fetched. This transaction should not be filtered by ui filters

* Fix snapshot

* Update term mock term used for ui filter
2020-02-19 17:25:55 +01:00
Joe Portner 2c78be3d44
Upgrade yargs (#57720) 2020-02-19 11:16:17 -05:00
spalger 29ac6fea71 skip flaky suite (#57762) (#57997) (#57998) 2020-02-19 08:22:37 -07:00
Gidi Meir Morris 85097d5fad
adds pagination on Alert Instances list on Alert Details page (#57524)
* added pagination on alert instances page

* extracted default page size to a constant for alerting UI as a whole

* Fix test failure

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2020-02-19 10:08:01 -05:00
Yara Tercero ca3f27aca9
[SIEM] [Detections Engine] Import rules unit tests (#57466)
* Added unit tests for detection engine import_rules_route and moved out small portion of import_rules_route into a util to be unit tested as well.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 09:42:50 -05:00
Vadim Dalecky b7cc61f8b7
test: 💍 make tests less flaky (#57991)
 Closes: #57823
2020-02-19 15:42:05 +01:00
spalger c91e4a77c1 skip flaky suite (#57946) 2020-02-19 07:38:21 -07:00
spalger d7c36d04f2 skip flaky suite (#44631) 2020-02-19 07:35:17 -07:00
Vadim Dalecky 6678436cca
Expressions server-side (#57537)
* refactor: 💡 improve setup and documentations of expr service

* feat: 🎸 expose ExpressionsService on server-side

* feat: 🎸 freeze expression plugin contracts

* test: 💍 add basic integration test to server-side expr plugin

* feat: 🎸 export static exports from expressions server-side

* fix: 🐛 fix Jest mocks

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-19 15:22:19 +01:00
Dima Arnautov 4fa59429b2
[ML] New Platform server shim: update system routes (#57835)
* [ML] NP system routes

* [ML] apidoc.json

* [ML] address PR comments

* [ML] fix apidoc methods, passing es_search endpoint payload

* [ML] add dummy body validation for es_search, fix ignoreSpaces query param

* [ML] _has_privileges validate body
2020-02-19 14:40:18 +01:00
Alison Goryachev cf743f3216
[Remote clusters] Fix regression with xpack.remote_clusters.ui.enabled setting (#57895) 2020-02-19 08:10:18 -05:00