Commit graph

659 commits

Author SHA1 Message Date
Stacey Gammon
d295553d95 fix selenium tests broken by default panel size change (#9802) 2017-01-09 17:03:27 -05:00
Thomas Neirynck
929b4de122 Read map service metadata from external service (#8630)
This modifies the way Kibana reads out metadata about the TMS service used in the Tilemap Visualization.

- Kibana now uses an external service that exposes a 'manifest'. This contains metadata about one or more available TMS services
- Kibana continues to respect the configuration of the kibana.yml file. If a custom TMS service is set here, the manifest will not be consulted
- This also adds an API extension point for other plugins to add additional query parameters to the requests to the manifest service and for the individual tile requests to the TMS.
2017-01-03 17:33:26 -05:00
Peter Pisljar
ae150f5835 Vislib heatmap visualization (#9403)
* adding UI styles (should extract)

* adding heatmap vislib type

* adding heatmap visualization

* adding documentation

* renaming heatmap options

* fixing options issues

* fixing color selection

* fixing / adding tests

* adding more color schemas

* adding more options

* adding cell labels

* fixing selenium test

* only allow to rotate labels by 90 degrees

* converting color number slider to number input

* hide labels if they don't fit

* fixing small issues

* improved range options

* fixing based on Thomas' review

* rebasing on master and fixing linting issues

* adding selenium tests

* fixing alerts

* fixing padding

* fixing based on review

* fixing math

* fixing custom range options

* removing $timeout

* notification in case labels were hidden

* fixing tests

* fixing based on last review

* fixing based on thomas' review
2016-12-26 19:15:50 +01:00
Lee Drengenberg
0cbec2cad7 New scripted field tests (#9242)
* [WIP] 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
2016-12-20 12:19:59 -06:00
Spencer
db60725a02 [eslint] enable object-curly-spacing and no-global-assign (#9486)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule
2016-12-14 13:29:32 -07:00
Spencer
e488a16e6f [eslint] reenable no-extra-semi and quotes rules (#9473)
* [eslint] re-enable no-extra-semi and quotes rules

* [eslint] update to version 0.2.2 of eslint config

* [eslint] autofix
2016-12-13 18:17:47 -07:00
Spencer
2f6654bcec [eslint] re-enable no-var and prefer-const (#9455)
* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations
2016-12-13 10:44:27 -07:00
Spencer
0c736724b0 Upgrade eslint (#9357)
* upgrade eslint, all related deps, and config files

* replace gruntify-eslint with basic eslint-cli wrapper

* arrow-IIFEs must be invoked outside of the parens

* move import statements before their use

* reindent to satisfy new indentation check algorithm

* place missing semicolon

* ignore copy-pasted decode geohash code

* [grunt/eslint] fix argument spacing

* [gurnt/eslint] add comment about contents of report

* [grunt/tasks] use `export default`
2016-12-12 13:44:18 -07:00
Peter Pisljar
b19794585b Vislib Point Series updates (#9044)
Multiple changes to the Vislib point series charts. Before each of the chart (bar/area/line) would be an independent unit responsible for drawing all of its parts (axes, titles). This change splits things up so we can have greater control and better code reuse.

converting to ES6
moving axes out of each chart
joining both axes types (x and y) into a common axis type
allowing multiple axes
allowing top/bottom/left/right axis positioning
introducing new chart type 'point_series' which can combine bar/line/area series
making each of the series (bar/line/area) direction independent (vertical/horizontal charts)
2016-12-06 12:55:17 +01:00
Thomas Neirynck
31a6cbab6d Add Tag Cloud Visualization
A tag cloud visualization is a visual representation of text data, typically used to visualize free form text. Tags are usually single words. The font size of word corresponds  with its importance.
2016-11-21 17:03:25 -05:00
Stéphane Campinas
0b877f6313 Exclusion of source fields (#7402)
* added source filtering

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

* disable field exclusion checkbox if field is a metafield

* [indexPattern] copy excluded field property when refreshing fields

* [indexPattern/field] move isMetaField consideration into Field

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

* [indexPattern/field] touchup the field.exclude message

* Fix typo

* [indexPattern] handle index patterns without fields

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

* [docTable] remove irrelevant test about source filtering

* [settings/indices] cleanup imports

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

* [imports] fix old testUtils import

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

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

* [fieldWildcard] properly escape regexp control chars

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

* [fieldWildcard] properly bind the regexp to the ends

* [indexPattern] remove unneeded lodash chain

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

* corrected rebase on master

* 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.

* corrected error in merge with _index_pattern

* removed unused code

* added missing fieldFilters to test dumps

* corrected merge with master

* removed default empty array in the index pattern schema, and check if fieldFilters exists

* restricts the source with the exclusion patterns set for that index pattern

* renamed field filters to source filters and explicitely retrieve the source in the doc controller

* renamed variables/moved files from field filters to source filters

* Renamed _field_types.js to _edit_sections.js to better reflect what it is for. Corrected editting typo. Renamed exclude column name to excluded. Corrected HTML styling. Removed unused config parameters in field_wildcard.

* Removed lines that were specifying the _source field since they were made unnecessary by https://github.com/elastic/kibana/pull/7402/files#diff-d1695ba2026ff89878f9e4f4de683758R50

* moved fielddata_fields source filtering to where it is initialized

* two-column layout for the source filters indices section

* corrected tests

* use the same table layout as in the other index sections.
Filter input correctly restricts source filters.
Do not match .keyword fields.

* Filter out .raw suffix from possible matches.
Removed unused HTML file.
Corrected bug that allowed to save an empty source filter.

* exclude is deprecated, should be excludes

* improved description

* changed as per code review

* removed filtering logic for keyword and raw fields
2016-11-01 10:48:43 -07:00
Lee Drengenberg
8ed3b333b0 Port #8880 to master Support Cloud testing (#8915)
* Support Cloud Kibana UI testing master

* Add xpack file

* cherry-pick 9f63224e77
2016-11-01 10:44:12 -05:00
CJ Cenizal
59d65fd672 Fix bug where the loading indicator was wider than the screen (#8854)
* 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:08:38 -07:00
Felix Stürmer
e100e1f5c9
Add test to verify umlaut in vis name
Relates to #8705
2016-10-19 11:16:43 +02:00
Felix Stürmer
731fe7924a
Use let/const where appropriate 2016-10-17 18:14:05 +02:00
Felix Stürmer
956834430a
Take screenshots after assertions
The screenshots are now taken after the corresponding assertions are
made to make sure they actually depict the expected ui state.
2016-10-17 13:14:32 +02:00
Felix Stürmer
a5fe202432
Extract expected values into separate variables
to match convention
2016-10-14 10:48:50 +02:00
Felix Stürmer
d4f717016f
Replace and remove static sleep calls
Any `sleep()` calls preceding a `verifyChartData()` call seem to be
redundant, because `verifyChartData()` already uses `try()` to avoid
flakyness due to timing.

A few more assertions are now wrapped in `try()` calls to avoid
occasional failures due to the timing of rendering.
2016-10-13 11:26:16 +02:00
Felix Stürmer
88c0b7b75e
Simplify NoResultsTimefilter link test
This reformulates the test case to a simple sequence of actions and
assertions to improve maintainability.
2016-10-13 11:26:16 +02:00
Felix Stürmer
db775687f2
Improve readability of some functional tests
Consistently use async/await and bring tests more in line with "Arrange,
Act, Assert".
2016-10-13 11:26:16 +02:00
Thomas Neirynck
47565e7d37 Merge pull request #8558 from thomasneirynck/chore/cleanup-test
Reintroduce parameter in test

cleanup cruft
2016-10-05 18:45:08 -04:00
Thomas Neirynck
56c130aa80 remove unused vars
do not hardcode css-snippet
2016-10-05 18:34:50 -04:00
Matthew Bargar
5f7117dba2 Remove unnecessary page method 2016-10-05 16:53:49 -04:00
spalger
fa6212ab5c [functional_tests/discover] replace some sleep() calls with try()s 2016-10-04 15:31:11 -07:00
Matthew Bargar
f65c9b595b Update expected table headers to fix functional test 2016-09-26 14:40:41 +02:00
spalger
752c3339c2 [console] add functional tests to ensure that settings work 2016-09-22 08:48:34 -07:00
spalger
52dbb264d2 [functionalTests] prevent test failure by retrying find call 2016-09-20 15:40:51 -07:00
CJ Cenizal
2fb22ed124 Fix functional tests for Share UI. 2016-09-14 12:58:00 -07:00
spalger
a2d37fca98 [pageObjects/console] update selectors to use test subjects 2016-09-12 17:15:21 -07:00
Lee Drengenberg
1cebdd75cc Merge pull request #8154 from LeeDr/orderAggsByTerm8141
Test order aggs by term #8141
2016-09-07 11:05:21 -05:00
LeeDr
d6e620accc Removed bogus pageHeader function names 2016-09-07 09:03:15 -05:00
LeeDr
e4da8a6b93 Remove unused remote vars. 2016-09-05 13:41:22 -05:00
Rashid Khan
589ea55f7e Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-09-02 09:20:49 -07: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
218f29f051 Test order aggs by term #8141 2016-09-02 09:35:49 -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
Rashid Khan
1c47159939 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-08-29 09:09:01 -07:00
Rashid Khan
88cb02c2e6 Add timeseries chart 2016-08-15 09:36:24 -07:00
LeeDr
409ec9d55c Merge branch 'master' into addTileMapTests 2016-08-11 12:42:52 -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
Lee Drengenberg
4469e88ea7 Merge pull request #7701 from ppisljar/fix/7332
fix #7332 - saving vis with % in name causes error
2016-08-03 15:36:08 -05:00
ppisljar
30fcbb636c fixing test 2016-07-27 15:20:05 +02:00
ppisljar
2f4e5aa0fa removing screenshot from test 2016-07-26 18:03:30 +02:00
ppisljar
06bb7ab10c updating tests 2016-07-26 10:43:59 +02:00
ppisljar
a484283837 - added analyze_wildcard to query body 2016-07-18 16:13:42 +02:00
ppisljar
ef372ca308 - updated the test (wont pass until # is fixed) 2016-07-13 16:04:04 +02:00
ppisljar
25d34d012c updating tests to test with % in visualization name 2016-07-13 13:28:19 +02:00
CJ Cenizal
0f397f2bc4 Migrate dashboard functional tests to use PageObjects. 2016-06-27 16:00:39 -07:00
CJ Cenizal
dc51ad098f Migrate console functional tests to use PageObjects. 2016-06-27 15:57:58 -07:00