Commit graph

516 commits

Author SHA1 Message Date
Alexey Antonov c415311221 Move @kbn/es-query into data plugin (#51014) 2019-11-26 13:28:04 -07:00
Joe Portner 38c17d6c7d
Improve session idle timeout, add session lifespan (#49855)
This adds an absolute session timeout (lifespan) to user sessions.
It also improves the existing session timeout toast and the overall
user experience in several ways.
2019-11-26 10:47:40 -05:00
Spencer 03dad2827e
run mocha tests from x-pack with root mocha script (#51352)
* run mocha tests from x-pack with root mocha script

* Only run Karma tests in xpack intake job

* disable failing suites

* fix typo

* skip correct suite (there are multiple root suites)

* support disabling junit reporting with $DISABLE_JUNIT_REPORTER

* don't generate junit in ispec_plugin tests
2019-11-25 11:39:20 -07:00
Larry Gregory aef6dd4707
Upgrade handlebars to 4.5.3 (#51486)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-11-25 09:11:08 -05:00
Spencer 8b2835a986
disable babel/register cache in CI (#51300)
* disable babel/register cache in CI

* log stdio when logs don't match expectation

* upgrade babel/register so that cache files are not touched
2019-11-22 09:28:42 -07:00
Court Ewing 5974c4658f
Remove @elastic/lsp-extension (#51335)
This was only used by the code plugin, which was removed in 7.5.0.
2019-11-21 18:33:15 -05:00
Court Ewing 6f5491c752
Remove @elastic/javascript-typescript-langserver (#51115)
This was only used by the code plugin, which was removed in 7.5.0.
2019-11-21 14:23:59 -05:00
renovate[bot] 8b5e03e259 Update dependency cypress to ^3.6.1 (#50119) 2019-11-21 11:11:46 +01:00
patrykkopycinski a10bae2dd6
Update styled-components to latest version (#49679) 2019-11-21 10:53:58 +01:00
Greg Thompson 7cbb072554
Upgrade EUI to 16.0.0 (#50779)
* eui to 16.0.0

* type defs

* card click

* snapshot updates

* time format test updates

* ts return

* integration fix

* async

* more time format fixes

* more time format fixes

* test updates

* add uisettings dateformat timepicker test

* after method to clear setting
2019-11-20 17:02:04 -06:00
Court Ewing e16e3e3f63
Remove @elastic/ctags-langserver dependency (#51097)
This was only used by the code plugin, which was removed in 7.5.0.
2019-11-20 15:20:50 -05:00
patrykkopycinski 18e587fbfe Fix @reach/router types (#50863)
Merging to fix master build

* Fix @reach/router types

* Update renovate.json5
2019-11-17 14:08:49 +02:00
patrykkopycinski 4c33f2a359
Bump storybook dependencies (#50752) 2019-11-16 20:40:06 +01:00
Tim Roes 70d6220a41
Upgrade to TypeScript 3.7.2 (#47188)
* Update TS to 3.7.0-beta

* Upgrade to TypeScript 3.7.2

* Upgrade cypress to 3.5.0

* Upgrade apollo-link-http

* Update prettier

* Fix expression types

* Fix Lens test typings

* Fix ML breakage

* Fix APM breakage

* Fix sinon stub typing

* Fix beats management types

* Fix WMSOptions types

* Fix ui_filters in APM

* APM: Explicitly type Setup to prevent hitting TS limits

* Change file name to correct case

* Add styleguide rule for optional chaining

* Update typescript-eslint packages

* Revert changes in ui filters routes that are no longer needed
2019-11-15 10:33:29 +01:00
Greg Thompson 998b0e6fd6
Upgrade EUI to v14.9.0 (#49678)
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
2019-11-13 14:54:21 -06: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
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
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
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 7ecf5ac935
[npm] Removes stream-to-observable (#49272)
Added in https://github.com/elastic/kibana/pull/18885 as part of the
RxJS 6 upgrade and used in the screenshot stictcher, however it is not
longer used.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-25 07:40:27 -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 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
Brandon Kobel a149497b73
NP Security HTTP Interceptors (#39477)
* We have a NP plugin! :celebration:

* Redirecting to login on all 401s

* Adding commented out code for when credentials are omitted

* Fixing types

* Respond 403 when user changes password with incorrect current password

* Adding AnonymousPaths where we ignore all 401s

* Adding anonymous path tests

* Extracted a dedicated SessionExpires class and added tests

* Fixing plugin after refactoring to add SessionExpired

* Beginning to work on the session timeout interceptor

* Fixing UnauthorizedResponseInterceptor anonymous path test

* Removing test anonymous path

* Trying to improve readability

* Displaying session logout warning

* Mocking out the base path

* Revert "Mocking out the base path"

This reverts commit 824086c168.

* Changing coreMock to use a concrete instance of BasePath

* Adding session timeout interceptor tests

* Adding session timeout tests

* Adding more tests for short session timeouts

* Moving some files to a session folder

* More thrashing around: renaming and reorganizing

* Renaming Interceptor to HttpInterceptor

* Fixing some type errors

* Fixing legacy chrome API tests

* Fixing other tests to use the concrete instance of BasePath

* Adjusting some types

* Putting DeeplyMocked back, I don't get how DeeplyMockedKeys works

* Moving anonymousPaths to public core http

* Reading sessionTimeout from injected vars and supporting null timeout

* Doesn't extend session when there is no response

* Updating docs and snapshots

* Casting sessionTimeout injectedVar to "number | null"

* Fixing i18n issues

* Update x-pack/plugins/security/public/plugin.ts

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Adding milliseconds postfix to SessionTimeout private fields

* Even better anonymous paths, with some validation

* Adjusting public method docs for IAnonymousPaths

* Adjusting spelling of base-path to basePath

* Update x-pack/plugins/security/public/session/session_timeout.tsx

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Update src/core/public/http/anonymous_paths.ts

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

* Update src/core/public/http/anonymous_paths.ts

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

* AnonymousPaths implements IAnonymousPaths and uses IBasePath

* Removing DeeplyMocked

* Removing TODOs

* Fixing types...

* Now, ever more normal
2019-10-24 08:59:45 -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] 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
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
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
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
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
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
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
patrykkopycinski 623a62939c
[SIEM] Fix GraphQL type generation fails to generate types (#47638) 2019-10-09 21:13:39 +02:00