Commit graph

1250 commits

Author SHA1 Message Date
renovate[bot] 24aae80dbe Update dependency @elastic/charts to ^10.2.0 (#43910) 2019-08-25 13:58:39 -07:00
Dmitry Lemeshko 304f702764
jest & mocha test coverage reporting (#43742)
* grunt task to get mocha tests coverage

* update jest x-pack config to save report in target

* update report path to match /target/kibana-* pattern
2019-08-24 16:48:08 +02:00
renovate[bot] b1d48d949e Update eslint related packages (#43902) 2019-08-23 14:38:02 -07:00
renovate[bot] 29187007f0 Update dependency compare-versions to v3.5.1 (#39933) 2019-08-23 13:54:30 -07:00
renovate[bot] 7a71ea2993 Update dependency xmlbuilder to v13 (#43228) 2019-08-23 12:01:47 -07:00
renovate[bot] 572274b779 Update babel related packages (#43595)
* upgrade all babel related modules, and bump lodash minors

* update kbn-pm dist

* update fetch-mock, necessary to use core-js 3

* use regenerator transform in jest tests, as required by EUI

* disable useBuiltIns rather than using regenerator plugin

* remove extra regenerator-runtime import
2019-08-22 18:40:57 -07:00
Nick Partridge b596edd6d9 upgrade elastic-charts to 10.0.1 (#43732) 2019-08-22 14:44:19 +02:00
Søren Louv-Jansen 7fc24c9438
Bump backport to 4.6.4 (#43622) 2019-08-21 00:37:05 +02:00
dave.snider@gmail.com b0a4181f7d
Upgrade EUI@13.3.0 (#42858)
Upgrades 13.3.0
2019-08-20 13:37:47 -07:00
Alexey Antonov 01607544f7
Update @elastic/charts version 8.1.6 > 9.1.1 (#43516) 2019-08-19 17:27:45 +08:00
Spencer 2ed1d1ec57
use @elastic/eslint-plugin-eui (#43397)
* use `@elastic/eslint-plugin-eui`

* add exceptions to the new rule
2019-08-16 08:29:46 -07:00
Søren Louv-Jansen 056ec57f7f
Bump backport to 4.6.3 (#43405) 2019-08-16 10:26:13 +02:00
Spencer 7739f5da9e
ts-ify @kbn/dev-utils (#43383) 2019-08-15 12:34:03 -07:00
Jonathan Budzenski e6e92ac2bf
[test] remove x-pack mocha configuration (#42979)
* update scripts

* run mocha from root

* rm mocha grunt task

* rm x-pack mocha setup

* rm x-pack/mocha*

* Revert "rm x-pack/mocha*"

This reverts commit fb56005e77.
2019-08-15 12:21:42 -05:00
Vadim Dalecky 48df3c8893
Utility types (#41246)
* feat: 🎸 add @kbn/utility-types

* feat: 🎸 improve @kbn/utility-types

* chore: 🤖 move @kbn/utility-types to dev deps

* chore: 🤖 change @kbn/utility-types build setup

* fix: 🐛 implement review suggestions

* feat: 🎸 add ShallowPromise type

* Update packages/kbn-utility-types/README.md

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

* test: 💍 add tests for utility-types

* chore: 🤖 add utility-types tests to TypeScript config

* test: 💍 remove negative tests to not cause TypeScript fail

* chore: 🤖 remove ref to type defs to try fix CI tests

* Update packages/kbn-utility-types/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* chore: 🤖 add TS types index to fix `grunt run:test_projects`

* chore: 🤖 use similar tsconfig.json as in other packages

* chore: 🤖 add "clean" script

* chore: 🤖 add kbn:bootstrap script
2019-08-12 15:45:32 +02:00
Frank Hassanabad fe3422cfc3
[SIEM] Upgrades react-redux and utilize React.memo for performance gains (#43029)
## Summary

* Upgrades react-redux so we can use React.memo with hooks and connected components.
* Adds displayName to all the components that are React.memo as well as all components that are `pure` components.

Using React Profiler you can see that when doing something as innocuous as dragging the divider bar of the Timeline you will get updates of the different tables:

<img width="1547" alt="Screen Shot 2019-08-08 at 1 25 22 PM" src="https://user-images.githubusercontent.com/1151048/62789872-19efad80-ba87-11e9-92b5-eb9666c7c07a.png">

This is a result of redux making changes based on the location of the timeline. As this occurs, the UrlState begins updating its self and all children which is not what we want.

You will see differences now in the snapshots such as this which adds naming to it:
<img width="1582" alt="Screen Shot 2019-08-09 at 2 34 06 PM" src="https://user-images.githubusercontent.com/1151048/62808504-7a95df00-bab5-11e9-89c1-910b3908c705.png">

For the rest of us profiling we will have friendly names in our profiling tools to be able to trace what is going on very quickly

Before where a name didn't exist and it just showed `Memo` or `pure`:
<img width="221" alt="Screen Shot 2019-08-09 at 11 55 08 AM" src="https://user-images.githubusercontent.com/1151048/62809192-79fe4800-bab7-11e9-993b-2e7abadbb691.png">

Now that a name exists you can trace to the code quickly to the component name:
<img width="1570" alt="Screen Shot 2019-08-09 at 3 08 42 PM" src="https://user-images.githubusercontent.com/1151048/62809235-9a2e0700-bab7-11e9-8711-bae7d263d487.png">


### 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~~

~~- [ ] [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)~~

~~- [ ] 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-08-09 19:46:29 -06:00
renovate[bot] 7b39137ce8 Update dependency commander to v3 (#43041) 2019-08-09 16:13:31 -06:00
renovate[bot] e1f692520c Update dependency @percy/agent to ^0.10.0 (#40517) 2019-08-09 16:12:02 -06:00
Marco Vettorello ec1763269e
Upgrade elastic/charts to 8.1.6 (#42518) 2019-08-09 14:57:19 +02:00
Mike Côté 6d4191c1e6
Connect to Elasticsearch via SSL when starting kibana with --ssl (#42840)
* Initial work

* Add check for elasticsearch.hosts

* Make --ssl apply default config values only

* Move @kbn/dev-utils to devDependencies

* Check elasticsearch url for localhost

* Cleanup

* elasticsearch.hosts can be string too
2019-08-08 19:47:52 -04:00
Dmitry Lemeshko ce07151bf4
bump chromedriver version to 76 (#42468)
* bump chromedriver version to 76

* [test/interpreter_functional] update snapshots

* [test/interpreter_functional] skip failing tests

* Revert "[test/interpreter_functional] update snapshots"

This reverts commit 6401554882.

* [test/interpreter_functional] skip snapshot tests
2019-08-07 22:52:02 +02:00
Chandler Prall da99d4520b
Upgraded EUI 13.0.0 -> 13.1.1 (#42298)
* Upgraded EUI 13.0.0 -> 13.1.0

* Bump to 13.1.1

* Reset MutationObserver polyfill to original operation

* Reset x-pack's MutationObserver polyfill to original operation
2019-08-02 12:42:07 -06:00
Mengwei Ding bc9d0d325b
[Code] disk watermark check for clone and update (#42174)
* [Code] disk watermark check

* apply disk check

* switch to one config

* Add i18n

* Add unit tests

* update i18n message id
2019-07-31 11:48:52 -07:00
Daniil Suleiman 48921a8f3a
[Vis: Default editor] EUIficate tag cloud options tab (#42070)
* EUIficate pie chart options tab

* Fix tests

* Size titles down to xs

* Use FormattedMessage

* EUIficate tag_cloud_vis options tab

* Get rid of ticks in the range

* Update snapshots

* Fix comments

* Change label

* Create a components folder
2019-07-31 15:10:55 +03:00
Maryia Lapata 85f9ef6433
[Vis Editor] EUIfication of agg and agg-group directives (#40866)
* Create default_editor_agg.tsx

* Create default_editor_agg_group

* Apply drag and drop

* Remove unused dragula dependency

* Remove old mocha tests

* Add ts for state

* Update functional tests

* Update touched condition

* Apply styles for accordion button content

* Apply truncate for agg description

* Remove unused styles

* Separate common props

* Move aggGroupNamesMap to agg_group.js

* Update _sidebar.scss

* Pass schemas prop

* Prevent scroll bar and add space

* Remove unused min from stats

* Add OnAggParamsChange type

* Show error as an icon

* Update background color

* Update title size

* Remove Schema.deprecate since it's not used
2019-07-29 13:58:50 +03:00
dave.snider@gmail.com c2b926e2e7
EUI 13.0.0 (#41723) 2019-07-23 15:09:16 -07:00
Søren Louv-Jansen b8f0196f15
Bump backport to 4.6.1 (#41720) 2019-07-23 01:26:45 +02:00
Greg Thompson dd63e73fb0
Upgrade EUI to 12.4.0 (#41577)
* eui 12.4.0

* styled-components ts conflict

* update combobox test service to always open on open call

* Revert "update combobox test service to always open on open call"

This reverts commit 43074e6006.

* scroll combobox into view

* scroll before filter
2019-07-22 13:01:25 -05:00
Søren Louv-Jansen c1831b602d
Bump backport to 4.6.0 (#41435) 2019-07-18 18:10:58 +02:00
dave.snider@gmail.com 76fb809633 EUI 12.3.1 (#41061)
* eui 12.3.1

* add data logos

* Fix TS uses, one SCSS use of euiOverflowShadow

* fix overflow shadow mixin in sass

* homepage logos

* refix typo on homepage

* hp snaps
2019-07-15 12:11:37 -06:00
Spencer 06b9853925
[autoprefixer] upgrade to 9.6.1, unify browserslist handling (#41038)
* [autoprefixer] upgrade to 9.6.1, unify browserslist handling

* remove debug option from datemath babel config
2019-07-15 09:33:33 -07:00
Joel Griffith d48d58b81f
Addresses an issue where Chromium user-data-dirs aren't removed (#40284)
* Addresses an issue where Chromium user-data-dirs aren't cleaned properly, and moves to TS

* Fixing renovate config issues

* Fixing issues with typedef's missing

* Using prior-set typedefs for logger
2019-07-12 15:33:48 -07:00
Dmitry Lemeshko df9d8e6f5d
FTR: upgrade chromedriver to 75 (#40791)
* ftr: update services to support chromedriver 75

* [services/webdriver] add browser logging

* update comment for W3C scrolling bug
2019-07-12 19:49:51 +02:00
Brandon Kobel 174102c70c
Updating lodash (#40702)
* Updating to @elastic/lodash to 3.10.1-npm-kibana2

* Updating lodash to 4.17.13

There's a stray dependency to lodash 4.17.11 via cypress which doesn't
use "^". This is a dev dependency, so we can ignore it for a bit while
they update their package.json

* Updating some forgotten references to @elastic/lodash@3.10.1-kibana1

* Updating lodash-es to 4.17.13

* Updating to @elastic/lodash to 3.10.1-npm-kibana3

* Using the root resolutions to update cypress's version of lodash.

Thanks @spalger!!!
2019-07-12 10:32:45 -07:00
Yulong 0d8a818592
[Code] use isomorphic-git to handle git references (#40951)
* [Code] use isomorphic-git to read git references
2019-07-12 21:39:36 +08:00
Spencer 415e3bca27
[ts] upgrade to 3.5.3 (#40228)
* [ts] upgrade to 3.5.2

* [ts] run from cwd so that relative paths are correct

* move eslint-disable-line comment into jsx attribute

* autofix eslint violations

* avoid generic type, it's not necessary and problematic

* make elasticsearch.cluster optional, many instances don't have them

* remove invalid prop

* expand AllowUnknownProperties to cleanly handle arrays

* esfilter values can sometimes be an array of strings

* allow exception objects to have unknown properties

* define accumulator as a boolean

* fix return type

* return a 404 if beat isn't found after update

* use Object.values for better types

* define return type of get() call

* define value type for Set

* define return value of get()

* define State property type

* use less get(), so ts can infer types

* define Set item type

* map state type

* make default_operator optional, since it's not always defined

* remove seemingly unused prop

* define return type of get() fn

* define inner type for state

* don't define base types are objects with index signatues

* regenerate public api docs

* make indices privileges optional too

* remove unnecessary index-signature from Exception interface

* use variadic _arg instead

* [core/plugin] use Record<string, any> rather than {}

* replace a couple more instances of {}

* revert some unnecessary changes

* remove unused types

* [reporting] output, payload, and meta are required properties

* bump to latest patch version
2019-07-10 12:26:23 -07:00
Marco Vettorello e6a80a769e
Upgrade @elastic/charts dependency to 7.2.1 (#40751) 2019-07-10 19:19:17 +02:00
Ahmad Bamieh f9e45f37cd
[Core] Remove lock file from packages/kbn-spec-to-console and… (#40395)
* remove lock file from packages/kbn-spec-to-console and update jest

* update handlebars to 4.1.0

* update jest-cli
2019-07-06 10:55:03 +03:00
Spencer a95ae8c037
[prettier] upgrade to 1.18.2 (#40229)
* [prettier] upgrade to 1.18.2

* autofix prettier violations
2019-07-03 12:36:44 -07:00
Spencer d818a2cd32
[elasticsearch] upgrade to 16.2.0 (#40287) 2019-07-03 11:14:42 -07:00
dave.snider@gmail.com 53273ecff4
EUI@12.2.0 (#40039)
* EUI@12.2.0

* update EuiFormRow to hold a single child, removes comments only
2019-07-01 13:33:22 -04:00
renovate[bot] d142171366 Update dependency eslint-plugin-import to v2.18.0 (#39934)
* Update dependency eslint-plugin-import to v2.18.0

* fix new import order violations
2019-06-28 15:51:50 -07:00
renovate[bot] 35f5a48b40 Update dependency simple-git to v1.116.0 (#39936) 2019-06-28 13:41:57 -07:00
renovate[bot] c5e481170c Update dependency eslint-plugin-jest to v22.7.1 (#39935) 2019-06-28 13:40:56 -07:00
renovate[bot] b02bacbe0d Update dependency @types/fetch-mock to v7.3.1 (#39931) 2019-06-28 13:40:29 -07:00
renovate[bot] 25e8347259 Update dependency babel-eslint to v10.0.2 (#39932) 2019-06-28 13:39:07 -07:00
Peter Pisljar 444bafbe0e
updating metricvis interpreter func arguments (#34532) 2019-06-28 05:44:43 +02:00
Tiago Costa 330e44e3b9
Relative cache loader (#39272)
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.

* chore(NA): last change to support cache loader across envs.

* fix(NA): cache-loader config generator function scope.

* refact(NA): static cache config for dll compiler.

* chore(NA): support for force writable cache flag. use built assets for cache on distributable.

* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.

* chore(NA): move optimize cache to built_assets.

* chore(NA): relative paths for sourcemap configurations.

* chore(NA): remove redudant check for process.env var.

* refact(NA): simplify double negated expression.

* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.

* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.

* chore(NA): readd babel register cache.

* chore(NA): change .cache to .ui_bundles_cache

* chore(NA): change .ui_bundles_cache to cache/ui_bundles

* chore(NA): update gitignore with .babel_register_cache.json

* chore(NA): rollback devtool module filename template to asbolute resource path.

* chore(NA): apply cache-loader patch.

* chore(NA): added new version definition for cache-loader package.

* chore(NA): updated yarn lock with new cache-loader version
2019-06-26 19:05:04 +01:00
Greg Thompson c59875573e
Upgrade EUI to 12.1.0 (#39601)
* eui@12.1.0

* jest regenerator-runtime babel-polyfill

* TS Toast -> EuiGlobalToastListToast

* EuiBadge

* EuiCopy

* snapshot updates

* simplify toast interface usage

* misc review cleanup

* remove eui core-js resolution
2019-06-26 11:00:27 -05:00
Alexey Antonov 6c431e22e9
Upgrade @elastic/charts to 7.0.1 (#39571) 2019-06-26 14:46:04 +03:00