Commit graph

815 commits

Author SHA1 Message Date
Søren Louv-Jansen 6013c7641d
Bump backport to 4.2.0 (#21083) (#21088) 2018-07-23 20:05:53 +02:00
Spencer 801e5c0b2f
[kfetch] TypeScript-ify (#20914) (#20983)
In order to make the awesome new kfetch api easier to consume in purely TypeScript projects, and since it's a pretty small module with very few dependencies, I converted it to TypeScript.

Along with kfetch I also started a type definition file for `ui/chrome` that we can extend as we go, but will likely be unnecessary after #19992
2018-07-19 15:37:25 -07:00
Tim Roes 6a9b2f975c
Move del to dependencies (#20921) (#20926) 2018-07-18 15:19:49 +02:00
Stacey Gammon 2355bb10c3
Bump eui (#20774) (#20909)
* bump eui

* Fixed breaking `EuiPage` changes

Mainly adding `EuiPageBody`’s where there were none

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* bump eui

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* Update jest snapshots in xpack
2018-07-17 20:45:11 -04:00
Felix Stürmer 021ca43849
Upgrade typescript to 2.9.2 (#20757) (#20865)
This upgrades TypeScript to version 2.9.2. My main motivation is the support for generic type arguments in JSX elements and tagged templates (e.g. for `styled-components`).

Problems arising from breaking changes in the new TypeScript version have been mitigated by:

* setting the `keyofStringsOnly` option until impacted code has been
  future-proofed
* Restricting some joi-related generics

See the [release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html) for details.

Some follow-up tasks should be:

* Update EUI to support the new `keyof` behaviour
* Update new platform TypeScript code to support new `keyof` behaviour
* Remove `keyofStringsOnly` setting
2018-07-17 11:23:09 +02:00
Tiago Costa 3fab7f6aa7
chore(NA): bump chalk version dependencies and update lock files. (#20629) 2018-07-13 00:27:23 +01:00
CJ Cenizal 3d2a1613ae
Add ability to abort a kfetch call. (#20700) (#20748)
* Split kfetch module into kfetch and kfetchAbortable sub-modules.
* Add abortcontroller-polyfill.
2018-07-12 16:20:59 -07:00
Aleh Zasypkin f88d0b92a2
Integrate new platform (core) server side into Kibana (#20661)
Co-authored-by: Kim Joar Bekkelund <kjbekkelund@gmail.com>
Co-authored-by: archana <archanid@users.noreply.github.com>
Co-authored-by: Spencer <spalger@users.noreply.github.com>
Co-authored-by: Court Ewing <court@epixa.com>
2018-07-11 13:12:33 +03:00
Tim Roes a2c33a5b33
Typescriptify ResizeChecker and render complete (#20531) (#20550)
* Typescriptify ResizeChecker and render complete

* Simplify getSize method
2018-07-09 13:41:21 +02:00
Nathan Reese a0add1bf5b
Upgrade to EUI 1.1.0 (#20411) (#20529)
* Upgrade to EUI 1.0.1

* upgraded to eui 1.1.0

* fix setInspectorTablePageSize function in functional tests

* better comment about basic table pagination buttons
2018-07-06 13:33:27 -06:00
CJ Cenizal 0da5bacd28
Adding firefox to test suite (#17195) (#20282)
* Created general driver to accept an argument select the driver to run.

* Added environment variable for driver, changed package.json to use custim leadfoot, and made changes to browserdriver to use any driver.

* Made changes per PR.

* Fixed all nits.
2018-06-27 19:46:35 -07:00
Tim Roes 89e001aaff
Update makelogs to 4.1.0 (#20232) (#20260) 2018-06-27 15:49:44 +02:00
Aleh Zasypkin 99f157b83f
Upgrade rxjs: 6.1.0 ---> 6.2.1. (#20214) 2018-06-25 21:30:49 +02:00
Tim Roes e477a7b412
Add AggTypeFilters to filter out aggs in editor (#19913) (#20196)
* Add AggTypeFilters to filter out aggs in editor

* Add documentation

* Implement CJ's feedback

* Add link to missing vis variable

* Fix for RxJS 6

* Add babel-core types and fix tests

* Pass index pattern instead of vis

* Fix documentation
2018-06-25 11:49:08 +02:00
Tyler Smalley a1b5a56f94
Adds SCSS support for plugins (#19643) (#20137)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-06-22 08:03:14 -07:00
Stacey Gammon 17ebccbf28
Typescript-ify screenshot stitcher code in reporting (#20061) (#20149)
* typescript screenshot stitcher

* Throw an error if the data captured is not of the expected width and height.

* Import babel-core types

* Add babel-core types to x-pack package.json

* Dimensions => Rectangle
2018-06-22 10:53:00 -04:00
Shaunak Kashyap 17f483a432 Updating EUI to 0.0.55 (#20126) 2018-06-21 16:21:33 -07:00
Tim Roes 9ba0689dcd
[6.x] Replace spy panels by Inspector (#16387) | Fix one inspector test (#20072) (#20076)
* Replace spy panels by Inspector (#16387)

* Add Inspector feature

* So long, and thanks for all the fish, spy panel

* Fix several functional tests

* Fix unit tests

* Fix spy panel button tests

* Replace old spy panel documentation

* Disable test temporarily until we have dashboard triggers

* Enter edit mode for dark theme test

* Fix some more functional tests

* Fix more functional tests

* More test fixing

* Fix more functional tests

* Allow opening the inspector via loader handler

* Refactor InspectorViewChooser, remove unused CSS

* Remove dead code

* Fix data download button style

* Remove redundant code

* Load inspectorViews for dashboard_viewer

* Extract inspector views to custom core_plugin

* Switch API to TypeScript 🎉

* Design changes

* Remove icons from views

* Design changes

* Improve typings of API

* Add typing to all adapters

* Show loading spinner in request selector

* Rewrite InspectorView to TypeScript

* Fix help text for data view

* Remove deprecated React lifecycle methods

* Embed inspector into dashboard panel actions

* Remove temporary inspector trigger

* Remove old CSS

* Fix dashboard trigger for new panel action

* Add tests for InspectorPanel and DataAdapter

* Produce a hierarchical table if the vis is hierarchical

* Remove allowJs option again

* Add missing Apache license headers

* Close inspector on dashboard when navigating away

* Use proper title for dashboard panels

* Fix functional tests

* Skip broken test for now

* Flush view chooser button

* Add request adapter tests

* Skip more tests, broken due to typescript

* Add Request Time description

* Add description for courier request

* Fix tests

* Replace icon by new (not yet released) icon

* Finalize design of inspector

* Remove discover test, that relied on spy panels

* Change API to be properly mockable in tests

* Add aria-live region for request status

* Replace old method in functional tests

* Replace abitrary magic number

* Use object destructuring in vis

* Fix issue with crashing requests view

* Add request time tooltip

* Get request body of correct search source

* Make filter buttons properly keyboard accessible

* Follow Dave's design suggestions

* Remove redundant request from name

* Remove unneeded comments

* WIP raw-formatted values

* Fix filtering issue

* Fix tests and more license headers

* Add data view tests

* Remove search from table

* Fix typos

* Implement review suggestion

* Remove artificial delays for testing

* Fix new panel action structure

* Minor design adjustments

* Fix failing functional test

* Update failing snapshot test

* Implement final wording

* Apply new EUI styling

* Fix closing inspector in tests

* Fix sorting of table

* Align punctuation between tooltips

* Fix test that doesn't exist on master

* Fix one inspector test (#20072)

* Remove file that came accidentally back due to merging

* Fix accidental merge paste

* Fix 6.4 test failures
2018-06-21 11:45:13 +02:00
Tim Roes 508df9e67e
Update EUI to 0.0.53 (#20005) (#20042)
* Update to EUI 0.0.53

* Remove input vis specific styling

* remove double close button in dashboard add panel flyout (#2)

* Fix functional tests

* fix x-pack snapshots

* EUI 0.0.53 no longer closes combo box when clear btn is pressed (#3)
2018-06-19 18:57:42 +02:00
Stacey Gammon edb6b8d460
Typescriptify dashboard redux code (#19857) (#20038)
* Typescriptify dashboard redux code

* Address code review comments

* minor fixes

* move all type dependencies to dev
2018-06-19 11:11:01 -04:00
Spencer 8a7ed713fd
[6.x] [npm] upgrade to RxJS 6 (#18885) (#20006)
* [npm] upgrade to RxJS 6 (#18885)

This PR upgrades RxJS to version 6 and switches to a fork of `stream-to-observable` which includes an updated version of `any-observable` that supports RxJS 6 until https://github.com/jamestalmage/stream-to-observable/pull/10 is merged. The primary change in this version of RxJS is the movement of stream operators from `Obersable.prototype` to the `rxjs/operators` module. Some of the operators, like `catch` and `do`, have been renamed (`catchError`, and `tap`). The Obsevable factories have also been moved from static methods on the `Observable` class to named exports of the root `rxjs` module. Some of those factories have also changed slightly, like `fromEvent` which now emits arrays if the event handler is called with multiple arguments.

```js
// import the Rx namespace to get the Observable factories
import * as Rx from 'rxjs';
// import the operators as named imports
import { map, tap, switchMap } from 'rxjs/operators';
```

* [rxjs/dev-utils] fix old operator usage

* [rxjs/dev-utils] remove one more old operator
2018-06-18 12:47:51 -07:00
Søren Louv-Jansen 3b05d78273
Bump backport (#19910) (#19922) 2018-06-14 22:28:58 +02:00
Jonathan Budzenski 55a60ab11f
Bump node to 8.11.3 (#19862) 2018-06-14 12:45:31 -05:00
CJ Cenizal fd591acb90
Upgrade EUI to 0.0.52 (#19772) (#19833)
* Revert "Revert "upping eui to 0.0.52 and updating snapshots (#19761)" (#19770)"
This reverts commit c853072ca5, reintroducing EUI 0.0.52.
* Rename visualize page object selectors for manipulating combo box.
2018-06-12 12:05:15 -07:00
Tiago Costa f0c7782904
chore(19502): change license checker and generator behaviour to only add dev dependencies with --dev flag. (#19626) (#19825) 2018-06-12 09:15:44 -07:00
CJ Cenizal f49dcc81ae
Revert "upping eui to 0.0.52 and updating snapshots (#19761)" (#19770) (#19771)
This reverts commit a6894c6f62.
2018-06-08 14:06:50 -07:00
Bill McConaghy bf6e4e41fc
upping eui to 0.0.52 and updating snapshots (#19761) (#19766)
* upping eui to 0.0.52 and updating snapshots

* fixing yarn.lock
2018-06-08 15:40:58 -04:00
Jonathan Budzenski d5940e005d
[package.json] Add missing dev dependencies (#19625) 2018-06-08 11:33:03 -05:00
Søren Louv-Jansen c77602dfb7
[backport] Bump to 3.0.2 (#19735) (#19756) 2018-06-08 16:38:48 +02:00
Bill McConaghy 0d9a46c1e8
upping to EUI 0.0.51 and fixing tests that broke (#19653) (#19693)
* upping to EUI 0.0.51 and fixing tests that broke

* upping x-pack eui to 51 and refreshing snapshots

* adjusting onQueryChange API to match EUI

* adding lock files

* updating snapshots
2018-06-05 20:26:43 -04:00
Stacey Gammon d131af8da8
Typescriptify ui/embeddable folder (#19648) (#19683)
* Typescriptify ui/embeddable folder

* Allow ts modules from ui/public folders to be imported

* Address review comments from Tim

* Address code review from Oleg

* remove lodash usage

* remove mappng to non public folder
2018-06-05 15:23:32 -04:00
Bill McConaghy 6e43505fa0
[console] porting console tests to Jest (#19543) (#19650)
* porting console tests to Jest

* adding missing import
2018-06-04 11:25:03 -04:00
Nathan Reese 388094e46d
Remove react-select from kibana (#18876) (#19557)
* remove react-select from AggSelect

* update field_select to use EuiComboBox

* metric_select

* moving_average

* percentile

* series_agg

* std_deviation

* removing some more react-select instances

* icon_select and group_by_select

* gauge type

* markdown

* set isClearable prop

* remove react-select from timeseries config

* remove react-select from timeseries panel options

* remove react select from terms

* remove react-select from table config

* remove react-select from data_format_picker

* fix create_select_handler mocha test

* remove react-select from kibana

* update tsvb functional tests

* set isDisabled prop on EuiComboBox where disabld prop was set for Select

* use durationOutputOptions for duration 'to' options
2018-05-30 10:48:58 -06:00
Tiago Costa 229fd275f8
[6.x] Validate current node version (#19154) (#19452)
* Validate current node version (#19154)

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* feat(12976): node version validation at runtime.

* refact(12976): move the code into a static utilities class.

* test(12976): added first test case using jest.

* test(12976): added test cases for node_version.

* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.

* refact(12976): migrated node version code from es6 to es5.

* fix(12976): remove one level from ts node register cache directory link.

* chore(12976): added caret to semver dependecy in order to support minor versions.

* refact(12976): small change from named import to default import on node version validator.

* refact(12976): removed ts_node_register and add the code to babel_register.

* feat(12976): split eslint config in order to properly support files built to run before and after node version validator. refact(12976): convert script files to es5 code. refact(12976): delete inline eslint configs from node version check related files.

* refact(12976): remove ts node register file.

* refact(12976): completely port setup_node_env to es5.

* refact(12976): remove babel_register invokation from external dependencies in scripts.

* refact(12976): move node_version code directly into node_version_validator inside setup_node_env folder.

* refact(12976): only node version validator for kbn script.

* Fix check_file_casing babel_register reference (#19457)

* chore(12976): fixed license headers on new files.
2018-05-29 21:59:42 +01:00
Tim Roes ee6a17e102
Update markdown-it to 8.4.1 (#19470) (#19472) 2018-05-28 18:47:35 +02:00
Tyler Smalley c2f7b13b56 [plugins] Ensures X-Pack is available during plugin install (#19426)
For the default distribution, we were not including X-Pack during plugin installation. This broke plugin installation which relied on X-Pack interfaces.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-25 12:00:24 -07:00
Spencer 068b6652c0
[6.x] Check filename casing in CI (#19282) (#19414)
Backports the following commits to 6.x:
 - Check filename casing in CI  (#19282)
2018-05-24 23:09:30 -07:00
Spencer 30653d9d92
[6.x] [eslint-plugin-no-unsanitized] upgrade for import() support (#19315) (#19413)
Backports the following commits to 6.x:
 - [eslint-plugin-no-unsanitized] upgrade for `import()` support  (#19315)
2018-05-24 15:32:20 -07:00
Spencer 3d1441ab12
[ts] put JSX support in root tsconfig file (#19359) (#19365) 2018-05-23 13:15:36 -07:00
Spencer 37487a8472
[6.x] [tslint] lint typescript code (#19105) (#19331)
Backports the following commits to 6.x:
 - [tslint] lint typescript code  (#19105)
2018-05-22 15:27:06 -07:00
Nathan Reese 4168ee4bec
upgrade kibana to eui 0.0.49 (#19284) (#19314) 2018-05-22 15:01:36 -06:00
Aleh Zasypkin dc16506da8
[6.x] Upgrade sinon (v1.17.3 --> v5.0.7). (#19293) 2018-05-22 15:41:45 +02:00
Spencer 07f4e5ad77
[6.x] [typescript] add typescript support for the server and browser (#19104) (#19223)
Backports the following commits to 6.x:
 - [typescript] add typescript support for the server and browser  (#19104)
2018-05-21 10:42:59 -07:00
Spencer 6a73c41ffd [npm] downgrade mocha even further, to before #19022 (#19238) (#19241) 2018-05-18 22:25:07 -04:00
Spencer b3364e625a
[6.x] [npm] downgrade mocha to not need https://github.com/mochajs/mocha/pull/3346 (#19233) (#19234) 2018-05-18 15:32:29 -07:00
spalger f17b311dfe [npm] upgrade mocha to include https://github.com/mochajs/mocha/pull/3346
(cherry picked from commit a5d1f1ccd6)
2018-05-18 14:47:39 -07:00
archana eae18989a3
Functional test setup with kbn-test package (#18568) (#19174)
Restructure testing with kbn-test package

 - Run with multiple configs, move cli options to config
 - Package-ify kbn-test
 - Eventually we'll have functional_test_runner live in a package
of its own, and then this kbn-test will use that as a dependency,
probably still as a devDependency.
 - Implement functional_tests_server
 - Collapse single and multiple config apis into one command

Use kbn-es

Replace es_test_cluster + es_test_config with kbn/test utils

Implement new createEsTestCluster

Improve scripts, jsdocs, cli top-level tools

Lift error handling to the top level
2018-05-17 13:42:43 -05:00
Spencer 7dbec2e1e7
[6.x] [mocha] remove grunt-simple-mocha (#19079) (#19139)
* [mocha] run tests with mocha script, remove grunt-simple-mocha

* [ci] force colored output

* [ci] disable color when reading the yarn bin

* [dev/build/exec] support tooling log having its own chalk

* [dev/mocha] avoid changing the cwd of the process

* [dev/mocha] only match files, speed up negative matches

* [cli/serve/test] strip ansi control characters from logs

* [ci] disable color in all `yarn bin` invocations

* [dev/mocha] cleanup old runInBand check

* [dev/mocha] enable gloabl leak checks
2018-05-16 16:25:59 -07:00
Nathan Reese 10ac6c5988
fix conflicks in yarn.lock (#19130) 2018-05-16 11:01:50 -06:00
Bill McConaghy 5c6d710607
upping ace version to the latest (#19067) (#19087) 2018-05-15 16:32:53 -04:00