Commit graph

702 commits

Author SHA1 Message Date
Tim Roes
95bf5c067d
Improve jest mocking infrastructure (#38760) (#39033)
* Always mock metadata/chrome in OSS

* Enable jest env in jest mocks

* Exclude jest mocks in karma bundles

* Use setupFilesAfterEnv in config

* Remove chrome/metadata mock from x-pack

* Remove kuery mock

* Add missing mock to SIEM test

* Fix typo in mock import

* Remove top level capabilities x-pack mock

* Move kfetch mock to ui/public

* Move moment-timezone to mocks file

* Unmock kfetch in kfetch specific tests

* Make kfetch mock manual

* Removed unnecessary jest.mock

* Remove kfetch unmocks
2019-06-15 09:45:40 +02:00
Spencer
5d54189ace
[7.x] [kbn/es] auto retry snapshot download on unexpected errors (#38944) (#38992)
* [kbn/es] auto retry snapshot download on unexpected errors

* missed an await

* pass log to retry()
2019-06-14 13:10:38 -07:00
liza-mae
9ce96bc567
[WIP] FTR Percy changes (#36897) (#38996)
* [ftr/percy] integrate percy with functional test runner

* execute ftr within `percy exec`

* share PERCY_BIN and GRUNT_BIN vars in setup

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

* [percy] include pr/parallel info in env

* echo the actual variable value

* destructure required modules

* [ci] calculate percy env in a script

* remove outdated eslint overrides

* oops, nonce should be the same for each build

* take snapshots in context tests

* add percy snapshots to some dashboard tests

* account for extra execution of PERCY_BIN

* remove usage of percy service

* rename service to `visualTesting`

* write a simple test

* switch left-over percy test to visualTesting

* set log level for percy agent

* trigger ci

* try using the system chrome install instead of downloading one

* fix export definition

* Don't skip chromium download

* Add Spencer's fix to point to chrome installation

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

* Renumber job

* Add tag to decorations file

* Try new files with existing CI job

* Try again to create a new CI job

* Fix eslint problem with space

* eslint updates

* fix console test

* make test names unique

* Update ci group names

* Try old name again

* save

* add separate visual_regression ci job

* add visual regression ci job

* add new job to jobs.yml

* update path to take_percy_snapshot script

* use fixed percy job total

* fix common services import

* move visual_create_and_add_embeddables to visual_regression project

* finish moving create_and_add_embeddables

* add x-pack visual regression job

* migrate dashboard_snapshots tests to visual_regression

* remove references to removed test files

* restore some unnecessary changes

* reimplement the login page tests

* yarn.lock update

* fix test

* remove old CI_GROUP 100 block

* update failed_tests trap

* reduce yarn.lock changes

* disable debug logging

* disable visual-regression tests for now, we can enable them in specific prs
2019-06-14 12:16:48 -06:00
Nathan Reese
6f0e6394c1
[Maps] symbolize points with maki icons (#37822) (#38975)
* [Maps] sybmolize points with maki icons

* add from for selecting symbol

* add from for selecting symbol

* get icons working for static colors

* static icon sizing

* refacto symbol_utils

* timing issue

* use SDF icons

* dynamic iconSize

* set icon-anchor

* display symbol icon in map legend

* add unit tests for VectorIcon

* set icon fill based on dark mode

* remove unused file

* fix jest tests

* set icon-opacity

* use size style to configure icon-image small or large

* fix queryRadius error by just hiding other point layer instead of removing

* remove console statement on error

* use maki icon size constants

* add retry around opening set view popover for flaky test
2019-06-14 07:09:41 -06:00
dave.snider@gmail.com
101b4d56cc
Fix focus ring issue in 7.x (#38847)
* Fix focus ring issue in 7.x

* csss file for kui
2019-06-12 16:17:56 -07:00
Spencer
03a2b641f9
[7.x] Update webpack related packages (#38729) (#38799)
* Update webpack related packages

* force updates to transient dep versions

# Conflicts:
#	yarn.lock
2019-06-12 10:20:42 -07:00
Spencer
532ca99882
Update dependency yo to v2.0.6 (#38705) (#38725) 2019-06-11 22:41:04 -07:00
Spencer
b91b003d95
[7.x] Update dependency uuid to v3.3.2 (#38672) (#38699) 2019-06-11 16:13:01 -07:00
Spencer
45920c0d78
[7.x] Update dependency tmp to v0.1.0 (#38590) (#38621) 2019-06-11 09:34:28 -07:00
Matt Bargar
e1a19ccd57
[7.x] Enable use of KQL and autocomplete in filters agg editor (#37287) (#38468)
* Enable use of KQL and autocomplete in filters agg editor (#37287)

This PR updates the filters agg editor to use the full QueryBar component, enabling use of KQL and autocomplete inside the editor for this aggregation in Visualize.

* remove unused translation
2019-06-10 18:24:20 -05:00
Spencer
3a3d595bde
[7.x] Update dependency tabbable to v1.1.3 (#38501) (#38558) 2019-06-10 12:52:02 -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
Spencer
71bee98032
[7.x] Update webpack related packages (major) (#38372) (#38402) 2019-06-07 07:10:13 -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
spalger
7d103f34d4 update yarn.lock and kbn-pm dist 2019-06-06 19:11:48 -07:00
Stacey Gammon
5c66668c69
Backport #37527 (#38298) 2019-06-06 16:35:14 -04:00
Tiago Costa
31bc6504f6
chore(NA): declare kbn-babel-preset as peer dependency for kbn plugin helpers. (#37710) (#38219) 2019-06-06 11:53:25 +01:00
Ahmad Bamieh
3e57cf797a
[7.x] [i18n] [docs] Update docs to encourage static i18n import (#37858) (#37980)
* update documentation

* Update docs/development/plugin/development-plugin-localization.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/GUIDELINE.md

* Update packages/kbn-i18n/GUIDELINE.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/README.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update packages/kbn-i18n/README.md

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
2019-06-04 16:50:27 +03:00
Spencer
7f070d17da
[7.x] Update dependency gulp-zip to v4.2.0 (#37789) (#37797) 2019-06-01 19:10:23 -07:00
Spencer
b7b9e20bee
[7.x] Update dependency @types/tempy to ^0.2.0 (#37764) (#37782) 2019-06-01 11:43:02 -07:00
Spencer
fcc24a8129
[7.x] Update dependency @elastic/eui to v0.0.55 (#37733) (#37757) 2019-06-01 08:36:56 -07:00
Spencer
255624bb89
[7.x] Update dependency brace to v0.11.1 (#37712) (#37724) 2019-05-31 17:20: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
c0b857598a
[7.x] Update dependency autoprefixer to v6.7.7 (#37631) (#37678) 2019-05-31 10:17:40 -07:00
Tiago Costa
60f852b344
Replace tsc compilation with transpile with babel on kbn plugin helpers for typescript (#36769) (#37642)
* chore(NA): add transpile with babel the typescript files on xpack when build.

* chore(NA): fix the globs for public folders inside server paths

* docs(NA): add comments to explain globs.

* chore(NA): use pipeline instead of async pipeline promise from dev utils. chore(NA): change globs definitions to match the overall convention.

* chore(NA): apply documented way to use stream pipeline.

* chore(NA): exclude test files from the build transpilation.

* chore(NA): add ignore for eslint complexity warning

* chore(na): fix bad added type files.

* fix(NA): unused type exports
2019-05-31 14:07:43 +01:00
Spencer
92e3cd8ac5
[7.x] Update dependency highlight.js to v9.15.8 (#37596) (#37607) 2019-05-31 01:55:24 -07:00
Spencer
3fe5c954bf
[7.x] dependency updated (#37406) (#37465)
* Pin dependencies (#37406)

* Pin dependencies

* include core-js in babel packages

* specify core-js version when using `useBuiltIns`

* dedupe @babel/types to avoid "range of null" problem

* chore(deps): update dependency del to v4 (#37466)

* chore(deps): update dependency del to v4

* remove @types/del since they ship with the package now

(cherry picked from commit c60e3491a2)

* Update gulp related packages (#37456)

(cherry picked from commit 62893ec0bc)

* Update babel related packages (#37464)

(cherry picked from commit 830bd1f0ca)
2019-05-30 14:57:56 -07:00
Spencer
737a4df891
[7.x] Pin dependencies (#37404) (#37451)
* Pin dependencies (#37404)

* Pin dependencies

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

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

* [eslint-plugin-import] auto-fix import order issues

* Pin dependencies (#37454)

(cherry picked from commit b2340d5cae)
2019-05-29 23:17:57 -07:00
Joe Reuter
38d74c40f9 Expressions service (#36885) (#37315)
Merged after syncing with @flash1293
2019-05-29 19:06:49 +03:00
Aleh Zasypkin
c62833b204
[7.x] Introduce Kerberos authentication provider. (#37313) 2019-05-29 11:59:04 +03:00
Todd Kennedy
00ee70086d
[feat] add reach-like functionality to object (#37118) (#37139)
* [feat] add reach-like functionality to object

In #36804 we need to validate a `Partial<HttpConfig>` object which may
or may not have all the required keys attached to it.  This is the type
of use-case for `Joi.reach`, so we should expose a reach-like method on
the object validation class so that you can return the validator for a
specific key on an object.

* [fix] change to validateKey

* [fix] use throw error matcher

* [fix] use same interface for validate

* [fix] change test name]
2019-05-28 09:52:04 -07:00
Peter Pisljar
0da40546f2
Fix histogram range update when x axis is scripted field (#25379) (#36973) 2019-05-24 07:04:53 +02:00
Tyler Smalley
ef2314a294
[kbn-es] Support ES security running from source/archive (#36733) (#36811)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-23 07:41:52 -07:00
spalger
a578261158 [kbn-es] retry on all error types while setting up native realm 2019-05-23 07:28:13 -07:00
Spencer
18c3eecb8d
[7.x] [kbn/es] auto-retry all requests in native realm setup (#36868)
* [kbn/es] auto-retry all requests in native realm setup

* run x-pack-ciGroup5 40 times

* fix argument to autoRetry

(cherry picked from commit 9c2ff83ba1)

* Revert "run x-pack-ciGroup5 40 times"

This reverts commit ebd179c52d.
2019-05-22 10:25:53 -07:00
spalger
178950ea85 [kbn-es] use bare ToolingLog rather than stub (#36862)
(cherry picked from commit e8ffa2f3c7)
2019-05-21 21:58:38 -07:00
spalger
c80e48721f loosen check for security exception and log metadata so we can investigate "offline"
(cherry picked from commit 8d7e1237bb)
2019-05-21 20:25:28 -07:00
Spencer
1f83652ccf
[7.x] [kbn/es] await native realm setup, error if there are failures (#36475) (#36722)
* Revert "Revert "[kbn-es] await native realm setup, error if there are failures (#36290)""

This reverts commit a102ca1f97.

* [kbn/es] retry setPassword call if it fails
2019-05-21 08:13:57 -07:00
Spencer
3bb33c0cb0
[7.x] [cli/dev] allow running --dev without kibana.dev.yml (#36400) (#36707)
* [cli/dev] allow running --dev without kibana.dev.yml

* disable kibana.dev.yml for functional test servers

* [cli/dev] automatically strip xpack config when running --oss

* revert bad merge artifact
2019-05-20 12:08:36 -07:00
Catherine Liu
7448f64e1d
[Canvas] Feat: static tags for elements (#28779) (#36307)
* Extract Tags component and tag filter config object from workpad templates

    Added tag filtering to element selection modal

    Added tags to element

    Added type definitions to Registry in @kbn/interpreter

    Added stories for Tag and TagList components

    Changed graphic tag color
2019-05-14 13:53:47 -04:00
dave.snider@gmail.com
1243f7007c
KUI css for dark mode wasn't compiled, had error with kbn-resetFocusState (#36318) (#36330) 2019-05-09 06:49:37 -07:00
Tyler Smalley
0fd0245b87
[kbn-es] Security updates (#36288) (#36299)
* In kbn-test, provide password to cluster.start()
* Security enabled by default, overwrite by passing `-E "xpack.security.enabled=false"`

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-08 14:17:53 -07:00
Frank Hassanabad
87ca1a2ddc
Squash of feature-secops branch (#36044)
Backport of #35394
2019-05-03 12:45:15 -06:00
Peter
6d5f29deac
enable security plugin in basic (#35892)
enable security on file dataviz and import (ML plugin)

update unit tests

add api test coverage for security in basic

move audit logging to standard+ license level
2019-05-02 12:32:57 -07:00
Tyler Smalley
39d5639a98
Upgrade jQuery to 3.4.1 (#35908) (#35928)
Fixes #35419
Fixes #35392

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-02 07:51:07 -07:00
Tyler Smalley
538e8f2a69
[kbn-es] Set password for native realm accounts (#35586) (#35875)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-01 13:25:46 -07:00
Tyler Smalley
8671acf2aa
[kbn-es] Add network archive downloading to installArchive (#31535) (#35519) 2019-04-25 09:50:17 -07:00