Commit graph

1214 commits

Author SHA1 Message Date
Spencer
8d2dc302fb
[7.x] Update dependency vega-lib to v4.4.0 (#38673) (#38684) 2019-06-11 13:30:03 -07:00
Spencer
0a6217a420
[7.x] Update dependency vega-schema-url-parser to v1.1.0 (#38674) (#38685) 2019-06-11 13:29:34 -07:00
Frank Hassanabad
c0319d4c89
[SIEM] Change deprecated Buffer method for non-deprecated Buffer method (#38634) (#38664)
## Summary
  * Added linter rule to prevent us from accidentally adding deprecated node methods
  * Added the new package linter plugin for NodeJS
  * Added unit test for the base 64 encoding for sanity check

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

### Checklist

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

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
~~- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
2019-06-11 11:41:38 -06:00
Spencer
2c936244e3
[7.x] Update dependency tinymath to v1.2.1 (#38589) (#38622) 2019-06-11 09:34:48 -07:00
Spencer
ff89c1d18d
[7.x] Update dependency tar to v4.4.10 (#38502) (#38555)
# Conflicts:
#	package.json
2019-06-11 09:33:59 -07:00
Spencer
4fa68ef99f
[7.x] Update dependency rison-node to v1.0.2 (#38453) (#38584) 2019-06-10 15:55:12 -07:00
Stacey Gammon
6688fd6d8e
Embeddable API V2 (#37510) (#38602)
* Embeddable API plugin

* Expose new embeddableActions uiExport endpoint

* Add missing getInjectedUIAppVars to Server type

* Add jest tests

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

* strip even more out to see if it passes ci

* It passed, put back init fn

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

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

* Add everything back but the sass import

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

* Functionally test embeddable explorer plugin

* Addressing review feedback part 1

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

* More review feedback

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

* Remove check for overwriting ApplyFilterAction

* use createRegistry for EmbeddableFactoryRegistry

* Add comment for getInheritedInput

* Use kbn-es-query Filter types

* Fix missed file after createRegistry switch over for EmbeddableFactoryRegistry

* Use delete instead of setting to undefined

* upgrade EUI to match kibana version

* Add getIsContainer on base embeddable class

* Run functional tests of sample plugin

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

* fix: 🐛 remove unused imports

* fix: 🐛 set to undefined explicitly

* chore: refactored getRoot functionality

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

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

* fix: customize panel flout test

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

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

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

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

* capitalize Reset

* fix: type errors in customize panel modal

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

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

* Clean up some classes and SASS

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

* Use the same old style of error messaging in panels

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

* Remove unused styles, add padding

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

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

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

* executeTriggerActions should account for getHref

* Remove unnecessary check for context being defined

* use npStart instead of getNewPlatform

* Conform to latest NP changes

* Use new np_mocks in all the tests

* Address review feedback on rxjs polyfill
2019-06-10 18:04:03 -04:00
Spencer
41ace26a76
[7.x] Update dependency simple-git to v1.113.0 (#38456) (#38469)
# Conflicts:
#	x-pack/package.json
2019-06-08 10:19:12 -07:00
Vadim Dalecky
1248b79b64
feat: kibana-react initial setup (#37206) (#38015)
* feat: 🎸 add NP TypeScript typings

* feat: 🎸 add kibana-react context provider

* feat: 🎸 add initial in-memory core implementation

* test: 💍 simplify useKibana() tests

* feat: 🎸 add useObservable() hook

* test: 💍 implement initial mock for uiSettings for testing

* feat: 🎸 add useUiSetting() hook

* docs: ✏️ update function name

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

* chore: 🤖 remove unused types

* chore: 🤖 fix linter error

* test: 💍 move core mock inline

Currently it fails on CI because of the relative import, so moving the
mock inline util it is resolved.
2019-06-07 18:22:59 -07:00
Spencer
3503a609d7
[7.x] Update dependency regression to v2.0.1 (#38437) (#38447) 2019-06-07 14:59:57 -07:00
Spencer
e0875077b7
[7.x] Update dependency rimraf to v2.6.3 (#38438) (#38448) 2019-06-07 13:17:26 -07:00
Spencer
e1544b40d3
[7.x] Update dependency nock to v10.0.6 (#37886) (#38406) 2019-06-07 08:47:52 -07:00
Spencer
4fbc5a5901
[7.x] Update dependency geckodriver to v1.16.2 (#37798) (#38401) 2019-06-07 08:47:24 -07:00
Spencer
5cef1b587e
[7.x] Update dependency pegjs to v0.10.0 (#37889) (#38378)
* Update dependency pegjs to v0.10.0

* PEG.buildParser() => PEG.generate()
2019-06-07 08:46:57 -07:00
Rudolf Meijering
9756ade442
[7.x] [Core] Rewrite saved objects in typescript (#36829) (#38249)
* [Core] Rewrite saved objects in typescript (#36829)

* Convert simple files to TS

* Fix jest tests

* Rename saved_objects_client{.js => .ts}

* WIP saved_objects_client

* saved_objects repository{.js => .ts}

* includedFields support string[] for type paramater

* Repository/saved_objects_client -> TS

* Fix tests and dependencies

* Fix saved objects type errors and simplify

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

* Fix saved objects export test after switching to typed mock

* Workaround type error

* Revert "Workaround type error"

This reverts commit de3252267eb2e6bf56a5584d271b55a7afdc1c53.

* Correctly type Server.savedObjects.SaveObjectsClient constructor

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

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

* Typescriptify scoped_client_provider

* Fix x-pack jest imports

* Add lodash/internal/toPath typings to xpath

* Introduce SavedObjectsClientContract

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

* Cleanup and simplify types

* Fix repository#delete should return {}

* Add SavedObjects repository test for uncovered bug

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

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

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

* Cleanup

* Address code review feedback

* Don't mock errors helpers in SavedObjectsClient Mock

* Address CR feedback

* CR Feedback #2

* Add kibana-platform as code owners of Saved Objects

* Better typings for SavedObjectsClient.errors

* Use unknown as default for generic type request paramater

* Bump @types/elasticsearch

* Fix types for isForbiddenError

* Bump x-pack @types/elasticsearch

* Update yarn.lock
2019-06-07 17:07:07 +02:00
Spencer
797906d1fb
[7.x] Update dependency proxyquire to v1.8.0 (#37913) (#38403) 2019-06-07 07:23:48 -07:00
Spencer
71bee98032
[7.x] Update webpack related packages (major) (#38372) (#38402) 2019-06-07 07:10:13 -07:00
Spencer
bd629c0d36
[7.x] Update dependency leaflet to v1.5.1 (#37811) (#38376)
* Update dependency leaflet to v1.5.1

* update baseline image

* Fix map draw controls

* Update CSS overrides to match updated package
2019-06-07 06:14:24 -07:00
Spencer
559a1ea7f7
[7.x] Update dependency @microsoft/api-extractor to v7.1.8 (#38364) (#38380) 2019-06-07 06:12:30 -07:00
Spencer
102bc2727c
[7.x] Update webpack related packages (major) (#37552) (#38371)
* Update webpack related packages

* raw-loader@2 uses esm, so we must import
2019-06-07 06:05:20 -07:00
Tim Roes
654a306f36
Convert Markdown components to TS (#38081) (#38389)
* Convert Markdown components to TS

* Fix jest snapshots
2019-06-07 13:05:45 +02:00
Spencer
fd125bc2db
[7.x] [dev/license_checker][dev/npm] reactor, ts-ify, de-grunt (#37807) (#38293) 2019-06-06 22:47:07 -07:00
Spencer
f775bbe086
[7.x] Update dependency @microsoft/api-extractor to v7.1.6 (#37760) (#38363)
* Update dependency @microsoft/api-extractor to v7.1.6

* regenerate docs

* OverlayService: Import react instead of relying on global
2019-06-06 22:44:43 -07:00
Stacey Gammon
987f13b96e
[7.x] Backport dashboard typescript #32703 and #33332 (#38263)
* rename PanelsMap to PanelStateMap to better reflect content (#33332)

* Backports #32703 and #33332 to 7.x
2019-06-06 12:09:36 -04:00
Tiago Costa
c5f7cbd5fd
Relative cache loader (#36131) (#38113)
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.

* chore(NA): last change to support cache loader across envs.

* fix(NA): cache-loader config generator function scope.

* refact(NA): static cache config for dll compiler.

* chore(NA): support for force writable cache flag. use built assets for cache on distributable.

* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.

* chore(NA): move optimize cache to built_assets.

* chore(NA): relative paths for sourcemap configurations.

* chore(NA): remove redudant check for process.env var.

* refact(NA): simplify double negated expression.

* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.

* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.

* chore(NA): readd babel register cache.

* chore(NA): change .cache to .ui_bundles_cache

* chore(NA): change .ui_bundles_cache to cache/ui_bundles

* chore(NA): update gitignore with .babel_register_cache.json

* chore(NA): rollback devtool module filename template to asbolute resource path.

* chore(NA): apply cache-loader patch.
2019-06-05 16:49:49 +01:00
Chandler Prall
8e37d72558
Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui (#36316) (#37900)
* Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui

* update snaps

* Clicking on the svg itself once loaded

* updated snaps

* update icon in snapshots

* Fix snapshot
2019-06-03 17:13:06 -04:00
Spencer
1bbb8e3e99
[7.x] Update d3 related packages (#37786) (#37877)
* Update d3 related packages

* [ml/explorer_chart/single_metric] update assertion
2019-06-03 09:09:30 -07:00
Spencer
dcd30086ea
[7.x] Update dependency mustache to v2.3.2 (#37816) (#37827) 2019-06-03 07:56:08 -07:00
Spencer
2b2a8e6882
[7.x] Update dependency lru-cache to v4.1.5 (#37814) (#37826) 2019-06-03 07:55:42 -07:00
Spencer
7a51daba73
[7.x] Update dependency leaflet-responsive-popup to v0.6.4 (#37813) (#37825)
* Update dependency leaflet-responsive-popup to v0.6.4 (#37813)

* Update dependency leaflet-draw to v0.4.14 (#37812)


(cherry picked from commit 43f546fa8d)
2019-06-03 07:54:55 -07:00
Spencer
266950590f
[7.x] Update dependency node-fetch to v1.7.3 (#37821) (#37823) 2019-06-03 07:54:24 -07:00
Spencer
2dd94ac160
[7.x] Update dependency json-stringify-pretty-compact to v1.2.0 (#37810) (#37820) 2019-06-02 10:03:24 -07:00
Spencer
70cecfacac
[7.x] Update dependency hjson to v3.1.2 (#37800) (#37808) 2019-06-02 00:10:03 -07:00
Spencer
ab5d33fd7b
[7.x] Update dependency font-awesome to v4.7.0 (#37787) (#37806)
* Update dependency font-awesome to v4.7.0

* rename license for new font-awesome version
2019-06-02 00:09:30 -07:00
Spencer
109b9a2cc3
[7.x] Update dependency image-diff to v1.6.3 (#37801) (#37805) 2019-06-01 21:36:04 -07:00
Spencer
4f405976c8
[7.x] Update dependency jimp to v0.6.4 (#37802) (#37804) 2019-06-01 21:35:39 -07:00
Spencer
90e0696ead
[7.x] Update dependency encode-uri-query to v1.0.1 (#37765) (#37783) 2019-06-01 11:43:36 -07:00
Spencer
023bd39069
[7.x] Update dependency @types/listr to ^0.14.0 (#37762) (#37780) 2019-06-01 11:41:49 -07:00
Spencer
a0ca4a586b
[7.x] Update dependency @types/fetch-mock (#37761) (#37779) 2019-06-01 11:41:14 -07:00
Spencer
b3b17cb182
[7.x] Update dependency @microsoft/api-documenter to v7.2.1 (#37759) (#37778) 2019-06-01 11:40:31 -07:00
Spencer
3e8dbb7fc0
[7.x] Update dependency dragula to v3.7.2 (#37732) (#37743) 2019-06-01 08:35:55 -07:00
Spencer
8f0e68fb52
[7.x] Update dependency commander to v2.20.0 (#37715) (#37744)
* Update dependency commander to v2.20.0 (#37715)

* Update dependency compare-versions to v3.4.0 (#37729)


(cherry picked from commit 4a94aeeb4c)
2019-05-31 17:19:55 -07:00
Spencer
a4de730ce4
[7.x] Update grunt related packages (#37554) (#37746) 2019-05-31 17:19:27 -07:00
Spencer
7aea62aa61
[7.x] FTR: add support for Firefox browser (#32509) (#37750)
* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

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

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

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

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

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback
2019-05-31 17:18:31 -07:00
Spencer
becb9386a9
[7.x] Update dependency chance to v1.0.18 (#37713) (#37727) 2019-05-31 14:49:04 -07:00
Spencer
8671437cb2
[7.x] Update dependency classnames to v2.2.6 (#37714) (#37725) 2019-05-31 14:48:43 -07:00
Spencer
37a1950142
[7.x] Update dependency bluebird to v3.5.5 (#37633) (#37677) 2019-05-31 10:17:14 -07:00
Spencer
63e736b2c5
[7.x] Update dependency angular-sortable-view to v0.0.17 (#37611) (#37628) 2019-05-31 10:16:49 -07:00
Spencer
ca6b9140b4
[7.x] Update dependency JSONStream to v1.3.5 (#37609) (#37626) 2019-05-31 10:16:15 -07:00
Spencer
f8cf582e1d
[7.x] Update dependency angular-elastic to v2.5.1 (#37610) (#37627) 2019-05-31 07:05:00 -07:00