Commit graph

269 commits

Author SHA1 Message Date
Stacey Gammon
7604c5f8f6 BWC link fixes (#11062) 2017-04-05 19:48:36 -04:00
jasper
9a7e105ec8 Stabilize tests involving absolute timepicker (#10347)
Backports PR #10308

**Commit 1:**
Stabilize tests involving absolute timepicker

The asynchronous nature of angular's digest cycle and the page rendering
in the browser can lead to situations in which
`isGlobalLoadingIndicatorHidden()` returns true because the loading
triggered by the previous action has not yet started. In this case
subsequent actions incorrectly assume the loading has already been
completed. This is probably responsible for the flakiness described in #10302.

The newly introduced `waitUntilLoadingHasFinished` first waits for a
duration up to `defaultTimeout` for the loading indicator to appear
before waiting for it to be hidden again. In the best case this will
reduce the false positive rate of `setAbsoluteTimerange()`. In the worst
case the function will wait `defaultTimeout` longer than when just using
`isGlobalLoadingIndicatorHidden`.

fixes #10302

* Original sha: 345421bd63
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T15:05:50Z

**Commit 2:**
Use findTestSubject

* Original sha: 3a2f3fc9eb
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T16:02:08Z

**Commit 3:**
Replace all usages of isGlobalLoadingIndicatorHidden

* Original sha: 27ad2447a5
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-13T17:49:56Z

**Commit 4:**
Introduce timeout argument to findTestSubject

* Original sha: 60ab85a295
* Authored by Felix Stürmer <stuermer@weltenwort.de> on 2017-02-14T16:05:28Z
2017-02-14 20:34:18 +01:00
jasper
4714359273 Fix race condition caused by Visualize page object's clickNewSearch method. (#10235)
Backports PR #10231

**Commit 1:**
Add a sleep to Header page object's clickTimepicker method, to wait for the page to render on Jenkins.

* Original sha: 4cd550b46c
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-07T17:20:42Z

**Commit 2:**
Add a sleep to Visualize page object's clickNewSearch method, to wait for the page to render on Jenkins.

* Original sha: 621131b25c
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-07T17:56:08Z

**Commit 3:**
Wait for loading indicator to disappear to signify completion of clickNewSearch() in Visualize page object.

* Original sha: 80801591f5
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-07T18:31:43Z

**Commit 4:**
Wrapper Header page object's clickTimepicker method in a try block.

* Original sha: 7987d4c531
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-07T19:57:03Z
2017-02-07 13:09:51 -08:00
Spencer
9ed7e81b62 Backport eslint updates to 5.x (#10139)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule

* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations

* [eslint] enable quotes+no-extra-semi and autofix
2017-02-06 21:27:07 -07:00
jasper
bf3734bc8d Add landing page with table to Visualize app. (#10212)
Backports PR #9605

**Commit 1:**
Refactor Visualize Wizard to use explicit controller names, instead of defining them dynamically.

* Original sha: 5778951aa4
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-21T20:58:55Z

**Commit 2:**
Add landing page with table to Visualize app.
- Update Visualize wizard UI.
- kbnTopNav directive supports no-menu-extensions attribute for excluding extensions, so you can hide the menu items entirely.

* Original sha: 5a5eecbfc6
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-22T00:08:06Z

**Commit 3:**
Add kuiIcon--basic and support icons in Table component. Display icons in Visualize landing page.

* Original sha: 1dbffd1f9e
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-22T01:38:35Z

**Commit 4:**
Fix bug with vertical alignment in Table cells.

* Original sha: f69df4c4ba
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-22T01:41:56Z

**Commit 5:**
Change Visualize menu items: New goes to landing page, Open goes to wizard.

* Original sha: 8ca2faf459
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-22T01:46:22Z

**Commit 6:**
Move visualize/landing route to live at visualize/ instead.

* Original sha: e674f6c315
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T21:46:21Z

**Commit 7:**
Refactor Visualize Wizard templates to use import syntax.

* Original sha: b129af5f05
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T21:48:11Z

**Commit 8:**
Set kuiViewContent width to 100% to avoid it shrink wrapping its content.

* Original sha: 94afb6f3d4
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T22:00:36Z

**Commit 9:**
Move ToolBar buttons to the right side. Remove labels and add tooltips.

* Original sha: 6a66f6f5c9
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T22:04:49Z

**Commit 10:**
Fix functional tests for Visualize, to work with new landing page.

* Original sha: 5a720c9fc9
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T23:47:52Z

**Commit 11:**
Remove unused Visualize load menu template.

* Original sha: b010488925
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-23T23:52:24Z

**Commit 12:**
Remove Edit link from Visualization listing.

* Original sha: a1f737fcf3
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-01-03T19:41:50Z

**Commit 13:**
Disable timepicker in Visualization listing.

* Original sha: ca4adc36bd
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-01-05T00:18:35Z

**Commit 14:**
Add basic Icon example. Fix Visualize Wizard titles and layout.

* Original sha: 50e2da76d3
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-01-17T16:57:31Z

**Commit 15:**
Remove icon cells from Table component. Fix Visualize landing table header bug and type icon position.

* Original sha: 56252644f2
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-01T18:19:49Z

**Commit 16:**
Change Visualize route names. Add omitPages attribute to breadcrumbs directive. Make Visualize breadcrumbs into links.

* Original sha: 93c9533beb
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-02T00:41:07Z

**Commit 17:**
Remove Open and New menu buttons from Visualize.

* Original sha: f243762d8f
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-02T01:07:55Z

**Commit 18:**
Add ConfirmationModal for deleting visualizations.

* Original sha: d0325baa9b
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-02T01:14:34Z

**Commit 19:**
Implement sorting for name and type columns in Visualize listing.

* Original sha: 39ed424856
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-02T01:21:57Z

**Commit 20:**
Refactor Visualize routes into VisualizeConstants file. Fix functional tests.

* Original sha: 43ceb6e0e1
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-02T18:45:17Z

**Commit 21:**
Add pager_controls directive and pager service. Add pagination to Dashboard and Visualize landing pages. Change Dashboard listing to use hrefs for each dashboard.

* Original sha: d1d3da7741
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-04T00:37:28Z

**Commit 22:**
Add Basic Icon example.

* Original sha: 880b7b42f0
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-04T00:41:59Z

**Commit 23:**
Use ng-if instead of ng-hide to hide/reveal Table action buttons in Dashboard listing.

* Original sha: 668d598082
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-04T00:44:06Z

**Commit 24:**
Redirect from old Visualize wizard routes to new ones.

* Original sha: 99525ac45d
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T18:37:05Z

**Commit 25:**
Use ViewContent and Title components in Visualize wizard.

* Original sha: 734c85b5ab
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T18:46:50Z

**Commit 26:**
Fix Visualize and Dashboard listing table logic so that selection only applies to the current page of items.
- Paging clears the selection.
- Searching clears the selection.
- Sorting clears the selection.

* Original sha: de4f7b43e2
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T19:05:16Z

**Commit 27:**
- Fix Visualize wizard breadcrumbs.
- Use consistent "Create" terminology in both Visualize and Dashboard for creating new items.
- Use NoItems and PromptForItems components in Visualize listing view.

* Original sha: 10dbff66cc
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T19:22:09Z

**Commit 28:**
Rename pagerService factory to pagerFactory.

* Original sha: 6eeeab6833
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T19:29:36Z

**Commit 29:**
Minor code style improvements.

* Original sha: 438f5c4468
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T19:36:17Z

**Commit 30:**
Use  inject dependencies in Visualize and Dashboard listing.

* Original sha: 794b18cc8c
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-02-06T19:45:00Z
2017-02-06 19:16:58 -08:00
jasper
4f85268def Fix functional tests - index fields failure (#10211)
Backports PR #8363

**Commit 1:**
[functionalTests] prevent test failure by retrying find call

* Original sha: 52dbb264d2
* Authored by spalger <email@spalger.com> on 2016-09-20T01:41:14Z
2017-02-06 17:12:59 -08:00
jasper
2de7cecaef Implement functional test helpers (#10209)
Backports PR #8362

**Commit 1:**
[functionalTests] implement common.tryMethod() helper

* Original sha: 69fb068d55
* Authored by spalger <email@spalger.com> on 2016-09-20T01:43:59Z

**Commit 2:**
[functionalTests] implement common.findAllTestSubjects() helper

* Original sha: 6b220cfc2b
* Authored by spalger <email@spalger.com> on 2016-09-20T01:44:48Z
2017-02-06 17:12:05 -07:00
Court Ewing
74ca20b9a8 test: try() separately on confirm modal actions (#10087)
Rather than wrapping two discrete webdriver requests in a single try()
block, we do each request in its own block to help prevent inconsistent
failures.
2017-01-27 08:04:55 -05:00
Stacey Gammon
3e6e8a7bb5 Dashboard landing page (#10003) (#10065)
* Introduce dashboard landing page

Still TODO:
 - Add clickable breadcrumbs
 - Remove New and Open top nav options

* use clickable breadcrumbs instead of 'New' and 'Open' nav items

* code cleanup

improve tests

* Add new empty dashboard styling

* Fix selenium tests

* Address code review comments

- rename bread_crumb_url => bread_crumb_urls
- fix reporting link in dash (separate PR)
- Use NoItems instead of PromptForItems when searching
- Style fixes

* Use a constant for the landing page url

* Fix tests

fix tests
2017-01-25 12:53:29 -05:00
Stacey Gammon
930cf02f30 [5.x] Use better confirm button text. rename safe confirm. (#9984) (#10048)
* Use better confirm button text. rename safe confirm. (#9984)

* Use better confirm button text. rename safe confirm.

Use confirm_modal_promise only when it’s easier than using
confirm_modal directly.

change all native confirmations to the new dialog

* address code review comments

* Be consistent with the confirm button text pattern

Address other code review comments

* remove default option for confirmButtonText

Require onConfirm and confirmButtonText for confirmModal

* fix tests for no longer using alertText

* address code review comments Round 2

* fix bad merge

* fix bad merge take 2
2017-01-25 11:17:34 -05:00
Lukas Olson
1baeae8012 Close timepicker when a filter/interval is selected (#9618)
* Close timepicker when a filter/interval is selected

* Copy absolute variables before sending

* Use & instead of = for directive binding

* Fix timepicker tests

* Fix timepicker tests and remove tests that no longer apply
2017-01-10 14:57:41 -07:00
Lee Drengenberg
4a586870c5 5.x backport #9242 New scripted field tests (#9700)
* new scripted field tests

* Final improvements on 12 new tests for 1 expression and 2 painless scripted fields

* Add try loops around testing first Discover doc

* Set timezone to UTC and adjusted data accordingly

* Added boolean and date Painless scripted field types

* Remove unused (non-working) methods

* Fix lint error

* Added several data-test-subj attributes and used them in the tests

* Reverting previous change to getBarChartData
2017-01-02 16:45:45 -06:00
jasper
00c3e1f216 Vislib heatmap visualization (#9641)
Backports PR #9403

**Commit 1:**
adding UI styles (should extract)

* Original sha: 8815e1c1ce
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T09:56:56Z

**Commit 2:**
adding heatmap vislib type

* Original sha: d3b3065603
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T10:04:27Z

**Commit 3:**
adding heatmap visualization

* Original sha: 9bc3380648
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T10:05:34Z

**Commit 4:**
adding documentation

* Original sha: 8c888d4b25
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T20:24:09Z

**Commit 5:**
renaming heatmap options

* Original sha: 55a8b5f87f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T20:24:57Z

**Commit 6:**
fixing options issues

* Original sha: f98a4559af
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T20:26:51Z

**Commit 7:**
fixing color selection

* Original sha: 44fe11a218
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T20:30:59Z

**Commit 8:**
fixing / adding tests

* Original sha: 91d921d3d8
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-07T21:52:52Z

**Commit 9:**
adding more color schemas

* Original sha: 6e80819140
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-08T09:59:41Z

**Commit 10:**
adding more options

* Original sha: 56569c4db6
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-08T10:00:10Z

**Commit 11:**
adding cell labels

* Original sha: 98dbfac2b6
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-08T12:45:27Z

**Commit 12:**
fixing selenium test

* Original sha: 9b0f4aa37e
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-08T13:05:49Z

**Commit 13:**
only allow to rotate labels by 90 degrees

* Original sha: 26bd2e97a5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T18:11:02Z

**Commit 14:**
converting color number slider to number input

* Original sha: 45ba2b95b7
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T19:19:59Z

**Commit 15:**
hide labels if they don't fit

* Original sha: a1553bc7cf
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T19:20:19Z

**Commit 16:**
fixing small issues

* Original sha: 2867c2d8c2
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T19:37:20Z

**Commit 17:**
improved range options

* Original sha: 4ce88b086a
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-09T20:31:15Z

**Commit 18:**
fixing based on Thomas' review

* Original sha: 5b1951fa2d
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-14T08:14:34Z

**Commit 19:**
rebasing on master and fixing linting issues

* Original sha: 3399de000c
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-14T08:34:50Z

**Commit 20:**
adding selenium tests

* Original sha: c6b3e767c5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-14T13:57:34Z

**Commit 21:**
fixing alerts

* Original sha: 1e195f7c0f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-16T13:48:12Z

**Commit 22:**
fixing padding

* Original sha: 7d8718beab
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-16T13:48:30Z

**Commit 23:**
fixing based on review

* Original sha: d55b440174
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-16T13:49:25Z

**Commit 24:**
fixing math

* Original sha: 3fbb3f7480
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-16T14:25:33Z

**Commit 25:**
fixing custom range options

* Original sha: 644453de19
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-16T14:32:04Z

**Commit 26:**
removing $timeout

* Original sha: 016ab7ef0d
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T09:49:27Z

**Commit 27:**
notification in case labels were hidden

* Original sha: dae92bc933
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T10:06:54Z

**Commit 28:**
fixing tests

* Original sha: 8653ea112b
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T10:43:21Z

**Commit 29:**
fixing based on last review

* Original sha: 92ad40750d
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-19T14:26:41Z

**Commit 30:**
fixing based on thomas' review

* Original sha: c72ce4bdfd
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-26T17:26:48Z
2016-12-26 21:27:40 +01:00
jasper
4b66537e31 Vislib Point Series updates (#9388)
Backports PR #9044

**Commit 1:**
renaming x-axis to axis

moving y-axis methods  inside axis class

updating handler to use Axis for yAxis as well

introducting 'type' property to differ between X and Y axis

joining x_axis and y_axis into a single class axis
- splitting it into 3 subclasses (Axis, AxisLabels, AxisScale)
- converting to ES6 classes + style fixes
- adding more customization options

updating handler to work with new Axis class
- allowing handler to have multiple category/value axes (array)

converting axis_title to ES6 classes and making it work with new axis

updating column layout to support left/right top/bottom positioning of axis
- updating css min-widths to 1px (removing them breaks the code) as we dont want to reserve the space for axes that dont exist.

introducing AxisConfig class

adding ordered and values back to axis to make other parts of vislib working

renaming axis.scale to axis.axisScale

removing comments

adding scale type config

removing unnecesarry configs (never used)

adding point series chart type

updating all charts

introducing VisConfig class

moving wiggle, silluete and stacking to axis

fixing based on last spencers review

add label to zero filled values

allow custom values on catwegory axis

adding clip path

updating defaults to match current vislib implementation

seri.show parameter

vertical category axis positioning

fixing more issues

fixing broken pie charts

increasing default truncate length

fixing expandLastBucket option

* Original sha: ba744985c8
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-13T10:59:17Z

**Commit 2:**
fixing selenium tests by increasing barHeightTolerance

* Original sha: f27f8a18b2
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T09:40:25Z

**Commit 3:**
fixing axis alignment (1px off)

* Original sha: 3d6267ef4a
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T12:19:37Z

**Commit 4:**
fixing layout elements min-height to 0

* Original sha: 619a4954aa
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T12:20:20Z

**Commit 5:**
point radius should be calculated per chart

* Original sha: be16b14283
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T13:35:27Z

**Commit 6:**
adding clip path to circles

* Original sha: 188131bdad
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T13:43:55Z

**Commit 7:**
seting min height 0 on axis

* Original sha: 231a58a774
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T14:45:12Z

**Commit 8:**
adding background class

* Original sha: c41e67225e
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T15:27:02Z

**Commit 9:**
fixing selenium tests

* Original sha: ed1b3304e5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-22T15:27:40Z

**Commit 10:**
update visualize legend to correctly check if it should show

* Original sha: 9bd80be07a
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-23T10:33:06Z

**Commit 11:**
fixing based on CJs comments

* Original sha: 02a22d0af7
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T06:44:37Z

**Commit 12:**
improving stacking of negative values

* Original sha: 9d79d79501
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T06:55:33Z

**Commit 13:**
updating class name to better match element

* Original sha: 628408de02
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T06:56:11Z

**Commit 14:**
fixing charts with mixed (negative/positive) values

* Original sha: 682ab0b22d
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T09:44:49Z

**Commit 15:**
fixing test (stacking happens for grouped charts as well to handle negative values correctly)

* Original sha: 69a53eaf26
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T09:52:29Z

**Commit 16:**
fixing based on CJs last comments

* Original sha: 9e8d71f882
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-01T16:05:31Z

**Commit 17:**
fixing unstable selenium test

* Original sha: f36b6fc658
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-12-06T11:20:30Z
2016-12-06 13:21:48 +01:00
jasper
1150ea39e3 Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items. (#9155)
Backports PR #9133

**Commit 1:**
Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items.

* Original sha: 84cf9ba9de
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-17T21:28:09Z

**Commit 2:**
Run checkPlugins task as part of test:ui:runner task.

* Original sha: 7cdf829629
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-19T18:07:47Z
2016-11-19 10:09:43 -08:00
jasper
2508a42cb2 Integrate UI Framework (#8956)
Backports PR #8679

**Commit 1:**
Integrate Kibana UI Framework CSS.
- Migrate to new localNav component and subcomponent styles.
- Add support for multi-slot transclusion to kbnTopNav.
- Update Dashboard, Discover, Management, Visualize, Dev Tools, Timelion to use kbnTopNav consistently.
- Update these apps to also display localNavDropdowns consistently, including Timepicker (this mostly meant adding titles).
- Add checkLicenses npm script.
- Add .fullWidth utility class and use it to make search forms 100% width.

* Original sha: b5444c41c8
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-10-14T22:30:48Z
2016-11-03 13:26:25 -07:00
jasper
b3e0138d66 Exclusion of source fields (#8920)
Backports PR #7402

**Commit 1:**
added source filtering

* Original sha: e7204bef63
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-12T10:08:35Z

**Commit 2:**
ditched the new 'retrieved fields' tab and added checkbox to exclude a field in the field control

* Original sha: b228c66c01
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-13T14:44:38Z

**Commit 3:**
disable field exclusion checkbox if field is a metafield

* Original sha: 0d062209fb
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-01-15T15:39:47Z

**Commit 4:**
[indexPattern] copy excluded field property when refreshing fields

* Original sha: c3c1d4823b
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:01:48Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:40:15Z

**Commit 5:**
[indexPattern/field] move isMetaField consideration into Field

* Original sha: 5b0b00adfb
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:22:52Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:44:37Z

**Commit 6:**
[indexPattern/edit] invert the "retreived" column, for accuracy

* Original sha: 1dee6f173f
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:24:44Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:47:21Z

**Commit 7:**
[indexPattern/field] touchup the field.exclude message

* Original sha: ec0c3341d1
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-21T16:25:24Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:47:23Z

**Commit 8:**
Fix typo

* Original sha: 062931a3f4
* Authored by Spencer <spalger@users.noreply.github.com> on 2016-01-21T19:33:14Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:48:53Z

**Commit 9:**
[indexPattern] handle index patterns without fields

* Original sha: 9d70208f56
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-22T18:27:45Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T20:51:11Z

**Commit 10:**
[courier/searchSource] auto add source filter for index pattern

* Original sha: 5a97b6b668
* Authored by spalger <spalger@users.noreply.github.com> on 2016-01-23T01:08:52Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:04:09Z

**Commit 11:**
[docTable] remove irrelevant test about source filtering

* Original sha: 8211990a01
* Authored by spalger <spalger@users.noreply.github.com> on 2016-02-12T08:17:56Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:04:11Z

**Commit 12:**
[settings/indices] cleanup imports

* Original sha: fa5b22d9ab
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T00:29:36Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:06:11Z

**Commit 13:**
[settings/indexPattern/fields] add "field filters" tab

* Original sha: 7819fa984d
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T06:07:31Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:20Z

**Commit 14:**
[imports] fix old testUtils import

* Original sha: d4b9c116a6
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T06:08:46Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

**Commit 15:**
[ui/fieldWildcard] add lib to match names based on field-style wildcards

* Original sha: d75a63fa34
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T08:02:01Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

**Commit 16:**
[settings/fieldFilters] list filter matches, remove excluded fields from fieldata_fields

* Original sha: 08f8fd7e0d
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T08:59:39Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:24Z

**Commit 17:**
[fieldWildcard] properly escape regexp control chars

* Original sha: 385a0620c0
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T09:13:21Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 18:**
[settings/indexPatterns] mark fields excluded if they match an exclude pattern

* Original sha: da62b2a761
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T09:29:03Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 19:**
[fieldWildcard] properly bind the regexp to the ends

* Original sha: e89ceeabdc
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-05T23:59:06Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 20:**
[indexPattern] remove unneeded lodash chain

* Original sha: 14d5458bb7
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-06T00:00:28Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:11:25Z

**Commit 21:**
[settings/indices] use settings-indices- prefix for tab direcives

* Original sha: dc53a103bc
* Authored by spalger <spalger@users.noreply.github.com> on 2016-04-06T00:03:45Z
* Committed by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:12:19Z

**Commit 22:**
corrected rebase on master

* Original sha: 4be31b2878
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-02T21:29:19Z

**Commit 23:**
Do not match exclusion on meta/scripted fields. Disable filter bar when on 'Filter fields' tab. Removed exclusion checkbox in the field controls page. Corrected typos. Improved documentation phrasing.

* Original sha: 79e87ca3ae
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:14:12Z

**Commit 24:**
Merge branch 'master' into issue4366

* Original sha: 984d3349ba
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:29:38Z

**Commit 25:**
corrected error in merge with _index_pattern

* Original sha: 3375fd1f02
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:35:25Z

**Commit 26:**
removed unused code

* Original sha: 6a0b331297
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T08:56:56Z

**Commit 27:**
Merge branch 'master' into issue4366

* Original sha: 81a56f9f05
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-09T21:24:12Z

**Commit 28:**
added missing fieldFilters to test dumps

* Original sha: c209ce3165
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-11T09:14:10Z

**Commit 29:**
Merge branch 'master' into issue4366

* Original sha: 95114865b9
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-13T08:57:50Z

**Commit 30:**
added the management section refactoring from master

* Original sha: 9e32bbc2cf
* Authored by Stéphane Campinas <stephane.campinas@gmail.com> on 2016-06-30T09:14:19Z
2016-11-01 10:56:28 -07:00
jasper
9eb4f5bbba Port #8880 to master Support Cloud testing (#8917)
Backports PR #8915

**Commit 1:**
Support Cloud Kibana UI testing master

* Original sha: 98ba2ceec7
* Authored by LeeDr <lee.drengenberg@elastic.co> on 2016-10-28T19:16:31Z

**Commit 2:**
Add xpack file

* Original sha: adc27bacee
* Authored by LeeDr <lee.drengenberg@elastic.co> on 2016-10-29T00:02:18Z

**Commit 3:**
cherry-pick 9f63224e77

* Original sha: f4549ee003
* Authored by LeeDr <lee.drengenberg@elastic.co> on 2016-10-31T17:09:57Z
2016-11-01 11:27:51 -05:00
CJ Cenizal
405b541586 Fix bug where the loading indicator was wider than the screen (#8854) (#8909)
* Fix bug where the loading indicator was wider than the screen, allowing you to drag a dashboard panel very wide and break the UI.
* Refactor kbnLoadingIndicator to be a standalone component.
* Make loadingIndicator fixed position so it doesn't disrupt the layout when it appears and disappears.
* Uncouple from .spinner styles.
* Set a max-width on it.
* Rename Common PageObject getSpinnerDone method to isGlobalLoadingIndicatorHidden.
2016-10-31 16:19:24 -07:00
jasper
ad43652e4a Do not use angular debug mode unless in development (#8891)
Backports PR #7929

**Commit 1:**
fix #7125 - disable angular debug info

* Original sha: b3957a968f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-08-04T08:25:47Z

**Commit 2:**
fix #7125 - disable angular debug info

* Original sha: 39728089d1
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-08-04T08:26:09Z

**Commit 3:**
updating to disable debug info when environment name is set to production

* Original sha: 268fdb5cbe
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-08-04T10:02:00Z

**Commit 4:**
using --dev flag

* Original sha: d1c6ce47ad
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-08-11T16:26:12Z

**Commit 5:**
updating tests to not depend on angular.scope()

* Original sha: 4f83b21a85
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-10-03T09:39:29Z
2016-10-29 17:24:39 +02:00
Elastic Jasper
420dd2c72d Backport PR #8558
---------

**Commit 1:**
remove unused vars

do not hardcode css-snippet

* Original sha: 56c130aa80
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-10-05T15:47:05Z
2016-10-05 18:46:13 -04:00
Elastic Jasper
0690fcd5ad Backport PR #8559
---------

**Commit 1:**
Remove Connect Data section from Management app

* Original sha: 016f881dba
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T19:39:16Z

**Commit 2:**
Fix path mentioned in comment

* Original sha: 66488f5d6b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T20:50:52Z

**Commit 3:**
Remove unnecessary page method

* Original sha: 5f7117dba2
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-05T20:53:49Z
2016-10-05 17:27:20 -04:00
Elastic Jasper
dba1a7cf88 Backport PR #8539
---------

**Commit 1:**
[elasticsearch/proxy] strip _ query string param

With elasticsearch starting to validate query string parameters, we need to stop sending the extra "_" query string paramters (used to cache-bust in browsers). The changes are larger than "necessary" because the url parsing and formatting logic was updated to use the bonafide `url.parse` and `url.format` methods, rather than a series of specialized string mutations. The tests for this code were also expanded as a part of this effort.

* Original sha: d7bcab9f96
* Authored by spalger <email@spalger.com> on 2016-10-04T20:20:35Z

**Commit 2:**
[es/test] improve failure logging

* Original sha: 7de6323976
* Authored by spalger <email@spalger.com> on 2016-10-04T21:41:20Z

**Commit 3:**
[courier] move incorrectly placed search/get params into the request body

* Original sha: afe7a4c88a
* Authored by spalger <email@spalger.com> on 2016-10-04T21:47:49Z

**Commit 4:**
[es/tests] fix routing tests

* Original sha: 1c718bcd40
* Authored by spalger <email@spalger.com> on 2016-10-04T21:48:36Z

**Commit 5:**
[functional_tests/try] improve final failure message

* Original sha: 655eb05b03
* Authored by spalger <email@spalger.com> on 2016-10-04T22:29:02Z

**Commit 6:**
[functional_tests/discover] replace some sleep() calls with try()s

* Original sha: fa6212ab5c
* Authored by spalger <email@spalger.com> on 2016-10-04T22:31:11Z

**Commit 7:**
[functional_tests/try] trim intermediate tryForTime failure logging

* Original sha: a1e62ef048
* Authored by spalger <email@spalger.com> on 2016-10-04T22:51:12Z

**Commit 8:**
[courier] remove use of esShardTimeout, see #8544

* Original sha: 5a81f53306
* Authored by spalger <email@spalger.com> on 2016-10-04T23:26:48Z

**Commit 9:**
[courier] remove unused import

* Original sha: 4ecc73f902
* Authored by spalger <email@spalger.com> on 2016-10-04T23:58:52Z
2016-10-05 08:18:09 -04:00
spalger
63f402583d Backport #8420
[functionalTests/console] fix test subject selector by focusing on help-specific button
2016-09-30 13:50:03 +02:00
spalger
a0dc55ec5e Backport #8342
[console] fix references to getInput function

When splitting the input/output modules into an `initializeInput` and `getInput` pair, it was changed to an esModule. This means that you can no longer require is and execute it's default export directly, as was being done in the console's settings module.

(cherry picked from commit 086a40c476)
2016-09-30 13:50:03 +02:00
Elastic Jasper
fc7357bcb3 Backport PR #8285
---------

**Commit 1:**
Fix functional tests for Share UI.

* Original sha: 2fb22ed124
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-09-14T01:38:38Z
2016-09-14 16:57:25 -04:00
Elastic Jasper
93c199d385 Backport PR #8241
---------

**Commit 1:**
[pageObjects/console] update selectors to use test subjects

* Original sha: a2d37fca98
* Authored by spalger <email@spalger.com> on 2016-09-12T23:34:07Z

**Commit 2:**
[tests/config] fix console url

* Original sha: 7d7ef27e3a
* Authored by spalger <email@spalger.com> on 2016-09-12T23:34:34Z
2016-09-12 21:10:38 -04:00
LeeDr
fb526944ff Added missing selectOrderBy in visualize_page, and try loop around getting line chart data 2016-09-02 11:20:34 -05:00
LeeDr
a66fc9d52d return promise from updateConfigDoc 2016-08-30 15:11:04 -05:00
LeeDr
4cad856136 Work-around #7496 and/or #7055 by re-setting default index pattern 2016-08-30 15:11:03 -05:00
LeeDr
4bc86f4327 Changed required field data pane width and increased window width for changes in side bar. 2016-08-30 14:19:15 -05:00
LeeDr
168167bfee Removed getZoomLevel functionality and replaced with more data checks. 2016-08-11 11:30:43 -05:00
LeeDr
069f335c0b Several new TileMap tests for 10 zoom levels, Fit Data Bounds, and save zoom level 2016-08-04 12:15:23 -05:00
Stéphane Campinas
48e7c94934 corrected CSS selection 2016-07-21 11:47:25 +01:00
LeeDr
2953d84c6f change other headerPage to header 2016-07-06 17:14:12 -05:00
LeeDr
2945d75df6 Fix a headerPage typo, un-nest some promises. 2016-07-06 16:44:44 -05:00
LeeDr
7f5590aa5b Changes to fix settings page failure 2016-07-06 15:46:00 -05:00
LeeDr
a8c1b4e804 Try to fix another staleElementReference in data table test 2016-07-01 17:40:01 -05:00
LeeDr
583c89012c Add a debug log so we can tell what page we're going to if we fail 2016-06-30 15:13:56 -05:00
LeeDr
cfe85639fc Add getSpinnerDone after clicking a new page in index pattern field list 2016-06-30 14:44:57 -05:00
CJ Cenizal
733a52d00a Remove page object references from support/index. 2016-06-29 06:02:00 -07:00
CJ Cenizal
499e659adb Remove empty constructors from Page Object classes. 2016-06-28 09:12:22 -07:00
CJ Cenizal
91e919d1c5 Convert all page objects to be ES6 classes and rely on PageObjects module instead of support. 2016-06-27 17:22:47 -07:00
CJ Cenizal
64828f12ec Create packages for util and page object files in functional tests.
- Rename page_objects.js to page_objects/index.js.
- Create support/utils folder to contain bdd_wrapper, elastic_dump, es_client, log, and try, all exported by an index.js.
2016-06-23 10:26:45 -07:00
CJ Cenizal
2c7394b033 Add PageObjects facade to support/index.js, allowing us to enable all functional tests during the refactor. 2016-06-23 10:24:17 -07:00
CJ Cenizal
31137131f3 Refactor functional tests, particularly support/index.js.
- Each page object exposes an init method, which accepts a reference to remote.
- Extract page objects from support/index.js into PageObjects.js.
- PageObjects.js also exposes an init method, which accepts a reference to remote. It’s responsible for passing this onto all of the page object instances.
- The functional tests index file calls PageObjects.init and provides the remote reference.
- Extract log and try method functionality from common.js into Log and Try utils.
- Remove common.js dependency from es_client.js and elastic_dump.js.
- Partially convert “discover” tests to use PageObjects, as a demonstration.
2016-06-23 10:24:17 -07:00
Tyler Smalley
b4c3991588 Merge pull request #7516 from tylersmalley/7481-require-index-pattern
Adds route option for requireDefaultIndex
2016-06-22 15:06:40 -07:00
Tyler Smalley
14ef79717c Resolves tests for management redirect changes
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-06-21 23:36:35 -07:00
CJ Cenizal
37f82f146f Create visual_regression test suite.
- Add test:visualRegression npm script.
- Split up test:visualRegression grunt task into takeScreenshots and buildGallery subtasks.
- Add intern_visual_regression.js test file.
- Rename api_itern.js -> intern_api.js for consistency.
- Refactor delayed exports logic for readability.
- Refactor common.js page object to use ES2015 Class.
2016-06-21 20:50:55 -07:00
LeeDr
b7e18730a7 Remove a couple unneeded calls to getSpinnerDone 2016-06-17 10:26:37 -05:00