Commit graph

29190 commits

Author SHA1 Message Date
Joe Reuter 69e6b2908d
fix linting errors in graph (#50907) 2019-12-03 15:44:37 +01:00
Larry Gregory 7b2b6a01e0
Upgrade markdown-it to 10.0.0 (#51492)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-03 08:52:04 -05:00
Joe Reuter 86b3428115
Kibana app migration: Remove old apis (#50881) 2019-12-03 14:32:18 +01:00
Liza Katz 0732067dc2
Move QueryStringInput ⇒ NP (#51873)
* Move query string input and query bar top row to NP

* Fix query string input imports

* import

* Remove duplicate implementation of getFromSavedObject

* import getFromSavedObject

* Fixed import

* code review

* Remove css color
2019-12-03 15:04:11 +02:00
Jean-Louis Leysens 554d640f90
Unskip legacy editor test (#51907) 2019-12-03 12:41:26 +01:00
Marcin Tojek ff5cb9eab4
Add home tutorial for ActiveMQ filebeat module (#52034) 2019-12-03 12:13:41 +01:00
Pierre Gayvallet ba9a6c9195
Move configuration validation to new platform (#51880)
* move configuration validation to NP

* update generated docs

* fix integration test

* ensure correct prototype for custom error

* typealiases KibanaConfig to LegacyConfig

* migrate test file to ts

* move getUnusedConfigKeys to NP

* method no longer async

* getUnusedConfigKeys: switch to named arguments

* introduce CriticalError error type
2019-12-03 11:36:50 +01:00
Cauê Marcondes a80366b364
[APM] Pagination of top 10 trace samples (#51911)
* adding trace pagination

* adding trace pagination

* refactoring

* refactoring
2019-12-03 09:49:46 +01:00
Pierre Gayvallet 99c6396fd5
Migrate Capabilities to new platform (#51438)
* create service skeleton

* move registerCapabilitiesModifier to capabilities service and rename to registerCapabilitiesSwitcher

* starts to move capabilities logic to CapabilitiesService

* move capabilities route to service

* add initial integration test for capabilities route

* capabilitiesMixin now delegates to capability service

* use server-side Capabilities import in server code

* update generated doc

* remove capabilities from injectedMetadatas

* use applications sent from client instead of server-registered navLinks

* disable authRequired for capabilities route

* (temp) exposes two endpoints for capabilities

* Add fetch-mock on capabilities call for karma tests

* adapt xpack Capabilities test - first attempt

* adapt x-pack ui_capabilities test

* add '/status' to the list of anonymous pages

* Add documentation on Capabilities APIs

* move Capabilities to core/types

* update generated docs

* add service tests

* protecting resolveCapabilities against added/removed capabilities

* update generated docs

* adapt mocks due to rebase

* add forgotten exports

* improve capabilities routes registering

* name capabilities registering methods

* resolve conflicts due to merge

* address review issues

* add comment about reason for exposing two routes

* extract createHttpServer test helper

* fix merge conflicts

* improve documentation

* remove `/status` anon registration as now done in NP status plugin

* fix merge conflicts
2019-12-03 09:34:49 +01:00
Nathan L Smith 609a7f5cfa
[APM] metadata.branch shim (#51770)
Set up the APM public NP plugin to expose the stack version

Since we're not yet running as an NP plugin, we don't get passed a pluginInitializerContext,
so we use a shim in the plugin setup that gets the branch values from ui/metadata for the time being.

Fixes #49327.
2019-12-02 23:00:33 -06:00
Frank Hassanabad be088a16ed
[SIEM][Detection Engine] Switches actions/alerting on by default with SIEM (#51985)
## Summary

* Removes environment variables to have alerting/actions be defaulted on within SIEM
* Updates documentation
* Removes unit tests for it

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [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

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-12-02 17:12:20 -07:00
Luke Elmers d63595890e
Update App Arch CODEOWNERS with legacy plugins. (#51502) 2019-12-02 16:57:27 -07:00
ffknob 139ebcf614 Clear cache when updating indices via UI (#51767)
* Clear cache when updating indices via UI

* Removes .ts
2019-12-02 17:39:57 -06:00
Karen Metts f7f72cb737
[Doc]Replace outdated screenshots and change graphic format (#52017)
* Replace outdated screenshots and change graphic format

* Added screenshot role per review comments
2019-12-02 16:32:35 -05:00
Nathan L Smith 0ba5c1e4d2
[APM] getInjectedVars shim (#51635)
* [APM] getInjectedVars shim

Set up the APM public NP plugin to expose the config variables on its context,
and replace use of getInjectedVars with that.

Since we're not yet running as an NP plugin, we don't get passed a `pluginInitializerContext`,
so we use a shim in the plugin setup that gets the config values from injected vars for the time being.

Also:

* Move toggle app link in nav shim to plugin setup
* Replace the routes exported from Main/route_config with a function that takes a configuration object
2019-12-02 15:20:50 -06:00
Nathan Reese a46833ec98
[Maps] Refactor style editor to use style property class instead of style descriptor object (#52001)
* [Maps] pass style property object instead of style descriptor to style editer components

* pass symbol descriptor

* cleanup from merge
2019-12-02 14:08:30 -07:00
Tyler Smalley d0d6d43aee
Prevents xpack.task_manager.index being set to .tasks (#52002)
A quick solution in preventing what was described in kibana#47716

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-12-02 12:55:52 -08:00
spalger fe24b3d441 disable visual regression tests 2019-12-02 13:33:00 -07:00
Corey Robertson d86f85bdbc
[Canvas] New Platform shim Canvas Client Side (#49358)
* New Platform shim Canvas

* Fix typing

* Use some new platform methods

* Fix formatting issue
2019-12-02 15:32:14 -05:00
John Dorlus ec853438c9
This app is an entirely different app on cloud. Disabling. (#51844) 2019-12-02 14:22:59 -05:00
Brian Seeders c8eef0458b
Experimenting with delay in test startup (#51459)
* Experimenting with delay in test startup

* Move firefox tests sooner becuase they take a long time to run

* Move functional test parallel process delay to a spot that should work better for flaky test runner
2019-12-02 14:21:38 -05:00
Xavier Mouligneau b1a3a619a4
fix tab url link (#51993) 2019-12-02 14:10:10 -05:00
James Gowdy 1c6bd0992c
[ML] Fixing info content detector field selection (#51914)
* [ML] Fixing info content detector field selection

* fixing test
2019-12-02 18:51:11 +00:00
Nathan L Smith 51c7922518
[APM] Add NP feature catalog registration (#51765)
* Move register_feature.js to legacy_register_feature.js
* Add feature catalog registration to NP plugin
* Add plugin dependencies in kibana.json

Fixes #51542.
2019-12-02 12:14:58 -06:00
Lisa Cawley e68b39b72d
[DOCS] Fixes xpack-ref links (#51936) 2019-12-02 09:43:25 -08:00
Brandon Kobel 1883f4c904
Update kibana.yml explanation of elasticsearch.ssl (#51451) 2019-12-02 12:31:03 -05:00
Pedro Luiz Cabral Salomon Prado 5b8b8a9d87 Removed duplicate attribute (#50001) 2019-12-02 17:26:51 +00:00
Nathan Reese d2846b618d
[Maps] fix too_many_buckets_exception for top hits (#51497)
* [Maps] fix too_many_buckets_exception for top hits

* spelling

* do not change re-fetch behavior when zooming in

* i18n cleanup

* review feedback
2019-12-02 10:02:19 -07:00
Thomas Neirynck b3cf311808
[Maps] Move vector-style component to vector folder (#51779) 2019-12-02 11:50:20 -05:00
Joe Portner 5906801b4f
Http compression config (#50738)
HTTP compression for responses may be disabled entirely, or it may
be conditionally enabled based on a whitelist of trusted referrers.
2019-12-02 11:43:06 -05:00
Liza Katz 4e820b5be1
move saved query UI components ⇒ NP (#51870)
* move saved query UI components to NP

* Fixed search bar test

* Added service to siem mock

* change import css
2019-12-02 18:27:25 +02:00
Marta Bondyra 2c311ce825
refactor: replace 'change' to arrow in index pattern selector (#51954) 2019-12-02 15:21:45 +01:00
Pedro Luiz Cabral Salomon Prado a3b87700aa Fixed NaN comparison (#50000) 2019-12-02 15:21:10 +01:00
Pete Harverson 9e24cb268e
[ML] Adds functional tests for the index based data visualizer (#51832)
* [ML] Adds functional tests for the index based data visualizer

* [ML] Address comments from review on data viz tests

* [ML] Skip data visualizer functional tests on Firefox
2019-12-02 12:15:19 +00:00
Tim Roes 05047c39c6
[TSVB] Fix TSVB not saving correctly (#51887)
* Fix TSVB not saving correctly

* Address review

* Add functional test
2019-12-02 13:08:52 +01:00
Maryia Lapata 5b84b69042
[Vis] TableVis uses local angular (#50759)
* TableVis uses local angular

* Clean up

* Fix TS

* Update angular_config

* Fix export

* Update render_app.ts

* Cetralize ui deps

* Fix loading KbnTableVisController in Dashboard

* Fix graph

* Rename const

* Add table vis mocks

* Fix kbn_top_nav

* Add TS for test

* Complete conversion paginated_table test to Jest

* Convert table_vis_controller test to Jest

* Convert table_vis_controller test to Jest

* Create agg_table.test.ts

* Fix mocha tests

* Refactoring

* Remove module dep

* Remove LegacyDependenciesPlugin

* Move file

* Fix path

* Fix path

* Fix TS

* Fix Jest test
2019-12-02 14:19:54 +03:00
Liza Katz 06bef09427
Replace StaticIndexPattern with IIndexPattern from NP (#51872)
* replace SIP with IIP

* import path
2019-12-02 12:39:43 +02:00
Marta Bondyra 45e7a11d68
Remove usages of @kbn-ui-framework (#51696) 2019-12-02 11:17:27 +01:00
Søren Louv-Jansen 01322363ec
[APM] Add script for creating roles for local dev use (#51824) 2019-12-02 07:52:10 +01:00
Nick Partridge d2811df358
Fix type error with jest tests (#51925) 2019-12-01 21:20:29 -06:00
Liza Katz 19c6b89ec2
Newplatform/move index patterns to new plugins 2 (#51940)
Re-merging a fixed merge PR by @Avinar-24
2019-12-01 15:36:59 +02:00
Brian Seeders ce127d21b3
Revert "[NP] Move IndexPatterns into the NP (#51199)"
This reverts commit 3a0d5f4bf5.
2019-11-30 10:39:32 -05:00
Artyom Gospodarsky 3a0d5f4bf5 [NP] Move IndexPatterns into the NP (#51199)
* Make a copy of index_patterns module inside NP

* Sync changes of index patterns

* Remove UI component from service

* Remove redundant exports from index_patterns

* Sync old index_patters changes

* Make common namespace of IndexPattern

* Make re-exports of old IndexPatter dependencies

* Remove utils and error of the old indexPattern

* Plug InterPatternService in data plugin

* Make shortenDotString in new data plugin

* Remove field folder

* Fix wrong merge

* Remove index_pattern folder

* Remove _LEGACY from service

* Remove static code from service

* Fix start contract

* Remove services from the old plugin

* Remove index_patterns_service

* Fix filter.meta.index type

* Fix reviews

* Fix type error
2019-11-30 14:58:20 +02:00
James Gowdy bb7c9ed9d9
[ML] Changing job message info icon (#51904) 2019-11-29 17:12:49 +00:00
Matthias Wilhelm 0ebc12e8e1
Migrate UiSettingsClient type to IUiSettingsClient (#51913) 2019-11-29 16:36:20 +01:00
Matthias Wilhelm 1c2906cc4b
[Discover] shim with local application service (#49483)
Shims discover app within local angular instance (or so called inner angular in the code) to enable migration to the new platform without getting rid of all Angular. Note that apart from Discover's main app, also context, doc view and embeddable are part of this shim. 

There a 2 sorts of local angular used, one for the main plugin, and a slimmer one for it's embeddable, that's needed to render the data table. Both are built on first demand.

There are 2 changes of URLs inside

/context/ becomes /discover/context
/doc/ becomes /discover/doc

Legacy url's are redirected, so they are still valid.
2019-11-29 13:51:56 +01:00
Pete Harverson d92965ab21
[ML] Fixes loading of data visualizer with KQL saved search (#51882) 2019-11-29 10:43:52 +00:00
Tim Roes 62baeeb0a9
Add new eslint rules for TS (#51876) 2019-11-29 09:45:15 +01:00
Dima Arnautov b0ec48a4f1
[ML] Add Custom URLs and Calendars to the Job wizards (#51281)
* [ML] editor to ts

* [ML] custom_urls component to ts

* [ML] custom urls in job creator, define CustomSettings interface

* [ML] custom urls selection

* [ML] custom urls description text

* [ML] description for calendars

* [ML] update layout to full width

* [ML] fix i18n

* [ML] adjust editor test

* [ML] fix type for FormattedMessage

* [ML] fix types

* [ML] add modal edit mode to the custom urls editor

* [ML] fix calendars saving

* [ML] update snapshot

* [ML] add test support

* [ML] update form description text

* [ML] adjust layout

* [ML] set modal width

* [ML] fix total value condition in getTestUrl

* [ML] fix token replacement for string values

* [ML] align calendar selection

* [ML] manage calendars link

* [ML] fix form description ids

* [ML] styles for custom urls description

* [ML] manage calendars as a link

* [ML] refresh calendars button

* [ML] remove redundant css rule

* Revert "[ML] remove redundant css rule"

This reverts commit 6b9a50e0

* [ML] update calendar service, move calendars out of the job config

* [ML] fix translation key

* [ML] fix i18n

* [ML] alight calendars selection

* [ML] calendar types

* [ML] update calendars description

* [ML] calendars cloning

* [ML] align additional settings with advanced

* [ML] fix typo, clean up calendars

* [ML] persist created_by for custom urls

* [ML] fix fetchCalendarsByIds

* [ML] extend stashCombinedJob with calendars

* [ML] remove redundant check and fallback for calendars
2019-11-29 09:30:58 +01:00
Walter Rafelsberger d4dedbb546
[ML] Anomaly Explorer: Deprecate explorer_controller (#51269)
The main goal of this PR is to get rid of explorer_controller.js to unblock the migration to react-router. Previously we already used rxjs observables to migrate away from angular events. Observables were used to trigger actions to manage the react component's state as well as AppState. This PR builds upon this previous work. The actions already were done similar to redux, now the use of observables has been extended to use scan (see rxjs docs) which allows us to transform the actions into state updates.
2019-11-28 23:51:02 +01:00