Commit graph

21549 commits

Author SHA1 Message Date
Spencer
425c8d515b
[reporting] implement k7Breadcrumbs (#26724)
## Summary

This PR updates the reporting routes to provide k7Breadcrumbs used by the new header navigation. See #25884 for general information about the integration with the router and #25689 for the breadcrumb taxonomy

![image](https://user-images.githubusercontent.com/1329312/49533708-9127ce80-f874-11e8-8f60-ad76f4caafcd.png)

### Checklist

- [x] 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)
2018-12-05 21:17:51 -08:00
Spencer
502f1b19c7
Wrap leadfoot elements (#26406)
* [ftr] wrap all elements so we can swap out leadfoot without disturbing tests

* save

* [visualize/pie_chart] fix chart legend locator

* [services/leadfoot_element_wrapper] add getTagName function

* [services/browser] adjust moveMouseTo function

* [leadfoot/element] remove old args, document new ones
2018-12-05 21:07:30 -08:00
Spencer
d3f0db3df2 [reporting] disable surprisingly failing test (#26738)
* [reporting] disable surprisingly failing test

* fix expected completion count

* quit chasing, just exclude these configs
2018-12-05 18:28:52 -08:00
Nathan Reese
d732bc06e3
home - k7 breadcrumbs (#26605)
* home - k7 breadcrumbs

* update i18n paths to avoid conflicts

* lower case data, put EuiSpace back and remove EuiText
2018-12-05 19:06:14 -07:00
Sarah Hersh
5c1615dd96
[DOCS] Kibana APIs not accessible via Console (#26221) 2018-12-05 16:20:58 -05:00
Sarah Hersh
8b304217b5
[DOCS] Adds Kibana docs for Canvas functions (#26467)
* [DOCS] Migrates Canvas function docs to Kibana docs

* [DOCS] Add docs for TinyMath Canvas functions
2018-12-05 16:02:44 -05:00
Felix Stürmer
d8f487d331
[Infra UI] Replace redux source slice with constate container (#26121) 2018-12-05 18:42:11 +01:00
Josh Dover
aaa809249e Fix watcher routes broken by Hapi upgrade (#26713) 2018-12-05 09:38:47 -08:00
Felix Stürmer
8378c44422
[Infra UI] pass flag in request to force BWC hit count (#26517) 2018-12-05 18:37:49 +01:00
Aleh Zasypkin
aedbd0d3e4
Re-enable "src/cli/serve/integration_tests/reload_logging_config.test.js" tests. (#26709) 2018-12-05 18:05:35 +01:00
Stacey Gammon
108d77d6cd
Typescript visualize_embeddable file (#26660)
* Typescript visualize_embeddable file

* Remove left over comment
2018-12-05 11:10:29 -05:00
Tiago Costa
d5b2c8eaf2
Create vendor dll for the client modules (#22618)
* feat(NA): first dll bundler code.

* chore(NA): upgrade to webpack 4.

* chore(NA): updated package.json

* chore(NA): removed old code.

* chore(NA): add parallel option.

* chore(NA): removed console log and old var about  node modules.

* chore(NA): turn off unsafe cache.

* chore(NA): update lock files.

* chore(NA): new config for dll generation.

* chore(NA): update stats emit.

* chore(NA): update dependencies.

* chore(NA): right cache loaders.

* chore(NA): remove ui_bundles alias.

* feat(20749): init implementation on bridge plugin for dll bundler.

* feat(20749): init implementation for dll compiler.

* feat(20749): dll bundler init from other process and webpack wrapper..

* feat(20749): optimizer changes to integrate with  dll bundler.

* chore(20749): split into different processes.

* refact(20749): change to single running process.

* refact(NA): improvements on dll bundler plugin.

* refact(NA): removing including loop on plugins.

* refact(20749): only run dllReference once.

* chore(20749): todo on result.request path building.

* chore(NA): lock files updated.

* chore(NA): avoiding dll paths being removed.

* chore(NA): tests on sync generation.

* chore(NA): changes on entry paths compiler.

* chore(NA): different hooks tests.

* chore(20749): first working version, single process, for dynamic building dll.

* feat(20749): last gross features for the dynamicdllplugin.

* refact(20749): string interpolation when creating the path to delete in every optimizer cycle. feat(20749): creating the DynamicDllPlugin foundations.

* chore(NA): updated base optimizer run function args.

* chore(20749): first working solution with vendor dll both for prod and dev.

* chore(20749): useful todos on client dlls.

* feat(NA): auto built blacklist for server node_modules.

* refact(NA): removed unused code.

* chore(NA): update all webpack and loaders stuff to last versions.

* refact(NA): first refacts on clean taks related with dll. feat(NA): added clean empty folders task.

* refact(NA): removed support for console logs during the build.

* refact(NA): removed extra space.

* refact(NA): removed extra space.

* refact(NA): getDllModules function.

* chore(NA): removed unsafeCache option.

* feat(NA): removed unsafeCache option.

* refact(NA): apply general inheritance principles to the optimizer: hooks, and init. refact(NA): merge dynamic dll plugin into the common config. refact(NA): restore old template structure - vendors.dll style is always emitted.

* fix(NA): fs_optimizer run function by not returning inside async func.

* fix(NA): change template anchor name from vendor to vendors.

* docs(NA): added info about files were keeping when cleaning the bundles.

* fix(NA): filtering elible dll modules to delete.

* refact(NA): removed old dll bundler in favor on new dynamic dll plugin.

* refact(NA): initial split for clean modules on dll task.

* refact(NA): update new dll config model. refact(NA): update config on dynamicdllplugin.

* refact(NA): major work refactor for dynamic dll plugin.

* refact(NA): extract clean node modules on dll task to its own folder.

* refact(NA): organize imports.

* docs(NA): add docs to registerCompilerHooks function for the optimizer.

* refact(NA): finished refactor for dynamic dll plugin with correct error handling for runWebpack function.

* refact(NA): basic structure for clean client modules on dll task.

* fix(NA): resolve path for dll manifest during cclean build tasks.

* refact(NA): split webpack dll related functions to their own file for clean client modules on dll task.

* refact(NA): added error handling for the clean client modules on dll task - webpack dll related functions.

* docs(NA): added license header.

* refact(NA): complete split out the functions from the clean modules on dll task to the code_parser file.

* refact(NA): main task entries compose.

* docs(NA): extend docs for the getDependenciesFromFile function.

* refact(NA): final structure split for clean client node modules dll task.

* fix(NA): added missing param to calculate top level dependencies.

* docs(NA): completed todo description about dll location.

* fix(NA): add production option to webpack config on kbn-pm.

* docs(NA): extended documentation about style extraction.

* refact(NA): removed extra comments.

* feat(NA): env variable to force dll creation.

* feat(NA): include option to define folders to keep on delete empty folders task.

* refact(NA): remove unused method from dll compiler.

* feat(NA): move dlls outside bundles folder and support request for /dlls from a browser perspective.

* chore(NA): gitignore updated to include new dlls folder.

* chore(NA): eslintignore updated.

* chore(NA): removed strange file from repo.

* test(NA): fix failing tests for bundles_route.

* fix(NA): change paths array to path string in a server route config.

* fix(NA): remove infinite loop calls on register hooks functions.

* fix(NA): readFile should only override the file in case it not exists.

* refact(NA): removed dll compiler finish log on success with stats.

* fix(NA): dll compiler alias.

* fix(NA): dynamic dll plugin flow on needs compile.

* fix(NA): raw alias config.

* Revert "fix(NA): raw alias config."

This reverts commit ebb245a786.

* feat(NA): raw alias for moment on dll config model.

* fix(NA): removed uiBundles from base_optimizer call on dynamicdllplugin.

* chore(NA): decrease moment versions.

* chore(NA): temporary changes on dll compiler.

* fix(NA): majority of problems between dll approach, webpackshims and browser tests.

* fix(NA): webpackShims integration with client vendors dll. fix(NA): enable esm modules mutability for development. fix(NA): only clean dll contents from build when they belong to node_modules.

* fix(NA): fix for endless dll compilation loop.

* fix(NA): removed esm plugin and skipped test using wrong stub strategy.

* docs(NA): added some comments for the skipped test.

* feat(NA): considering requires inside webpackShims valid entry paths to add to the dll entry file.

* fix(NA): small fix for the max compilation logic.

* docs(NA): add small explanatory note.

* fix(NA): building requires results with relative requires found onn webpackShims.

* docs(NA): add small note for error handling on dll compiler.

* fix(NA): move precinct to prod dependencies.

* test(NA): testing running functional tests on production.

* fix(NA): restore tests run config for development flag. feat(NA): force dll creation with uiBundles is Dev flag.

* chore(NA): update dependencies.

* feat(NA): test update dll to completely match base optimizer one.

* fix(NA): removed ts.

* refact(NA): removed unused consts.

* fix(NA): set back transpile sacss task in place.

* fix(NA): fix resolve remoing ts and tsx.

* fix(NA): set back transpile sacss task in place.

* fix(NA): removing isDevmode from mustCompileDll.

* fix(NA): add search for import statements into the dependencies visitor.

* fix(NA): add dll suffix to vendors resource on ui bootstrap template.

* fix(NA): some configs for unrelated dll work projects.

* chore(NA): upgrade canvas plugins webpack build to webpack4.

* chore(NA): add shim for moment-duration-format.

* chore(NA): stup moment-duration-format into the moment webpackShim.

* chore(NA): setup moment-duration-format into the moment-timezone webpackShim.

* fix(NA): moment and moment-timezone webpackShims

* chore(NA): added moment and moment-timezone webpackShims to x-pack. fix(NA): revert changes on webpackShims for oss kibana.

* fix(NA): xpack webpackshims for moment.

* fix(NA): remove xpack webpakcshims for moment.

* fix(NA): webpakcshims for moment.

* fix(NA): remove every changes from webpackShims and xpack webpackShims.

* fix(NA): fix visitors to gather server dependencies resulting from export * from and export x, 'x' from.

* chore(NA): update some webpack related dependencies.

* fix(NA): in the dll the plugins need to have their own dependencies. It is the same for the ones into the tests relying on test against distributable.

* feat(NA): including test/plugin_functional plugins into the kbn-pm bootstrap tasks.

* fix(NA): wrong built yarn lock files.

* chore(NA): updated webpack related dependencies.

* feat(NA): add missing color for dynamic_dll_plugin logging tag.

* chore(NA): removed forgotten console.log.

* chore(NA): removed forgotten dead code.

* chore(NA): removed missing old comment.

* docs(NA): added missing notice for 2 tools we have relied on.

* refact(NA): added is to a boolean variable to keep the consistency inside the code parser strategies.

* fix(NA): update notice cli to exclude search inside dlls bundles. chore(NA): update notice file.

* feat(NA): use lodash matches in the code parser visitors logic.

* docs(NA): updated notice file related with the code parser visitors logic..

* docs(NA): added explanation for the process that decides if we should build a new dll or not.

* test(NA): added missing tests for some usefull parts of the code.

* refact(NA): split registerCompileHook function into small ones.

* chore(NA): uncomment scripts from tests.

* feat(NA): isolate code-parser in a kbn package

* fix(NA): missing relative dot into the cwd function.

* chore(NA): update all inter deps to match.

* fix(NA): rebuild the yarn locks and the package jsons based on master ones.

* fix(NA): move babel-code-parser to the prod deps.

* chore(NA): include build path instead of the base root path.

* refact(NA): integrate plugin_functional test plugins with workspaces.

* fix(NA): include missing license for plugin functional test plugins.

* fix(NA): always write posix paths into the dll entry file in order to make the dlls compilation working on windows too. chore(NA): improve error handling into dll compiler.

* fix(NA): revert wrong moved line from canvas.

* fix(NA): match ts-loader version between kibana and x-pack.

* fix(NA): sync dll compiler with base_optimizer.

* fix(NA): exclude kbn-interpreter from the dll.

* refact(NA): remove exclusion of kbn-interpretor from base_optimizer.

* chore(NA): add dlls folder to the yarn kbn clean script.

* fix(NA): missing utf8 input format encoding when reading a file to create the hash into the watch optimizer cahce.

* refact(NA): re-engineering to the dynamic_dll_plugin logs and lifecycle.

* fix(NA): update clean node modules task to search under legacy/core_plugins.

* fix(NA): fix build on windows with globby on cleaning dlls for the watch optimizer cache.

* docs(NA): update documentation for the clean client node modules build task.

* docs(NA): added extra comment to clarify the purpose for the built entrypoints.

* chore(NA): update clean client node_modules code to use posix path.

* feat(NA): add support for discovering server entries over the legacy plugins and the new plugins.
2018-12-05 15:45:19 +00:00
Chris Koehnke
da34c80d75
Docs: Add note about oss repositories for deb/rpm (#26475)
* Docs: Add note about oss repositories for deb/rpm

Add documentation on the `oss-*` yum and apt repositories.

* Specify kibana-oss package name
2018-12-05 10:03:54 -05:00
Tyler Smalley
5de54bbb34 Allows SIGHUP to recreate log file handler (#26675)
Co-authored-by: spalger <email@spalger.com>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-12-05 15:58:26 +01:00
Aleh Zasypkin
6885fc1681
Do not skip config properties with values equal to empty array\object. (#26690) 2018-12-05 13:54:49 +01:00
Leanid Shutau
0aba49216c
[I18n] Add README for i18n_check tool (#26616) 2018-12-05 15:34:27 +03:00
tibmt
9c022d8b6a [i18n] Translate Security -> Account and Nav control components (#26011)
* translate login/logout visualization component

* Update login/logout component - change injecti18n name to injectI18n

* Update login/logout component - make needed changes

* update one snapshot

* update login translation

* update one snapshot

* Fix

* Fix unit test

* Localize logout tooltip
2018-12-05 13:15:47 +03:00
Ron Cohen
32146d1b4a
[APM] update index pattern for elastic/apm-server#1618 (#26643) 2018-12-05 10:24:02 +01:00
Nox911
84adc1aae7
[i18n] Translate Query_bar (#26264)
* Translate ui -> query_bar

* Fix id names

* Update snapshots

* Fix tests

* Add intl to props interface

* Fix test

* Fix tests

* Fix tests

* Fix test

* Fix tests
2018-12-05 11:02:58 +03:00
Leanid Shutau
c50e6418f0
[I18n] Remove JSON5 dependency from kbn-i18n (#26634) 2018-12-05 10:48:19 +03:00
Leanid Shutau
0b6e8af1c5
[I18n] Update I18n readme (#26631) 2018-12-05 10:36:05 +03:00
Peter Pisljar
83325bf560
back to canvas way of loading plugins (#26463) 2018-12-05 06:36:51 +01:00
Spencer
a64afc0559
[@elastic/datemath] add .npmignore file (#26664)
* [@elastic/datemath] add .npmignore file

* bump @elastic/datemath versions
2018-12-04 15:28:32 -08:00
Spencer
c1ae826fd8
[logstash/management] implement k7Breadcrumbs (#26666) 2018-12-04 15:20:57 -08:00
Joe Fleming
cc8fd178ec
Feat: K7 breadcrumbs in Canvas (#26669)
## Summary

Closes https://github.com/elastic/kibana/issues/25896

Adds K7 breadcrumbs to Canvas, particularly for the "home" and "workpad" sections of the app. It also adds a simple redux middle to keep the workpad name in the breadcrumb in sync with the input in the interface.

![dec-04-2018 15-37-28](https://user-images.githubusercontent.com/404731/49478009-d9df7900-f7db-11e8-95a9-d725f06a60f3.gif)
2018-12-04 16:09:37 -07:00
Spencer
1f336330ab
[spaces/management] implement k7Breadcrumbs (#26604)
* [spaces/management] implement k7Breadcrumbs

* [spaces/management] avoid relying directly on breadcrumbs in ManageSpacePage
2018-12-04 15:06:16 -08:00
Oliver Gupte
754aa25713
[APM] Stacktrace heading styles (#26456)
* [APM] fixes #23560 by separating frame headers from code preview and only displaying code preview when stackframe has source code context

* [APM] fixes #26239 by checking for valid line number before displaying it

* [APM] Converted CodePreview and Stacktace to typescript and consolidated Stackframe types

* [APM] pull out components and util functions into own files and added tests
2018-12-04 14:42:16 -08:00
Catherine Liu
53b8b9a644
Fixed class names in page manager (#26573) 2018-12-04 14:14:09 -07:00
Catherine Liu
17bca7b04f
Adds clear function (#26397)
* Added clear function that returns null context

* Added return type to clear function
2018-12-04 13:46:26 -07:00
Spencer
0bcb85f0b0
[errors][dev tools] implement k7Breadcrumbs (#26598)
* [devTools] set k7Breadcrumbs

* [errors] add k7Breadcrumbs to error routes

* revert changes to error templates for style

* fix br tags
2018-12-04 12:37:48 -08:00
Spencer
85a1161e62
skip flaky test (#26649) 2018-12-04 12:36:39 -08:00
Stacey Gammon
8a2f8bc7d6
Plugin test readme’s (#26632)
* Plugin test readme’s

* clarify

* Update scripts/README.md

Co-Authored-By: Stacey-Gammon <gammon@elastic.co>
2018-12-04 15:23:23 -05:00
CJ Cenizal
ef77982980
Require histogram interval in Rollup Job wizard to be a whole number. (#26596) 2018-12-04 12:20:49 -08:00
Spencer
757f83690f
[graph] implement k7Breadcrumbs (#26591)
* [graph] implement k7Breadcrumbs

* [graph] implement real k7Breadcrumbs

* hide workspace title in local nav in k7design
2018-12-04 12:10:12 -08:00
Joel Griffith
53f7ed88af
Adding in browser info to the report-info drawer (#26307)
* Adding in browser info to the report-info drawer

* Conditionalizes the browser-type panel prints + constantizes jobTypes

* Fixing config feedback lost in force push
2018-12-04 12:08:24 -08:00
Aleh Zasypkin
74e21c1983
Introduce support for the server-side new platform plugins. (#25473) 2018-12-04 20:57:14 +01:00
Catherine Liu
831dfd4db0
Fixes minor visual bug when opening workpad loader (#26647)
* Added asset picker to image upload arg form

* Added button to create image element in asset manager

* Added hover style

* Extracted image upload forms into separate components

* Fixed new image element with no assets bug

* Fixed import

* Removed unused styles

* Fixed import order

* Scrolls to selected asset

* Fixed asset selector

* Extracts workpad loader from list of trays
2018-12-04 12:55:34 -07:00
Spencer
f524e9efce
[management/security] implement k7Breadcrumbs (#26603)
## Summary

This PR updates the security management routes to provide k7Breadcrumbs used by the new header navigation. See #25884 for general information about the integration with the router and #25689 for the breadcrumb taxonomy

![2018-12-03 19 05 40](https://user-images.githubusercontent.com/1329312/49416328-764b4200-f72e-11e8-9db7-aeb1294d131b.gif)

### Checklist

- [x] 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)
2018-12-04 11:16:09 -08:00
Spencer
3e1b98ea08
[server/config] add dist flag to config context (#26545) 2018-12-04 10:19:12 -08:00
Spencer
b4721abc82
[discover] implement k7Breadcrumbs (#26587)
* [discover] implement k7Breadcrumbs

* [docViewer] Add breadcrumb for doc viewer

* [docViewer] nest doc viewer under discover

* [discover] include index/id of doc in context/doc viewer
2018-12-04 10:18:42 -08:00
Josh Dover
a7e68755d1
Remove duplicate dep, x-pack/yarn.lock (#26642) 2018-12-04 12:04:39 -06:00
Catherine Liu
cf0da36f3a
Feat: Reuse Canvas Assets (#25764)
* Added asset picker to image upload arg form

* Added button to create image element in asset manager

* Added hover style

* Extracted image upload forms into separate components

* Fixed new image element with no assets bug

* Fixed import

* Removed unused styles

* Fixed import order

* Scrolls to selected asset

* Fixed asset selector
2018-12-04 10:59:39 -07:00
Lukas Olson
21e7ca6b85
Use proper Kibana index for KQL telemetry (#26479)
* Use proper Kibana index for KQL telemetry

* fix test
2018-12-04 10:52:29 -07:00
Lisa Cawley
98fbca6230
[DOCS] Fixes link title (#26599) 2018-12-04 08:49:37 -08:00
Tim Sullivan
97928b38be
[Reporting] clarify what phantom deprecation means (#26434) 2018-12-04 09:43:59 -07:00
Nox911
f08313297f
[i18n] Translate courier (#26514)
* Translate courier

* Fix issues

* Fix issues
2018-12-04 19:21:22 +03:00
Maryia Lapata
99514d6aba
Use single qoutes (#26627) 2018-12-04 18:55:59 +03:00
Nox911
64412efa2c
[i18n] Translate Saved_Objects (#26179)
* Translate ui -> savedObjects

* Fix snapshots

* Fix minor issue
2018-12-04 17:39:09 +03:00
Peter Pisljar
6f26171c98
fixing brush in discover (#26609) 2018-12-04 12:21:35 +01:00
tibmt
3a02de7250 translate login/logout visualization component part 2 (#26082)
* translate login/logout visualization component part 2

* Update login translation part 2 - change FormattedMessage to intl.formatMessage

* change some ids

* update Infra Ops Part 2 - directly wrap some classes by injectI18n()

* update one snapshot

* update one snapshot

* update tests

* update collapsible_panel.test.tsx

* update one snapshot

* update one test

* change some code

* update one snapshot

* update roles.html

* Fix unit tests

* Fix message
2018-12-04 13:54:38 +03:00