Commit graph

1381 commits

Author SHA1 Message Date
Spencer
27c925f1fe
[7.x] Update dependency @elastic/charts to ^10.2.0 (#43910) (#43946)
(cherry picked from commit 24aae80dbe)
2019-08-26 09:51:01 -07:00
Dmitry Lemeshko
8dcaf97acc
jest & mocha test coverage reporting (#43742) (#43935)
* 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 20:42:13 +02:00
Spencer
9355143bca
[7.x] Update dependency xmlbuilder to v13 (#43228) (#43890)
(cherry picked from commit 7a71ea2993)
2019-08-23 13:26:54 -07:00
Spencer
31e7eec1ce
[7.x] Update babel related packages (#43595) (#43837)
* 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

* Update package.json

* update yarn.lock
2019-08-23 08:24:52 -07:00
Marco Vettorello
13507df9cd
upgrade elastic-charts to 10.0.1 (#43732) (#43763) 2019-08-22 18:45:36 +02:00
dave.snider@gmail.com
905ab26de3
Upgrade EUI@13.3.0 (#42858) (#43613)
Upgrades 13.3.0
2019-08-20 16:28:58 -07:00
Alexey Antonov
b3baa36f58
Update @elastic/charts version 8.1.6 > 9.1.1 (#43516) (#43519) 2019-08-19 14:23:16 +03:00
Spencer
69a3f01a4c
use @elastic/eslint-plugin-eui (#43397) (#43460)
* use `@elastic/eslint-plugin-eui`

* add exceptions to the new rule
2019-08-16 14:23:57 -07:00
Spencer
d1fdb9e4f9
[7.x] ts-ify @kbn/dev-utils (#43383) (#43401) 2019-08-16 07:12:42 -07:00
Jonathan Budzenski
fa689d5b60 [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:22:22 -05:00
Vadim Dalecky
c868741af1
[7.x] Utility types (#41246) (#43108)
* 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 16:57:17 +02:00
Frank Hassanabad
623a244fae
[SIEM] Upgrades react-redux and utilize React.memo for performance gains (#43029) (#43070)
## 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 21:01:36 -06:00
Marco Vettorello
5dc36cb51c
Upgrade elastic/charts to 8.1.6 (#42518) (#43024) 2019-08-09 17:32:37 +02:00
Mike Côté
06dfcd9b6e
Connect to Elasticsearch via SSL when starting kibana with --ssl (#42840) (#42996)
* 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 21:52:42 -04:00
Dmitry Lemeshko
feb070df6a
bump chromedriver version to 76 (#42468) (#42874)
* 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-08 07:40:37 +02:00
Chandler Prall
4295fe2d3c
Upgraded EUI 13.0.0 -> 13.1.1 (#42298) (#42604)
* 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-05 09:26:43 -06:00
dave.snider@gmail.com
27f1696f4e
EUI 13.0.0 (#41723) (#42540) 2019-08-02 13:45:20 -07:00
Mengwei Ding
2274421436
[Code] disk watermark check for clone and update (#42174) (#42383)
* [Code] disk watermark check

* apply disk check

* switch to one config

* Add i18n

* Add unit tests

* update i18n message id
2019-07-31 14:53:35 -07:00
Daniil Suleiman
76493a7a09
[Vis: Default editor] EUIficate tag cloud options tab (#42070) (#42340)
* 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 17:42:58 +03:00
Maryia Lapata
1fb0b65c7f
[Vis Editor] EUIfication of agg and agg-group directives (#40866) (#42126)
* 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 16:46:55 +03:00
Greg Thompson
657d45df62
Upgrade EUI to 12.4.0 (#41577) (#41691)
* 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 14:15:18 -05:00
Joel Griffith
894556c5dd
[7.x] Addresses an issue where Chromium user-data-dirs aren't removed (#40284) (#41066)
* 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

* Fixing lint issues

* Lint fixes

* No module def
2019-07-15 15:00:44 -07:00
Spencer
614af05967
[7.x] [autoprefixer] upgrade to 9.6.1, unify browserslist hand… (#41145)
* [autoprefixer] upgrade to 9.6.1, unify browserslist handling

* remove debug option from datemath babel config
2019-07-15 13:01:17 -07:00
Chandler Prall
b9bb2e60e5
EUI 12.3.1 (#41061) (#41164)
* 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 13:18:19 -06:00
Dmitry Lemeshko
bea3c8b548
FTR: upgrade chromedriver to 75 (#40791) (#41051)
* ftr: update services to support chromedriver 75

* [services/webdriver] add browser logging

* update comment for W3C scrolling bug
2019-07-13 01:02:36 +02:00
Brandon Kobel
b89231d119
Updating lodash (#40702) (#41025)
* 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 11:42:06 -07:00
Yulong
ca5f953581
[Code] use isomorphic-git to handle git references (#40951) (#40998)
* [Code] use isomorphic-git to read git references
2019-07-12 23:53:06 +08:00
Spencer
1591c25148
[7.x] [ts] upgrade to 3.5.3 (#40228) (#40795)
* [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

# Conflicts:
#	x-pack/legacy/plugins/canvas/server/usage/custom_element_collector.ts
#	x-pack/legacy/plugins/canvas/server/usage/workpad_collector.ts

* define inner type for Set

* default `config.get()` to any instead of unknown
2019-07-10 15:22:35 -07:00
Ahmad Bamieh
daaefbafb5
[7.x] [Core] Remove lock file from packages/kbn-spec-to-consol… (#40460)
* remove lock file from packages/kbn-spec-to-console and update jest

* update handlebars to 4.1.0

* update jest-cli
2019-07-06 14:15:56 +03:00
spalger
f663e18cb8 [7.x] [prettier] upgrade to 1.18.2 (#40229)
* [prettier] upgrade to 1.18.2

* autofix prettier violations

(cherry picked from commit a95ae8c037)
2019-07-03 13:00:44 -07:00
Spencer
1c3bc5c207
[7.x] [elasticsearch] upgrade to 16.2.0 (#40287) (#40288)
(cherry picked from commit badd16155d)
2019-07-03 11:14:55 -07:00
spalger
f8dd1637d2 bump to 7.4 2019-07-03 08:22:44 -07:00
dave.snider@gmail.com
3f9ffdb78c
EUI@12.2.0 (#40039) (#40059)
* EUI@12.2.0

* update EuiFormRow to hold a single child, removes comments only
2019-07-01 14:39:31 -04:00
Spencer
e87bbe0307
[7.x] Update dependency eslint-plugin-import to v2.18.0 (#3993… (#39965)
* Update dependency eslint-plugin-import to v2.18.0

* fix new import order violations
2019-06-29 02:19:54 -07:00
Spencer
aeed3c5704
[7.x] Update dependency @types/fetch-mock to v7.3.1 (#39931) (#39952) 2019-06-28 19:24:38 -07:00
Spencer
52fe2620d0
[7.x] Update dependency simple-git to v1.116.0 (#39936) (#39954)
# Conflicts:
#	x-pack/package.json
2019-06-28 19:22:12 -07:00
Spencer
b214026b06
[7.x] Update dependency eslint-plugin-jest to v22.7.1 (#39935) (#39953) 2019-06-28 15:51:08 -07:00
Spencer
26806fb1eb
[7.x] Update dependency babel-eslint to v10.0.2 (#39932) (#39951) 2019-06-28 15:40:22 -07:00
Peter Pisljar
5341d11005
updating metricvis interpreter func arguments (#34532) (#39872) 2019-06-28 08:16:09 +02:00
Alexey Antonov
074678f90a
Upgrade @elastic/charts to 7.0.1 (#39571) (#39670) 2019-06-27 10:33:21 +03:00
Tiago Costa
73f900826a
Relative cache loader (#39272) (#39712)
* 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 21:04:07 +01:00
Greg Thompson
4070c581ec
[7.x] Upgrade EUI to 12.1.0 (#39601) (#39699)
* 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

* toast interface import
2019-06-26 13:07:22 -05:00
Peter Schretlen
475e0b2e8e
upgrade prop-types to an MIT-licensed version (#39526) (#39607) 2019-06-26 12:00:34 -04:00
Matthew Kime
3454cf5d33
github-checks-reporter - retry on authentication requests (#39606) (#39641)
* bump github-checks-reporter
2019-06-25 22:49:34 -05:00
Spencer
33512feef8
[7.x] Only report the mocha tests once, as "Mocha tests" (#395… (#39582) 2019-06-25 09:02:30 -07:00
Mikhail Shustov
bfb47fca29
window.crypto.subtle cannot be used in insecure env (#39428) (#39559)
* window.crypto.subtle cannot be used in insecure env

* set extension. otherwise definition prioritiezed over js file

* move js to ts. fix build

* remove polyfills

* remove ext

* remove crypto from legacy
2019-06-25 10:53:53 +02:00
liza-mae
0e03902112
Add rendering of canvas images and update percy agent package (#39456) (#39519)
* Add rendering of canvas images and update percy agent package

* Spencer's fix for eslint issues

* restore canvas elements after taking snapshot

* copy over all styles from canvas to image stand-in

* percy snapshots only run in chrome, so they can use modern js features

* only run visual regression suites

* add stub maps test

* fix arg order

* use more modern syntax that totally works in chrome

* typo

* fix ftr test timeout when using --inspect-brk

* Revert "add stub maps test"

This reverts commit 32dc965adb.
2019-06-24 10:13:21 -06:00
Josh Dover
247eb8602c
[7.x] Remove final legacy dependencies from Header UI (#38175) (#39406) 2019-06-21 11:11:26 -05:00
Court Ewing
a973cbc7a9 Fix path references into and out of x-pack/legacy 2019-06-20 13:35:00 -04:00
Matthew Kime
c08e13c64f
github-checks-reporter improved retry (#39213) (#39273)
* bump github-checks-reporter
2019-06-19 14:14:36 -05:00