Commit graph

1055 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
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
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
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
spalger
3dc5517360 disable flaky test (#45970)
(cherry picked from commit dc774b30d6)
2019-09-18 04:40:04 -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
Lee Drengenberg
8aa5e57d2a
correct path with this missing slash (#45666) (#45708) 2019-09-13 18:55:54 -05: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
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
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
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
Spencer
2584383be1
Revert "[ci] compress jobs for CI stability" (#44584) (#44673)
This reverts commit debf8c62b4.
2019-09-03 12:25:06 -07:00
Caroline Horn
5ea3a0dba3 Saved queries design cleanup (#44191) (#44380) 2019-08-29 16:58:26 +02:00
Spencer
408bf82284
[ci] compress jobs for CI stability (#44353)
# Conflicts:
#	x-pack/test/functional/apps/dashboard_mode/index.js
#	x-pack/test/upgrade_assistant_integration/upgrade_assistant/index.js
2019-08-29 05:10:13 -07:00
Christiane (Tina) Heiligers
23bf0d5cca
Reset dirty saved query on reload (#43927) (#44142)
* Clears changes a loaded saved query before loading another one

* Adds general functional test to ensure changes to a saved query are discarded on reloading it

* Moves resetting a dirty saved query to the app controllers in Discover, Visualize and Dashboard
2019-08-27 13:55:15 -07:00
spalger
b77201c67e skip flaky test (#44132)
(cherry picked from commit 9d8f808063)
2019-08-27 13:40:59 -07:00
Matthias Wilhelm
5148944916
De-angularize DocViewer (#42116) (#44059)
* Migrate doc-viewer directive to use React/TypeScript

* Refactor DocViewsRegistryProvider

* Add compatibility for 3rd party plugins still using angular

* Add tests

Angular rendering for usage in React component:

Co-authored-by: spalger <email@spalger.com>
2019-08-27 10:46:03 +02:00
Matt Bargar
9d5e1ed5c1
Save query form validation on blur (#43726) (#43827)
This PR changes the save query form to only validate its inputs on blur. Previously we validated on every change. This could lead to the errors flashing in the user's face before they're done typing a valid input. For example, we allow spaces in the name field, but not at the beginning or end of the name. So if a user typed this is a long name with spaces they would see the error pop up every time they type a space, only to have it disappear when they type the next letter.
2019-08-23 16:48:45 -04:00
Spencer
e1f5a7c483
[indexPatterns/bytesFormat] switch default decimal places to 1 (#43785) (#43860)
* [indexPatterns/bytesFormat] switch default decimal places to 1

* set format:bytes:defaultPattern in some functional test suites
2019-08-23 08:23:08 -07:00
Daniil Suleiman
731ef1bd29
[Vis: Default editor] EUIficate gauge/goal options tab (#43265) (#43768)
* Euificate gauge options

* Changes params places

* Add ranges validation

* Get rid of legacy translates

* Fix functional tests

* Split gauge to panel components

* Disable alignment option
2019-08-23 13:59:44 +03:00
Matt Bargar
b97a95b109
Implement saved queries and filters (#39140) (#43720)
Introduces "saved queries". Saved queries are a new saved object type similar to saved searches but more limited in scope. They allow users to store the the query string in the query bar and optionally the set of filters and timefilter in order to reload them anywhere a query is expected: Discover, Visualize, Dashboard, anywhere that uses our full SearchBar component.
2019-08-21 18:44:09 -04:00
Dmitry Lemeshko
b31d1e1e29
functional tests for input control range (#42483) (#43685)
* [apps/visualize] functional tests for input control range

* update jest test to have 100% combined coverage with functional
2019-08-21 19:06:24 +02:00
Vadim Dalecky
a332eaa703
fix: 🐛 pass whole action context to isCompatible() method (#43457) (#43524)
* fix: 🐛 pass whole action context to isCompatible() method

* test: 💍 add function test for saved search filtering in pie

* test: 💍 move save search functional test in its own test suite
2019-08-19 15:43:30 +02:00
Daniil Suleiman
39ca6bdb90
[Vis: Default editor] EUIficate region map options tab (#42944) (#43393)
* EUIficate region_map_options

* Reuse types

* Remove wms_options directive

* Remove style import

* Fix issue with join field default value

# Conflicts:
#	src/legacy/core_plugins/region_map/public/region_map_vis_params.html
2019-08-16 10:45:35 +03:00
Maryia Lapata
f5adc2c1eb
[Vis: Default editor] EUIficate Panel Setting tab (#42828) (#43277)
* 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

* Remove extra space
2019-08-15 07:45:00 +03:00