Commit graph

2727 commits

Author SHA1 Message Date
Peter Pisljar
a228bf6947
fixes other bucket request (#26874) (#27023) 2018-12-12 15:08:41 +01:00
Peter Pisljar
2167c5b161
allow disabling gpu in tests (#26684) (#26869) 2018-12-10 09:14:30 +01:00
Spencer
b51987b9eb
[6.x] Wrap leadfoot elements (#26406) (#26748)
* Wrap leadfoot elements (#26406)

* [ftr] wrap all elements so we can swap out leadfoot without disturbing tests

* save

* [visualize/pie_chart] fix chart legend locator

* [services/leadfoot_element_wrapper] add getTagName function

* [services/browser] adjust moveMouseTo function

* [leadfoot/element] remove old args, document new ones

* [leadfootElementWrapper] add getSpecAttribute() method
2018-12-06 10:58:48 -08:00
Stacey Gammon
b045151e3b
Plugin test readme’s (#26632) (#26658)
* Plugin test readme’s

* clarify

* Update scripts/README.md

Co-Authored-By: Stacey-Gammon <gammon@elastic.co>
2018-12-06 13:54:41 -05:00
Tiago Costa
42102bad0e
[6.x] Create vendor dll for the client modules (#22618) (#26707)
* chore(NA): merge and solve conflicts with 6.x when backporting.

* chore(NA): updated kbn pm file.
2018-12-05 19:48:33 +00:00
Spencer
3e29749cd1 skip flaky test (#26649) 2018-12-04 12:37:02 -08:00
Peter Pisljar
343077116c
fixing brush in discover (#26609) (#26625) 2018-12-04 14:34:00 +01:00
Aleh Zasypkin
5ef8871edc [core_plugins/kibana] fix paths. 2018-12-03 21:57:24 +01:00
Spencer
3abe125f57
[6.x] [ftr] wrap remote in browser service (#26394) (#26444)
Backports the following commits to 6.x:
 - [ftr] wrap remote in browser service  (#26394)
2018-11-29 16:11:36 -08:00
Luke Elmers
f8651a8077
Show pagination on saved searches in dashboard read mode. (#26224) (#26429) 2018-11-29 11:13:21 -07:00
spalger
4e9bdc5353 [ci] every script needs to have set -e 2018-11-29 03:10:12 -08:00
Peter Pisljar
555d6281e4
add raw data to split column (#26321) (#26337) 2018-11-29 09:28:42 +01:00
Spencer
d3d270ea9e
[ci] simplify ci_setup scripts (#26215) (#26393)
Cleanup some of the legacy bits from our ci_setup, simplify the setup necessary in child CI scripts, and unify the more generic bits of the scripts.
2018-11-28 17:31:30 -08:00
Caroline Horn
fe82b79bf9
Moar ui/public LESS 2 SASS (#26222) (#26358) 2018-11-28 13:51:14 -05:00
Peter Pisljar
c4fd5d341a
show drop partial buckets option (#25520) (#26116) 2018-11-26 09:11:24 +01:00
Tim Roes
d9b1c0b626
New visualization type selection (#23833) (#26085)
* First version of new visualization selection

* Extract some components

* Remove visualization category

* Remove old wizard code

* Fix i18n ids

* Fix tests

* Fix tag cloud tests

* Fix broken test method

* Fix wrong method call

* Fix TSVB navigation in tests

* Restructure components

* Fix for lab removal

* Add tests

* Timroes/eui vis type selection (#4)

* Added background graphic from welcome screen to modal

* Fixed up responsiveness

* Change wording

* Fix test snapshot

* Create VisTypeIcon

* Implement suggestions

* Change experimental wording

* Use regular quotes for i18n engine
2018-11-22 13:51:12 +01:00
Spencer
a24dc1543b
[pageObjects/visualize] use retry to avoid stale element references (#25973) (#26017)
Fixes https://github.com/elastic/kibana/issues/25892

This should address the flakiness observed in this issue by retrying if there is a stale element in the complex `PageObjects.visualize.filterOnTableCell()` method, and using `testSubjects.getVisibleText()` rather than calling `getVisibleText()` directly on the element without retrying.
2018-11-21 11:00:22 -08:00
Spencer
c64fab0fe3
[6.x] [ci][ftr][kbn/test] split up CI jobs (#25838) (#25977)
* [ci][ftr][kbn/test] split up CI jobs (#25838)

* [ci][ftr][kbn/test] split up CI jobs

* [ci] run --assert-none-excluded in ci groups, before builds

* [ftr] improve error message when excluded tests found

* [ci] document other places the ciGroups live

* [grunt] fix --kibana-install-dir value
2018-11-20 15:36:26 -08:00
Caroline Horn
cdf0d85095
Vis public UI LESS to SASS (#25333) (#25889) 2018-11-19 18:31:13 -05:00
Tim Roes
5d73ffadd5
Remove lab stage for visualizations (#25702) (#25869)
* Remove lab stage for visualizations

* Fix typo

Co-Authored-By: timroes <mail@timroes.de>

* Remove dead code
2018-11-19 18:47:31 +01:00
Lukas Olson
e23ef0ede7 Timefilter should return strings instead of moments (#25625)
* fix timefilter to return strings instead of moment objects

* add functional test

* remove unused functions
2018-11-15 18:40:29 -07:00
Luke Elmers
12d0355aad
Ensure custom set axis titles are preserved when loading a saved vis. (#24176) (#25732) 2018-11-15 11:17:43 -07:00
Caroline Horn
2c4fd9b475
TSVB less to sass - and some UI work (#24250) (#25653)
Fixes #16483, Fixes #20115, Fixes #17852, Fixes #16768, Fixes #14348, Fixes #17842, closes #15580, closes #14938
2018-11-14 13:26:19 -05:00
Stacey Gammon
030d90cea8
Add href option in addition to onClick (#25233) (#25640)
* Add href option in addition to onClick

* Small modificationd and adding tests

* Add missing import

* Switch order of tests

* Don't close panel menu again
2018-11-14 11:50:30 -05:00
Stacey Gammon
4d4c159bf1
[Flaky test fix] Turn back on data_shared_attributes test (#25156) (#25554)
* Turn back on data_shared_attributes test and run 20x

* Add some clean up

* Be more determinism, less refactoring.

* Go back to a single test run
2018-11-12 20:20:40 -05:00
Tiago Costa
f3e9e8af25
Run jenkins:unit task with dev flag in order to run license check (#19832) (#25550)
* chore(19674): added dev flag when calling jenkins:unit grunt task so we can check dev licenses on ours ci jobs.

* chore(NA): update yarn lock files with integrity info.
2018-11-13 01:00:10 +00:00
liza-mae
dca4772e84
Update clickOptionalAddNewButton method used in createIndexPattern (#25414) (#25427) 2018-11-08 16:51:37 -07:00
liza-mae
8ed79eb660
[6.x] Wait for global loading indicator when creating index pattern (#25329) (#25348)
* Wait for global loading indicator when creating index pattern (#25329)

* revert and test again

* add back - test again
2018-11-08 14:26:32 -07:00
Lee Drengenberg
d012b6a015
Fix context test timing (#24949) (#25289)
* Add sleeps so tests will pass

* removed a space in a comment

* replaced some sleeps with waiting for loading indicator

* Removed context page object calls from filter_bar and doc_table services
2018-11-08 13:06:52 -06:00
Aaron Caldwell
13b99ba393
Ensure baselayers display in region maps (#22609) (#25232)
* Add tmsLayers placeholder array to collections. Bind collections to wms-options scope

* Move tmsLayers attribute declaration to base visualization creation

* Add test to verify presence of road_map base layer option
2018-11-06 14:09:41 -07:00
liza-mae
b499836f9b
Fix the jenkins job for cloud to export headless browser variable (#25242) (#25243) 2018-11-06 12:52:14 -07:00
Peter Pisljar
ff4e773c52
other bucket filter for table and vislib legend (#24473) (#25220) 2018-11-06 18:55:48 +01:00
Marco Vettorello
cb364b49b7
Fix TSVB state updates when changing indexpatterns (#24832) (#25200)
* Move fieldsFetch logic into the vis editor

* Add annotations index pattern change detection

* Fix async update of state. Add functional test

* Add missing data archive

* Force fetch when component mount the first time

* Fix parameters naming

* Refactoring indexPatterns to fetch
2018-11-06 14:19:19 +01:00
liza-mae
9d95015741
Replace xvfb with headless browser (#24904) (#25150)
* Replace xvfb with headless browser

* Update karma to run in headless chrome

Update Karma tests for an option to run chrome in headless.

* Fix lint issues

* Fix spaces
2018-11-05 15:25:59 -07:00
Spencer
6898032816
[ftr] allow filtering suites by tag (#25021) (#25075)
Closes #22840

In the functional tests we want a better way to include/exclude certain tests, especially as we move forward with #22359. This PR allows us to decorate suite objects with "tags", which won't clutter up the test names and can be used to filter out specific tests within a single test config. The functional test runner supports defining `--include-tag` and `--exclude-tag` CLI arguments, and multiple can be defined.

The method of filtering out tests for running against cloud has been updated to use this approach and I plan to do the same to #22359 once this is merged.
2018-11-02 18:28:51 -07:00
Spencer
219bc53591
[esArchiver] auto-create the default space object when necessary (#24953) (#24999)
* [esArchiver] auto-create the default space object when necessary

* [esArchiver] check for spaces plugin to create default space
2018-11-01 14:50:59 -07:00
Stacey Gammon
eda918a61e
Check for toast before waiting for page to finish loading to avoid mi… (#24424) (#24857)
* Check for toast before waiting for page to finish loading to avoid missing the toast by the time the page finishes

* turn test back on
2018-10-31 08:30:24 -04:00
spalger
935bffcf61 [6.x] disable flaky test - #24287 2018-10-29 15:56:40 -07:00
Josh Dover
306d06c0e9
[6.x] Upgrade Hapi in legacy platform to v17 (#21707) (#24608)
* Upgrade Hapi in legacy platform to v17 (#21707)

* Disable even-better monitoring

* Upgrade to Hapi v15

* Upgrade to Hapi v16

* Handle optional req params correctly

* Update http and kbnServer

* Get mocha tests passing

* Convert `reply` usages [wip]

* Fix Joi and Plugin incompatibilities

* Get server up and running

* Get basic logging working

* Fix optimizer

* Fix recent route handlers

* Various fixes

* Fix recent routes

* Upgrade wreck for async/await

* Fix mocha tests

* Fix joi issues

* Fix xpack jest tests

* Fix recent routes

* Fix tests

* Fix index setup

* Decouple monitoring stats collection from good plugin

* Update reload logging test to work

* Reimplement logging with updated good plugin

* Fix unit tests

* Fix getConnections back

* Make LegacyLoggingServer compatible with Hapi v17

* Update joi types

* Fix x-pack unit tests

* Remove stray debugger

* Remove hapi-compat

* Fix API integrations

* Upgrade boom

* Fix security plugin

* Misc fixes

* bump

* Fix licensePreRoutingFactory

* Fix failing integration tests

* Remove unnecessary test change

* Remove hapi-latest package

* fx

* Various cleanup

* Fix race condition in oppsy events

* Use elastic/good fork

* Fix boom.wrap and hapi-latest changes

* Simplify LegacyLoggingServer updates

* package.json cleanup + test fix

* yarn.lock cleanup

* Change good tag

* Fixes

* Change return err -> throw err in routes

* Fix await returns

* Fix new load_data test

* Make cookie security flags consistent

* tmp doc

* Fix types

* Fix tests

* Upgrade canvas plugin

* Move good package to published @elastic/good one

* Fix SO test

* Fix logging reloading

* Update APM apis

* Fix error logging

* Fix logging test

* Convert spaces plugin

* Add validation error shim

* Remove 7.0 release notes

* Await renderApp

* Fix ccr routes

* Prevent header popovers from scrolling with page content (#23850)

* Fix spaces test

* new yarn.lock-s

* Fix spaces tests

* Remove h2o2-latest

* Fix @types/hapi

* Upgrade InfraOps plugin

* Fix package.json

* Add back isSameSite: false

* Upgrade beats_management plugin

* Update snapshot

* Fix InfraOps

* Upgrade kql_telemetry

* Merge upstream/master

* Upgrade apm and ml

* Put snapshot test back

* Fx beats

* Upgrade rollups

* Update boom usages in new plugins

* Update url shortener

* Don't throw errors in optimizer (#24660)
2018-10-26 16:37:05 -05:00
Tim Roes
85e67d7b26
Preserve nested tables in table vis (#24377) (#24571)
* Add legacy response handler for table vis.

The new legacy response handler introduced a regression in how nested
tables were handled within table vis. This adds a new table-specific
response handler to ensure splitting is preserved.

This is a short term solution and will be removed once we are able to
update table splitting to be consistent with other vis types.

* Ensure formatted dates are preserved in table titles.

* Update legacy table response handler based on feedback.

* Ensure AggConfigResult.rawData is preserved in legacy table response handler.

* Move legacy table response handler to core_plugins.

* Legacy table response handler - style cleanup.

* Remove unneeded aggConfigResult.rawData from legacy table response handler.

* Add basic unit tests for legacy table response handler.

* In table vis, exclude split columns when showing metrics at all levels.

* Add functional tests
2018-10-25 15:04:22 +02:00
Tim Roes
a2ccf779ba
Fix courier issues causing showMetricsOnAllLevels to break (#24488) (#24530)
* Fix courier tabify caching issue

* Better code style

* Change to named lodash import

* Fix missing DSL parameters on hierarchical query

* Add functional test for hierarchical agg configs
2018-10-24 23:58:36 +02:00
Marco Vettorello
876567a9b9
Fixes pie charts on empty time window (#24031) (#24516)
* Fix missing check on empty response

* Fix test order and remove applying on each entered filter

* Change quotes on addNewFilterAggregation testsubject

* Rename test hasPieChartError method to expectPieChartError

* Refactor piechart zero-value slices data cleaning.

The previous implementation used to remove zero-value slices by mutating the vis data from the legend logic.
We moved the logic of "cleaning" the zero-value slices before rendering the piechart and/or the legend, so now piechart and legends are rendering themselves with the same data structure.

* Reverting _validatePieData method to the old one
2018-10-24 21:20:47 +02:00
Tim Roes
8e28de0979
fixing updating editor state (#22869) (#24483)
* editor state update

* remove lockDirty

* Add functional tests

* Add data to functional tests
2018-10-24 14:51:04 +02:00
Matt Bargar
ccfb4482f6
[6.x] Euify and Reactify Query Bar Component (#23704) (#24420)
Implements query bar portion of https://elastic.github.io/eui/#/layout/header. Filter bar will come in another PR.

Fixes #14086

Re-implements our query bar component in React using some EUI components. Existing typeahead and suggestion styles were copied over 1:1 for now after talking with Dave about it. In this PR I focused on reaching feature parity with the existing query bar. Some additional work would be needed before we could move this into EUI as a generic component that could be consumed by other plugins.

Still needs some new tests and I suspect some old tests will need to be updated, but other than that this PR is functionally complete and ready for reviews.
2018-10-23 17:26:34 -04:00
Tim Roes
2488277279
fixing other bucket filters (#24217) (#24403)
* fixing other bucket filters

* adding selenium tests

* using lodash flatten

* using lodash flatten

* fixing based on tims review

* Fix functional tests
2018-10-23 22:37:57 +02:00
Matt Bargar
d10f21ddea
Add telemetry for KQL (#23547) (#24340)
This PR adds two usage stats to our telemetry for KQL:

* How many times people click the opt in/out toggle in the query bar UI
* Which language Kibana admins have set as the global default in advanced settings
2018-10-23 12:31:26 -04:00
Larry Gregory
c4b0de7bff
K7 Login screen (#23512) (#24349)
This PR implements the K7 Login screen, as described in #20015

@ryankeairns @snide @kobelb 

## Login form
<img width="1310" alt="login" src="https://user-images.githubusercontent.com/3493255/46048123-d9e53d80-c0f5-11e8-9e56-acbe3a8f2b5a.png">

## Invalid credentials
![image](https://user-images.githubusercontent.com/3493255/46147388-621d2d00-c233-11e8-8a75-beba7bb5a2b2.png)


## Session expired
![image](https://user-images.githubusercontent.com/3493255/46147408-6fd2b280-c233-11e8-97c1-8acb7b2e0c06.png)


## No connection to Elasticsearch
![image](https://user-images.githubusercontent.com/3493255/46147515-adcfd680-c233-11e8-8ad4-3a21d2c06b2c.png)


## Insecure connection
![image](https://user-images.githubusercontent.com/3493255/46147433-8416af80-c233-11e8-82dc-6f32a5ec1bd0.png)



Closes #20015
2018-10-23 05:53:11 -04:00
Brandon Kobel
717fbe0c37
Adding bulk create api integration tests (#22966) (#23274) 2018-10-22 07:36:22 -07:00
Stacey Gammon
0f61756fce
Extend the timeout used to check if something exists. (#24140) (#24234) 2018-10-19 16:09:24 -04:00
Bill McConaghy
57c7bd509a
fixing mangling of floating point numbers by console (#23685) (#24271)
* fixing mangling of floating point numbers by console

* fixing tests

* fixing issue with large requests

* restoring old code for server side as it handles large responses better
2018-10-19 14:17:26 -04:00