Commit graph

1704 commits

Author SHA1 Message Date
Dmitry Lemeshko 4a696b939a
update chromedriver dependency to v78 (#49737) 2019-11-06 15:13:22 -05:00
renovate[bot] 73ebd567ad Update dependency rxjs to ^6.5.3 (#49837)
* Update dependency rxjs to ^6.5.3

* move argument type def up for better coverage

* adapt to possibly undefined helpExtension

* complete definition of deprecation$ type

* define types that bindNodeCallback can no longer infer

* define more types that bindNodeCallback can't infer

* be more explicit and accurate about the types for a subject/observable pair

* fix interface error, TS now identifies it

* ignore a return type flaw because types are not being managed properly

* avoid overspecifying types

* allow types to be inferred where possible

* remove unnecessary withLatestFrom()

* reduce number of rxjs versions installed

* update kbn/pm dist
2019-11-01 14:44:21 -07:00
renovate[bot] 491ecf5865 Update dependency @elastic/charts to ^13.5.12 (#49874) 2019-11-01 09:45:23 -05:00
Spencer 96297ffae6
update elasticsearch to 16.5.0 (#49911) 2019-10-31 13:15:09 -07:00
Chandler Prall 94202a9eab
Upgrade EUI to v14.8.0 (#49375)
* Upgrade EUI to v14.8.0

* update snapshot for determinism
2019-10-29 11:04:24 -06:00
Mikhail Shustov b6591eb0bd
Provide uiSettings service in NP (#48413)
* provide ui settins client via context

* update mocks

* update types and expose setDefaults to plugins

* move ui settings routes to NP

* add typings fro test kbn server

* move integration test & improve typings

* hide client private methods, update tests

* add unit tests for get_upgradable_config

* inline writeErrors into createOrUpgradeConfig to simplify testing

* regen docs

* add functional tests for ui_settings service

* unify test suites

* add types for sipertest in core_plugin tests

* tsify core_plugins tests

* add test for empty saved config

* update renovate

* rename get/setDefaults to reguster

* regen docs

* regen docs

* Update src/core/MIGRATION.md

Co-Authored-By: Josh Dover <me@joshdover.com>
2019-10-28 16:06:12 -04:00
renovate[bot] 5b375df8e9 Update moment related packages (#46849)
* Update moment related packages

* unify moment version in yarn.lock

* adapt ro pluralization fixes

* update some bad pluralization in fixtures/snapshots
2019-10-28 12:07:35 -07:00
renovate[bot] dba5481181 Update dependency @elastic/charts to ^13.5.9 (#49390) 2019-10-25 17:22:34 -05:00
renovate[bot] c7a1c895b4 Update dependency @elastic/charts to ^13.5.8 (#49327) 2019-10-25 09:41:21 -07:00
Tyler Smalley b24e44c5b8
Removes unused babel-plugin-inline-react-svg package (#49271)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 09:23:04 -07:00
Tyler Smalley fcc9ea369a
[npm] Removes unused dependencies (#49287)
* [npm] Remove mochawesome-report-generator
* [npm] Remove babel-plugin-transform-react-remove-prop-types
* [npm] Removing popper.js
* [npm] Remove stream-stream
* [npm] Remove react-redux-request

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 09:22:14 -07:00
Tyler Smalley 1461bc4a7c
[npm] Removes trunc-html and trunc-text (#49278)
Originally added in https://github.com/elastic/kibana/pull/6791 as part
of custom notification banners, however it's no longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:38:08 -07:00
Tyler Smalley fa169daceb
[npm] Removes humps (#49282)
Added with the original commit of APM, but is no longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:37:06 -07:00
Greg Thompson 9e58b27d59
Upgrade EUI to 14.7.0 (#49110)
* eui 14.7.0

* icon updates

* snapshot updates

* storyshot updates

* remove config addition
2019-10-24 10:14:17 -05:00
Spencer a859577b40
Remove rimraf (#48985)
* Update dependency del to v5

* unify del/rimraf usage with del v5

* update yarn.lock

* update kbn-pm distributable

* remove poorly transformed code

* force some deletes from tmp

* mock less of the fs module

* force tmp deletion in a few more suites

* please make this the last force
2019-10-24 06:29:43 -07:00
renovate[bot] 1d1f5608e5 Update dependency @elastic/charts to ^13.5.7 (#48865) 2019-10-24 10:41:30 +02:00
renovate[bot] f0e9132535 Update dependency execa to v3 (#48975)
* Update dependency execa to v3

* update kbn/pm dist

* remove old @types/execa package

* remove use of removed methods/properties, specify preferLocal when needed

* [@kbn/pm] specify preferLocal when running install scripts

* update kbn/pm dist

* Joi now converts input to matching option from .valid()

* fix failed tests

* Revert "Joi now converts input to matching option from .valid()"

This reverts commit 75531b1d09.
2019-10-23 19:23:37 -07:00
Brandon Kobel db6d2251e1
Updating debug to 2.6.9 (#48997) 2019-10-23 11:04:03 -07:00
Brandon Kobel 5cecdd3fe3
Updating makelogs to 5.0.0 (#49001) 2019-10-22 18:09:31 -07:00
renovate[bot] feceb0f98e Update eslint related packages (#48513)
* Update eslint related packages

* add errorMessage to no-restricted-paths validation

* add license to eslintrc file

* ignore broken plugin fixture

* upgrade tangled peer deps

* give name to unnamed func to avoid typescript-eslint/typescript-eslint#1078

* migrate away from removed prefer-interface

* migrate away from removed no-angle-bracket-type-assertions rule

* migrate away from removed no-triple-slash-reference rule

* old config was invalid and made this rule a noop

* fix array-type rule config

* fix readonly paramProperties that weren't being checked

* fix propType ordering

* remove references to non-existent rules

* remove unnecessary disable that is improperly formatted

* fix comment-related spacing

* fix typo/invalid namespace overrides

* rename fn to avoid hook-alike behavior

* remove reference to old removed rule

* use caret version for prettier

* reference babel-eslint with absolute path
2019-10-21 16:32:31 -07:00
Alejandro Fernández 7bcfbf290f Bump backport version (#48762) 2019-10-21 20:41:04 +02:00
renovate[bot] 7c18a02e69 Update dependency @elastic/charts to ^13.5.4 (#47939) 2019-10-18 12:07:49 +02:00
Tyler Smalley 6f8841a94b
Move request-crypto package to root (#48547)
This package is only being referenced in OSS Kibana, though it was
defined in X-Pack causing issues for OSS builds.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-17 11:49:05 -07:00
Dmitry Lemeshko bb98fd1325
update geckodriver (#48201) 2019-10-17 11:43:19 +02:00
Thomas Neirynck 8cbae88afd [Maps] bump ems-client to 1.0.5 to avoid IE11 crashes (#48292)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-15 17:57:54 -07:00
Greg Thompson 71b1bbd4cb
Upgrade EUI to 14.5.0 (#48119)
* eui 14.5.0

* snapshot updates

* update ChromeBreadcrumb interface

* change bad id selector to data-test-subj selector
2019-10-15 09:59:38 -05:00
Nick Peihl 7bcc7634ec
[Maps] Use new ems-client dependency (#44182)
* Use new ems-client dependency
2019-10-13 19:18:10 -07:00
renovate[bot] 0568464815 Update dependency tree-kill to ^1.2.1 (#48025)
* Update dependency tree-kill to ^1.2.1

* refactor promisify so types are assigned correctly
2019-10-12 20:06:00 -07:00
renovate[bot] 6ddbef000e Update dependency hjson to v3.2.0 (#48023) 2019-10-12 20:01:53 -07:00
renovate[bot] 2fe45dce75 Update dependency backport to v4.7.3 (#48021) 2019-10-12 20:01:20 -07:00
Joe Reuter b43bdf6f09
downgrade vega-tooltip to maek it IE compatible (#47928) 2019-10-11 14:06:59 +02:00
Joe Reuter be9969ee02
fix infinite loop in vega tooltips (#47700) 2019-10-10 11:24:07 +02:00
Dmitry Lemeshko 3495f86c45
Collecting code coverage from functional tests (#40512)
* get coverage for console functional test

* instrument kibana

* collect coverage stats after each test, on url navigation, refresh and back

* switch to babel-plugin-istanbul

* switch to babel-plugin-istanbul

* [coverage service] basic version

* trigger final coverage flush when ftr finishes, wait for all logs before exiting

* add coverage report generation

* increase optimizer timeout, re-run idx/babel plugin before istanbul

* increase memory usage for node

* put istanbul preset in the beginning to run as the last one

* bump babel-plugin-istanbul up to 5.2.0

* cleanup

* save unique json files with coverage

* [functional test coverage] update coverage.json path

* run code coverage on CI

* increase max-old-space-size with env variable

* fix coverage folder creation

* use env variable to configure code coverage

* revert ci config changes

* remove duplicate plugin

* remove comments

* fixes
2019-10-10 07:56:49 +02:00
patrykkopycinski 623a62939c
[SIEM] Fix GraphQL type generation fails to generate types (#47638) 2019-10-09 21:13:39 +02:00
renovate[bot] 4f9b17cd8e Update dependency @elastic/charts to ^13.5.1 (#47710) 2019-10-09 10:58:55 -07:00
Spencer 9b34d6b76f
refactor failed_tests_reporter to use TS, no octokit (#46993)
* refactor failed_tests_reporter to use TS, no octokit

* update renovate config

* ensure that all kbn-test files are in ts project

* fix some type errors

* add some more tests

* [kbn-test/githubapi] cleanup and document

* collect log messages as strings instead of message objects

* ensure issue is open when updating body

* improve readability of getKibanaIssues

* expose axios helpers from dev-utils

* fix request params for fetching github issues and validate locally

* include a README for failed_tests_reporter

* improve axios error helpers
2019-10-08 13:56:07 -07:00
Tre 1947608378
[FTR] Support for new and old es clients (#47377)
* Add dep for new es client,
refactor all mentions of the old client
to the new.
2019-10-08 09:53:24 -06:00
renovate[bot] f15ffb57c1 Update dependency @elastic/charts to v13 (#47463) 2019-10-08 15:01:21 +02:00
Brandon Kobel a691ba267f
Updating handlebars to 4.3.5 (#47479) 2019-10-07 14:33:00 -07:00
Dmitry Lemeshko 9c21ccf068
[functional/services] update webdriver lib and types (#47381)
* [functional/services] refactor using new types

* [code/history] wrap forward navigation with browser service
2019-10-07 11:32:46 +02:00
renovate[bot] 1da0469521 Update webpack related packages (#47402) 2019-10-05 14:36:02 -07:00
renovate[bot] 445fa434d5 Update gulp related packages (major) (#46665)
* Update gulp related packages

* ts-ify and gulp4-ify x-pack tasks, remove unused canvas tasks

* remove unnecessary gulp.TaskFunction usage

* fix old references

* update renovate config

* move constants into helpers directory

* typo

* compact tasks a bit, remove unnecessary paths

* fix build directories

* deprecate testonly task

* rather than justifying an unjustifiable ts-ignore, ts-ify the imported module

* update renovate config

* update browser download tests to mock axios

* add root index.d.ts to tsconfig

* export BrowserType

* remove unnecessary `@ts-ignore`

* use consistent casing
2019-10-05 07:53:47 -07:00
Lee Drengenberg 700a7ef576
Add option for Internet Explorer IE11 to FTR (#42967)
* Add option for Internet Explorer IE11

* WIP trying to figure out IE options/capabilities

* more attempts to get IE tests working

* more work, but still can't set font size in Dev Tools Console

* two changes for IE

* revert skip in console test

* this change *appears* to set absolute times but they don't stick

* Shakespeare passing on all 3 browsers

* add config.ie.js, change 'internet explorer' to 'ie'

* increase notifications:lifetime so ew have a chance to see the message

* fix lint error remove unused Options

* updates from PR review, remove console.log

* cleanup + reuse existing code

* make iedriver path work for x-pack tests

* try to avoid changing notification timeout

* resolve path and add correct delimiter

* remove unused code, make timepicker work on IE11

* work-around 45333 for IE11

* [WIP] removing some work-arounds

* revert work-arounds

* cleanup

* remove debugging code

* remove debugging code

* removed unused code

* reverting 2 files that didn't have any material changes
2019-10-04 11:13:58 -05:00
Spencer 3bc803e371
[mkdirp] remove in favor of recursive fs.mkdir (#47251)
* [mkdirp] remove in favor of recursive fs.mkdir

* add eslint rule to educate future contributors

* reword the eslint error message to prevent copy-pasting callback code

* Commit updated kbn-pm dist

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Fix typo

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-04 08:15:06 -07:00
renovate[bot] 7e77e0bdb4 Update dependency @elastic/charts to ^12.1.0 (#47267) 2019-10-04 10:39:51 +02:00
Tiago Costa 2e00927cae
chore(NA): fix optimizer under wsl environment with a patched terser webpack plugin version (#47250) 2019-10-04 03:54:06 +01:00
Tiago Costa f61601cc2d
chore(NA): fix logic behind cleaning x-pack node modules on build (#47091) 2019-10-03 03:13:36 +01:00
Greg Thompson 6f09ecc0d9
Upgrade EUI to 14.4.0 (#46949)
* eui to 14.4.0

* euicard ts updates

* snaps
2019-10-02 11:58:22 -05:00
renovate[bot] 0262f6184c Update mocha related packages (major) (#43915)
* Update mocha related packages

* update snapshots

* upgrade gulp-mocha so that it uses new mocha too

* fix async/cb overspecification
2019-10-01 00:07:13 -07:00
Devin W. Hurley 19df9e2b06
[SIEM] Adds linter rule to disallow undeclared variables (#46249)
* adds linter rule to disallow undeclared variables

* adds cypress eslint plugin, remove redundant packages from siem/package.json

* removes comment from json and adds a line about cypress linting to the cypress README

* adds upgraded package back to siem/package.json

* updates cypress run scripts since cypress package is now located in the x-pack/node_modules

* needed to yarn kbn bootstrap after rebasing with master
2019-09-30 11:25:06 -07:00
Caroline Horn 59d33d3476 Update EUI to 14.3.0 (#46824)
* Update EUI to 14.3.0

and update snaps

* TS Colors fix
2019-09-27 15:16:57 -07:00
Lee Drengenberg 5a92dec11d
unskip dashboard_screenshot tests by using new setScreenshotSize (#46311)
* use new setScreenshotSize

* change tolerance from 1% to 2% (originally 5%)

* retake baseline without notification dialog

* close add and save notifications

* wait for render complete when going in to FullScreen mode

* add 5 second sleep to see if it ever goes to full screen mode

* add debugging screenshots and sleeps

* try reloading the Kibana index before this test

* 30 iterations with only the first test enabled

* revert multi-run changes

* ran node scripts/build_renovate_config

* fix tslint errors

* fix tslint error

* update xpack dependency to match oss

* update yarn.lock

* revert notifications:lifetime:info change by reducing some other timeouts

* remove commented-out code

* fixed and Unskipped 2nd test

* re-arrange order of dashboard tests to pass :-(

* removed commented-out sleep

Hopefully this won't be an issue

* Add comment about the order of tests

```
      loadTestFile(require.resolve('./view_edit'));
      // Order of test suites *shouldn't* be important but there's a bug for the view_edit test above
      // https://github.com/elastic/kibana/issues/46752
      // The dashboard_snapshot test below requires the timestamped URL which breaks the view_edit test.
      // If we don't use the timestamp in the URL, the colors in the charts will be different.
      loadTestFile(require.resolve('./dashboard_snapshots'));
 ```
2019-09-27 13:49:51 -05:00
renovate[bot] d7c0f56ac4 Update dependency archiver to ^3.1.1 (#46746) 2019-09-27 08:03:00 -07:00
renovate[bot] 91a3047f87 Update dependency handlebars to v4.3.3 (#46747) 2019-09-27 08:01:41 -07:00
renovate[bot] 886611c18c Update dependency xml2js to ^0.4.22 (#46750) 2019-09-27 08:01:07 -07:00
renovate[bot] 7a95c02dcc Update dependency @types/classnames to ^2.2.9 (#46648) 2019-09-26 16:03:25 -07:00
renovate[bot] da7efe859b Update d3 related packages (#46647) 2019-09-26 12:51:10 -07:00
renovate[bot] a80f21ce8a Update dependency tar to v4.4.13 (#46655) 2019-09-26 12:45:54 -07:00
renovate[bot] 2a990d46f4 Update dependency vinyl-fs to ^3.0.3 (#46652) 2019-09-26 12:45:01 -07:00
renovate[bot] 4f4b8e96bf Update eslint related packages (#46656) 2019-09-26 12:40:18 -07:00
Spencer 52be1375e8
Fix yarn lock integrity (#46638)
* Revert "Updating load-grunt-config to ^3.0.1 (#46408)"

This reverts commit 2733c093e0.

* adapt changes from #46408 to not invalidate yarn state on re-installs
2019-09-25 16:03:42 -07:00
renovate[bot] 8e2878c0bd Update angular+jquery related packages (#46393)
* Update angular related packages

* upgrade jQuery too

* don't delete screenshots in pipeline jobs

* use ng-change so that listener is triggered after ng-model is updated

* match @types/angular versions

* update yarn.lock

* fix test

$routeChangeSuccess is no longer broadcast when resolving a redirect route, so this test has been adjusted to validate that
2019-09-25 12:15:45 -07:00
renovate[bot] 0034293867 Update jest related packages (#46391)
* Update jest related packages

* use correct type

* adapt spy and describe.each types

* update yarn.lock

* update snapshot

* define types before passing to describe.each
2019-09-25 12:00:33 -07:00
Brandon Kobel 2733c093e0
Updating load-grunt-config to ^3.0.1 (#46408)
* Updating load-grunt-config- to ^3.0.1

* Resetting yarn.lock from upstream/master

* Updating yarn.lock, fresh!
2019-09-24 17:57:16 -07:00
Brandon Kobel 69c10fa6df
Updating grunt-karma to ^3.0.2 (#46407) 2019-09-24 15:53:11 -07:00
Brandon Kobel 4505fa07e6
Update js-yaml (#46405)
* Updating eslint's version of eslint to 3.13.1

* Using resolutions to fix the rest, aren't fixed in minor versions
2019-09-24 06:03:55 -07:00
Dmitry Lemeshko 1872ef195b
Update geckodriver to the latest 0.25.0 release (#46309)
* update to new geckodriver v 0.25.0

* run tests with Firefox 10x times

* Revert "run tests with Firefox 10x times"

This reverts commit dfd4358d66.
2019-09-24 08:40:41 +03:00
renovate[bot] c3572032d9 Update dependency jimp to v0.8.4 (#46198) 2019-09-23 18:33:25 -07:00
Josh Dover cbe9161eb5
Update @microsoft/api-extractor + @microsoft/api-documentor (#46193) 2019-09-23 09:50:59 -05:00
Caroline Horn c1fd6eb9b4
Upgrade EUI to 14.2.0 (#46075)
* Upgraded EUI to 14.2.0

* Remove form row + button shim

* Uncomment compressed prop from EuiComboBoxes

* Fix and/or simplify prepend/append usages

* Update two test files to correctly call EuiRange's onChange prop
2019-09-19 12:26:15 -04:00
Spencer 39ee90b6b4
upgrade to elasticsearch 16.4.0 for 7.4 api (#46099) 2019-09-18 22:53:04 -07:00
Dmitry Lemeshko 9a652ce2a4
Update chromedriver to 77 (#45614)
* bump chromedriver to v77

* fix file import
2019-09-18 17:34:12 +02:00
Angela Chuang a70e0f44c1
remove setTimeoue for state change (#45853) 2019-09-17 14:55:19 +01:00
Dmitry Lemeshko fbb014d6f6
[test/functional/services] tsfy FailureDebugging, SavedQueryManagementComponent & Snapshots (#45682)
* [test/functional/services] tsfy failure_debugging, snapshots, saved_query_management_component

* update renovate config

* fix path in snapshot service
2019-09-16 22:04:51 +02:00
Caroline Horn 74b3d84bb6
Update EUI to 14.0.0 (#45475) 2019-09-16 13:59:39 -04:00
Søren Louv-Jansen afb989a634
Bump backport to 4.7.0 (#45587)
* Bump backport to 4.7.0

* Bump to 4.7.1
2019-09-13 10:53:17 +02:00
Jean-Louis Leysens 78cc334c2a
Update dependencies (#45133) 2019-09-11 21:39:13 +02:00
renovate[bot] 767cf06c0d Update dependency @percy/agent (#45311) 2019-09-11 11:52:32 -07:00
Greg Thompson bec1fa63ab
Upgrade EUI to 13.8.1 (#45052)
* eui to 13.8.0

* euibutton ts updates

* euicontextmenupanel ts updates

* misc ts updates

* src snapshot updates

* x-pack snapshot updates

* 13.8.1
2019-09-11 10:03:02 -05:00
renovate[bot] d041d92a36 Update dependency rimraf to v2.7.1 (#45158) 2019-09-09 13:34:14 -07:00
Dario Gieselaar c01a5793ac Upgrade io-ts and fp-ts (#44753)
* Upgrade io-ts and fp-ts

* Add io-ts/fp-ts as top level dependencies

* Merge fp-ts changes from actions plugin

* Use getOrElse instead of fold
2019-09-06 15:40:51 -05:00
renovate[bot] f8dcc4c143 Update dependency opn to ^5.5.0 (#44809) 2019-09-04 13:21:51 -07:00
renovate[bot] 7646ef223c Update dependency is-path-inside to ^2.1.0 (#44808) 2019-09-04 13:21:41 -07:00
renovate[bot] 7ce51a4e87 Update dependency https-proxy-agent to ^2.2.2 (#44807) 2019-09-04 13:17:34 -07:00
renovate[bot] 0001c74370 Update dependency del to ^4.1.1 (#44806) 2019-09-04 13:15:59 -07:00
renovate[bot] a910a7ce3f Update dependency @types/mocha to ^5.2.7 (#44805) 2019-09-04 13:15:41 -07:00
renovate[bot] 739cb22e26 Update sinon related packages (#43952)
* Update sinon related packages

* fix stub types to be compatible
2019-09-03 16:09:24 -07:00
Josh Dover b352f67bdb
Add ApplicationService Mounting (#41007)
* Add core-only bundle

* Add ApplicationService mounting

* Add LegacyCore{Setup,Start}

* Fix PR comments

* Add functional tests

* Fix PR comments

* Fix PR comments

* Remove other usages of rootRoute

* Use state field notation

* Add support for open in new tab

* Fix PR comments

* Fix pesky await from the dead

* Update docs

* Bump @types/history
2019-09-03 13:03:05 -05:00
Tyler Smalley dd7ea467a0
[@kbn/analytics] Updates dependencies and browser entry (#44316)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-29 10:43:36 -07:00
Clint Andrew Hall 910ae8dc8f
Reverting PR 42545 (for now) (#44277) 2019-08-28 12:01:03 -04:00
Nick Partridge 9bc0ec02d8 upgrade elastic charts library - v11.1.1 (#44222) 2019-08-28 10:32:47 +02:00
renovate[bot] dfddf3dbdd Update dependency chalk to ^2.4.2 (#44032)
* Update dependency chalk to ^2.4.2

* update kbn-pm dist
2019-08-27 21:58:53 -07:00
renovate[bot] 28da43a564 Update dependency backport to v4.6.5 (#44030) 2019-08-27 21:57:44 -07:00
Clint Andrew Hall eee003236f
[Canvas] Embedding Workpads in other Websites (#42545)
* [1] Create JSON export endpoint

* [2] Runtime Created + Test Environment

* [3] Reorganizing + Improving UI + CSS Modules

* [4] Make External Embed asset downloadable

* [5] More UI work

* [5] Fixing UI Bugs

* A few tweaks

* Add README

* Addressing feedback

* Fix yarn.lock

* Addressing changes to types

* Updating renovate config

* Add docs; address feedback

* Missed adding a file

* Revising runtime build script + tree shaking

* Addressing feedback

* Add TS + Examples to Workpad Export; create Snapshot Service

* migrate external_runtime script to dev/run

* Convert Workpad Export to TS; Snapshot

* Scope EUI and other CSS; remove snapshot service (for now)

* Update snapshot testing; provide better script

* Update runtime API for effortless embeds

* Major fixes and changes; switched to flyout for embedding

* Switch to HAPI static file service; correct Canvas Workpad type

* Add ts-ignore to inert handler

* Initial ZIP File impl

* Finishing feedback from peers and meetings

* Clean-up

* Use EUI SASS vars, copy changes

* Updating build scripts

* Fix Renovate
2019-08-27 21:45:37 -04:00
Greg Thompson fbca664cd2
eui to 13.6.1 (#44149) 2019-08-27 17:25:24 -05:00
renovate[bot] f706eda5ec Update dependency @elastic/makelogs to ^4.5.0 (#43912) 2019-08-27 14:17:40 -07:00
renovate[bot] 075c68baf3 Update dependency babel-eslint to ^10.0.3 (#44029) 2019-08-27 13:57:15 -07:00
renovate[bot] fea743e01a Update dependency abortcontroller-polyfill to ^1.3.0 (#44027) 2019-08-27 13:52:05 -07:00
Tre 4d1671baca
List grunt tasks from terminal (#43798)
* Add ability to run
$ grunt tasks
# Lists available tasks :)

* Move conf and task to config per review
2019-08-27 14:04:29 -06:00
Greg Thompson 084433fbee
Upgrade EUI to 13.6.0 (#43916)
* eui to 13.6.0

* euirange updates

* euipage snapshot updates

* add classname toggle for nav locking

* new header wrapper component; removed observable

* Add styles for locked nav

And updated BEM naming of `header-global-wrapper`

* move headerwrapper

* isLocked localStorage

* remove useEffect
2019-08-27 14:47:41 -05:00
renovate[bot] 8c4fab9ce2 Update dependency @types/styled-components to ^3.0.2 (#43959) 2019-08-26 12:33:47 -07:00
renovate[bot] 62f4a60be0 Update dependency @types/selenium-webdriver to ^3.0.16 (#43958) 2019-08-26 12:32:12 -07:00
renovate[bot] 382bb8a2ec Update dependency @types/request to ^2.48.2 (#43957) 2019-08-26 12:29:27 -07:00
renovate[bot] 76d8dbde72 Update webpack related packages (#43903)
* Update webpack related packages

* update kbn-pm dist

* update kbn/pm dist
2019-08-26 08:17:52 -07:00
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
Matthew Kime 5e0ec998a3
github-checks-reporter - retry on authentication requests (#39606)
* bump github-checks-reporter
2019-06-25 21:33:32 -05:00
Peter Schretlen 450149dca4
upgrade prop-types to an MIT-licensed version (#39526) 2019-06-25 14:10:56 -04:00
Spencer 083ed43385
Only report the mocha tests once, as "Mocha tests" (#39544) 2019-06-25 07:45:58 -07:00
Mikhail Shustov e43c7cf9e3
window.crypto.subtle cannot be used in insecure env (#39428)
* 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 09:49:06 +02:00
liza-mae 16b8f3bef7
Add rendering of canvas images and update percy agent package (#39456)
* 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 08:34:59 -06:00
Josh Dover 5941436e1b
Remove final legacy dependencies from Header UI (#38175)
* Remove final legacy dependencies from Header UI

* Address @eliperelman comments

* Move files for x-pack move
2019-06-20 15:57:02 -05:00
Court Ewing 2d171c92f5 Fix path references into and out of x-pack/legacy 2019-06-20 13:34:48 -04:00
Tiago Costa c574f50d3d
chore(na): revert relative cache-loader (#39266) 2019-06-19 17:01:51 +01:00
Matthew Kime 0ef77d31ed
github-checks-reporter improved retry (#39213)
* bump github-checks-reporter
2019-06-18 19:42:06 -05:00
Daniil Suleiman e74f22d36a
Upgarde enzyme to v3.10.0 (#38766)
* Upgarde enzyme to v3.10.0

*update snapshots (React components which are using Memo());

*revert pending test in list_control_editor.test.js;

*replace component.html() and component.text() function calls
 which expect null to component.isEmptyRender() for consistency
2019-06-17 18:33:37 +03:00
Marco Vettorello 922e111dd5
Upgrade @elastic/charts to 6.0.1 (#38783)
* Upgrade @elastic/charts to 5.2.0

* Upgrade @elastic/charts to 6.0.1

* Add darkMode theme mock
2019-06-17 15:45:53 +02:00
Greg Thompson c22b706b25
Upgrade EUI to 11.3.2 (#38262)
* eui 11.3.1

* EuiSuperSelect TS updates

* EuiColorPicker updates

* EuiBadge updates

* a11y updates

* i18n service updates

* remove unused translations

* move valueOfSelected logic to private method

* update EuiColorPicker class name

* Updated canvas storyshots

* i18n fixes; maps color selection position

* i18n snapshot updates

* update canvas storyshots

* snapshot updates

* 11.3.2

* maps colorpicker

* space avatar colorpicker
2019-06-14 15:45:35 -05:00
liza-mae 0003a32f56
[WIP] FTR Percy changes (#36897)
* [ftr/percy] integrate percy with functional test runner

* execute ftr within `percy exec`

* share PERCY_BIN and GRUNT_BIN vars in setup

* [license] whitelist `(Unlicense OR Apache-2.0)`

* [percy] include pr/parallel info in env

* echo the actual variable value

* destructure required modules

* [ci] calculate percy env in a script

* remove outdated eslint overrides

* oops, nonce should be the same for each build

* take snapshots in context tests

* add percy snapshots to some dashboard tests

* account for extra execution of PERCY_BIN

* remove usage of percy service

* rename service to `visualTesting`

* write a simple test

* switch left-over percy test to visualTesting

* set log level for percy agent

* trigger ci

* try using the system chrome install instead of downloading one

* fix export definition

* Don't skip chromium download

* Add Spencer's fix to point to chrome installation

* Attempting to split tests into own ci job and test files

* Renumber job

* Add tag to decorations file

* Try new files with existing CI job

* Try again to create a new CI job

* Fix eslint problem with space

* eslint updates

* fix console test

* make test names unique

* Update ci group names

* Try old name again

* save

* add separate visual_regression ci job

* add visual regression ci job

* add new job to jobs.yml

* update path to take_percy_snapshot script

* use fixed percy job total

* fix common services import

* move visual_create_and_add_embeddables to visual_regression project

* finish moving create_and_add_embeddables

* add x-pack visual regression job

* migrate dashboard_snapshots tests to visual_regression

* remove references to removed test files

* restore some unnecessary changes

* reimplement the login page tests

* yarn.lock update

* fix test

* remove old CI_GROUP 100 block

* update failed_tests trap

* reduce yarn.lock changes

* disable debug logging

* disable visual-regression tests for now, we can enable them in specific prs
2019-06-14 10:35:23 -06:00
Zacqary Adam Xeper 74a90b25c0
[Infra UI] Format arrays as ul elements in LogEntryFieldColumn (#38692)
* [Infra UI] Format arrays as ul elements in LogEntryFieldColumn

* Add enzyme test for LogEntryFieldColumn

* Fix tests

* Swap ul's for comma separation

* Use semantic markup for inline list

* Fix tests

* Use ::after element for comma separation

* Move ::after element to :not(:last-child)

* Hoist CommaSeparatedLi

* Use EuiThemeProvider in tests instead of isEnzyme prop

* Suppress type error with issue link
2019-06-14 10:07:35 -04:00
renovate[bot] b7dee440c5 Update webpack related packages (#38729)
* Update webpack related packages

* force updates to transient dep versions
2019-06-12 08:11:51 -07:00
spalger f5ab2a1701 [master] revert vega related upgrades
(cherry picked from commit 4b153a54c8)
2019-06-12 06:50:47 -07:00
renovate[bot] dfe30a9bdf Update dependency xmlbuilder to v9.0.7 (#38702) 2019-06-11 22:37:57 -07:00
Matthew Kime 6c3f15c56d
upgrade transitive dependencies (#38746) 2019-06-12 00:00:48 -05:00
renovate[bot] 2ef6c51149 Update dependency yauzl to v2.10.0 (#38704) 2019-06-11 16:17:50 -07:00
renovate[bot] a8d49ac8f1 Update dependency vega-tooltip to ^0.17.0 (#38700) 2019-06-11 16:16:21 -07:00
renovate[bot] f58ec118a8 Update dependency uuid to v3.3.2 (#38672) 2019-06-11 13:25:59 -07:00
renovate[bot] f9881d2c0c Update dependency vega-schema-url-parser to v1.1.0 (#38674) 2019-06-11 10:57:38 -07:00
renovate[bot] ff252022eb Update dependency vega-lib to v4.4.0 (#38673) 2019-06-11 10:55:57 -07:00
renovate[bot] 2a129e3823 Update dependency ui-select to v0.19.8 (#38671) 2019-06-11 10:51:38 -07:00
renovate[bot] e19b20dca4 Update dependency trunc-html to v1.1.2 (#38670) 2019-06-11 10:51:25 -07:00
renovate[bot] 6650b26ef7 Update dependency tinygradient to v0.4.3 (#38588) 2019-06-11 09:32:22 -07:00
Frank Hassanabad 131e3bf1a2
[SIEM] Change deprecated Buffer method for non-deprecated Buffer method (#38634)
## Summary
  * Added linter rule to prevent us from accidentally adding deprecated node methods
  * Added the new package linter plugin for NodeJS
  * Added unit test for the base 64 encoding for sanity check

Note:
Only the one line of code will be back-ported for the NodeJS fix for 7.2.0. The linter rule will not be back-ported. 

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

- [x] [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-06-10 22:15:11 -06:00
renovate[bot] 228ca2bee9 Update dependency tinymath to v1.2.1 (#38589) 2019-06-10 15:59:44 -07:00
renovate[bot] c6ebda3702 Update dependency rison-node to v1.0.2 (#38453) 2019-06-10 12:28:50 -07:00
renovate[bot] 78af9c8890 Update dependency tar to v4.4.10 (#38502) 2019-06-10 08:37:02 -07:00
renovate[bot] 46b40d0926 Update dependency simple-git to v1.113.0 (#38456) 2019-06-07 14:07:40 -07:00
renovate[bot] dced039b68 Update dependency rimraf to v2.6.3 (#38438) 2019-06-07 12:18:44 -07:00
renovate[bot] 2b05837aac Update dependency regression to v2.0.1 (#38437) 2019-06-07 12:18:28 -07:00
Stacey Gammon bd484391fc
Embeddable API V2 (#37510)
* Embeddable API plugin

* Expose new embeddableActions uiExport endpoint

* Add missing getInjectedUIAppVars to Server type

* Add jest tests

* Most basic skeleton of the sample plugin to see if it still kills ci

* strip even more out to see if it passes ci

* It passed, put back init fn

* add back in a uiExport to see if that is what is killing ci

* Passed again, add back embeddableActions uiExports and require kibana line

* Add everything back but the sass import

* Found two bugs with customize panel title action, added jest test coverage and fixes

* Functionally test embeddable explorer plugin

* Addressing review feedback part 1

* Simplify action context menu - remove support for nested actions/child panels, which was never exposed anyway.

* More review feedback

* Spread out orders to let developers inject their own actions in the middle.

* Remove check for overwriting ApplyFilterAction

* use createRegistry for EmbeddableFactoryRegistry

* Add comment for getInheritedInput

* Use kbn-es-query Filter types

* Fix missed file after createRegistry switch over for EmbeddableFactoryRegistry

* Use delete instead of setting to undefined

* upgrade EUI to match kibana version

* Add getIsContainer on base embeddable class

* Run functional tests of sample plugin

* move all tests classes outside __test__ and inside test_samples folder so not to potentially create issues with mocha

* fix: 🐛 remove unused imports

* fix: 🐛 set to undefined explicitly

* chore: refactored getRoot functionality

* fix: refactor miss from folder rename __test__ -> test_samples

* fix: add eui switch to let the user indicate “hide this title” to improve ux.

* fix: customize panel flout test

* Try to fix issue with multiple rxjs bundles I hit before.

See https://github.com/ReactiveX/rxjs/issues/3828

* Use an rxjs polyfill to work around the issue of multiple rxjs bundles

* chore: change customize panel flyout to modal post design feedback

* capitalize Reset

* fix: type errors in customize panel modal

* fix: remove extra line added to prevent EUICallout overflow from spilling over panel edges

The bug this was intended to fix doesn’t appear yet because dashboard isn’t using this, and it causes other issues, so for now, just remove.

* Clean up some classes and SASS

* Inline styles needed to get the containers to take up the full height of the app.

* Use the same old style of error messaging in panels

* chore: add untilEmbeddableLoaded tests, expose on interface, and use in embeddable_child_panel

* Remove unused styles, add padding

* Verify trigger Context containers an array of Filters for apply filter action

* Remove panel.embeddableId param, use panel.explicitInput.id instead

* Check `isCompatible` as well as the type guard needed for typescript.

* executeTriggerActions should account for getHref

* Remove unnecessary check for context being defined

* use npStart instead of getNewPlatform

* Conform to latest NP changes

* Use new np_mocks in all the tests

* Address review feedback on rxjs polyfill
2019-06-07 13:30:55 -04:00
renovate[bot] c08f3f179b Update dependency nock to v10.0.6 (#37886) 2019-06-07 06:30:26 -07:00
renovate[bot] ed61d9da8b Update dependency proxyquire to v1.8.0 (#37913) 2019-06-07 06:01:18 -07:00
renovate[bot] a6198fc5f5 Update webpack related packages (major) (#38372) 2019-06-07 06:00:29 -07:00
renovate[bot] b4b25e1fc4 Update dependency geckodriver to v1.16.2 (#37798) 2019-06-07 05:59:50 -07:00
Tim Roes cc372800ab
Convert Markdown components to TS (#38081)
* Convert Markdown components to TS

* Fix jest snapshots
2019-06-07 11:46:03 +02:00
renovate[bot] 21ebc9f973 Update dependency @microsoft/api-extractor to v7.1.8 (#38364) 2019-06-06 23:30:59 -07:00
renovate[bot] 85225036f6 Update dependency pegjs to v0.10.0 (#37889)
* Update dependency pegjs to v0.10.0

* PEG.buildParser() => PEG.generate()
2019-06-06 23:29:56 -07:00
renovate[bot] c536a62bc7 Update dependency leaflet to v1.5.1 (#37811)
* Update dependency leaflet to v1.5.1

* update baseline image

* Fix map draw controls

* Update CSS overrides to match updated package
2019-06-06 23:28:36 -07:00
renovate[bot] ea9d245259 Update webpack related packages (major) (#37552)
* Update webpack related packages

* raw-loader@2 uses esm, so we must import
2019-06-06 22:50:06 -07:00
renovate[bot] 297a895460 Update dependency @microsoft/api-extractor to v7.1.6 (#37760)
* Update dependency @microsoft/api-extractor to v7.1.6

* regenerate docs

* OverlayService: Import react instead of relying on global
2019-06-06 19:18:51 -07:00
Spencer 5973c2a08c
[dev/license_checker][dev/npm] reactor, ts-ify, de-grunt (#37807) 2019-06-06 10:16:19 -07:00
Rudolf Meijering ea9721ad13
[Core] Rewrite saved objects in typescript (#36829)
* Convert simple files to TS

* Fix jest tests

* Rename saved_objects_client{.js => .ts}

* WIP saved_objects_client

* saved_objects repository{.js => .ts}

* includedFields support string[] for type paramater

* Repository/saved_objects_client -> TS

* Fix tests and dependencies

* Fix saved objects type errors and simplify

* saved_objects/index saved_objects/service/index -> ts

* Fix saved objects export test after switching to typed mock

* Workaround type error

* Revert "Workaround type error"

This reverts commit de3252267eb2e6bf56a5584d271b55a7afdc1c53.

* Correctly type Server.savedObjects.SaveObjectsClient constructor

* saved_objects/service/lib/index.{js -> ts}

* saved_objects/service/lib/scoped_client_provider{js -> ts}

* Typescriptify scoped_client_provider

* Fix x-pack jest imports

* Add lodash/internal/toPath typings to xpath

* Introduce SavedObjectsClientContract

We need a way to specify that injected dependencies should adhere to the
SavedObjectsClient "contract". We can't use the SavedObjectsClient class
itself since it contains the private _repository property which in TS is
included in the type signature of a class.

* Cleanup and simplify types

* Fix repository#delete should return {}

* Add SavedObjects repository test for uncovered bug

Test for a bug in our previous js implementation that can lead to data
corruption and data loss.

If a bulkGet request is made where one of the objects to fetch is of a type
that isn't allowed, the returned result will include documents which have the
incorrect id and type assigned. E.g. the data of an object with id '1' is
returned with id '2'. Saving '2' will incorrectly override it's data with that
of the data of object '1'.

* SavedObject.updated_at: string and unify saved_object / serializer types

* Cleanup

* Address code review feedback

* Don't mock errors helpers in SavedObjectsClient Mock

* Address CR feedback

* CR Feedback #2

* Add kibana-platform as code owners of Saved Objects

* Better typings for SavedObjectsClient.errors

* Use unknown as default for generic type request paramater

* Bump @types/elasticsearch

* Fix types for isForbiddenError

* Bump x-pack @types/elasticsearch
2019-06-06 10:49:13 +02:00
Tiago Costa 162e13dbdf
Relative cache loader (#36131)
* 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.
2019-06-05 15:17:56 +01:00
Vadim Dalecky a53e480881
feat: kibana-react initial setup (#37206)
* feat: 🎸 add NP TypeScript typings

* feat: 🎸 add kibana-react context provider

* feat: 🎸 add initial in-memory core implementation

* test: 💍 simplify useKibana() tests

* feat: 🎸 add useObservable() hook

* test: 💍 implement initial mock for uiSettings for testing

* feat: 🎸 add useUiSetting() hook

* docs: ✏️ update function name

* test: 💍 use core mock for testing useUiSetting() hook

* chore: 🤖 remove unused types

* chore: 🤖 fix linter error

* test: 💍 move core mock inline

Currently it fails on CI because of the relative import, so moving the
mock inline util it is resolved.
2019-06-03 16:27:13 -07:00
Chandler Prall 86fea48875
Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui (#36316)
* Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui

* update snaps

* Clicking on the svg itself once loaded

* updated snaps

* update icon in snapshots

* Fix snapshot
2019-06-03 12:01:01 -04:00
renovate[bot] 09b1af0bd3 Update d3 related packages (#37786)
* Update d3 related packages

* [ml/explorer_chart/single_metric] update assertion
2019-06-03 07:01:48 -07:00
renovate[bot] 2e14e60128 Update dependency js-yaml to v3.13.1 (#37809) 2019-06-02 09:59:55 -07:00
renovate[bot] 43f546fa8d Update dependency leaflet-draw to v0.4.14 (#37812) 2019-06-02 09:59:36 -07:00
renovate[bot] 0426d301a9 Update dependency node-fetch to v1.7.3 (#37821) 2019-06-02 09:58:15 -07:00
renovate[bot] c80a33f8a8 Update dependency mustache to v2.3.2 (#37816) 2019-06-02 02:47:32 -07:00
renovate[bot] a851018e90 Update dependency lru-cache to v4.1.5 (#37814) 2019-06-02 02:47:19 -07:00
renovate[bot] 65bf608232 Update dependency leaflet-responsive-popup to v0.6.4 (#37813) 2019-06-02 02:47:02 -07:00
renovate[bot] c8bee5ce4f Update dependency json-stringify-pretty-compact to v1.2.0 (#37810) 2019-06-02 02:46:19 -07:00
renovate[bot] 84b074248c Update dependency hjson to v3.1.2 (#37800) 2019-06-01 21:35:08 -07:00
renovate[bot] 05727d750c Update dependency font-awesome to v4.7.0 (#37787)
* Update dependency font-awesome to v4.7.0

* rename license for new font-awesome version
2019-06-01 21:12:03 -07:00
renovate[bot] a293b2d38c Update dependency image-diff to v1.6.3 (#37801) 2019-06-01 19:06:52 -07:00
renovate[bot] 47896b3ec0 Update dependency jimp to v0.6.4 (#37802) 2019-06-01 19:06:10 -07:00
spalger 8f83299cd1 Revert "Update dependency geckodriver to v1.16.2 (#37788)"
This reverts commit 2e1b275338.
2019-06-01 11:45:47 -07:00
renovate[bot] 2e1b275338 Update dependency geckodriver to v1.16.2 (#37788) 2019-06-01 11:45:08 -07:00
renovate[bot] c1347032ce Update dependency encode-uri-query to v1.0.1 (#37765) 2019-06-01 08:10:29 -07:00
renovate[bot] fee2ff9840 Update dependency @types/listr to ^0.14.0 (#37762) 2019-06-01 08:09:06 -07:00
renovate[bot] 996431ae7d Update dependency @types/fetch-mock (#37761) 2019-06-01 08:08:42 -07:00
renovate[bot] 55292e2f52 Update dependency @microsoft/api-documenter to v7.2.1 (#37759) 2019-06-01 08:08:12 -07:00
Dmitry Lemeshko f82e92a077 FTR: add support for Firefox browser (#32509)
* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

* [test/feature_controls] increase timeout to 20 sec & use forceLogout

* FF timeout on TSVB, refresh page on failure for url navigation

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

* skip tile map for FF, wait for render before saving

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback
2019-05-31 15:49:18 -07:00
renovate[bot] 4a94aeeb4c Update dependency compare-versions to v3.4.0 (#37729) 2019-05-31 14:45:34 -07:00
renovate[bot] 35597b2d02 Update dependency dragula to v3.7.2 (#37732) 2019-05-31 14:44:48 -07:00
renovate[bot] 76fe38d49e Update dependency commander to v2.20.0 (#37715) 2019-05-31 13:11:02 -07:00
renovate[bot] 2a297432e7 Update dependency chance to v1.0.18 (#37713) 2019-05-31 13:10:28 -07:00
renovate[bot] 295466cffa Update dependency classnames to v2.2.6 (#37714) 2019-05-31 13:09:52 -07:00
renovate[bot] 58b47d9ac3 Update dependency bluebird to v3.5.5 (#37633) 2019-05-31 08:45:27 -07:00
renovate[bot] a8cdcabd77 Update dependency angular-sortable-view to v0.0.17 (#37611) 2019-05-31 01:53:27 -07:00
renovate[bot] 6fcfff969c Update dependency angular-elastic to v2.5.1 (#37610) 2019-05-31 01:53:12 -07:00
renovate[bot] 72dd2b8f6e Update dependency JSONStream to v1.3.5 (#37609) 2019-05-31 01:52:27 -07:00
renovate[bot] 3c6efd4efa Update dependency handlebars to v4.1.2 (#37595) 2019-05-30 21:51:06 -07:00
renovate[bot] cad3af7f5f Update karma related packages (#37556) 2019-05-30 21:19:10 -07:00
renovate[bot] d182198ac1 Update grunt related packages (#37554) 2019-05-30 15:23:54 -07:00
renovate[bot] c60e3491a2 chore(deps): update dependency del to v4 (#37466)
* chore(deps): update dependency del to v4

* remove @types/del since they ship with the package now
2019-05-30 13:40:35 -07:00
renovate[bot] 62893ec0bc Update gulp related packages (#37456) 2019-05-30 13:40:06 -07:00
renovate[bot] 0416dd8920 Update dependency mocha to v3.5.3 (#37458) 2019-05-30 01:26:16 -07:00
renovate[bot] 9256c74fdf Pin dependencies (#37406)
* Pin dependencies

* include core-js in babel packages

* specify core-js version when using `useBuiltIns`

* dedupe @babel/types to avoid "range of null" problem
2019-05-30 00:31:01 -07:00
renovate[bot] fa597135bc Pin dependencies (#37404)
* Pin dependencies

* [eslint] ignore large files that take a long time to parse

* [eslint-plugin-import] force `querystring` to be considered a core module

* [eslint-plugin-import] auto-fix import order issues
2019-05-29 20:34:52 -07:00
Matthew Kime 8f693be770
bump github-checks-reporter to delay 60s on retries and retry 10x (#37358) 2019-05-29 14:03:04 -05:00
Daniil Suleiman f6e91ccaaa Upgrade enzyme and enzyme-adapter-react-16 to the latest (#37064)
* Upgrade enzyme and enzyme-adapter-react-16 to the latest

* Skip failed expectation

* Update yarn.lock

* Update snapshot
2019-05-29 12:56:55 +03:00
Angela Chuang ac3eb8566b
[SIEM] Replace Eui chart with elastic charts for siem kpis (#36660)
* move charts to separate components

* replace areachart

* apply custom styles

* customize barchart color

* customize color for areachart

* move reusable functions into common

* exchange x & y value in barchart dataset

* replace pure component with react memo and upgrade enzyme adapter
2019-05-29 14:57:38 +08:00
Matthew Kime b5006f1d70
fix github checks with long runs (#36953) 2019-05-23 07:43:54 -05:00
Marco Vettorello c75dc2c311
Update elastic-chart dependency to 4.2.6 (#36753) 2019-05-21 13:57:16 -04:00
Greg Thompson 671760e924 EUI@10.4.1 (#36711)
* update eui to 10.4.1

* revert lock
2019-05-20 18:10:32 -04:00
Spencer e091de9e1c
[dev/precommitHook] add support for --fix flag (#36717)
* [dev/precommitHook] add support for --fix flag

* describe new --fix flag in precommit error text
2019-05-20 14:23:15 -07:00
Todd Kennedy 5f56c30ffd
[chore] upgrade wreck (#36527)
wreck has been deprecated and will receive no further security updates
in favor of @hapi/wreck
2019-05-13 15:36:22 -07:00
Søren Louv-Jansen 672a12039c
Bump backport to v4.5.5 (#36408)
**v4.5.5**
 - Support Github Enterprise by allowing custom Github hostname

**v4.5.4**
 - Add ability to customize PR title (`--prTitle`)

**v4.5.0 - 4.5.3**
 - Add ability to append text to PR description: (`--prDescription`)
 - More helpful message for handling conflict resolution
 - Gracefully handle invalid access tokens
 - Drop ssh keys requirement and use access token for everything
 - Create an official Docker image, which allows users without Node.js and/or git to use Backport

**v4.4.2:**
 - Update all dependencies to latest version
2019-05-10 14:49:50 +02:00
Chris Cowan f632bda105
[Infra UI] Metrics Explorer (#35846)
* Returning live data

* Adding TSVB data population

* adding tests

* Adding UI

* Adding rough draft of metrics control

* Breaking out metric component; adding useCallback to callbacks; adding intl strings

* seperating out form

* Break metrics form out; change to custom color picker; create custom color palette;

* fixing bug with color picker

* changes to color palette; fix callback issue

* Fixing count label

* Fix chart label to truncate

* Changing by to graph per

* Making the metric popover wider to ease field name truncation

* critical changes to the import order

* Changing metrics behavior

* Hide metrics when choosing document count

* Updating chart tooltip; fixing types;

* Setting intial state to open metrics; Tweaking toolbar sizes

* fixing linting issues

* Allow users to filter by a grouping by clicking on the title

* Change rate to rateMax; add rateMin and rateAvg; fix title text-align

* Use relative paths to fix base path bug

* fixing typescript errors; removing rateAvg and rateMin; removing extranious files;

* Fixing formatting issues

* Fixing i18n linting errors

* Changing to elastic-charts

* fixing typing errors with charts

* Moving afterKey out of URL to fix bug with pagination

* Adding support for multiple axises

* Adding tests for useMetricsExplorerData hook

* breaking up the charting code; removing multi-axis support; changing color palette to use blue and red for first two color

* Adding drop down menu to charts for filtering and linking to TSVB

* Adding more tests for useMetricsExplorerData hook; adding error message; adding chart options to non-groupby charts

* only display groupings that have the metric fields

* Refactor page level state into custom hook; add test for options handlers;

* Fixing linting

* removing color picker

* removing useInterval

* Changing group by to use the pills; Changing context menu button; adding icons to context menu.

* Adding test for color palette

* Adding test for createFormatterForMetric()

* removing tsx extension; adding tests for createMetricLabel()

* removing tsx extension; adding tests for createMetricLabel()

* re-organizing helpers

* Moving helpers from libs to helpers; adding test for metricToFormat

* Fixing bug in tsvb link fn; adding timeRange props; adding createTSVBLink() test

* fixing timeRange fixture import; fixing aria label for action button

* removing some unecessary useCallbacks

* Adding test for MetricsExplorerChartContextMenu component

* Fixing linting issues

* Optimizing test

* Adding empty prompts for no metrics and no data

* Removing duplicate sereis def

* tcs has lost it's mind so I had to copy enzyme_helpers.tsx into our plugin

* Appeasing prettier

* Update x-pack/plugins/infra/public/components/metrics_exploerer/metrics.tsx

Co-Authored-By: simianhacker <chris@chriscowan.us>

* fixing path typo

* Adding supportFiltering to dependicy; change options to be more specific

* remove typo

* Fixing typo

* Adding logColumns to source fixture; fixing typo

* Fixing path to be more sane
2019-05-08 09:23:45 -07:00
Eli Perelman a8d1a31a82
Revert "Handle encoding and decoding of angular route url components (#34300)" (#36226)
This reverts commit ed97dc6952.
2019-05-08 10:12:50 -05:00
Matthew Kime 272e0b3f19
github-checks-reporter repeat all failures (#36152)
* bump github-checks-reporter
2019-05-07 07:36:55 -05:00
Matthew Kime efe1a471c8
github-checks-reporter retry (#36115)
* bump github-checks-reporter for http retry
2019-05-06 13:22:24 -05:00
Rudolf Meijering 92b7cbbb4d
[Core] Fix core api changes exit code (#36053)
* Bump api-extractor to fix missing warning bug

* Fix api-extractor not failing build on api changes

Workaround for upstream bug

* Don't fail build for api-extractor warnings

Warnings like forgotten exports won't fail the build. Instead these
will be added as comments to the api review files. Thus even though
the build won't break, these warnings will show up in code review and
should be fixed by the author.

This is to allow us to merge the workaround for the upstream bugs
without breaking master until we've addressed all the warnings.
2019-05-06 10:15:40 +02:00
dave.snider@gmail.com d1b189442c
EUI@10.4.0 (#36085)
* EUI@10.4.0

* Fix TS typing in src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
2019-05-05 21:37:07 -07:00
Spencer 1e57e6565c
Revert "Relative cache loader (#35406)" (#36022)
This reverts commit b0e2ab0de9.
2019-05-03 06:15:14 -07:00
Chandler Prall d449ff4e3f
Update EUI 10.1.0 -> 10.3.1 (#35970) 2019-05-02 12:27:36 -06:00
Larry Gregory ff46f19d1d
Update archiving dependencies (#35896)
* update tar to latest (4.4.8)

* remove unused bz2 extraction code

* update geckodriver to latest (1.16.2)

* update untar to ensure destination exists
2019-05-02 13:14:10 -04:00
Alexey Antonov 5b6bc86815
Replace react-anything-sortable with maintained alternative (#35356) 2019-05-02 13:37:45 +03:00
Tyler Smalley 3b3e6447c6
Upgrade jQuery to 3.4.1 (#35908)
Fixes #35419
Fixes #35392

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-01 21:44:35 -07:00
Tyler Smalley 31d02926e3 Bump elasticsearch-js to 15.5.0 (#35910)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-01 17:47:49 -07:00
Matthew Kime e7290e3490
implementing github checks - second attempt (#35757)
implement github checks in ci
2019-05-01 16:02:33 -05:00
Rudolf Meijering eb17289602
Unlink destination before copy-on-write (#34852)
* Unlink destination before copy-on-write

* Catch unlink exception if destination file doesn't exist

* Add link to upstream node issue

* Add .node_binaries to kbn cleanup

* Remove unlink call

* Remove fs.copy()

* Fix extract_node_builds_task test

* Remove copy from build/lib exports
2019-05-01 20:13:58 +02:00
Peter ae01c5fc36
update style it version to use MIT license version of react-lib-adler32 (#35754) 2019-04-30 19:51:42 -07:00
Eli Perelman ed97dc6952
Handle encoding and decoding of angular route url components (#34300)
* Fork angular for use in Kibana

* Remove custom URL codec logic in favor of fixed forked angular behavior

* Remove legacy angular URL route encoding

* Revert changes to APM plugin to give back control of corrective codecing
2019-04-30 11:16:42 -05:00
Brandon Kobel e1c3903860
Upgrading handlebars to 4.0.14 (#35755) 2019-04-29 12:59:54 -07:00
Tiago Costa b0e2ab0de9
Relative cache loader (#35406)
* 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
2019-04-29 15:08:56 +01:00
Chandler Prall 352971eb3d
Force EUI's corejs to resolve to kibana's (#35600) 2019-04-26 09:41:53 -06:00
spalger 3b71d997e4 update chromedriver 2019-04-24 09:45:05 -07:00
spalger 76834031aa Revert "implementing github checks (#34673)"
This reverts commit 7e81413572.
2019-04-23 15:47:05 -07:00
Fuyao Zhao 4676aea527 Merge branch 'feature/merge-code' 2019-04-23 11:18:03 -07:00
Dmitry Lemeshko 8a7d570ce3
bump chromedriver to 73 (#35395) 2019-04-23 16:23:07 +02:00
spalger fc534e53fb Merge branch 'master' of github.com:elastic/kibana into pr/33438 2019-04-23 06:24:58 -07:00
Brandon Kobel 77b6a9ae9b
Adding hapi-auth-cookie to Kibana's root package.json (#35420)
With the introduction of https://github.com/elastic/kibana/pull/34631
OSS Kibana now has a dependency on hapi-auth-cookie, but it's missing
from the package.json
2019-04-22 11:32:15 -07:00
Fuyao Zhao 91cb4c739d Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-22 09:11:17 -07:00
Chandler Prall dc9b299903
Update EUI to v10.1.0 (#35402) 2019-04-22 09:41:51 -06:00
Fuyao Zhao a86477d2f1 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-19 15:54:33 -07:00
Matthew Kime 7e81413572
implementing github checks (#34673)
implement github checks with github-checks-reporter
2019-04-19 15:33:48 -05:00
Jason Rhodes 29dfbd39d5
[APM] Refactors property tables into single metadata table (#35150)
* Refactors property table usage with new components and tests

* Changes default tab for transaction detail view

* Small refactors to property table

* Review feedback

* Updates translations

* Refactors metadata and adds tests

* Rearranges documentation links to prefer declarative component

* Removes unused component

* Improves metadata component tests and removes giant snapshots
2019-04-18 16:27:53 -04:00
Nathan Reese 68b67e5a80
bump numeral.js to fix negative time formatting bug (#35298)
* bump numeral.js to fix negative time formatting bug

* update x-pack dependency
2019-04-18 11:42:16 -06:00
Vitali Haradkou 25f825951f
[FTR] tsfy find & webdriver (#33494)
* migrated find and browser services to typescript
2019-04-18 10:19:11 +03:00
Fuyao Zhao deb5881ad7 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-17 21:47:00 -07:00
Bill McConaghy e16bb422ba
adding spec to console utility as Kibana script (#35232)
* adding spec to console utility as Kibana script

* fixing yarn.lock

* aligning dep versions with Kibana

* fixing test
2019-04-17 20:40:32 -04:00
Greg Thompson e05098dd27
Upgrade EUI to v10.0.1 (#35112)
* eui@10.0.0; tsconfig update

* limit key lookups to strings

* Search Profiler hightlight details flyout classes

* bump

* snapshot updates

* x-pack snapshot updates
2019-04-17 09:16:34 -05:00
Spencer c2a1f92591
[dev/run] add ability to register callback for clean up (#35119)
* [dev/run] add ability to register callback for clean up

* remove old onExit option

* update docs to mention `addCleanupTask`

* update yarn.lock
2019-04-16 16:21:12 -07:00
Brandon Kobel 8bd06fc370
Updating jQuery to 3.4.0 (#35177) 2019-04-16 14:16:23 -07:00
Rudolf Meijering 764bf252fb
[new-platform] Explicitly define core setup types (#34817)
* Explicitly define BasePathSetup type

* Explicitly define I18nSetup type

* Explicitly define InjectedMetadataSetup type

* Explicitly define FatalErrorSetup type

* Fix lint errors

* Fix BasePathSetup types

* Fix lint errors

* Clarify basePath add() docs

* Upgrade api-documenter for 'do not edit' header

* Use @link references on CoreSetup to improve doc navigation

* Add comment that links to upstream api-documenter issue

* PR Comments: make FatalErrorsService.add() private

* Revert "PR Comments: make FatalErrorsService.add() private"

This reverts commit fe9e6e62df.
2019-04-16 22:19:13 +02:00
Mikhail Shustov a202232438
[New platform] HTTP & Security integration (#34631)
* Add Auth session

* add lifecycles

* add types for hapi-auth-cookie

* expose interceptors from http service

* add integration tests

* update tests

* session storage cleanup

* get SessionStorage type safe

* add redirect, clear cookie security integration tests

* add tests for onRequest

* add tests for onAuth

* register Auth interceptor only once

* refactor redirect tests

* fix typings, change error message, test suit naming

* add integration test for session validation

* add tests for cookie session storage

* update docs

* add integration tests for onRequest

* update docs

* cleanup onRequest integration tests

* Generate docs for AuthToolkit & OnRequestToolkit

* add test for an exception in interceptor

* add test OnRequest interceptors dont share request object

* cleanup

* address comments from @eli

* improve typings for onRequest

* improve plugin typings

* re-generate docs

* only server defines cookie path

* cookieOptions.password --> cookieOptions.encryptionKey

* CookieOption --> SessionStorageCookieOptions

* address comments @joshdover

* resolve conflict leftovers

* update @types/hapi-auth-cookie deps

* update docs
2019-04-16 20:47:20 +02:00
Fuyao Zhao fdab56a869 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-16 11:22:07 -07:00
Spencer cce64060d0
[npm] upgrade getopts (#34603)
getopts added the `string` option in a recent version, which I didn't realize when I made updates to src/dev/run/run.ts, which rely on this option. To make sure it is available this updates getopts in all projects from `2.x` to `^2.2.4`
2019-04-15 14:39:34 -07:00
Fuyao Zhao a17a9e9dbf Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-15 08:27:05 -07:00
Larry Gregory a3093adcfa
Revert "Upgrade js-yaml to 3.13.1" (#35026)
Reverts elastic/kibana#34987
2019-04-14 11:02:36 -04:00
Rudolf Meijering 3bf8cd5e08
[new-platform] Core docs: bump api-extractor (#34925)
* Bump api-extractor

* Update docs with latest api-extractor

* Fix lint errors

* Update docs after master merge
2019-04-13 09:50:09 +02:00
Dmitry Lemeshko 7a910632c0
bump chromedriver to 2.46.0 (#27302)
* bump chromedriver up to 2.46.0

* print chromedriver version

* [services/web_element_wrapper] use js to clear input field

* add clearValueWithKeyboard

* fix clearing datePattern input

* fix scripted fileds preview tests
2019-04-12 19:33:45 +02:00
Larry Gregory 83b8ff3713
Upgrade js-yaml to 3.13.1 (#34987) 2019-04-12 10:15:33 -04:00
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 2b0e73d15a Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-08 13:04:19 -07:00
Rudolf Meijering 7a8301e43b
[new-platform] Core API Review process documentation (#34735)
* Core API Review process documentation

* Add links to public/server api docs and migration guide
2019-04-08 21:14:15 +02:00
Fuyao Zhao 0e69d70440 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-05 10:35:58 -07:00
Tiago Costa ed795d28ee
Migrate from tslint (#33826)
* chore(NA): remove tslint dependencies, configs and enable eslint typescript parser.

* fix(NA): apply recommend eslint typescript rule.s

* chore(NA): upgrade eslint package versions.

* chore(NA): split javascript eslint config in an override section.

* chore(NA): split all eslint configs with overrides.

* chore(NA): remove missing console.log.

* chore(NA): change eslint splits and overrides order.

* chore(NA): replace tslint disable comments with eslint ones.

* chore(NA): solve eslint typescript errors for elastic/kibana-custom/no-default-export

* chore(NA): fixed multiple eslint typescript rule failures.

* chore(NA): add tarfet folder to the eslint ignore.

* chore(NA): apply prettier rule to ts type file.

* chore(NA): remove last mentions to tslint

* chore(NA): add old defined rules

* chore(NA): missing port rules website

* chore(na): ordered rules

* chore(NA): solved eslint typescript problems.

* chore(NA): fix spaced comment problems.

* chore(NA): fix some more eslint typescript rules: import/order no-empty-interface

* chore(NA): fix last rules and comment out what are the ones still failing.

* chore(NA): comment out camelcase rule.

* chore(NA): regenerate kbn pm dist.

* chore(NA): updated snapshots.

* chore(NA): updated snapshots.

* chore(NA): disabled sort-keys rule.

* chore(NA): remove rule prefer-arrow/prefer-arrow-functions.

* chore(NA): fix for @typescript-eslint/no-var-requires rule.

* chore(NA): fixes for @typescript-eslint/camelcase rule.

* chore(NA): fix typo on eslint config kibana typescript.

Co-Authored-By: mistic <tiagoffcc@hotmail.com>

* chore(NA): remove legacy note after the intellij upgrade to 2019.1

* fix(NA): import order plugin.

* chore(NA): fix ts ignore positions after auto fix.

* fix(NA): performance issue with typescript eslint.

* refact(NA): eslint configs organization.

* chore(NA): apply resticted paths to ts files too.

* chore(NA): split comment from eslint ignore.
2019-04-05 17:45:23 +01:00
Fuyao Zhao f808112424 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-04 09:08:35 -07: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
Larry Gregory bb568e7ebe
Upgrade jimp to 0.6.0 (#27206) 2019-04-03 08:10:13 -04:00
Rudolf Meijering 5c457972d4
Generate core API docs from TSDoc comments (#32148)
* Generate core API docs from TSDoc comments

Uses api-extractor and api-documenter to generate documentation for
the Kibana core API from TSDoc comments in the source code.

Documentation can be generated using `npm run docs:api`.

I used --no-verify to ignore the following pre-commit hook errors:
1. Filenames MUST use snake_case - api-extractor.json
   It's possible to specify a different config file, but I prefer to keep the "standard" config file name.
2. UNHANDLED ERROR: Unable to find tsconfig.json file selecting "common/core_api_review/kibana.api.ts". Ensure one exists and it is listed in "src/dev/typescript/projects.ts"
   This is not a source file, so safe to ignore.

* Flesh out API docs a little bit

* Ignore snake_case check for api-extractor.json

* Ignore api-extractor's review file from pre-commit check

* Try to fix build failing by using masters yarn.lock

* I'm being stupid

* Found a better home for ignoring common/core_api_review/kibana.api.ts

* Node script for detecting core API changes

I initially wanted to include this as a precommit hook, but it takes
quite long to execute (~12s) so might be better suited as a test or
as part of the release process.

The script currently fails because api-extractor uses an older version
of typescript.

* Fix tslint precommit hook ignore condition

* Write tsdoc-metadata.json into ./build

* Add LogMeta and ElasticSearch to exported types & docs

* Suppress logging when running api-extractor from script

* Improve check_core_api_changes script and run as test

* Inline api-extractor.json config

* Fix check_core_api_changes --help flag

* LogMeta TSDoc comments

* check_core_api_changes: fail if api-extractor produces warnings or errors

And print more useful messages to the console

* Move ignored ts files list into dev/file

* Add back build:types since api-exporter cannot operate on source files

* Upgrade api-exporter/documenter

* api-extractor: independantly analyze core/public and core/server

Becasue of https://github.com/Microsoft/web-build-tools/issues/1029
api-extractor can't use core/index.ts as a single entry point for
analyzing the public and server API's as isolated namespaces.

Instead we analyze these projects separately. This introduces other
problems like the api review files and documentation always being
called "kibana." from the package.json filename.

* Build types as part of build task

* Include types in typescript browser compilation

* Force inclusion of core/public for building types

* Fix api review filename in api-exporter errors

* Update docs and API review files

* Fix api-extractor warnings

* Remove ts file ignored list since it's no longer necessary

* Rename exported api package name

* Review comments

* Export other missing types

* Upgrade api-documenter to latest beta

* Export more missing types

* Fix warnings and add api-exporter to Jenkins tests

* Correctly handle runBuildTypes() exceptions

* Fix another swallowed exception

* Fix api-extractor warnings after master merge
2019-04-03 12:26:00 +02:00
Fuyao Zhao 2263207bac Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-04-01 13:07:47 -07:00
Spencer 7202398c01
[geckodriver] use cached archive if it matches the dep (#34214)
We've seen a good number of geckodriver download failures recently, so we should treat it the same way as chromedriver and cache the download in the packer cache and reuse it when possible.

See https://github.com/vladikoff/node-geckodriver/pull/62
2019-03-31 15:29:36 -07:00
Spencer 41e49cf93f
[yarn] upgrade geckodriver (#34216) 2019-03-29 21:05:24 -07:00
Fuyao Zhao 4aea4e5247 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-29 11:32:39 -07:00
Brandon Kobel b21f048df9
Upgrading less to ^2.7.3 (#34168) 2019-03-29 10:21:39 -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
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
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
CJ Cenizal 33fa8c0c6b
Add eslint rule for checking React Hooks best practices. (#33901)
* Rename Console's useResizeChecker to applyResizeCheckerToEditors, to bypass greedy react-hooks lint rule.
2019-03-26 20:18:14 -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
Stacey Gammon f5010cc8e6
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
2019-03-26 12:31:10 -04: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 096293a180 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-25 08:01:00 -07:00
Spencer 96206bd092
[eslint] merge custom rules into a single plugin (#33733)
I'd like to add another custom eslint rule, but there isn't a very good place to do that right now. We have the `eslint-plugin-kibana-custom` package, which is super simple but isn't in the `@kbn` namespace and isn't included in the root eslint config, and `@kbn/eslint-plugin-license-header` is too specific, so I've merged those two packages into `@kbn/eslint-plugin-eslint`, which is a little redundant but allows is to refer to the rules within it as `@kbn/eslint/{rule}`, which feels nice.

Thoughts?

_**NOTE:**_ merging the eslint rules from the two packages means enabling prettier for the code from `@kbn/eslint-plugin-license-header`, all those changes are made in 42c7da6fe2. [View the changes without the prettier updates](b647f2b...74e07a0)
2019-03-22 17:12:14 -07:00
Fuyao Zhao a2e7045a85 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-22 13:41:24 -07:00
Matthew Kime ab8a2b1777
Dashboard typescript (#32703)
Typescript Dashboard bits - grid, panel, viewport
ui/exit_full_screeen
2019-03-22 14:53:24 -05: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
Peter Pisljar fec0f6c40a
adding runPipeline tests (#27015) 2019-03-21 07:12:25 +01: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
Rudolf Meijering 1ffb261788
Expose core api types in /public and /server (#32746)
* Expose core api types in /public and /server

* Export CoreStart from core/public

* Export Server and Public from 'kibana'

* Cast frozen object type back to original

The exported type `InjectedMetadataStart` derives it's type from the returned values.
Since it's internal state is frozen the type changes to `ReadOnly<`. However, consumers
of the API shouldn't have to know or care about this type.

* Be more selective with what gets exported

* Fix type imports in tests

* Fix type errors

* Remove src/type_exports.ts

* More remove src/type_exports.ts

* Remove build:types

* Fix bootstrap import

* Expose internal API's at the top level

Exposing the internal API's at the top level of core/public and core/server
makes it obvious that these API's are consumed outside these modules. Marking
these @internal ensures they don't get exported as part of the documentation.

* Fix tests

* Put core/{public/server} in their own namespaces
2019-03-19 08:35:19 +01:00
Fuyao Zhao 3a1a49f354 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-18 17:52:37 -07:00
Robert Monfera 45d6453fa7
Test: TypeScript type specification strength tests (#32905)
* Test: TypeScript type specification strength tests

* Chore: post-merge lint

* Post-merge conflict fix
2019-03-15 23:58:25 +01: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 4245a7b693 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-12 09:33:55 -07:00
Varun Sharma d301433ca9 Removes Unused react-toggle dependency. (#29086)
* Removes Unused react-toggle dependency.

* PR #29086 Updates yarn.lock
2019-03-11 15:44:23 -07:00
Nathan Reese b5c958ea53
[Input controls vis] replace react-input-range with EuiDualRange (#31119)
* [Input controls vis] replace react-input-range with EuiDualRange

* remove unneeded styles

* correctly format I18n with variables

* fix problems with long decimals

* fix one test case

* clean-up error message text, remove extra commas in jest test

* fix bug where values were returned as strings

* use i18n.translate instead of passing formatMessage into isRangeValid

* assert error message in isRangeValid unit test

* changes from node scripts/i18n_check --fix

* remove localization from RangeControl component since it no longer has any text, update snapshots

* another snapshot update

* ensure min and max are not null

* check for value before checking if min/max is null
2019-03-11 16:25:29 -06: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 6a1fc64c39 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-08 00:40:10 -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 cfbc0faed9 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-06 14:09:38 -08:00
Spencer a7e1061bad
Typescript-ify FTR Remote (#32447)
* [ftr] flatten GenericProviderTypes to fix "log" types

* [ftr/remote] typscript-ify

* remove webdriver types, since they're version 3 and we're using version 4

* simplify initWebDriver() function

* keep jest tests in the functional tests as js, mixing jest and mocha types doesn't work
2019-03-06 07:25:59 -08:00
Mike Côté 399067a491
Basic server side export API for saved objects (#30326)
* Initial work for new server side export API

* Revert UI changes, API only in this PR

* Remove whitespace at top of export.asciidoc

* Add tests around limitations

* Add comment

* Convert some files to typescript

* Move Boom.boomify to where the errors are created

* Use Boom.badRequest for now

* Fix lint issue

* Move files

* Update tests

* Add functional test

* Export all documents by default

* Update test assertions

* Use ~10000 saved objects in export api integration test

* Convert route to typescript, add content-type response header

* Move some tests to api_integration

* Use new sort and rename functions/variables

* Move tests to API integration

* Cleanup and finalize api integration tests

* Make type or objects required but not both in the same call

* Add spaces / security tests

* Add noTypeOrObjects to security / spaces tests

* Use json-stable-stringify and add tests for export ordering

* Address self feedback, add without kibana index test

* Only allow export API to export index-pattern, dashboard, visualization and search type objects

* Make import export size configurable and fix broken tests

* Fix broken tests

* Move test config to mock server

* Add more typescript types instead of using any

* Convert request from GET to POST

* Fix saved objects mixin test

* Update src/legacy/server/saved_objects/lib/export.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Apply PR feedback

* Fix lint error

* Update test snapshots due to jest upgrade

* Add error handling for bulkGet

* Split export API into two endpoints

* Update src/legacy/server/saved_objects/routes/export_by_type.test.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update docs/api/saved-objects/export_by_type.asciidoc

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update docs/api/saved-objects/export_by_type.asciidoc

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update src/legacy/server/saved_objects/routes/export_objects.test.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Apply PR feedback

* MockServer -> createMockServer

* Revert back to single API

* Re-apply PR feedback
2019-03-05 15:42:02 -05:00
Fuyao Zhao c57b16ce95 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-04 17:23:36 -08:00
Fuyao Zhao b35553f733
Enforce all packages uses same typescript version (#32440) 2019-03-04 16:35:47 -08:00
Fuyao Zhao 6c6e79ec4a Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-03-04 13:59:30 -08:00
Chandler Prall 8b0e3a7de1
Fix IE11 by pinning top-level core-js node module to 2.5.3 (#32159)
* Fix IE11 by pinning top-level core-js node module to 2.5.3

* Re-force core-js in yarn.lock
2019-03-04 12:38:50 -07:00
Spencer a6afcc5b66
Restore webdriver-based functional test runner driver (#31446)
* Restore webdriver-based functional test runner driver

* run all function test suites 6 times per build, to help spot flakiness

* [tests/reporting] fix flaky click on report generation

* [#31446] stabilize x-pack-ciGroup6 (#31447)

* rerun x-pack-ciGroup6 40 times

* improve reporting tests stability (#31454)

* Revert "rerun x-pack-ciGroup6 40 times"

This reverts commit 63026b1a53.

* Fix Dashboard Save tests (#32112)

* [page_objects/dashboard_page] add waitDialogIsClosed to manage dashboard popup behaviour

* [page_objects/dashboard_page] add waitDialogIsClosed flag

* services: leadfoot -> webdriver

* [services/lib/web_element_wrapper] extend type with charByChar input (#32305)

* Revert "run all function test suites 6 times per build, to help spot flakiness"

This reverts commit 477099337a.
2019-03-01 17:53:05 -08:00
Mikhail Shustov d89a97fb14
update @types/node to latest v10 (#32306) 2019-03-01 17:44:10 +01:00
Fuyao Zhao c4f4f2e982 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-28 22:50:11 -08:00
Spencer 4749c6aab6
[ts][ftr] improve types for ftr and expect.js, cleanup changes to tsconfig files (#31948)
In https://github.com/elastic/kibana/pull/31234 there were some extra changes that I've reverted, like use of the `tsconfig-paths` package to magically rewrite import statements to defy the standard node module resolution algorithm, the inclusion of several unnecessary options in the `test/tsconfig.json` file, and changes of the line-endings in the config files. This also brings a few enhancements from https://github.com/elastic/kibana/pull/30190 including a modularized version of the expect.js types, and options for explicit mappings for the PageObjects and services used in ftr tests.
2019-02-28 12:06:00 -08:00
Jonathan Budzenski 95a3284637
Bump node to 10.15.2 (#32200) 2019-02-28 10:48:42 -06:00
Mikhail Shustov 8c6b1e5908
Update Typescript to the latest version (#32063)
* bump typescript version to 3.3.3333

* fix tests after updating TS version

* suppress type errors until they fixed appropriately

* address comments

* add type def for UnconnectedKibanaLink

* remove fix @ts-ignore

* fix snapshot test. provide displayName
2019-02-28 17:21:47 +01:00
Mikhail Shustov 5fc7addac5
Update jest to v24 (#31825)
* udpate jest, jest-cli, @types/jest to v24

* fix type error in kibana-i18n package

* return serivce explicitly to fix typings

* add explicit never

* suppress typings errors

* update jest versions in x-pack

* make tests in x-pack more robust and fix incompatibility

* suppress CallCluster mock typings

Mock interface doesn't match CallCluster. Requires
additional work

* x-pack. resolve other typing conflicts

* remove unused types/jest

* fix snapshots

* restore mocks after jest.spyOn

* remove outdated definitions for jest

* cleanup x-pack package.json and update @types/jest

* fix tests merged from master

* updated yarn.lock and log errors for scripts/type_check

* This commit fixes error in TS, which failed on parsing the file.

* suppress type errors from master

* jest-cli is devDep
2019-02-28 13:26:16 +01:00
Aleh Zasypkin 2f62e6f1a5
Upgrade @babel/* dependencies. (#32031)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2019-02-27 19:27:40 +02:00
Fuyao Zhao 6de9fa00d9 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-22 12:30:12 -08:00
Vitali Haradkou 75e49e667c tests typescript migration (#31234)
* add typescript support for functional tests
2019-02-21 19:38:54 -06:00
Fuyao Zhao 240eac612c Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-21 14:28:32 -08:00
Felix Stürmer 6e31c1d127
Upgrade react to 16.8.3 (#31268) 2019-02-21 11:27:35 +01:00
Fuyao Zhao be376d1d70 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-19 16:10:27 -08:00
Marco Vettorello 00fbc2572e
Removed old package, fix import (#31428) 2019-02-19 12:23:03 +01:00
Spencer a48a03cd3e
Revert "Replace Leadfoot with WebDriver API (#26477)" (#31382)
* Revert "Replace Leadfoot with WebDriver API (#26477)"

This reverts commit 0bd3b4fdfb.

* leadfoot expectes execute args to be an array

* disable flaky graphql tests
2019-02-17 18:59:03 -08:00
Dmitry Lemeshko 0bd3b4fdfb
Replace Leadfoot with WebDriver API (#26477)
* [services/browser] switch to webdriver API

* [services/find] switch to webdriver API

* [services/remote] update to use webdriver service

* rename WebDriver service

* [services/remote] remove browser_driver_api

* [services/find] update to use WebDriver element wrapper

* [services/web_element_wrapper] use wrapped elements

* [services/find] use element wrapped moveMouseTo function

* [services/find] fix webdriver service init, add missing functions

* add missing functions for Leadfoot Element API

* [services/web_element_wrapper] add search by tag name

* tune WebDriver API calls to match Leadfoot

* Fixed implementation of moveMouseTo that is causing el.getClientRect error.

* fix references to WebElementWrapper

* [services/find] fix findElement call on webElementWrapper object

* fix issues in find and test_subject services

* [web_element_wrapper] add search by partial link text

* [services/find] adjust wrapper functions with Leadfoot API to support tests

* fix dragAnDrop & filer on elements displayed

* [visualise_page] improve searching of bucket element

* [discover_page] wait for visualisation loaded + dragAndDrop

* [service/find] fix exists, add pressKey for element

* fixes for visualize tests

* [services/browser] update dragAnddrop

* Made change to test to use move() code path in drag and drop.

* tune page objects for chart tests

* fix discover & xpack tests

* [page_objects/upgrade_assistant] fix locator

* [page_objects/discover_page] retry on brushHistogram to fix staleElementException

* update dragAndDrop, retry on getHeaders

* retry on getTextTag

* [services/screenshots] fix webdriver image take

* skip histogram brushed test & remove --bail

* use legacyAction for dragAndDrop with offset

* add missing await

* page objects update

* increase mocha timeout to 5 min

* use data-rendering-count to track visualization loading completion

* adjust waitForVisualizationRenderingCompleted

* [page_objects/visualize_page] add waiting for visualization

* fixes for xpack functional tests

* improve logging in find & testSubjects

* [services/find] fix wrapped element usage

* [page_objects/visual_builder_page] use BACK_SPACE key, supported by WebDriver

* page objects fix

* [services/test_subjects] add async/await

* [visualize/_tile_map] add missing await in tests

* fix tile_map tests for webdriver

* replace bluebird.prop with async/await

* try to wait for rendering in openLegendOptionColors

* additional logs in find.allByCssSelector

* [services/find] fix implicit wait  handling

* fix mapping in getRowsFromTable

* add timeouts and waitForVisualisation in failed tests

* [services/test_subjects] set default timeout to FIND_TIME

* [services/test_subjects] replace bluebird.filter with for loop

* replace retry.try with waitForVisualisation

* add 'visualize' PO import

* [services/web_element_wrapper] add scrollIntoView support

* fixing kibana-intake

* fixes after merging master

* Switching browser temporarily to firefox to get a CI run on FF.

* set chrome back to default browser

* print logs for some WebElementWrapper functions

* fix _wrap function

* update NOTICE.txt

* Fixed some firefox config to get the browser working. Consolidated some of the calls to build out the driver.

* Cleaning driver instance creation

* Added network throttling option for chrome.

* fix implicit wait setting

* uncomment bail

* adjust waiting for timepicker popup

* [services/inspector] process table in sequence

* Added conditional for TEST_THROTTLE_NETWORK option along with updating the speed and comments.

* add cheerio checks

* [services/apps_menu] get links quicker via innerHtml

* install webdriver dependency via yarn

* [services/combo_box] wrap getComboBoxSelectedOptions with retry

* remove leadfoot

* [testSubjects] remove unnecessary method

* [ftr/browser] explicitly export specific keys, keep `BACKSPACE` name

* Revert "[ftr/browser] explicitly export specific keys, keep `BACKSPACE` name"

This reverts commit 779335f2d4.

* [ftr/filterBar] allow finding filters even if they're off the page

* [webdriver] write verbose logs

* [webdriver] shim executor to run all commands in series

Best we can tell WebDriver locks up sometimes when we send too many
commands at once, sometimes... It causes random lockups where we never
receive another response from WedDriver and we don't want to live with
that risk, so for now I've shimmed the Executor class in WebDiver to
queue all calls to Executor#send() if there is already a call in
progress.

* [webdriver] add comment about why we're shimming

* [webdriver] fix queue, actually put things there and take things off

* run all functional four times per build

* [webdriver] extract preventParallelCalls to test it

* Revert "run all functional four times per build"

This reverts commit f91996d977.
2019-02-16 08:29:29 +01:00
Chandler Prall bf0efec8b3
Upgrade EUI to 7.1.0 (#31282) 2019-02-15 11:03:52 -07:00
Joe Reuter 562edd6578
Downgrade vega to 4.3 (#31274) 2019-02-15 17:50:09 +01:00
Joe Reuter 2ede2e330e
Update vega to version 4 (#30628) 2019-02-14 11:35:05 +01:00
Fuyao Zhao 572a2b56c4 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-13 22:54:21 -08:00
Nathan Reese 892ccc241a
bump EUI to 7.0.0 (#30980) 2019-02-13 11:55:28 -07:00
Mike Côté e60d6d119d
Clone saved object document before migrating to prevent accidental mutations (#30475)
* Clone saved object document before migrating to prevent accidental mutations

* Add tests

* Add example comment

* Use latest version of lodash cloneDeep

* Revise spaces functional tests to use same sample data.

* Fix broken test
2019-02-11 16:01:12 -05:00
Spencer 133ba2360f
[esArchiver] stable archives (#30477)
* [esArchiver/save] serialize with stable json stringify

* [esArchives] rebuild all archives
2019-02-11 11:16:25 -08:00
Aleh Zasypkin 088d5f6919
Add zh-CN.json translations and respective compatibility checks via i18n tools (#30378) 2019-02-11 14:39:59 +01:00
Fuyao Zhao d3ceee5cf1 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-02-08 17:43:45 -08:00
Larry Gregory 3fba1f3fd5
Upgrade grunt to 1.0.3 (#30504) 2019-02-08 16:15:27 -05:00
Court Ewing 0b4f41dc7f
Bump to 8.0.0 2019-02-08 09:04:02 -05:00
Spencer 120606d037
[yarn] upgrade to @elastic/makelogs 4.4.0 (#30447) 2019-02-07 17:36:26 -08:00
Chandler Prall b47a92cfa9
Upgrade EUI to 6.10.1 (#30404) 2019-02-07 15:00:56 -07:00
Court Ewing 6f2a1c1933
Revert "bump to 8.0.0 (#30246)" (#30337)
This reverts commit 661ac59116.
2019-02-06 21:16:01 -05:00
Spencer 9ce8a7d131
[yarn] upgrade elasticsearch-js (#30294) 2019-02-06 13:58:02 -06:00
Court Ewing 661ac59116
bump to 8.0.0 (#30246) 2019-02-06 10:04:54 -05:00
Caroline Horn f8c7320277
EUI 6.10.0 & Background color fixes (#30136)
* First foray into turning .application background off

* Hopefully fixing the last few plugins

* Update EUI to 6.9.0

* removing hacks

* last fixes

* Remove a few more `100vh`

* Can I remember to copy & REPLACE

* EUI at 6.10.0
2019-02-05 21:29:30 -05:00
Tiago Costa 4cec19d9ea
Upgrade thread loader (#27518)
* chore(NA): update thread-loader version.

* chore(NA): upgrade to thread-loader 2.1.0.

* chore(NA): update thread-loader to 2.1.1

* chore(NA): bump thread loader version to 2.1.2
2019-02-06 00:45:15 +00:00
Jonathan Budzenski cfe374cb25
Bump node to 10.15.1 (#27918)
* Bump node to 10.15.0

* newline

* -1 newline

* bump max header size to 64kb

* fix quotes

* s

* space

* Bump node to 10.15.1

* fix flag arg
2019-02-05 16:06:59 -06:00
Tyler Smalley 36ee9d91fa
Adds traces to Node warnings (#27848)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-02-05 10:29:16 -08:00
Chris Davies ebd3a82643
Remove WebSockets from Canvas expressions interpreter (#29792)
This modifies the interpreter to use REST instead of WebSockets.
2019-02-05 11:51:45 -05:00
dave.snider@gmail.com fafa9fa9ae
EUI 6.8.0 (#29860)
Upgrades Kibana's EUI dep.
2019-02-01 14:38:46 -08:00
Caroline Horn b1b941dd8f
Finally remove leftover LESS files (#29486)
* Use mixin for full screen graphics

- Moved svg assets to one folder under `ui/public/assets/images`
- Deleted .less files

* Fix Kibana logos as well

* forgot to remove

* adds dark mode images

* Removed search_select

In favor of pattern to be created in EUI : https://github.com/elastic/eui/issues/1498

* No LESS in plugin generator

* remove comment

* Remove .less from testbed

* snaps

* Update dark mode graphics to be a bit lighter

* [karma] load css via url, rather than webpack

* [karma] css isn't built at config time, concat at request time
2019-02-01 01:35:25 -05:00
Chris Cowan fada5d9e15
[Infra UI] Table View for Home Page (#29192)
* Addding initial table implimentation

* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting

* Fixing EUI types for EuiInMemoryTable to work for EVERYONE

* Adding server plugin for tslint for VIM; Fixing tests

* Adding the view switcher

* removing dependency

* updating yarn.lock

* Change padding to use EUI rules

* Rename waffle/index to nodes_overview; move table to nodes_overview

* Adding missed files in last commit

* Adding textOnly to the columns that need special truncation because they are buttons

* Fixed an error in the merge

* Fixing merge issues
2019-01-31 09:53:09 -07:00
Fuyao Zhao 39f1ac00c4 Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-01-30 11:51:13 -08:00
Nathan Reese 6e6be37f2b
update to eui 6.7.4 (#29560)
* update to eui 6.7.4

* remove use of euiHeaderChildSizeMobile for xs header check
2019-01-30 10:20:56 -07:00
Fuyao Zhao 7172f61f7e Merge remote-tracking branch 'origin/master' into feature/merge-code 2019-01-28 18:53:12 -08:00
Spencer 2cb94be6fd
[sass] copy and rename url()s from sass files (#29306)
* [sass] copy and rename url()s from sass files

* [yarn] upload yarn.lock

* [optimize/bundlesRoute] fix tests

* Fix error message

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

* [sass/build] copy assets async

* [sass/build] prevent url() errors from breaking watchers, make more obvious

* [sass/build] check resolve first, print sourcePath for error

* [sass/build/tests] avoid quotes in snapshots

* [sass/build] add support for using ui/public/assets

* [sass/build/tests] fix assertion, assert image is copied

* update jest snapshots

* [sass/build] test ui/assets handling

* [sass] use more generic publicPath for sass
2019-01-28 14:00:22 -08:00
Nathan Reese 2f70a23372
upgrade to eui 6.7.2 (#29387) 2019-01-25 15:42:13 -07:00
Nathan Reese e320d511c1
Upgrade to EUI 6.7.0 (#29330)
* Upgrade to EUI 6.7.0

* comment out tests that are broken by brittle selector
2019-01-25 08:47:16 -07:00
Søren Louv-Jansen dc3a354b3e
[APM] Use idx everywhere for picking deeply nested properties (#29297) 2019-01-25 10:43:07 +01:00