Commit graph

752 commits

Author SHA1 Message Date
Fuyao Zhao
4357686db5 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-10 22:23:54 -07:00
Tyler Smalley
b9f81edffe
No longer package X-Pack as a node module (#32722)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-04-10 13:07:23 -07:00
Fuyao Zhao
ef0e01e8a9 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-09 18:08:00 -07:00
dave.snider@gmail.com
ce6c33a3e4
Upgrade eui@9.9.0 (#34824) 2019-04-09 15:44:02 -07:00
Fuyao Zhao
f808112424 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-04 09:08:35 -07:00
Yulong
76be6c41c7
[Code] enable ssh protocol, only read ssh key pairs from data folder. (#34412) 2019-04-04 09:49:18 +08:00
Greg Thompson
865e6739fd
Upgrade EUI to 9.8.0 (#34486)
* upgrade eui to 9.8.0

* test selector updates
2019-04-03 17:25:10 -05:00
Fuyao Zhao
cb08eb9bf6 [Code]: minor clean up of tslint usage, up ts server version 2019-04-02 12:08:21 -07:00
Clint Andrew Hall
365fd4bfbe
[canvas] Color fixes + Storybook 5 (#34075)
## Summary

(Fixes #33734 #33757 #33735)

This PR resolves issues with the `mini` color selector, the places the color picker was used, and removes complexity around color selection.  It allows for CSS-based color strings while still ruling out duplicates in the color palette, and fixes bugs found recently.

This PR also includes + modifies #33896 and updates Storybook to v5.

![Mar-28-2019 09-18-45](https://user-images.githubusercontent.com/297604/55168267-873a1c00-5140-11e9-93b9-f5ca86e70098.gif)
2019-04-02 11:21:51 -05:00
Mengwei Ding
7de9780ba1
[Code] upgrade git-url-parse version and enable ssh git clone protocol (#34336)
* [Code] upgrade git-url-parse version and enable ssh git clone protocol

* [Code] fix unit test
2019-04-02 22:45:09 +08:00
Fuyao Zhao
817f43e6ec
[Code]: clean uneccessary ts-ignores (#34203) 2019-03-30 10:19:19 -07:00
Fuyao Zhao
ee77c83d34 [Code]: add missing dependencies that are not in x-pack 2019-03-28 20:12:18 -07:00
Fuyao Zhao
dc8dfbf6bd Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-28 20:03:17 -07:00
dave.snider@gmail.com
d2c077ae59
eui 9.7.1 (#34098) 2019-03-28 12:27:35 -07:00
Søren Louv-Jansen
30c63f57fd
[APM] useFetcher: Replace react-redux-request with hooks and Context API (#33392) 2019-03-28 14:56:56 +01:00
Fuyao Zhao
4b2c60fb82
[Code]: raise default security level (#33956) 2019-03-28 00:08:41 -07:00
dave.snider@gmail.com
786423a85a
EUI@9.7.0 (#34011) 2019-03-27 16:21:40 -07:00
Greg Thompson
3acebd9d57 Upgrade EUI to 9.6.0 (#33873)
* eui to 9.6.0

* update snapshots related to onClick
2019-03-27 13:49:52 -07:00
Yulong
6486bdfcd2 [Code] handle nodegit deprecation warnings (#33932) 2019-03-27 08:52:02 -07:00
Fuyao Zhao
725189df56 [Code]: Upgrade dependencies 2019-03-26 23:44:48 -07:00
Fuyao Zhao
aa8ab4544c Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-26 23:30:36 -07:00
Yulong
3bb5e88e4b [Code] upgrade nodegit, set max returned commits results (#33913) 2019-03-26 23:17:06 -07:00
Tiago Costa
20bdf7d4a9
Migration to Babel7 and @babel/preset-typescript (#33093)
* chore(NA): first changes on every package.json order to support new babel 7. chore(NA): build for kbn-pm with babel 7.

* chore(NA): patch babel register to load typescrit

* chore(NA): first working version with babel 7 replacing typescript compiler.

* fix(NA): common preset declaration in order to make it work with babel-loader.

* chore(na): organizing babel preset env package json.

* chore(NA): mocha tests enabled.

* fix(NA): typo on importing

* test(NA): majority of x-pack tests ported to use babel-jest

* fix(NA): report info button test with babel-jest.

* fix(NA): polling service tests.

* test(na): fix server plugins plugin tests.

* test(NA): batch of test fixs for jest tests under babel-jest hoisting.

* chore(NA): add babel plugin to hoist mock prefixed vars on jest tests.

* chore(NA): update yarn.lock file.

* chore(NA): tests passing.

* chore(NA): remove wrong dep

* chore(NA): fix tsconfig

* chore(NA): skip babel for ts-jest.

* chore(NA): selectively apply the plugin to strip off namespace from ts files.

* chore(NA): remove not needed changes from ts tests

* chore(NA): removed ts-jest dependency. chore(NA): migrate ts tests on x-pack to use babel-jest with the new pattern.

* chore(NA): migrate kibana default distribution typescript tests to run with babel-jest and the new test mock pattern.

* chore(NA): merge and solve conflicts with master.

* chore(NA): fix problems reported by eslint

* chore(NA): fix license ovveride for babel-plugin-mock-imports

* chore(NA): update jest integration tests for kbn pm

* chore(NA): update babel jest integration tests for kbn pm.

* test(NA): update jest integration snapshot for kbn pm.

* chore(NA): apply changes according to the pull request reviews.

* chore(NA): apply changes according to the pull request reviews.

* refact(NA): migrate jest tests to the new pattern.

* fix(NA): babel 7 polyfill in the tests bundle.

* chore(NA): restore needed step in order to compile x-pack with typescript.

* chore(NA): change build to compile typescript with babel for the oss code. chore(NA): change transpile typescript task to only transpile types for x-pack. refact(NA): common preset for babel 7

* Revert "chore(NA): change build to compile typescript with babel for the oss code. chore(NA): change transpile typescript task to only transpile types for x-pack. refact(NA): common preset for babel 7"

This reverts commit 2707d538f5.

* fix(NA): import paths for tabConfigConst

* chore(NA): fix transpiling error on browser tests

* chore(NA): simplify kbn babel preset package.

* chore(NA): migrate build to use babel transpiler for typescript excluding xpack.

* fix(NA): introduced error on test quick task.

* fix(NA): fix preset for client side code on build.

* fix(NA): build with babel

* fix(NA): negated patterns in the end.

* fix(NA): kbn_tp_sample_panel_action creation.

* fix(NA): babel typescript transform plugin workaround when exporting interface name.

* refact(NA): remove not needed type cast to any on jest test.

* docs(NA): add developement documentation about jest mocks test pattern.

* chore(NA): missing unmerged path.

* chore(NA): fix jest tests for template.

* [CCR] Client integration tests (table lists) (#33525)

* Force user to re-authenticate if token refresh fails with `400` status code. (#33774)

* Improve performance of the Logstash Pipeline Viewer (#33793)

Resolves #27513.

_This PR is a combination of #31293 (the code changes) + #33570 (test updates). These two PRs were individually reviewed and merged into a feature branch. This combo PR here simply sets up the merge from the feature branch to `master`._

Summary of changes, taken from #31293:

## Before this PR
The Logstash Pipeline Viewer UI would make a single Kibana API call to fetch all the information necessary to render the Logstash pipeline. This included information necessary to render the detail drawer that opens up when a user clicks on an individual vertex in the pipeline.

Naturally, this single API call fetched _a lot_ of data, not just from the Kibana server but also, in turn, from Elasticsearch as well. The "pro" of this approach was that the user would see instantaneous results if they clicked on a vertex in a pipeline and opened the detail drawer for that vertex. The "cons" were the amount of computation Elasticsearch had to perform and the amount of data being transferred over the wire between Elasticsearch and the Kibana server as well as between the Kibana server and the browser.

## With this PR
This PR makes the Kibana API call to fetch data necessary for **initially** rendering the pipeline — that is, with the detail drawer closed — much lighter. When the user clicks on a vertex in a pipeline, a second API call is then made to fetch data necessary for the detail drawer.

## Gains, by the numbers

Based on a simple, 1-input, 1-filter, and 1-output pipeline.

* Before this PR, the Elasticsearch `logstash_stats` API responses (multiple calls were made using the `composite` aggregation over the `date_histogram` aggregation) generated a total of 1228 aggregation buckets (before any `filter_path`s were applied but across all `composite` "pages"). With this PR, the single `logstash_stats` API response (note that this is just for the initial rendering of the pipeline, with the detail drawer closed) generated 12 buckets (also before any `filter_path`s were applied). That's a **99.02% reduction** in number of buckets.

* Before this PR, the Elasticsearch `logstash_stats` API responses added up to 70319 bytes. With this PR, the single `logstash_stats` API response for the same pipeline is 746 bytes. That's a **98.93% reduction** in size.

* Before this PR, the Elasticsearch `logstash_state` API response was 7718 bytes. With this PR, the API response for the same pipeline is 2328 bytes. That's a **69.83% reduction** in size.

* Before this PR the Kibana API response was 51777 bytes. With this PR, the API response for the same pipeline is 2567 bytes (again, note that this is just for the initial rendering of the pipeline, with the detail drawer closed). That's a **95.04% reduction** in size.

* [Maps] split settings into layer and source panels (#33788)

* [Maps] split settings into layer and source panels

* fix SCSS import

* [env] exit if starting as root (#21563)

* [env] exit if starting as root

* fix windows

* s/--allow-root

* Typescript sample panel action (#33602)

* Typescript sample panel action

* Update EUI version to match main cabana version

* update yarn.lock

* add back typings include

* use correct relative path

* Home page "recent links" should communicate saved object type #21896 (#33694)

* adds object type for screen order
* adds object type for pointer hovering
* Update src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx

Co-Authored-By: rockfield <philipp.b@ya.ru>
2019-03-26 20:44:03 +00:00
Spencer
2e232c2e31
[@kbn/expect] "fork" expect.js into repo (#33761)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 09:56:48 -07:00
Fuyao Zhao
3c1028a749 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-22 11:57:15 -07:00
Jason Rhodes
721161f3d1
Upgrades EUI to 9.5 (#33672)
* Updates EUI to 9.5.0

* Remove duplicate type

* Updates snapshots and fixes a few type errors

* Updates x-pack snapshots
2019-03-22 10:28:37 -04:00
Fuyao Zhao
046c922d2c Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-21 12:08:17 -07:00
Chandler Prall
0e23ac1134
Upgrade EUI to 9.4.2 (#33511)
* Upgrade EUI to 9.4.1

* Upgrade EUI to 9.4.2
2019-03-19 12:31:04 -06:00
Fuyao Zhao
3a1a49f354 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-18 17:52:37 -07:00
Fuyao Zhao
3c43ea8854 [Code]: upgrade to typescript server 0.1.19 2019-03-18 17:52:02 -07:00
Joel Griffith
71b1123408
Chore/update headless shell to pptr@1.13.0 (#33272) 2019-03-18 10:30:27 -07:00
Fuyao Zhao
66b804788a
[Code]: add option to disable node depdendency downloading (#33340) 2019-03-15 12:29:47 -07:00
Fuyao Zhao
2bba2bbd38 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-14 11:29:22 -07:00
Ryan Keairns
e9885e200a Updates to K7 nav drawer and EUI to 9.4.0 (#32864)
* update for new eui nav drawer

* remove extraAction on flyout

* fix mobile menu toggle

* add i18n for recently reviewed nav link

* progress on updating tests

* replace EuiListGroup with EuiNavDrawerGroup

* Quick label fixes

- Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that
- Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label.

* Adding a truncation buffer

* fix navDrawerRef

* Update to EUI 9.3.0

Also comments out some logos that don’t exist that were throwing console errors

* remove unused import

* typo fix

* One DTS too many in test

* …all the small things…

* Upgrade plugin dependencies and fix nav drawer test

* update for new eui nav drawer

* remove extraAction on flyout

* fix mobile menu toggle

* add i18n for recently reviewed nav link

* progress on updating tests

* replace EuiListGroup with EuiNavDrawerGroup

* Quick label fixes

- Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that
- Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label.

* Adding a truncation buffer

* fix navDrawerRef

* Update to EUI 9.3.0

Also comments out some logos that don’t exist that were throwing console errors

* remove unused import

* typo fix

* One DTS too many in test

* …all the small things…

* Upgrade plugin dependencies and fix nav drawer test

* Add support for normal image paths

Updated to EUI 9.4.0

* update testing appMenu.clickLink selector

* leave appsMenu closed while reading and clicking links

* use saveVisualizationExpectSuccess to ensure modal is closed before continuing
2019-03-14 13:35:21 -04:00
Fuyao Zhao
87d3373f66 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-14 09:34:58 -07:00
Clint Andrew Hall
a807511d59
[canvas] Color Widgets - TS + Examples (#31391)
* [canvas] Color Widgets - TS + Examples

* Addressing feedback
2019-03-13 23:09:05 -05:00
Fuyao Zhao
4963be3d37 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-13 09:49:01 -07:00
Nathan Reese
b32b852afa
[Maps] populate WMS layers from getCapabilities response (#32342)
* [Maps] populate WMS layers from getCapabilities response

* move wms get capabilities into seperate class

* move xml2js from devDependency to dependency

* localize get capabilities text

* get jest test wired together

* implement getCapabilities in WmsClient

* display layers and styles in EuiComboBox

* extract root common path to avoid UI where options text is all the same prefix

* handle case where only single layer is returned in capabilities

* feedback on WmsClient

* clear layers and styles when serviceUrl changes
2019-03-13 10:15:49 -06:00
Fuyao Zhao
262e37c990 [Code]: Upgrade ts langserver version 2019-03-11 13:21:06 -07:00
Fuyao Zhao
7c3fe2c8eb Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-11 13:15:04 -07:00
dave.snider@gmail.com
3ada0259cc
Eui/9.2.1 + better dark mode (#32728)
Updates EUI and makes some dark mode adjustments.
2019-03-11 12:36:06 -07:00
Fuyao Zhao
57764f3dbd [Code]: remove uneccessary color convert after upgrade to EUI 9 2019-03-08 00:57:33 -08:00
Fuyao Zhao
6a1fc64c39 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-08 00:40:10 -08:00
Yulong
6e66615fa0
[Code] change nodegit to @elastic/nodegit (#32543) 2019-03-08 09:53:22 +08:00
Brandon Kobel
f96c39e492
Upgrading handlebars (#32699) 2019-03-07 14:10:43 -08:00
Jason Rhodes
ae754ac607
Upgrades EUI to 9.x (#32009)
* Fixed a simple argument bug and removed infra date picker EUI types

* Fixes for EUI date picker types

* eui_8.0.0

* fix type errors in query_bar

* Small changes for EUI types

* Updates EUI to 9.0.0 and removes @types/react-datepicker as it now ships with EUI

* Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts

* ts-ignore applied to ongoing type error with styled components and EUI

* Changes EuiProgress props to avoid TS errors

* Updates EUI 9.0 snapshots

* Updates kibana root snapshots for EUI 9.0 upgrade

* Update detail_panel.test.js for EUI changes

* Updated functioanl and unit tests to properly inspect EuiTableRowCell rendered values

* Fix docs_level_security_roles.js func tests

* Update EUI to 9.0.2

* Fixed failing snapshot for EUI icon default prop
2019-03-07 07:03:11 -05:00
Fuyao Zhao
3f746526fd [Code]: upgrade ts langserver version, reduce the timeout for waiting langserver init 2019-03-06 18:10:00 -08:00
Davey Holler
881bcc2729 Monaco Editor Dark Mode (#32263)
* Initial go at light/dark mode compatability for the Monaco editor.

* Alphebetizing the imports.

* Using the color-convert package to convert rgb to hex values. Updating the monaco hover widget for dark mode.

* Changes to highlight and selection colors.

* Misspelled an EUI color variable name.

* Dark mode for the search results page.

* Prettifying code_result.tsx.

* Removing the monaco scroll decorator from the editor.

* Fixing some type errors for color-convert

* Markdown styling for dark mode.

* Changing the import location of 'chrome' in the monaco editor

* Adding a constant for the getTheme() method and adjusting blame view dark mode styles.
2019-03-06 13:56:51 -08:00
Fuyao Zhao
58585eef1b Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-05 11:13:23 -08:00
Felix Stürmer
a9d75988bd
[Logs UI] Slim down local view configuration state (#31723) 2019-03-05 12:32:21 +01:00