Commit graph

15099 commits

Author SHA1 Message Date
Spencer
9f94c39960
[7.x] build immutable bundles for new platform plugins (#53976) (#57528)
* build immutable bundles for new platform plugins (#53976)

* build immutable bundles for new platform plugins

* only inspect workers if configured to do so

* [navigation] use an index.scss file

* add yarn.lock symlink

* set pluginScanDirs in test so fixtures stay consistent

* cleanup helpers a little

* fix type error

* support KBN_OPTIMIZER_MAX_WORKERS for limiting workers via env

* test support for KBN_OPTIMIZER_MAX_WORKERS

* expand the available memory for workers when only running one or two

* add docs about KBN_OPTIMIZER_MAX_WORKERS environment variable

* fix README link

* update kbn/pm dist

* implement bundle caching/reuse

* update kbn/pm dist

* don't check for cache if --no-cache is passed

* update renovate config

* standardize on index.scss, move console styles over

* add support for --no-cache to cli

* include worker config vars in optimizer version

* ignore concatenated modules

* update integration test

* add safari to browserslist to avoid user-agent warnings in dev

* update docs, clean up optimizer message/misc naming

* always handle initialized messages, don't ignore states that are attached to specific events

* reword caching docs, add environment var to disable caching

* tweak logging and don't use optimizer.useBundleCache as that's disabled in dev

* handle change notifications

* batch changes for 1 second

* rename CompilerState type to CompilerMsg

* getChanges() no longer needs to assign changes to dirs

* remove unused deps

* split up run_worker.ts and share cacheKey generation logic

* add a couple docs

* update tests and remove unused imports

* specify files when creating bundle cache key

* remove one more unused import

* match existing dev cli output more closely

* update kbn/pm dist

* set KBN_NP_PLUGINS_BUILT to avoid warning in CI

* avoid extending global window type

* add note to keep pluginScanDirs in sync

* pass browserslistEnv in workerConfig so it is used for cache key

* load commons.bundle.js in parallel too

* emit initialized+success states if all bundles are cached

* load bootstraps as quickly as possible

* skip flaky suite

* bump

* update jest snapshots

* remove hashing from cache key generation

* remove unnecessary non-null assertion

* improve docs and break up Optimizer#run()

* remove unused import

* refactor kbn/optimizer to break up observable logic, implement more helpful cache invalidation logic with logging

* fix tests

* add initializing phase

* avoid rxjs observable constructor

* remove unnecessary rxjs helper, add tests for bundle cache

* update consumers of optimizer

* update readme with new call style

* replace "new platform" with "kibana platform"

* fix a couple more renames

* add support for several plain-text file formats

* fix naming of OptimizerMsg => OptimizerUpdate, use "store" naming too

* one more OptimizerMsg update

* ensure bundles are not cached when cache config is false

* test for initializing states and bundle cache events

* remove unnecessary timeout change

* Remove unnecessary helpers

* Add tests for BundleCache class

* Add tests for Bundle class

* test summarizeEvent$

* missing paths are no longer listed in mtimes map

* add tests for optimizer/cache_keys

* Add some extra docs

* Remove labeled loop

* add integration test for kbn-optimizer watcher components

* querystring-browser removed

* tweak logging a smidge, improve info and final message

* remove unused imports

* remove duplication of getModuleCount() method

* move type annotation that validates things

* clear up the build completion message

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* [kbn/optimizer] Fix windows support (#57592)

* [kbn/optimizer] simplify run_workers.ts a smidge

* use Path.resolve() to create windows paths from normalized ones

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 343bc9c303)

* remove istanbul/code coverage references

* fix webpack config syntax

* removal of querystring-browser was backported to 7.x

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-14 11:35:24 -07:00
Jean-Louis Leysens
2e33bfe208
[Console] Fix performance bottleneck for large JSON payloads (#57668) (#57682)
* Fix Console performance bug for large request bodies

The legacy_core_editor implemenation was calculating the current editor line
count by .split('\n').length on the entire buffer which was very inefficient
in a tight loop. This caused a performance regression. Now we use the cached
line count provided by the underlying editor implementation.

* Fix performance regression inside of ace token_provider implementation

* Clean up another unnecessary use of getValue().split(..).length.

Probably was not a performance issue, just taking unnecessary steps. Not
sure that this function is even being used.
2020-02-14 15:58:44 +01:00
Joe Reuter
c1089efc7e
Clean up shims of Graph, Home, Dashboard, Visualize (#57331) (#57684) 2020-02-14 15:52:30 +01:00
Lee Drengenberg
6a23965971
handle viewing sample dashboards on default dist (#57510) (#57625)
* handle viewing sample dashboards on default dist

* re-work change to not break jest test

* Update snap for addition of data-test-subj

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-14 08:44:23 -06:00
Pierre Gayvallet
a43ce0aa65
[7.x] Use app id instead of pluginId to generate navlink from legacy apps (#57542) (#57670)
* Use app id instead of pluginId to generate navlink from legacy apps (#57542)

* properly use app id instead of pluginId to generate navlink

* extract convertToNavLink, add more tests

* use distinct mapping methods

* fix linkToLastSubUrl default value

* nits & doc

* update generated doc
2020-02-14 14:57:01 +01:00
Joe Reuter
ecc03e9468
Migrate vega and graph configs to new platform (#57011) (#57661) 2020-02-14 14:12:54 +01:00
Joe Reuter
15ea696531
TSVB validation: Allow empty strings for number inputs (#57294) (#57662) 2020-02-14 14:12:45 +01:00
Pierre Gayvallet
6f6cc356f9
Preserve the original error name instead of returning raw AbortError (#57550) (#57653)
* Preserve the original error name instead of returning raw AbortError

* use Error as the default error name
2020-02-14 11:50:16 +01:00
Joe Portner
65f065e5f0
Fix detection of "system requests" in plugins (#57149) (#57639)
This aligns plugin usage with the new way that the Kibana Platform
handles checking for system requests.
2020-02-14 00:01:35 -05:00
Mikhail Shustov
2031b95a4d
Use log4j pattern syntax (#57433) (#57568)
* address comments

* use log4j-like syntax in layout pattern

* %timestamp --> %date to match log4j conversion pattern

* %context --> %logger to match log4j pattern

* remove file from pre-defined appenders.

file name is required. let users to setup everything

* matchAll is not polyfilled in runtime

* document available patterns and migration path

* document BWC requirements

* Revert "matchAll is not polyfilled in runtime"

This reverts commit 9f491d4f53.

* address comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-13 21:46:52 +01:00
Peter Pisljar
d481a32c9a
fixing maps (#56706) (#57511) 2020-02-13 10:26:51 -05:00
Pierre Gayvallet
07ceb70278
add absolute option to getUrlForApp (#57193) (#57543) 2020-02-13 12:28:03 +01:00
Ahmad Bamieh
d02fb7a928
[7.x] [Telemetry] Migrate public to NP (#56285) (#57534) 2020-02-13 11:41:31 +02:00
Alexey Antonov
f3104aa77e
[ui/utils/query_string]: Remove unused methods & migrate apps to querystring lib (#56957) (#57533)
* replace querystring (querystring-browser) -> query-string

* QueryString remove encode/decode methods

* remove query_string file

* remove querystring-browser from package.json

* add kibana_utils\url module

* cleanup

* update notice.txt

* fix merge conflict

* fix CI

* fix wrong import

* fix CI

* fix X-Pack firefox smoke test

* remove urlUtils.parseUrlQuery

* remove url.stringifyUrlQuery

* use url.encodeQuery

* Record<string, any> -> ParsedQuery

* Update src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx

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

* add more tests for APM

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

# Conflicts:
#	x-pack/plugins/endpoint/public/applications/endpoint/store/alerts/middleware.ts
2020-02-13 12:18:46 +03:00
Matthew Kime
e96f0f4b11
Management Api - add to migration guide (#56892) (#57517)
* update management info in migration guide
2020-02-12 19:10:06 -06:00
CJ Cenizal
a423636ce9
Add "coerce" to dev tools autocomplete (#56862) (#57498)
Co-authored-by: AndyHunt66 <andrew.hunt@elastic.co>
2020-02-12 14:15:07 -08:00
Liza Katz
0b0f0fa1f0
Explicit namespaces for esFilters (#57177) (#57440)
* Explicit namespaces for esQuery and esQuery

* Remove unnecessary file from siem

* remove jsonvalue definition from siem

* esFilters refactor O_O

* Delete IFilterType

* import fixes

* Fix merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 17:11:11 +02:00
Maryia Lapata
4279d9b2f2
[NP] Clean up shim legacy_imports (#57192) (#57443)
* Clean up ui/documentation_links in vis_default_editor

* Replace move from ui/utils/collection

* Remove loading stateManagementConfig since it is unused

* Inline SimpleEmitter

* Inline Binder to get rid of a dep

* Remove unused imports

* Update unit test

* Fix test

* Remove unused legacyChrome

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 16:49:55 +03:00
Maja Grubic
98b6eb133e
[Add panel flyout] Moving create new to the top of SavedObjectFinder (#56428) (#57360)
* [Add panel flyout] Moving create new to the top of SavedObjectFinder

* [Add panel flyout] Moving create new to the top of SavedObjectFinder

* Fixing failing unit test

* Readd missing test

* [NP] Move saved object modal into new platform (#56383)

* Move saved object modal into new platform

* Fix TS

* Revert "Fix TS"

This reverts commit f2f9f5e935.

* Revert "Move saved object modal into new platform"

This reverts commit d0f0ea6e30.

# Conflicts:
#	src/legacy/core_plugins/kibana/public/discover/np_ready/angular/discover.js

* Move save_object_save_modal

* Move show_saved_object_save_modal.tsx

* Move save_object_finder.tsx

* Remove unused export

* Pass I18nContext to showSaveModal

* Update i18n ids

* Fix map save

* Refactoring

* Load styles

* Revert importing styles

* Update snapshot

* Update snapshot

* Structural refactoring

* Fix path

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Applying PR comments

Removing faulty rebase imports

Fixing unresolved conflict

Removing faulty merge files

Removing faulty import

Readd accidentally added file

* Removing unnecessary eslint-ignore

Co-authored-by: Maryia Lapata <mary.lopato@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Maryia Lapata <mary.lopato@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 11:35:22 +00:00
Pierre Gayvallet
63089ed171
preprend basePath in getUrlForApp (#57316) (#57416) 2020-02-12 11:22:46 +01:00
Mikhail Shustov
41569d9443
[NP] Add meta-data and timestamp formatting for Log Record (#56982) (#57419)
* log meta in pattern layout

* address pgayvallet comment

* add conversion patterns for timestamp

* use comparison instead of inline snapshots

* logs. use elasticsearch and LP compatible timezone format in json layout

* use regexp groups and dot separator for ms. as in default iso format

* use America/New_York timezone as default as it set in guess anyway

* fix APM tests. they need to reset timezone locally and restore it after

* fix logging tests
2020-02-12 10:37:05 +01:00
Liza Katz
5a93fdb125
Explicit index pattern namespace (#57194) (#57415)
* Explicit index pattern namespace

* typing of index patterns

* fix ts error on master

* export FieldList

* Move isFilterable into indexPatterns namespace

* Server index pattern cleanup

* comment

* isDefault

* karma mock fix + discover fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 10:48:05 +02:00
Vadim Dalecky
b9f4eec008
[7.x] Expressions refactor (#54342) (#57366)
* Expressions refactor (#54342)

* feat: 🎸 add UiComponent interface

* feat: 🎸 add adapter for react => ui components and back

* refactor: 💡 move registries to shared /common folder

* feat: 🎸 create expressions service state contaienr

* chore: 🤖 export some symbols

* feat: 🎸 add Executor class

* test: 💍 add simple integration test

* feat: 🎸 move registries into executor

* feat: 🎸 add initial implementation of Execution

* feat: 🎸 move Executor's state container into a signle file

* refactor: 💡 move createError() to /common folder

* feat: 🎸 use Executor in plugin definition

* refactor: 💡 rename handlers to FunctionHandlers

* feat: 🎸 improve function typings

* feat: 🎸 move types and func in sep folder, improve Execution

* refactor: 💡 cleanup expression_types folder

* refactor: 💡 improve typing names of expression types

* refactor: 💡 remove lodash from ExpressionType and improve types

* test: 💍 add ExpressionType tests

* refactor: 💡 remove function wrappers around types

* refactor: 💡 move functions to /common

* test: 💍 improve expression function tests

* feat: 🎸 create /parser folder

* refactor: 💡 move function types into /expression_functions dir

* refactor: 💡 improve parser setup

* refactor: 💡 fix export structure and move args into expr_func

* test: 💍 add ExpressionFunctionParameter tests

* fix: 🐛 fix executor types and imports

* refactor: 💡 move getByAlias to plugin, fix Execution types

* feat: 🎸 add function for argument parsing

* test: 💍 add Executor type tests

* test: 💍 add executor function and context tests

* test: 💍 check that Executor returns Execution

* test: 💍 add basic tests for Execution

* test: 💍 add basic test for execution of a chain of functions

* test: 💍 add "mult" function tot tests

* feat: 🎸 create separate expression_renderer folder

* feat: 🎸 use new executor in public plugin

* feat: 🎸 remove renderers from executor, add result to execution

* fix: 🐛 fix Kibana TypeScript errors

* test: 💍 add file to write integration tests for expr plugin

* refactor: 💡 move state_containers to /common

* refactor: 💡 move /parser to /ast and inline format() function

* refactor: 💡 remove remaining @kbn/interpreter imports

* feat: 🎸 better handling and typing for Executor context

* feat: 🎸 use Executor.run function in plugin

* fix: 🐛 fix TypeScript type errors

* test: 💍 move integration tests into one file

* feat: 🎸 create ExpressionsService

* chore: 🤖 clean up legacy code

* feat: 🎸 use ExpressionsService in /public

* refactor: 💡 move inspector adapters to /common

* feat: 🎸 improve execution

* feat: 🎸 add state to execution state and don't clone AST

* test: 💍 add tests for Execution object

* test: 💍 improve expression test helpers

* test: 💍 add Execution tests

* refactor: 💡 improve required argument checking

* fix: 🐛 fix Kibana TypeScript errors

* test: 💍 add ExpressionsService unit tests

* fix: 🐛 fix Expression plugin TypeScript types

* refactor: 💡 prefix React component with React*

* fix: 🐛 fix X-Pack TypeScript errors

* fix: 🐛 fix test TypeScript errors

* fix: 🐛 fix issues preventing loading

* feat: 🎸 remove getInitialContext() handler

* fix: 🐛 fix TypeScript errors

* chore: 🤖 remove uicomponent interface

* chore: 🤖 remove missing import

* fix: 🐛 correctly handle .query in "kibana" expression function

* refactor: 💡 call first arg in expression functions "input"

* fix: 🐛 do not free Execution state container

* test: 💍 fix tests after refactor

* test: 💍 fix more tests after refactor

* fix: 🐛 remove redundant export

* test: 💍 update intepreter_functional test shapshots

* fix: 🐛 relax "kibana" function throwing on missin gsearch ctx

* refactor: 💡 don't use ExpressionAST interface in Canvas

* docs: ✏️ improve ExpressionRenderer JSDocs

* refactor: 💡 rename context.types to inputTypes in internal fn

* refactor: 💡 replace context.types by unknown in ExprFuncDef

* refactor: 💡 improve expression function definitions in OSS

* fix: 🐛 correctly set name on metric_vis_fn

* refactor: 💡 improve Lens definitions of expression functions

* refactor: 💡 improve Canvas expression function definitions

* test: 💍 add createMockExecutionContext() helper

* refactor: 💡 add some type to events$ observable in expr handler

* feat: 🎸 add types to observables in data handler

* refactor: 💡 use inputTypes in canvas

* fix: 🐛 fix interpreter grammer generation script

* feat: 🎸 allow array in getByAlias

* test: 💍 simplify test function specs

* test: 💍 fix autocomplete tests

* fix: 🐛 use correct expression types and NP getFunctions() API

* refactor: 💡 use NP expressions to get renderer

* fix: 🐛 use context.types on server-side Canvas function defs

* refactor: 💡 use NP API to register Canvas renderers

* feat: 🎸 use NP API to get types

* style: 💄 minor formatting changes

* feat: 🎸 use NP API to get expression functions

* fix: 🐛 fix Canvas workpads

* test: 💍 add missing mock functions

* refactor: 💡 improve Lens func definition argument types

* fix: 🐛 fix Lens type error

* feat: 🎸 make lens datatable work again

* feat: 🎸 bootstrap ExpressionsService on server-side

* feat: 🎸 expose more registry related functions in contract

* feat: 🎸 add environment: server to server-side expressions

* docs: ✏️ add documentation

* test: 💍 add missing Jest mocks

* fix: 🐛 correct TypeScript type

* docs: ✏️ improve documentation

* fix: 🐛 make FunctionHelpDict type contain only Canvas functions

* fix: 🐛 fix merge conflict

* test: 💍 fix expression mocks

* fix: fix TypeScript disabled help type

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-12 09:26:48 +01:00
Matthew Kime
d3abab0399
[7.x] Advanced Settings management app to kibana platform plugin (#56931) (#57341)
* Advanced Settings management app to kibana platform plugin (#56931)
2020-02-11 14:15:44 -06:00
Jean-Louis Leysens
c7aaa76104
[Watcher] Fix flaky functional test (#56393) (#57292)
* Give a bit more time for machines on CI

* Remove unnecessary sleep

* Dummy error logs [do not commit to master]

* Revert "Dummy error logs [do not commit to master]"

Also only update data (and call serializer) on a success response, not on an error response.

* Remove common.sleep and rewrite the comment explaining the use of retry.waitFor

* Fix typo

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-11 17:25:52 +01:00
Josh Dover
3610c8ffb9
[7.x] Ensure http interceptors are shares across lifecycle met… (#57264) 2020-02-11 07:46:57 -07:00
Liza Katz
47cb2d15fd
Explicit namespaces for esQuery and esKuery (#57172) (#57297)
* Explicit namespaces for esQuery and esQuery

* Remove unnecessary file from siem

* remove jsonvalue definition from siem

* server
  FieldFormatsRegistry,

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-11 13:46:31 +02:00
Maryia Lapata
5d3922fb9e
Remove confirm modal directive and factory (#56846) (#57291)
* Graph: replace confirmModal

* Remove confirmModal from visualize

* Remove confirmModal from dashboard

* Remove confirm_modal

* Remove confirmModalPromises

* Replace confirmModal

* FIx TS

* Add data-test-subj for graph confirm modal

* Update public.api.md

* Remove unused translation

* Update mock test
2020-02-11 12:59:56 +03:00
Maryia Lapata
bedf67fed8
Move dashboardConfig to kibana_legacy platform (#57081) (#57178)
* Create dashboard_config.ts

* Replace dashboardConfig in reporting

* Remove dashboardConfigProvider

* Fix TS

* Add mock

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-11 11:22:19 +03:00
Yuliia Naumenko
bd80218a8c
[7.x] Exposed common EuiExpressions to separate components be able to reuse for building new for Alert Types (#56466) (#57224)
* Exposed common EuiExpressions to separate components be able to reuse for building new for Alert Types  (#56466)

* Exposed common Expression to separate components be able to reuse

* Expressions with unit tests

* Fixed type check

* Fixed merge issues

* Fixed due to review

* Cleaned up some not used params and added position popover definition

* fixed type check

* Unbinded alerting reusable components from application context

* Added consumer and alertTypeId with enable change alert type button props

* Fixed case for default alert type id was set

* Fixed chart visualization issues

* Exposed registry in triggers and actions ui

* Fixed alert_list to enable charts

* Fixed due to comments and simplified props

* Fixed type check issue

* type check error
2020-02-10 15:53:00 -08:00
Nathan Reese
dba8c3d8fc
[Maps] set filter.meta.key to geoFieldName so query passes filterMatchesIndex when ignoreFilterIfFieldNotInIndex is true (#56692) (#57249)
* [Maps] set filter.meta.key to geoFieldName so query passes filterMatchesIndex

* remove unused variable

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 16:10:58 -07:00
Tiago Costa
cb550c9905
fix(NA): MaxListenersExceededWarning on getLoggerStream (#57133) (#57256)
* fix(NA): possible EventEmitter memory leak detected with a passthrough for getLoggerStream

* chore(na): remove passthrough

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 22:39:49 +00:00
Tyler Smalley
b548737c8a
Sort server-side in SavedObject export (#55128) (#57243)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 14:15:19 -08:00
Liza Katz
d2c482a819
[7.x] Delete autocomplete namespace (#57187) (#57213)
* Delete autocomplete namespace (#57187)

* Delete autocomplete namespace (as its used mostly for expporting types)

* Make prefix consistent

* Fix TS error on master
2020-02-10 22:08:04 +02:00
Liza Katz
9580337910 fix ts error on master (#57236)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 13:48:18 -06:00
Joe Reuter
8db39a1a3b
fix default app id key (#56997) (#57182) 2020-02-10 17:28:16 +01:00
Joe Reuter
0ecb6df51c
Check for legacy imports in vis types and fix problems (#56763) (#57188) 2020-02-10 17:28:05 +01:00
Liza Katz
7a9c5aa114
Field Formats namespace (#56975) (#57204)
* Field Formats namespace

* Export IFieldFormatsRegistry and FieldFormatsRegistry separately.

* remove field_formats export from data plugin and adjust lens test

* Updated doc return types

* Cleanup fieldFormat namespace and define it index.ts

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-10 18:16:12 +02:00
Larry Gregory
7fb1b71e23
[7.x] Spaces -> Client to NP (#54298) (#57200)
* moves

* updates to support spaces client in NP

* fixing MLs import

* update karma mock

* remove unnecessary setup license

* fix merge from master

* moving management app registration to NP

* move space selector app to NP

* remove unused xpackMain legacy dependency

* hide spaces management if not authorized

* additional testing

* additional cleanup

* additional testing

* use NP advancedSettings plugin

* Apply suggestions from code review

Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>

* start addressing PR feedback

* reverting logic to determine serverBasePath

* removing spaces mock

* mantain BWC with old management links

* add types to management mock

* address remaining PR feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2020-02-10 10:40:36 -05:00
Daniil Suleiman
ad68f44944 Remove the feature catalogue registry (#56755) (#57176)
* Remove FeatureCatalogueRegistryProvider from x-pack:

	*infra
	*maps
	*reporting

* Remove FeatureCatalogueRegistryProvider from x-pack:

	*canvas
	*grokdebugger
	*logstash

* Remove feature_catalogue registry

* Fix featureCatalogue register

* Fix getting all of the registered features

* Remove unused timelion feature register

* Move feature registering into np

* Rename translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2020-02-10 13:45:08 +03:00
Liza Katz
e637b1c632
top nav ts arg support (#56984) (#57170)
timefilter initial state

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-09 17:26:35 +02:00
Mikhail Shustov
5557d71251
Explicitly test custom appRoutes (#55405) (#57165)
* Explicitly test custom appRoutes

* Extract common navigation function

Fixing flaky CI tests for custom appRoutes
2020-02-08 10:13:00 +01:00
Mikhail Shustov
5dd3bbaddb Revert "Manual backport rendering tests (#57105)" (#57164)
This reverts commit fa42edc41c.
2020-02-08 08:26:49 +01:00
Mikhail Shustov
fa42edc41c
Manual backport rendering tests (#57105)
* Explicitly test custom appRoutes (#55405)

* Explicitly test custom appRoutes

* Extract common navigation function

Fixing flaky CI tests for custom appRoutes

* test only flaky tests. DO NOT MERGE IN 7.x
2020-02-08 08:26:00 +01:00
Tiago Costa
c7af4dfe96
chore(NA): removes use of parallel option in the terser minimizer (#57077) (#57144)
* chore(NA): removes use of parallel option in the terser minimizer

* docs(NA): update note

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-08 03:45:02 +00:00
Stacey Gammon
945485ef1b
Remove I prefix in UiActions types (#56898) (#57003) 2020-02-07 10:28:11 -05:00
Wylie Conlon
f02608cb27
Use i18n titles for field formatters, human names for numeral locales (#56348) (#57058)
* Use i18n titles for field formatters, human names for numeral locales

* Rename i18n IDs, these are not currently translated
2020-02-07 09:54:56 -05:00
Matthias Wilhelm
a21218da5b
Kibana app migration: Move static code dependencies into kibana_legacy plugin, part 1 (#56408) (#57095)
* Migrate PromiseServiceCreator

* Migrate migrateLegacyQuery

* Migrate watch_multi decorator

* Migrate call_after_bindings_workaround

* Migrate configureAppAngularModule, ensureDefaultIndexPattern and deps

* Migrate kbn_accessible_clicks

* Migrate PrivateProvider

* Migrate registerListenEventListener

* Adapt i18n files
2020-02-07 15:22:55 +01:00
Liza Katz
3e21bfde54
TS of esKuery\node_types (#56857) (#57088)
* TS of node types and collector

* Code review
2020-02-07 15:51:47 +02:00
Anton Dosov
cd1c04b787
fix auto closing new vis modal when navigating to lens or when navigating away with browser history (#56998) (#57092)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-07 13:02:16 +01:00