Commit graph

1349 commits

Author SHA1 Message Date
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