Commit graph

2701 commits

Author SHA1 Message Date
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
Caroline Horn 7bdfd93e36
Vis types LESS to SASS (#23513) (#24153)
Backport - Also fixes #23969
2018-10-18 18:47:43 -04:00
Josh Dover 24ed2463bc
Add ci_setup script to jenkins report script 2018-10-17 12:33:06 -05:00
Stacey Gammon 4cdfc9a526
Tests: Wait for dashboard save button to be enabled before clicking. (#23539) (#23838)
* Fixes #21446

An attempt to fix the above by making sure the click only happens when the button is enabled.

* Fix wrong function name

* Fix mistakes
2018-10-04 17:22:29 -04:00
Alex F 8a442ac4a7
eCommerce Sample Data (#23214) (#23788)
:shipit:
2018-10-03 15:38:08 -04:00
Josh Dover 78b2159f33
[6.x] Add jenkins:report task for test failures (#22682) (#23659)
* Add jenkins:report task for test failures (#22682)

* Add jenkins:report task

* PR comments

* Handle different junit XML formats (#23617)
2018-10-01 14:52:48 -05:00
Larry Gregory 632c63ab21
[6.x] Spaces Phase 1 (#21408) (#23639)
Backports the following commits to 6.x:
 - Spaces Phase 1  (#21408)
2018-10-01 09:53:43 -04:00
liza-mae b54cac72bf
Add argument passing to jenkins cloud job (#23538) (#23549) 2018-09-26 17:46:11 -06:00
Brandon Kobel de2863ae9f
Saved Object Namespaces (#23378) (#23536)
* Use an instance of SavedObjectsSerializer for migrations and the repository

* Fixing spelling of serialization

* Making the serializer conditionally include and prepend id with ns

* Adding repository tests for the namespaces

* Implementing find

* Modifying the SOCs to pass the options with the namespace

* Centralizing omitting the namespace when using serializer.rawToSavedObject

* Passing the schema through to the SavedObjectRepositoryProvider

* Changing the schema to work with undefined ui exports schemas

* Adding schema tests

* Making the complimentary serialization test use the namespace

* Fixing uiExports

* Fixing some tests

* Fixing included fields for the find

* Fixing include field tests, they're checking length also...

* Updating Repository test after adding namespace to always included
fields

* Renaming UIExportsSavedObjectTypeSchema to SavedObjectsSchemaDefinition

* Completing rename... forgot to save usages

* Fixing issue with the serialization.isRawSavedObject and the trailing :
2018-09-26 10:12:09 -07:00
Tim Roes 2cb1f3e9db
Remove last mentions of spy panels (#23527) (#23533) 2018-09-26 19:08:12 +02:00
pavel06081991 4c331b1348
Update versions of @babel/parser and @babel/types (#23268) (#23469)
Update versions of @babel/parser, @babel/types, eslint, babel-eslint
2018-09-25 16:18:05 +03:00
Nathan Reese a5950b7db6
display hits and total hits for courier inspector requests (#23434) (#23449)
* display hits and total hits for courier inspector requests

* update Hits help text to explain difference between total hits

* fix functional test
2018-09-24 13:46:22 -06:00
Stacey Gammon 5cbc278614
Use concrete assertions, not exists (#23271) (#23392) 2018-09-24 07:36:58 -04:00
Caroline Horn e4553de816
Timelion less to sass (#23339) (#23405) 2018-09-21 23:17:43 -04:00
Nathan Reese fe1b90faa5
Migrate save top nav in Discover and Visualize to EUI (#23190) (#23380)
* extract reusable save component from DashboardSaveModal

* update discover search to use SavedObjectSaveModal

* create generic show_save_model that works for both discover and dashboard

* fix last bits of discover save

* remove old save functionallity

* migrate visualize save to EUI

* fix functional tests

* disable save button if title is empty

* mark title input as invalid when title is not provided

* fix funtional tests
2018-09-20 19:40:06 -06:00
Nathan Reese f750ab71c1
Convert Discover open top nav to EUI flyout (#22971) (#23376)
* move find logic to SavedObjectFinder component since savedObjectClient is no longer coupled to angular

* implement flyout open saved searches

* remove old open stuff

* add jest test for OpenSearchPanel and simplify panel title

* fix functional tests

* fix _lab_mode functional test
2018-09-20 15:05:17 -06:00
Tim Roes c3e516e952
add support for 'format:number:defaultLocale' setting in TSVB (#21444) (#23354) 2018-09-20 16:10:07 +02:00
Spencer 802a4fa77d
[migrations/tests] sort results before assertion (#23347) (#23350)
There have been several failures in this test, seemingly caused by a lack of sorting in the results. It makes sense that since both migrations are run simultaneously that sometimes one would succeed and sometimes another would, so I've just sorted the results before checking.

![image](https://user-images.githubusercontent.com/1329312/45791153-44e9cc80-bc3d-11e8-88c4-760d4c7b35bd.png)

cc: @chrisdavies
2018-09-20 00:10:49 -07:00
Caroline Horn 4beb2c604e
Vis LESS to SASS (cont.) (#23199) (#23330) 2018-09-19 16:28:33 -04:00
Nathan Reese d704b4247c
fix merge conflict - 6.x needs _type in index create command (#23321) 2018-09-19 11:18:42 -06:00
Larry Gregory afd9e6602e
[6.x] Remove ability to implicitly find across all types (#23198) (#23312)
Backports the following commits to 6.x:
 - Remove ability to implicitly find across all types  (#23198)
2018-09-19 09:03:59 -04:00
Chris Davies c67791803f
[6.x] Add saved object index migrations (#20243) (#23262) 2018-09-18 09:46:58 -04:00
Caroline Horn acd01a4881
Resolve conflicts (#23197) 2018-09-14 15:28:25 -04:00
Stacey Gammon 3983f30d38
Bring back most of the filtering tests, only bypass the known current issues (#22787) (#22996)
* Bring back most of the filtering tests, only bypass the known current issues.

* Clean up after the test suite run so it can be run multiple times in a row.

* goal and guage issues were because of a bad cache
2018-09-13 12:37:29 -04:00
Stacey Gammon 5a65d1e8ea
Capture browser logs on test failure (#22670) (#22983)
* Capture browser logs

* spit out in logs, simulate failure to test

* remove leftover code

* simulate failure

* Remove forced failure
2018-09-13 07:28:02 -04:00
Peter Pisljar cb36eebb96
fixed editor state updates for parent pipeline aggs (#22874) (#22961) 2018-09-12 16:00:11 +02:00
Peter Pisljar 2b1dacccfd
fixing sorting of terms bucket (#22919) (#22926) 2018-09-12 12:22:06 +02:00