Commit graph

3162 commits

Author SHA1 Message Date
Robert Oskamp ceaa6d9102
[ML] Fix flaky setValue for some elements (#46693) (#46806)
Use setValue with clearing via keyboard
2019-09-27 21:41:45 +02:00
Vadim Dalecky e7c15e2609
Embeddables 2 np (#46771) (#46783)
* chore: 🤖 move embeddable_api to NP "embeddable" plugin

* fix: 🐛 fix TypeScript type check errors

* fix: 🐛 fix TypeScript and build errors

* test: 💍 fix Jest tests

* fix: 🐛 fix translations

* test: 💍 add Mocha mocks

* fix: 🐛 change import syntax from function test sample plugin

* fix: 🐛 revert canvas changes back and leave placeholders

* chore: 🤖 revert more changes

* chore: 🤖 revert more changes

* fix: 🐛 fix TypeScript type check errors

* fix: 🐛 fix functional test imports

* fix: 🐛 fix x-pack Jest test importa

* test: 💍 fix advanced_ui_actiosn import for tests
2019-09-27 16:41:23 +02:00
Spencer 56e295568c
[7.x] Fix disappearing screenshots in CI (#46382) (#46662) 2019-09-26 07:31:28 -07:00
Spencer 2e2e1ea39b
[7.x] Re-split ciGroups after pipeline rollout (#46375) (#46643)
* Re-split ciGroups after pipeline rollout

Revert "Revert "Revert "Revert "Revert "[ci] compress jobs for CI stab… (#45454)"

This reverts commit 9a109f2170.

Revert "set IS_PIPELINE_JOB in intake jobs (#45850)"

This reverts commit b1a01effa8.

* Split one of the slow test suites up to try to make overall CI faster

* Disable visualRegression groups, they are being handled in other work

* Revert "Split one of the slow test suites up to try to make overall CI faster"

This reverts commit 1213239545.

* Move some different xpack ciGroup8 suites around
2019-09-25 17:21:47 -07:00
Spencer 4ff1350664
[7.x] Update angular+jquery related packages (#46393) (#46629)
* 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

# Conflicts:
#	package.json
#	yarn.lock
2019-09-25 15:12:04 -07:00
Stacey Gammon 817877dc8b
Typescript some of src/legacy/server/index_patterns (#44993) (#46349)
* TypeScriptify errors.js

* Fixed type errors in errors.ts

* Prettierize resolve_time_pattern.test.js

* Prettierize resolve_time_pattern.js

* TypeScriptify resolve_time_pattern.js

* Prettierize mixin.js

* Fixed errors.ts payload error.

* TypeScriptify and Prettierize mixin.ts

* Prettierize query_params.js

* TypeScriptified routes and used core.http features and fixed related tests.

* Fixed type errors.

* Removed anys

* Prettierize params.js

* Prettierize response.js

* Accepts string array as query param.

* Returns 404 when there's no matching pattern for fields_for_wildcard.

* Simplified schema.

* Fixed types.
2019-09-23 16:03:29 -04:00
Stacey Gammon f5f121a80c
[7.x] Move actions to NP (#44707) (#46098)
* Move actions to NP (#44707)

* move actions to np

* fix jest and types

* Remove unused Action import
2019-09-23 11:50:52 -04:00
Dmitry Lemeshko 0fa18df2df
Re-enable tsvb math aggs test (#46188) (#46254)
* re-enable tsvb  Math Aggregation test

* run ciGroup6 15x times

* Revert "run ciGroup6 15x times"

This reverts commit 19d94befcb.
2019-09-22 12:16:34 +03:00
Dmitry Lemeshko 5a7421a882
Fix/markdown functional tests (#46216) (#46262)
* [page_objects/visual_builder_page] improve text area input clearing and typing value

* run ciGroup6 15x times

* Revert "run ciGroup6 15x times"

This reverts commit d94491769b.
2019-09-22 12:13:46 +03:00
spalger 336fb97798 skip flaky suite (#46305)
(cherry picked from commit 5b67cd5e4f)
2019-09-21 11:30:06 -07:00
Matthias Wilhelm dbda7f4a52
Add numeric_type option for correct sort order on mixed date and date_nanos fields (#44212) (#46212)
* Implement getSortForSearchSource for add-on of 'numeric_type' to the ES request. Then sorting on a field that can be of date or date_nanos type works correctly

* Add functional test
2019-09-20 16:46:01 +02:00
liza-mae e6664473d0
Revert hiding Kibana icon, test Percy rendering (#43990) (#46168)
* Revert hiding Kibana icon, test Percy rendering

* Update jobs.yml

* Use percy token for kibana dev

* Update Percy token to read from kibana-issues

* Read correct field

* increase timeout

* Run each visual job 10 times

* Revert last commit

* Increase timeout

* Disable visual tests and revert percy token

* Fix jest tests

* Another jest test fix
2019-09-19 13:11:25 -06:00
Caroline Horn 159fee4e5b
Upgrade EUI to 14.2.0 (#46075) (#46160)
* 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 14:36:24 -04:00
Dmitry Lemeshko 2d50a92a9d
Fix visualize point series tests (#46069) (#46159)
* change interaction with 'select' element

* run ciGroup5 15x times

* Revert "run ciGroup5 15x times"

This reverts commit 9c19d9a135.
2019-09-19 20:10:05 +02:00
Marco Vettorello 6283651dc4
Replace Discover chart with elastic-charts (#43788) (#46115)
* use elastic-charts for histogram
* add class accessibility
* specify onElementClick type annotation
* set chartElement tooltip type to Follow
* use moment methods for now annotation logic
* move historam inside directive folder
* remove unused timechart directive
* remove dependency from tsvb brush handler
* remove non-required class to fix tooltip overflow
* change the cursor/crosshair
* fix(ie11): add fixed width for header text
* fix: annotation colors on dark theme
* unpdate click and brush ui functional tests
* move functional tests to percy
2019-09-19 14:46:24 +02:00
Daniil Suleiman 0bd788ce95
Remove extra code from point series functional tests (#45895) (#46010)
* Remove extra code

* Remove unused ids
2019-09-19 14:35:13 +03:00
Lee Drengenberg 51ef46fdbb
use correct id in setting default index pattern in dashboard tests (#45601) (#46011)
* replace guid with logstash-* in data for default index pattern

* revert change to data archive, instead fix index pattern id
2019-09-18 18:30:28 -05:00
spalger da666a5599 disable flaky suite (#46085)
(cherry picked from commit 22e15b8bcc)
2019-09-18 14:26:32 -07:00
Dmitry Lemeshko 5282c9f3a9
Fix/tsvb functional tests (#45868) (#46047)
* [page_objects/visual_builder_page] increase timeout & remove FF sleep

* unskip flaky test suites

* run ciGroup6 12x times

* fix tsvb_markdown tests

* skip aggs test

* fix waiting

* run FF tests 8x times

* Revert "run FF tests 8x times"

This reverts commit 75ef2ced46.

* Revert "run ciGroup6 12x times"

This reverts commit 217dbb818c.

* Update test/functional/page_objects/visual_builder_page.ts

review fix

Co-Authored-By: Spencer <email@spalger.com>
2019-09-18 22:12:56 +02:00
Dmitry Lemeshko 4b3e0b057d
Update chromedriver to 77 (#45614) (#46025)
* bump chromedriver to v77

* fix file import
2019-09-18 20:41:25 +02:00
Brian Seeders e8659817d2
[7.x] Run pipeline scripts with runbld (#45844) (#46020)
Change how runbld is invoked, and skip junit processing by default
2019-09-18 13:17:09 -04:00
spalger 3dc5517360 disable flaky test (#45970)
(cherry picked from commit dc774b30d6)
2019-09-18 04:40:04 -07:00
Spencer 7c0acf05a4
[7.x] [ftr/savedObjects] add simple saved object api client to… (#45940)
* [ftr/savedObjects] add simple saved object api client to ftr services

* fix typo

* use consistent spacing

* fix types and TS-ify the rest of kibanaServer service

* expose server urls with better API

* tweak status api response types

* fix http body param name

* second arg to axios post is the post data

* use standardized error handling behavior

* Revert "use standardized error handling behavior"

This reverts commit 7e9a7f8dc5.

* revert unnecessary changes
2019-09-17 14:45:56 -07:00
Spencer 745b0ba0a6
[7.x] set IS_PIPELINE_JOB in intake jobs (#45850) (#45920)
* set IS_PIPELINE_JOB in intake jobs

* firefox smoke doesn't get an initial build

* firefox smoke doesn't get an initial build (oss edition)

* re-enable all jobs
2019-09-17 14:43:07 -07:00
Dmitry Lemeshko d79449ec55
[test/functional/services] tsfy FailureDebugging, SavedQueryManagementComponent & Snapshots (#45682) (#45841)
* [test/functional/services] tsfy failure_debugging, snapshots, saved_query_management_component

* update renovate config

* fix path in snapshot service
2019-09-17 09:41:13 +02:00
Caroline Horn 82b23d43d7
Update EUI to 14.0.0 (#45475) (#45813) 2019-09-16 15:52:47 -04:00
spalger f85c7402f6 [kbn-es] make custom snapshot url a feature (#45750)
* [kbn-es] make custom snapshot url a feature

* download es snapshot first

(cherry picked from commit 510566d66b)
2019-09-15 08:12:47 -07:00
Lee Drengenberg 8aa5e57d2a
correct path with this missing slash (#45666) (#45708) 2019-09-13 18:55:54 -05:00
Spencer 65a31173c2
[7.x] Call failure reporter directly from Jenkinsfile (#45551) (#45668)
* Run failed_tests/cli once per node

* force failures for testing

* Revert "force failures for testing"

This reverts commit 3ddd9240fe.
2019-09-13 13:43:48 -07:00
Maryia Lapata cb9bb8373c
[7.x] [Vis: Default Editor] EUIficate 'Metrics & Axis' tab (#43772) (#45621)
* [Vis: Default Editor] EUIficate 'Metrics & Axis' tab (#43772)

* EUIficate pointe-series and grid

* Apply TS

* Show grid on a panel

* Remove extra space

* Add TS

* Use BasicOptions

* Adjust func test

* Add dataTestSubj prop to SelectOption

* Use id instead of data-sest-subj

* Disable show x-axis lines when there is histogram agg

* Add tooltip for disabled 'Show x-axis lines' config

* Add series_options.tsx

* Migrate series

* Improve changeValueAxis

* Create CategoryAxisPanel

* Create ValueAxesPanel

* Create CustomExtentsOptions

* File renaming

* Use TruncateLabelsOption

* Set min value

* Add validation

* Refactoring

* Move types upper

* Convert series logic

* Convert valueAxes logic

* Rename function

* Add validation and refactoring

* Adjust styles

* Fix rotates

* Apply config for other vis

* Remove old directives

* Fix useHook usage

* Update vislib_vis_type.js

* Fix

* Move Threshold line panel into a separate component

* Remove unused translations

* Apply ui suggestions

* Update functional tests

* Remove angular unit test

* Refactoring

* Fix dependencies

* Refactoring

* Add validation

* Add validation for other vis

* Refactoring of onPositionChanged handler

* Refactoring of addValueAxis

* Get rid of a useEffect

* Refactoring of updateAxisTitle

* Update useCallback

* Refactoring

* Refactoring of collections config

* Refactoring of setChartValueByIndex and setValueAxisByIndex

* Update metrics_axes_options.tsx

* Watch current tab for correct accordion height

* Revert axis title logic

* Fix axis id and name number

* Fix code review comments

* Fix functional tests

* Update visualize_page.js

* Move option tabs in common

* Fix code review comments

* Update index.tsx

* Refactoring

* Fix merge conflict

* Show ThresholdPanel when it's configured

* Fix passing a current tab to vis-options

* Localize 'Count' text

* Pass one axis to CategoryAxisPanel

* Fix y-axis name number when x-axis position changed

* Fix Y-axis name number when position Y-axis changed

* Fix refresh loop

* Re-organize controls

* Apply code review comments

* Refactoring

* Fix extents empty value

* Update y_extents.tsx

* Fix code review comments

* Fix updating several seriesParams when removing axis

* Add thresholdLine config to horizontal bar

* Refactoring

* Reset grid.valueAxis when the axis deleted

* Fix refresh loop

* Set interpolate config for line

* Enable "show dots"

* Fix functional test
2019-09-13 21:54:15 +03:00
Dmitry Lemeshko dc63cbe85c
Change data-test-subj selector logic to support value with spaces (#43682) (#45505)
* update test-subj-selector

* update locators

* adjust whitespaces removal

* fix another locator

* fix ML test locators
2019-09-12 18:11:39 +02:00
Spencer 5fc3d0639f Revert "Revert "Revert "Revert "[ci] compress jobs for CI stab… (#45454)
* Revert "Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)"""

This reverts commit 148b8c0f90.

* sync changes with Jenkinsfile

(cherry picked from commit 9a109f2170)
2019-09-11 15:28:14 -07:00
Brian Seeders 17670959dc Jenkins pipeline with parallel cigroups (#45285)
* Pipeline

* WIP some work for parallelization with ciGroups

* Fix xpack kibana install dir, and add some debugging

* Attempt to quick fix a few tests

* Revert "Revert "Revert "[ci] compress jobs for CI stability" (#44584)""

This reverts commit 078ac2897f.

* Recombine test groups, and try runbld again

* Mostly cleanup, and fix failed_tests reporting to hopefully work for both pipeline and non-pipeline

* Fix typo in shell script

* Remove some debug code

* Add support for changing es transport.port during testing via TEST_ES_TRANSPORT_PORT

* Fix test that uses hard-coded es transport port and add it back in to parallel groups

* Disable checks reporter again for now

* Set env var for TEST_ES_TRANSPORT_PORT in pipeline

* Update Jenkinsfile for shorter testrunner labels

* Fix another hard-coded transport port

* Fix a new test with hard-coded URLs

* Jenkinsfile cleanup and fix one of the groups

* Fix double slash

* Testing vault credentials on jenkins server

* Add a non-existent credential

* Revert "Add a non-existent credential"

This reverts commit 0dc234c465a5483b1a994cb510a182fef766e9cc.

* Try github-checks-reporter again

* github-checks-reporter should only run for elastic/kibana, forks won't work

* Clean up some debug code

* Changing names around to try to make BlueOcean UI a little better

* Add more stages

* Make some changes to stage structure to mirror a nested example from CloudBees

* Handle TODOs, and some cleanup in Jenkinsfile

* Pass GIT_BRANCH when started without GHPRB, fix branch check

* Fix mailer problem and add code that ensures all tests are in cigroups back in

* Test adding worker/job name to junit report paths

* Remove some duplication from ci_setup scripts

* Fix unit test that uses junit path

* Don't reinstall node every time setup_env is run

* Fix yarn install logic

* Fix another unit test that uses junit output dir

* Download latest ES snapshot after kibana builds

* Make sure junit reports are always processed

* Add two failing tests for testing purposes

* Add support to Jenkinsfile for kibana build e-mails

* Remove some debug code for email sending

* Change JOB env handling in junit paths and move it to a sub-directory

* Revert "Add two failing tests for testing purposes"

This reverts commit 5715203e26922a93483feb0ebb8bb3fdcc3daf8c.

* Fix junit report path in test

* Don't send kibana emails on build abort

* Address PR feedback, formatting and use built-in url formatting library

* Fix path formatting for functional test

* Add email sending back in to Jenkinsfile

* Fix another unit test with path problem

(cherry picked from commit 27d23c4184)

# Conflicts:
#	src/dev/ci_setup/setup.sh
#	src/dev/failed_tests/cli.js
2019-09-11 12:23:33 -07:00
Dmitry Lemeshko 5c3cd1bdd7
Functional tests: convert more test/services to TS (#45176) (#45385)
* convert more test/services to TS

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* Update test/functional/services/combo_box.ts

Co-Authored-By: Tre' <wayne.seymour@elastic.co>

* fix lint error
2019-09-11 20:30:44 +02:00
Greg Thompson 3a0059ab69
[7.x] Upgrade EUI to 13.8.1 (#45052) (#45398)
* 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

* snapshot update (poor merge conflict resolution)
2019-09-11 12:52:43 -05:00
Matthias Wilhelm aaccd70503
De-angularize and EUI-ficate Discover Context control elements (#44474) (#45288)
* Create ActionBar component, merges loading button and size picker

* Use react component, remove angular code

* Migrate constants + state to typescript

* Remove unused increaseCount functions + tests

* Add jest test
2019-09-11 07:43:48 +02:00
spalger 92b52e2d05 disable another flaky suite (#45323) (#45330)
(cherry picked from commit 95bf9c832a)
2019-09-10 20:23:12 -07:00
spalger a3cba210a6 disable flaky suite (#45105)
(cherry picked from commit a7f5062741)
2019-09-10 18:19:22 -07:00
spalger 5f82d87291 skip flaky suite (#45089)
(cherry picked from commit 3a8d19d3a0)
2019-09-10 18:00:04 -07:00
spalger d2235c6e6e disable jest suite that has no enabled tests (#44250)
(cherry picked from commit 61e1b83722)
2019-09-10 17:54:18 -07:00
spalger be1a51bdd0 disable flaky test (#45315)
(cherry picked from commit d50892100b)
2019-09-10 17:31:08 -07:00
spalger 65003f0cbc Revert "Revert "[ci] compress jobs for CI stability" (#44584) (#44673)"
This reverts commit 2584383be1.
2019-09-10 09:04:36 -07:00
Christiane (Tina) Heiligers 819c0d341e
Remove double call to update state from saved query (#45046) (#45087)
* Changes saved query watchers in Discover to reduce number of calls to updateStateFromSavedQuery

* Changes saved query watchers in Dashboard to reduce number of calls to updateStateFromSavedQuery

* Changes saved query watchers in Visualize to reduce number of calls to updateStateFromSavedQuery

* formatting

* fixes test
2019-09-06 17:27:42 -07:00
Alexey Antonov e639f18a90
Replace TSVB timeseries charts with elastic-charts (#33558) (#44980)
* Replace TSVB timeseries charts with elastic-charts

* Add sort index for series

* Update src/legacy/core_plugins/metrics/public/visualizations/views/timeseries/index.js

Co-Authored-By: Nick Partridge <nick.ryan.partridge@gmail.com>

* Fix PR comments

* fix issue with scaling

* fix crosshair styles for bar
2019-09-06 14:38:51 +03:00
Dmitry Lemeshko e97c1a68f9
FTR: fix WebDriver Actions calls (#44605) (#44967)
* [services/web_element_wrapper] add actions API methods

* fixes

* [services/browser] fix dragAnDrop to work in both w3c/non-w3c modes

* small review changes

* dragAndDrop: add default values for offset
2019-09-06 09:18:50 +02:00
Mikhail Shustov bdd6218fdc
disable router prefixing with pluginId (#44855) (#44908)
to unblock plugin migration until new api and static
resource services are available
2019-09-06 09:14:10 +02:00
Matt Bargar f0d9ef06b0
Attempts to make saving of the current query more robust (#44797) (#44836) 2019-09-05 13:55:28 -04:00
Stacey Gammon 531534659a
Decouple actions from embeddables: step 1 (#44503) (#44891)
* Decouple actions from embeddables: step 1

* prefer as any instead of is-ignore

* Remove unneccessary test, no more triggerContext to be null.

* Fix bug and fix the test that should have caught it.  Be more strict about checking isCompatible.
2019-09-05 11:48:20 -04:00
Dmitry Lemeshko aa24a33423
[visualize/_tsvb_time_series] fix flaky test (#44505) (#44748) 2019-09-04 10:01:57 +02:00
Josh Dover 069843e406
Add ApplicationService Mounting (#41007) (#44692) 2019-09-03 15:35:22 -05:00