Commit graph

1120 commits

Author SHA1 Message Date
renovate[bot]
1930691e4d Update dependency @elastic/charts to v14 (#49947) 2019-11-12 04:32:50 -05:00
Spencer
0010447f0f
[a11y] add initial accessibility functional tests (#43584)
* [a11y] add initial accessibility functional tests

* add accessibility jobs

* fix config path

* remove percy setup from scripts

* disable color-contrast rule

* apply changes from @myasonik

* define aria-controls/owns props even when suggestions aren't visible

* [ftr/a11y] only throw error when there are errors

* adding tests for management page

* add a11y test for management page

* adding ignore rules' to a11y

* accessibility test for kibana home

* 7 passing tests, 0 failures

* jest snapshot update

* support a11y test in pipeline job

* update a11y test script for pipelines

* use oss compatible ci setup

* fix exclude syntax

* add default exclusion syntax
2019-11-07 10:07:40 -05:00
Dmitry Lemeshko
4a696b939a
update chromedriver dependency to v78 (#49737) 2019-11-06 15:13:22 -05:00
Gidi Meir Morris
c485893ab2
Improves performance of task execution in Task manager
This PR include three key changes:

1. Run tasks as soon as they have been marked as running, rather than wait for the whole batch to me marked
2. Use a custom refresh setting of refresh: false where possible, in place of wait_for, in order to speed up Task Manager's internal workflow
3. Instrumentation of Task Manager exposing Activity / Inactivity metrics in Performance test runs
2019-11-06 08:44:13 -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
Spencer
69f47a9b90
remove code-plugin specific build task and related node module (#49525) 2019-10-28 15:40:11 -07: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
373320a3a0
[npm] Removes react-clipboard.js and redux-test-utils (#49283)
* [npm] Removes react-clipboard.js

Added in the original commit of APM, but does not appear to still be used.

* [npm] Remove redux-test-utils

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 09:38:13 -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
a56d2d8b85
[npm] Removes @slack/client (#49273)
Originally added in https://github.com/elastic/kibana/pull/19236 as part
of the notification service, however it's no longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:39:53 -07:00
Tyler Smalley
cc0ef60a88
[npm] Removes ansicolors (#49274)
Originally used in the functional test runners pro runner, it is no
longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:39:26 -07:00
Tyler Smalley
cc67942f39
[npm] Remove babel-plugin-mock-imports and gulp-multi-process (#49276)
* [npm] Remove babel-plugin-mock-imports

Originally added as part of
https://github.com/elastic/kibana/pull/22695, however, it doesn't appear
to have ever actually been used.

* [npm] Removes gulp-multi-process

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:39:10 -07:00
Tyler Smalley
9b69d2988a
[npm] Remove checksum (#49277)
Used in Gulp when X-Pack was closed source and no longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:38:41 -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
2210c2f50e
[npm] Removes dataloader (#49281)
Originally added in https://github.com/elastic/kibana/pull/24068,
however, it doesn't appear to have ever been used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:37:44 -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
Tyler Smalley
0cd5c49954
[npm] Removes react-select (#49284)
Added when X-Pack was closed-source and
import/no-extraneous-dependencies was implemented. Does not appear to
still be used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:36:34 -07:00
Tyler Smalley
7af0c478cb
[npm] Removes rsync (#49285)
Amungst one of the first dependencies added to X-Pack and does not
appear to still be used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:35:36 -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
Brandon Kobel
d045cc35b7
Removing unused lodash per-method packages (#49131) 2019-10-24 06:23:32 -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
a8c645926c
Update set-value to 2.0.1 (#49005)
* Updating set-value to 2.0.1

* update kbn/pm dist
2019-10-23 13:41:46 -07:00
Brandon Kobel
db6d2251e1
Updating debug to 2.6.9 (#48997) 2019-10-23 11:04:03 -07:00
Garrett Spong
0b2c3cd438
[SIEM] Fixes SIEM App not loading in IE11 (#49047)
## Summary


Resolves https://github.com/elastic/kibana/issues/47609 by updating [react-reverse-portal](https://github.com/httptoolkit/react-reverse-portal) to 1.0.4 which includes an ES5 distribution that fixes the SIEM app not loading in IE11.

SIEM App now loads and DnD from within the custom map tooltips functions as intended:

![ie11-map-tooltip-fix](https://user-images.githubusercontent.com/2946766/67401431-6158e680-f56c-11e9-8eb3-b1eb6c393c31.gif)


### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) 
  * Tested in Chrome, FF, Safari & our good friend IE11
- [ ] ~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-10-23 10:50:54 -06:00
Brandon Kobel
dbd6f7e62f
Updating pdfmake (#46418)
* Updating pdfmake

* Updating yarn.lock after merging upstream/master

* Updating the yarn.lock
2019-10-22 18:10:12 -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
Felix Stürmer
a1e3a3e24d
[Logs + Metrics UI] Update constate and remove unused legacy v… (#48752)
This removes the outdated and unused 0.x version of `constate` and instead depends on a recent version. It also removes the aliasing to `constate-latest`.

closes #48606
2019-10-21 19:36:36 +02:00
renovate[bot]
7c18a02e69 Update dependency @elastic/charts to ^13.5.4 (#47939) 2019-10-18 12:07:49 +02: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
Aaron Caldwell
dc7bf3dce3
[Maps][File upload] Parse geojson files in chunks to avoid thread blocking (#46710)
* Add file parse chunking, update component on progress

* Clean up clean and validate and redo to process single features

* Add oboe dependency

* Prevent state updates on cancel

* Handle new files added mid-way through parsing another file

* Fix issue where subsequent index name is wiped out when previous file cancelled

* Remove unneeded oboe abort logic

* Dice parsing logic up further for testing

* Clean up

* Revert "Fix issue where subsequent index name is wiped out when previous file cancelled" (covered in separate PR)

This reverts commit 0688e73ffc.

* Update file parse test to focus on different stream states

* Update clean and validate tests to reflect function input/output changes

* Bump up file buffer. Simplify ui update logic, not neceesary to throttle with less frequent callbacks

* Show features parsed on UI rather than percentage

* Remove extra mock reset

* Review feedback. Add localized feature tracking callback

* Review feedback. Add comment explaining progress update throttling. Also, use debounce to throttle

* Remove console log

* Consolidate feature handling into one function passed to oboeStream node

* Abstract oboe logic to separate class and import for use in file parser

* Update file parser test to mock PatternReader import

* Prevent file parse active flag from resetting if another file is in progress

* Don't pass back result if no features found on complete, throw error with feedback. Add clean-up for prev PatternReader

* Use singleton version of jsts reader & writer. Pass back unmodified feature if clean returns nothing

* Make fileHandler function async

* Return null if no geometry

* Handle single features differently. Fixes functional test error

* Update jest test to use unique instances & counts of readers

* Review feedback

* Review feedback

* Review feedback. Add error-handling for null geom

* Fix i18n error

* Clean up handling of cancelled/replaced files to account for changed fileHandler return type
2019-10-15 16:26:33 -06: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
Pengcheng Xu
da4a6e5d9c
[Code] Use ctags langserver v0.1.11 (#47922) 2019-10-13 18:20:56 +08: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
Clint Andrew Hall
27cbdf5f50
[feature][Canvas] Share Workpads in other Websites (#46278)
* [Canvas] Embedding Workpads in other Websites (#42545)

* Testing for Workpad Snapshots

* Rename Snapshots to Shareables; update documentation. (#46513)

* [canvas][shareables] Add Localization + Tweaks (#46632)

* Add localization + tweak naming

* Fix duplicate key

* Update storyshots

* [shareables] Unsupported Renderer Warning (#46862)

* [shareables] Unsupported Renderer Warning

* Update snapshots; add test

* Addressing Feedback

* [canvas][shareables] Simplify and complete testing (#47328)

* Simplify

* Updates

* Finishing up

* A few tweaks

* Fix eslint errors; how would those happen??

* Fix CI build of runtime; assorted visual tweaks

* Update x-pack/legacy/plugins/canvas/shareable_runtime/test/index.ts

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

* Addressing feedback

* Remove null-loader from root package

* re-add null-loader until mitigation is found

* [perf] Fix unsupported renderers performance issue (#47769)

* [perf] Fix perf issue with unsupported renderers

* Fixing snapshots

* Addressing review feedback (#47775)

* Addressing feedback

* Addressing feedback (#47883)

* Branding Changes (#47913)

* Branding Changes

* Update snapshots
2019-10-11 12:15:41 -05:00
Joe Reuter
b43bdf6f09
downgrade vega-tooltip to maek it IE compatible (#47928) 2019-10-11 14:06:59 +02:00
Yulong
871601b20c
[Code] replace nodegit with native git (#45491)
* [Code]  use native git to iterate git files
* [Code] use native git to clone/update repository
* [Code] git history using native git
* [Code] use native git to read file tree and file content
* [Code] fix the 'bad file' warning from status api
* [Code] use native git to handle worktree
* [Code] use native git to resolve references
* [Code] use native git to handle blame / diff
* [Code] patch git binaries in kibana build script
* [Code] migrate unit tests to use native git
2019-10-11 11:32:03 +08: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
Aleh Zasypkin
0210ce47b6
Preserve URL fragment during SAML handshake. (#44513) 2019-10-09 18:12:14 +02: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
Garrett Spong
0461a1fefe
[SIEM] Adds custom tooltip to map for dragging fields to timeline (#46879)
## Summary

Resolves https://github.com/elastic/kibana/issues/46301, by adding a custom tooltip for the map that enables dragging to the timeline.

##### Features:
* Adds new portal pattern to enable DnD from outside the main react component tree
* Adds `<DraggablePortalContext>` component to enable DnD from within an `EuiPopover`
  * Just wrap `EuiPopover` contents in `<DraggablePortalContext.Provider value={true}></...>` and all child `DefaultDraggable`'s will now function correctly
* Displays netflow renderer within tooltip for line features, w/ draggable src/dest.bytes
* Displays detailed description list within tooltip for point features. Fields include:
  * host.name
  * source/destination.ip
  * source/destination.domain 
  * source/destination.geo.country_iso_code
  * source/destination.as.organization.name
* Retains ability to add filter to KQL bar

![map_custom_tooltips](https://user-images.githubusercontent.com/2946766/66288691-64c74f00-e897-11e9-9845-54e8c9b9c5ab.gif)


### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] 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)~
- [x] 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-10-08 11:21:47 -06: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
Nathan L Smith
726a84f28c
[APM] Experimental Service Map front end (#46497)
Add service map tabs on the main APM screen and for individual services.

This is not yet hooked up to work with back-end data, so it always shows the same hard-coded graph.

This is experimental, so you must have x-pack.apm.serviceMapEnabled: true in your Kibana config for it to show up.

Also add "PSF" to the list of allowed licenses since a new dependency added uses this license (it's on the [green list](https://github.com/elastic/open-source/blob/master/elastic-product-policy.md#green-list).)

Fixes #44890
Fixes #44853
2019-10-08 09:54:11 -05: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]
35751f9828 Update gulp related packages (#47421) 2019-10-05 23:38:41 -07:00
renovate[bot]
95fd7fdc91 Update dependency idx to ^2.5.6 (#47399) 2019-10-05 23:33:21 -07:00
renovate[bot]
1da0469521 Update webpack related packages (#47402) 2019-10-05 14:36:02 -07:00
renovate[bot]
cbaf2ef0d4 Update jsonwebtoken related packages (#47400) 2019-10-05 14:35:19 -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
renovate[bot]
8fcae77856 Update dependency prettier to ^1.18.2 (#47340) 2019-10-05 05:32:24 -07:00
renovate[bot]
fd14e201c0 Update dependency @types/puppeteer to ^1.20.1 (#47339) 2019-10-05 05:31:25 -07:00
renovate[bot]
23650a0c1f Update dependency @elastic/elasticsearch to ^7.4.0 (#47338) 2019-10-05 05:30:50 -07:00
renovate[bot]
fc53d4efb3 Update dependency tar-fs to ^1.16.3 (#47341) 2019-10-05 05:29:50 -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
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]
df9b78fd84 Update dependency @types/ora to ^1.3.5 (#46649) 2019-09-26 12:47:29 -07:00
renovate[bot]
49b5012fca Update dependency jsdom to ^12.2.0 (#46650) 2019-09-26 12:46:56 -07:00
renovate[bot]
77efd97004 Update dependency squel to ^5.13.0 (#46651) 2019-09-26 12:46:24 -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]
e0bd2c374d Update dependency mime to ^2.4.4 (#46654) 2019-09-26 12:40:59 -07:00
renovate[bot]
4f4b8e96bf Update eslint related packages (#46656) 2019-09-26 12:40:18 -07:00
Fuyao Zhao
956bd0794f
[Code]: update ts langserver version (#44987) 2019-09-26 18:00:10 +08: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
ca6b6e27ef
Updating nwmatcher (#46413) 2019-09-25 09:07:47 -07:00
Brandon Kobel
de606fe75c
Updating mixin-deep (#46412)
* Updating mixin-deep

* update kbn/pm dist
2019-09-25 09:06:59 -07:00
Pengcheng Xu
5bb7d7f42a
[Code] Upgrade ctags langserver to support two more languages (#46317)
* [Code] Upgrade ctags langserver to support two more languages

* [Code] Enable ctags langserver

* Fix test
2019-09-25 19:52:34 +08:00
Brandon Kobel
dbea3d5621
Removing unused react-markdown-renderer dependency (#46414) 2019-09-24 17:57:52 -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
renovate[bot]
9f20c92244 Update dependency cpy to ^7.3.0 (#46197)
* Update dependency cpy to ^7.3.0

* update kbn/pm distributable
2019-09-24 17:56:31 -07:00
Brandon Kobel
69c10fa6df
Updating grunt-karma to ^3.0.2 (#46407) 2019-09-24 15:53:11 -07:00
Nathan Reese
8356addb44
[Maps] upgrade mapbox to 1.3.1 (#46463) 2019-09-24 12:40:47 -06: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
Brandon Kobel
4b32dbd185 Update set-value (#46417)
* Updating some usages of set-value

* Updating snapdragon which updates transitive set-value

* update kbn/pm dist
2019-09-23 22:51:08 -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
Brandon Kobel
769b16e868
Updating more devDependency usages of handlebars (#46401)
* Updating more usages of handlebars to 4.1.2

* Updating graphql-code-generator to ^0.18.2
2019-09-23 19:00:45 -07:00
renovate[bot]
c3572032d9 Update dependency jimp to v0.8.4 (#46198) 2019-09-23 18:33:25 -07:00
Brandon Kobel
da16c3c23e
Updating eslint-utils to 1.4.2 (#46377) 2019-09-23 15:28:48 -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
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
renovate[bot]
25b0e2caeb Update dependency lru-cache to ^4.1.5 (#45157) 2019-09-09 13:33:31 -07:00
renovate[bot]
1e0389afaa Update dependency highlight.js to v9.15.10 (#45156) 2019-09-09 13:30:08 -07:00
renovate[bot]
f051184d5e Update dependency debug to ^2.6.9 (#45155) 2019-09-09 13:29:02 -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]
7aa91537cc Update dependency @types/chroma-js to ^1.4.2 (#44804) 2019-09-04 13:15:14 -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
renovate[bot]
3dd9e1f895 Update dependency @types/object-hash to ^1.3.0 (#43954) 2019-09-03 13:58:32 -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
Clint Andrew Hall
3779931872
Update Dependencies (#44519) 2019-08-31 13:46:24 -04:00
renovate[bot]
06852ed576 Update dependency cmd-shim to ^2.1.0 (#44034)
* Update dependency cmd-shim to ^2.1.0

* rebuild kbn/pm
2019-08-30 12:12:41 -07:00
Oliver Gupte
3c68c98e2c
[APM] Average page load duration by country chart (#43567)
* [APM] Adds chart for page load averages by country in RUM page-load view

* [APM] Simplified and refined ChoroplethMap. Added legend labels.

* - Replaced Map legend slices with smooth gradient
- fixed issue with map rendering multiple times
- renamed initial props to start with 'initial'
- added some more code comments

* use correct i18n ids

* - base color progression calc directly on euiColorPrimary
- check that a layer exists before querying features

* Addressed code review feedback

* - fixes issue where min/max was not a finite value
- cleans up mouseover handler, which updates on state changes
- formats doc count for display
- style improvements

* addressed PR feedback & updated renovate.json5

* - Removed the Legend from the ChoroplethMap
- Only render tooltip when there's data

* - fix hover state not clearing properly
- add better typing around Geojson propertier for world countries

* added missing css import
2019-08-29 15:29:12 -07:00
Steph Milovic
29b8ce2b7e [SIEM] Top Talkers: Split into Source and Destination (#43719)
* wip

* sources table working woohoo

* rename table back to n flow

* wired up both source and destination tables

* cleanups

* flows and ips sort

* flows and ips sort

* fix flow sorting

* differentiate tables

* bring back network

* fix tests

* integration tests updated

* add country names to flags, sort by desc on first click

* yarn doing its thing

* correct panel width during initial load

* remove default props

* fix inspect btn placement at small viewport sizes

* reformatting bytes

* used compressed table prop

* fix unit tests bytes

* update header subtext size

* override table cell display flex

* make titles plural

* less distracting empty string

* simplify markup and align numbers right

* improve more items experience

* undo compressed tables…looks bad

* stack tables

* restore compressed and side by side layout

* sentence case for titles

* table cleanup

* force more to separate line

* dnd poc changes

* jest test updates

* TypeScript, i18n, and bean-gen fixes

* fix for filter action color

* single quotes instead of backticks

* use getEmptyValue() instead of static emdash

* remove “ AS” prefix

* address PR concerns

* add space

* first attempt at prop change with matchMedia

* split table display by mediaMatch

* rm comments

* fix type issue

* correct react hook

* lint fix

* fix jest

* update snapshots
2019-08-29 12:32:56 +02:00
Pengcheng Xu
a7138c5bf3
Bump @elastic/ctags-langserver to 0.1.9 (#44240) 2019-08-29 10:55:57 +09: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]
f162ff0332 Update dependency constate-latest to ^1.2.0 (#44035) 2019-08-27 22:00:52 -07:00
renovate[bot]
28da43a564 Update dependency backport to v4.6.5 (#44030) 2019-08-27 21:57:44 -07:00
renovate[bot]
282bc5ac42 Update nodemailer related packages (#43949) 2019-08-27 21:55:56 -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]
697033f076 Update dependency chroma-js to ^1.4.1 (#44033) 2019-08-27 14:02:40 -07:00
renovate[bot]
6e5f6ffbd6 Update dependency base64-js to ^1.3.1 (#44031) 2019-08-27 14:01:08 -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
renovate[bot]
9a99e71f5c Update dependency xml-crypto to v1 (#43227)
* Update dependency xml-crypto to v1

* update license override for package with LGPL OR MIT license
2019-08-27 13:48:38 -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
Joel Griffith
8b55ff62f1
Chore/bump chromium webgl+kerberos (#42751)
* WIP: Adding libs for webgl

* WIP Adding swiftshader libs to chromium

* WIP: Adding missing binaries for webgl in chromium

* Use pipes for communication with chrome to avoid networking snafus

* Bumps puppeteer in prep for new chromium build + types and better @types package

* Remove ignore

* Removing of final @ts-ignore now that we have types

* README updates

* Fixing binding issues

* Fixing maps integration wrt reporting + conditional pipes for puppeteer

* Adding new deps to the windows build

* New s3 builds

* Checksums for updated linux build

* Moving types out of puppeteer file and into core puppeteer module

* launch => puppeteerLaunch

* Maps comment about render loading in reporting

* Clarify how reporting uses hooks and events for viz
2019-08-27 12:55:57 -07: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]
e3e733a921 Update proper-lockfile related packages (#43951) 2019-08-26 12:47:43 -07:00
renovate[bot]
cd2fe08474 Update papaparse related packages (#43950) 2019-08-26 12:46:59 -07:00
renovate[bot]
63ad141b3c Update node-fetch related packages (#43948) 2019-08-26 12:37:43 -07:00
renovate[bot]
aeb6e2c1e8 Update dependency @types/wrap-ansi to ^2.0.15 (#43955) 2019-08-26 12:35:31 -07: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]
476388b879 Update dependency @types/nock to ^10.0.3 (#43953) 2019-08-26 08:24:43 -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
Poff Poffenberger
ebe22f468b
[Canvas] Add Monaco to the Canvas Expression Editor (#41790)
* First version of Editor component and integration with the expression editor

* Adding resize detector

* Remove blue border on editor select

* Adding types for the react resize detector

* Adding worker and a few more monaco plugins

* Suggestion completion rework

* Add resize detector types as well as an IE11 full width bug fix

* Adding correct types for function definitions and monaco

* change CSS class names, add border to input

* Adding boolean styling

* Slight refactor of canvas function/arg types and adding first pass of hover

* Fixing hover interaction for functions and arguments

* Namespacing Code monaco css overrides

* Styling cleanup and simple README

* Setting up tests including some storyshots for the ExpressionInput component and Editor component

* Prop documentation for both the ExpressionInput and Editor components

* Adding Editor snapshots

* tiny cleanup

* Moving language registration, adding autocomplete suggestion types, and cleaning up editor

* Some documentation and cleanup from PR feedback

* Fixing types, adding documentation

* clean up editor, remove autocomplete toggle

* More PR cleanup

* Test fix, type fix

* fix issues around errors. code cleanup
2019-08-26 09:31:07 -05:00
renovate[bot]
0fb213714c Update read-pkg related packages (major) (#43118)
* Update read-pkg related packages

* update kbn/pm dist

* fix call style

* only pass directories to readPackageJson
2019-08-25 14:01:17 -07:00
renovate[bot]
24aae80dbe Update dependency @elastic/charts to ^10.2.0 (#43910) 2019-08-25 13:58:39 -07:00
renovate[bot]
bf7e066cc9 Update dependency @elastic/elasticsearch to ^7.3.0 (#43911) 2019-08-25 13:55:03 -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]
5e7b8f943e Update dependency write-pkg to v4 (#43226)
* Update dependency write-pkg to v4

* rebuild kbn-pm and point worker_threads to built-in module
2019-08-23 13:50:07 -07:00
renovate[bot]
7a71ea2993 Update dependency xmlbuilder to v13 (#43228) 2019-08-23 12:01:47 -07:00
renovate[bot]
c145a33b95 remove ansi-colors dependency (#43804) 2019-08-23 10:38:52 -07:00
renovate[bot]
07618e22c4 Update dependency xregexp to v4 (#43229) 2019-08-23 09:45:55 -07:00
renovate[bot]
b318ebe6bb Update dependency @babel/cli to v7.5.5 (#43836) 2019-08-23 08:26:25 -07:00
Walter Rafelsberger
de21ed9568
[ML] Anomaly Explorer: Updates dragSelect to 1.13.1. Fixes reload issue. (#43779)
- Updates the dragSelect library to 1.13.1. 9221622 updates the library. c9a870b fixes a regression caused by the update.
- Fixes an issue where a timefilter refresh would clear a swimlane selection. 3d1c43d removes a duplicate timefilter subscription and changes the triggered event to REDRAW instead of RELOAD (which triggered a full reload and cleared the selection).
- Fixes an issue with timefilter/datepicker: EuiSuperDatePicker checks isPaused only with componentDidMount() so it might miss changing props. The fix in aa9555d works around that by adding a check on the onRefresh() callback.
2019-08-23 00:43:36 -07:00
Spencer
90de95822b
[mocha] fix test selectors to get everything in packages (#43797)
* [mocha] fix test selectors to get everything in packages

* fix paths in tests

* ignore test files that make it into target directories

* [@kbn/test] don't build test files

* move tests from datemath and test-subj pkgs into __tests__ dirs

* [kbn/test-subj] remove test script

* update yarn.lock
2019-08-22 18:49:01 -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
Frank Hassanabad
a69a3f7dd2
[SIEM] Improves the timeline performance by optimizing the width, removing wasted renderers, and adding a visibility sensor (#43560)
## Summary

This improves the timeline performance by:

* Optimizing the widths using ContextProvider when the AutoSizer is moved.
* Optimizing the renderers found within the Stats component by using React.Memo
* Fixes a small mistake with a ContextProvider which would make the `Header.Div's` re-render on redraws of the width
* Changed the width to use inline in areas as that is recommended by `StyledComponents` as a performance improvement when you have a fast amount of CSS changes dynamically.
* Adds a visibility sensor to so we can perform "windowing" and remove heavy DOM elements from the timeline 

Windowing over 300 items will show "grey" placeholders now until they load
![windowing-up-and-down](https://user-images.githubusercontent.com/1151048/63405479-31db0180-c3a4-11e9-8444-7472e6265b8e.gif)

Another shot of the windowing:
![place-holders-300](https://user-images.githubusercontent.com/1151048/63405598-9b5b1000-c3a4-11e9-927a-4d3e761df0d7.gif)

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] 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)
- [x] [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

- [x] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
- [x] 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-22 14:01:06 -06:00
Nick Partridge
b596edd6d9 upgrade elastic-charts to 10.0.1 (#43732) 2019-08-22 14:44:19 +02:00
Yulong
4a82b9541d
[Code] fix a launching embed ctag-langserver problem (#43561) 2019-08-21 21:45:05 +08: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
Nicolas Chaulet
034fca7300
Upgrade slapshot to 1.4.0 (#43466) 2019-08-16 13:53:41 -04: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
Spencer
e8409c0160
Move src/dev/run to @kbn/dev-utils (#43387)
* move src/dev/run into `@kbn/dev-utils`

* forgot to save a replacement
2019-08-16 07:13:54 -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
Pengcheng Xu
1e978ad067
[Code] Upgrade ctags langserver (#43252)
* [Code] Upgrade ctags langserver

* Disable yaml and xml support
2019-08-15 16:10:47 +08:00
Andrew Goldstein
017c860a3f
[SIEM] Run Cypress Tests Against Elastic Cloud & Cypress Command Line / Reporting (#42804)
# [SIEM] Run Cypress Tests Against Elastic Cloud & Cypress Command Line / Reporting (#42804)

This PR contains enhancements to the `Cypress` end-to-end (e2e) testing support in the SIEM app, as discussed with @spalger

Note: this PR depends on test refactorings in https://github.com/elastic/kibana/pull/42766

## New: Run `Cypress` Tests Against Elastic Cloud

Cypress tests may now be run against a remote Elastic Cloud instance
(override `baseUrl`), interactively or via the command line.

Credentials are specified via `kibna.dev.yml` or environment variables.

## New: Run `Cypress` Tests On the Command Line

Run tests on the command line (override `baseUrl` and pass credentials via
the `CYPRESS_ELASTICSEARCH_USERNAME` and `CYPRESS_ELASTICSEARCH_PASSWORD`
environment variables), via command line.

## New: Reporting

Reports are configured to include:

- An HTML report, suitable for e-mail notifications
- Screenshots
- Junit reports (for integration with Kibana CI)
- Videos (optional)

Reports generated when `Cypress` tests are run on the command line are output
to the `target` directory, which follows specific conventions used by the
Kibana CI process:

* Any directory under `target` that begins with `kibana-`, e.g. `kibana-siem` will be uploaded as an artifact to a bucket
* Junit reports are picked up from the `target/junit` directory

The artifacts generated by running `Cypress` tests on the command line conform to the above conventions.

### HTML Reports

An HTML report (e.g. for email notifications) is output to:

```
target/kibana-siem/cypress/results/output.html
```

### Screenshots

Screenshots of failed tests are output to:

```
target/kibana-siem/cypress/screenshots
```

### `junit` Reports

The Kibana CI process reports `junit` test results from the `target/junit` directory.

Cypress `junit` reports are generated in `target/kibana-siem/cypress/results`
and copied to the `target/junit` directory.

### Videos (optional)

Videos are disabled by default, but can optionally be enabled by setting the
`CYPRESS_video=true` environment variable:

```
CYPRESS_video=true yarn cypress:run
```

Videos are (optionally) output to:

```
target/kibana-siem/cypress/videos
```

# Updated `README`

The full details and instructions for running Cypress tests are in the
`siem/cypress/README.md`, which was updated to reflect the changes
in this in this PR, but in a nutshell, you may run tests interactively with
the following (new) environment variables:

```sh
cd x-pack/legacy/plugins/siem
CYPRESS_baseUrl=http://localhost:5601 CYPRESS_ELASTICSEARCH_USERNAME=elastic CYPRESS_ELASTICSEARCH_PASSWORD=<password> yarn cypress:open
```

Running the command line version of the tests, which will output
the reports described above, is a similar experence:

```sh
cd x-pack/legacy/plugins/siem
CYPRESS_baseUrl=http://localhost:5601 CYPRESS_ELASTICSEARCH_USERNAME=elastic CYPRESS_ELASTICSEARCH_PASSWORD=<password> yarn cypress:run
```

https://github.com/elastic/siem-team/issues/435
https://github.com/elastic/siem-team/issues/437
2019-08-14 13:38:23 -06:00
Yulong
4e7cecc6c9
[Code] make ctag lang server embed (#43170)
* [Code] add an abstraction for child processes
* [Code] make CTag lang server embed
2019-08-14 14:11:16 +08:00
renovate[bot]
b178de1975 Update dependency supports-color to v7 (#43064) 2019-08-12 12:43:27 -06: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
Jonathan Budzenski
46483d4eeb
[yarn.lock] consistent resolve domain (#42969) 2019-08-08 14:38:19 -05:00
Aleh Zasypkin
0d31f52bb8
Add support for OpenID Connect implicit authentication flow. (#42069) 2019-08-08 15:39:15 +02: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
Nick Peihl
8a3b96d768
[Maps] Load Maki icons from spritesheet (#42499)
* Load Maki icons from spritesheet
2019-08-06 13:32:04 -07:00
WangQianliang
eba68fa928
feature(code/frontend): apply new document symbol api (#42324) 2019-08-06 13:50:36 +08:00
Nicolas Chaulet
1aa21c123d
[Tests] Setup contract tests in x-pack (#42345) 2019-08-05 11:15:03 -04:00
Pengcheng Xu
04b68997ab
[Code] Upgrade ctags-langserver to use universal ctags (#42509) 2019-08-05 23:03:21 +08: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
Yulong
3fb22ae3bb
[Code] bump nodegit version (#42332) 2019-07-31 22:15:28 +08: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
Yulong
0c8159fe40
[Code] distributed Code abstraction (#41374)
* [Code] distributed Code abstraction
2019-07-31 11:56:26 +08: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
Clint Andrew Hall
25b17d4960
[Canvas] Update object-path-immutable; type AxisConfig and Con… (#41086)
* Initial WIP

* Migrate to latest object-path-immutable; type arguments

* Fix Storybook Snapshot test; add snapshots

* Revert storyshots test change

* Adding SeriesStyle conversion + stories

* Addressing feedback; updating against master

* Update snapshots
2019-07-26 13:37:15 -05:00
dave.snider@gmail.com
c2b926e2e7
EUI 13.0.0 (#41723) 2019-07-23 15:09:16 -07:00
Ahmad Bamieh
9d7cf53eba
[telemetry] Analytics Package (#41113)
* kbn-analytics

* kbn-analytics

* expose provider

* add logger

* performance and stats reporters

* finalize ui stats metric

* functional tests

* remove readme file for now

* update readme

* add types file into to tsconfigs

* Update packages/kbn-analytics/src/report.ts

Co-Authored-By: Josh Dover <me@joshdover.com>

* fix typechecks

* use enum instead of strings for metric types

* getUiStatsReporter -> createUiStatsReporter

* fix special typo in README

* remove unused stop method

* fix tests

* default debug to false

* use chrome.getInjected

* add METRIC_TYPE to jest module mocks

* mock create fn

* handle enabled:false

* init ui_metric in test setup env

* regenerator runtime

* transform-regenerator

* update lock file

* update babel configs

* runtime dep

* add regenerator

* babel configs

* use env-preset

* merge conflicts

* fix workpad telemetry tests

* regeneratorRuntime attempt to fix number 30000

* env targets

* remove module config

* try again

* try without regenerator

* use kbn/babel-preset/webpack_preset only

* runtime

* just use typescript

* update tsconfig

* Caches trackers by app value for infra useTrackMetric hook
2019-07-23 15:46:56 +03: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
Pengcheng Xu
f3ac56d99e
[Code] Upgrade ctags langserver version (#41230) 2019-07-17 19:29:27 +08: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
Pengcheng Xu
352de87eb8
[Code] Fix style of ctags icon in dark mode (#41095) 2019-07-15 14:42:20 +08: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
Poff Poffenberger
8be17fe616
[Canvas] Converting time filter (and children) component to typescript and adding to storybook (#40443)
* Converting time filter (and children) component to typescript and adding to storybook
2019-07-12 16:48:46 -05: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
Pengcheng Xu
842cf67ecd
[Code] remove deprecated lsp.verbose code, bump ctags langserver version (#40843) 2019-07-11 20:31:08 +08:00
Fuyao Zhao
3a7a9ddba4
[Code]: upgrade typescript langserver version (#40833) 2019-07-11 16:10:32 +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
Pengcheng Xu
f5a695703f
[Code] update ctags lsp version and remove unsupported langs (#40572) 2019-07-09 17:26:39 +08: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
Pengcheng Xu
1e1153ea7b
[Code]Add ctags langserver as a dependency and launch it (#39763)
* Add ctags langserver as a dependency and launch it

* Remove extra files in node-ctags when release

* [build] rework platform-specific clean for ctag package

* rename local excludedPath var

* use array.includes

* exclude ctags langserver vendor
2019-07-03 17:00:56 +08:00
Yulong
6057581f40
[Code] bump nodegit version, lower the glibc requirement (#40159) 2019-07-03 14:05:38 +08: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
Patrick Mueller
441de0b14c
Adds a built-in email action to the x-pack actions plugin (#39517)
Adds an email action to the actions plugin that can send emails as an action using [nodemailer](https://www.npmjs.com/package/nodemailer).
2019-06-27 21:15:58 -04:00
Andrew Goldstein
95fc980203
[SIEM] Bootstrap Cypress Tests (#39588)
# Cypress Tests

The `siem/cypress` directory contains end to end tests (specific to the `SIEM` app) that execute via [Cypress](https://www.cypress.io/).

At present, these tests are only executed in a local development environment; they are **not** integrated in the Kibana CI infrastructure, and therefore do **not** run automatically when you submit a PR.

See the `Server and Authentication Requirements` section below for additional details.

## Organizing Tests and (Mock) Data

- Code and CSS selectors that may be re-used across tests should be added to `siem/cypress/integration/lib`, as described below
- Smoke Tests are located in `siem/cypress/integration/smoke_tests`
- Mocked responses from the server are located in `siem/cypress/fixtures`

### `cypress/integration/lib`

The `cypress/integration/lib` folder contains code intended to be re-used across many different tests.

- Files named `helpers.ts` (e.g. `siem/cypress/integration/lib/login/helpers.ts`) contain functions (e.g. `login`) that may be imported and invoked from multiple tests.

- Files named `selectors.ts` export CSS selectors for re-use. For example, `siem/cypress/integration/lib/login/selectors.ts` exports the following selector that matches the Username text area in the Kibana login page:

```
export const USERNAME = '[data-test-subj="loginUsername"]';
```

## Server and Authentication Requirements

The current version of the Smoke Tests require running a local Kibana server that connects to an instance of `elasticsearch`. A file named `config/kibana.dev.yml` like the example below is required to run the tests:

```yaml
elasticsearch:
  username: 'elastic'
  password: '<password>'
  hosts: ['https://<server>:9200']
```

The `username` and `password` from `config/kibana.dev.yml` will be read by the `login` test helper function when tests authenticate with Kibana.

See the `Running Tests Interactively` section for details.

## Running Tests Interactively

To run tests in interactively via the Cypress test runner:

1. Create and configure a `config/kibana.dev.yml`, as described in the `Server and Authentication Requirements` section above.

2. Start a local instance of the Kibana development server:

```
yarn start --no-base-path
```

3. Launch the Cypress interactive test runner:

```sh
cd x-pack/legacy/plugins/siem
yarn cypress:open
```

4. Click the `Run all specs` button in the Cypress test runner

![cypress](https://user-images.githubusercontent.com/4459398/60113545-39c54f00-972f-11e9-9c0c-5d28aecdf212.gif)

https://github.com/elastic/ingest-dev/issues/515
2019-06-27 17:28:33 -06: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
Aaron Caldwell
3e48e62a47
Use jsts version 1.6.x for IE 11 Compat (#39633)
* Use jsts es5 compat output package for ie compat

* yarn.lock file updates
2019-06-26 10:21:42 -06: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