Commit graph

284 commits

Author SHA1 Message Date
Jonathan Budzenski
e4f1e8f824
[5.6] Bump node to 6.16.0 (#27921)
* [5.6] Bump node to 6.16.0

* bump default max header size

* disable region map test
2019-02-05 16:33:49 -06:00
Tyler Smalley
f9c69f3aa7
[5.6] Disable flaky Management Index Pattern sort test (#26504)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-12-03 08:11:16 -08:00
Tyler Smalley
c4639545b8
[5.6] Bump Node to 6.15.0 (#26315)
Changelog:

- [6.15.0](https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.15.0)

`index result popularity change popularity should be reset on cancel` has been skipped. This particular test exhibited weird behavior in Chrome when controlled by Selenium. When the button to confirm deleting the index pattern was clicked, it would result in multiple (3-5) calls to the delete saved object endpoint, though only one of those calls was represented in the network tab.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-11-30 16:46:41 -08:00
Marco Vettorello
a07347478b [5.6] Fix _source formatting (#22800) (#22867)
* Backport fix to 5.6 structure

* Fix CI error, update functional test to use 5.6 visualize page objects

* removed async and anon function
2018-09-10 11:49:44 -04:00
Thomas Neirynck
f7f47c0c46
[5.6] Update layer name in test (#17757)
This updates the test to match the layer name change in EMS from US States to USA States.
2018-04-18 18:02:05 -04:00
Lee Drengenberg
5bdcc7d56d
[5.6] Make window 100p wider and select Vector Map (#16214)
* Make window 100p wider and select Vector Map

* Remove unused pageObject
2018-01-22 21:01:36 -06:00
Nathan Reese
d773efb7cc
[5.6] test/fix flaky clone test (#15808)
* Investigate fix for flaky clone test

* fix missed merged conflict
2018-01-02 15:24:14 -07:00
Peter Pisljar
35c631feb0
fixing field formatters for gauge (#15145) (#15245)
fixing field formatters for gauge
2017-11-30 10:20:20 +01:00
Thomas Neirynck
85a16bf9b1 Re-enable the tilemap test (#14532) (#14540)
Enables the tile-map test. this was disabled due to CORS-issues on the server end. These are now resolved.

This reverts commit e7fb1b0d8f.
2017-10-25 11:07:04 -04:00
Stacey Gammon
9ca2bd38d5 Comment out tile map tests to get the build passing again (#14519) 2017-10-23 17:54:28 -04:00
Chris Roberson
4129353726 [Management] Allows for imports to select existing index (#14137) (#14323) 2017-10-04 22:59:02 -07:00
Chris Cowan
864b8719e2 Fixes #14127 - TSVB should check id vis params instead of type (#14129)
* Fixes #14127 - TSVB should check id vis params instead of type

* Adding functional test from master
2017-09-22 17:19:04 -04:00
Lukas Olson
858f6fbbd3 Change default query to match_all (#13047)
* Change default query to match_all

* Move files around and add tests

* Fix dashboard isQueryFilter

* Add secondary describe to separate tests

* Fix dashboard test

* Change default discover query

* Fix functional test
2017-07-24 12:32:54 -07:00
Stacey Gammon
ded1eec3ac Fix search issue on listing page + tests (#12618)
* Fix search issue on listing page + tests

* fix test case inconsistency

* use backtics to create the search string

(cherry picked from commit 31b33659ca)
2017-07-14 12:29:01 -07:00
Spencer
929aa8efae [elasticsearch] patch mappings that are missing types (#12783)
* [elasticsearch] patch mappings that are missing types

* [elasticsearch/healthCheck] fix tests

* fix doc typo

* [tests/functional/dashboard] fix suite name

* [es/healthCheck/ensureTypesExist] limit randomness a bit

* [test/functional] update es archives with complete mappings
2017-07-12 16:15:59 -07:00
Tyler Smalley
3c64283dd1 Use SavedObjectsClient for Courier Index Pattern (#12719) (#12779)
* Index pattern is created, by default, with a random ID by Elasticsearch
* Updated all references requiring the pattern itself to use indexPattern.title
* Advanced options toggle added to index pattern creation page to provide a specified ID
* If an index pattern does not exist, the user is given a link to create a pattern with the referenced ID.
2017-07-11 21:43:23 -07:00
Tyler Smalley
1cd259738e Uses SavedObjectsClient for UI Settings (#12747) 2017-07-11 12:48:25 -07:00
Spencer
9828ebab0f [ftr/dashboard+scripting] disable unstable tests (#12592)
(cherry picked from commit aa729af3a1)
2017-06-30 11:40:07 -07:00
Thomas Neirynck
50145bd07a Revert "disable save button if visualization is dirty (#11576)" (#12152) (#12290)
This reverts commit efc621826b.
2017-06-12 23:24:21 -04:00
Stacey Gammon
a5f1e10b1e Preserve the saved vis url when using the add new vis link from dashboard (#11932) (#12199)
* Preserve the saved vis url when using the add new vis link from dashboard

Fixes https://github.com/elastic/kibana/issues/11078

* Store the edit url in browser history as well

* Fix tests by reordering them.

* add a more explanatory comment
2017-06-08 09:14:02 -04:00
Shaunak Kashyap
d9c1df98a6 Revert the Getting Started page (#12154)
* Revert "When on an embedded page, bypass Getting Started gate check (#12040)"

This reverts commit 05293f1c8d.

* Revert "Making tweaks. (#12003)"

This reverts commit aa3fa06f61.

* Revert "Functional tests for the Getting Started page (#11850)"

This reverts commit 099178a7ca.

* Revert "Prevent flicker on Getting Started page (#11826)"

This reverts commit c4b3ade27d.

* Revert "Getting Started page (#11805)"

This reverts commit 32eff371f2.

* Remove check for Getting Started page from navigateToApp
2017-06-05 14:29:26 -07:00
Stacey Gammon
79ca78acb6 Update dashboard based on url changes (#12123) (#12145)
* Update dashboard based on url changes

* make clickSelector a retry in case it fails the first time
2017-06-02 15:28:14 -04:00
Spencer
d397a22d0e [5.x] [eslint] Upgrade to latest shared eslint config (#12129) (#12130)
* [eslint] upgrade to latest eslint-config-kibana

* [eslint] autofix violations discovered by updated rules

* [eslint] remove import resolver

(cherry picked from commit 14014872aa)
2017-06-01 19:00:00 -07:00
Stacey Gammon
2c772409ab Clean up clone tests to new style so they actually run (#12032) (#12109)
* Clean up clone tests to new style so they actually run

* Use new retry service

* Use correct case with the dashboard copy name
2017-06-01 14:07:49 -04:00
Thomas Neirynck
f6be1e4698 [Backport] Add Region Map Visualization (#12112)
- Users can now create choropleth maps. This requires configuring an inner join between the results of a term-aggregation and a reference vector layer. This vector layer needs to be in the GeoJson format. By default, Kibana uses vector layers serverd by a data service hosted by Elastic. Users can also bring in their own layers by adding configuration entries in the kibana.yml. These need to point to a CORS-enabled data service that accepts requests from the Kibana application.
- For clarity, the tilemap is renamed to Coordinate Map.
- A new manifest is published by Elastic. this includes metadata for the available tilemap services, as well as metadata for the available vector data layers.

Required manual edits to resolve

Conflicts:
	src/core_plugins/kibana/inject_vars.js
2017-06-01 10:57:21 -04:00
Peter Pisljar
9c67b2a0e2 vislib gauge chart (#10336) (#12093)
* gauge chart

* adding ranges and color options

* adding green to red color pallete

* adding more options

* fixing based on tanya's review

* fixing label positions

* improving range settings

* percentage mode applies to legend

* hidding labels when too long

* updating based on ui rview

* rebasing on master

* adding unit tests

* adding selenium tests

* fixing tests

* adding metric gauge type

* removing metric vis

* adding metric and goal charts

* updating options

* fixing bugs

* fixing based on review from Thomas

* updating icons

* fixing tests

* updating based on last review

* hide some settings if only one range

* fixing tests

* removing unsupported aggs

* fixing defaults

* fixing options

* fixing error with inverse color schema

* adding spacing to info icon

* fixing some tiny issues
2017-05-31 16:36:36 +02:00
Stacey Gammon
b994f600e5 Fix a type error from the default to named conversion (#12021) (#12036)
* Fix a type error from the default to named conversion

add tests that would have caught it.

* address code review comments
2017-05-26 15:55:33 -04:00
Spencer
1307ea39ab [indexPatterns/field] remove indexed/analyzed/doc_values awareness (#11969)
* [indexPatterns/field] replace mapping awareness with readFromDocValues

* move link to more details to proper location

* Address kjbekkelund's feedback

* let the prs speak for themselves

(cherry picked from commit 84ea502205)
2017-05-25 12:58:59 -07:00
Shaunak Kashyap
ae16cb325e Functional tests for the Getting Started page (#11850)
* Adding some more functionality to the Getting Started page object

* Using optOut method from Getting Started page object

* Adding functional tests for Getting Started page

This set of tests specifically tests the scenarios under which a user should or should not get redirected to the Getting Started page

* Adding log.debug message

* Conforming to HTML style guide

* Using new GettingStarted page object methods + opting out

* Adding test for nav being shown

* Removing unnecessary line

* Navigate to Discover expecting to be redirected to the Getting Started page

* Trying beforeEach instead of before

* Remove LS data index + load empty kibana index

* Removing unnecessary line

* Fixing order of operations
2017-05-23 07:09:36 -07:00
Lee Drengenberg
0a3b8d16ba allow creating index patterns with diff names and time fields (#11934)
* allow creating index patterns with diff names and time fields

* replace clickKibanaIndicies with clickKibanaIndices
2017-05-22 09:13:27 -05:00
Stacey Gammon
2095fe934a Introduce Clone feature in view mode (#10925) (#11923)
* Introduce Clone feature in view mode

* Use a new react modal for cloning dashboards

* Fix focus issues and tests

Unfortunately can’t run jest tests outside of the ui_framework at this
time.

* Add tests for dashboard clone modal

* move the jest tests out of the __tests__ directory

It’ll cause failures for the normal unit test runs

* use react instead of angular for overlay and loading of dom element

* Append 'Copy' to the title in the clone dialog so by default it doesn't clash

* address code comments
2017-05-19 11:10:43 -04:00
Spencer
3f181d1129 [tests/functional] opt out of getting started on navigation (#11881)
* [tests/functional] automatically opt-out of getting started page on navigation

* [test/functional/commonPage] avoid circular reference

* [test/functional/commonPage] move check for getting started after url has settled

* [gettingStarted] prevent route resolution by returning halt promises

* [test/functional/commonPage] wait for kibana to load before checking for getting started

* [uiRoutes/setupWork] provide a token that can be thrown to halt setup work

* [ui/routes] rename reference to WAIT_FOR_URL_CHANGE_TOKEN

* address review feedback

(cherry picked from commit c9c8e8d066)
2017-05-18 19:34:14 -07:00
Felix Stürmer
389bcdcf44 [5.x] [context view] Apply filters to the context query (#11890)
Backports PR #11466

This adds the ability to display a filter bar in the Context view and to
apply those filters to the queries. It also modifies the link from the
Discover view to the Context view to copy the currently defined filters
when switching. New filters can be added from within the Context view
using the icons in the expanded detail rows.
2017-05-18 22:38:06 +02:00
Stacey Gammon
4da3357a91 Fix modals in react (#11714) (#11862)
* fix focused button not being set

Need to do it in a timeout because ng-react hasn’t loaded the react
code yet, so it can’t find the buttons.

* add a test

that would have caught the issue, and also change the default focused
button for the listing delete page since it’s a destructive action.

* Add a comment

* Push focusing of default button into react code

* Push ESC key handling into react as well

* Remove ESC tests in angular form

They don’t pass, I’m guessing because of the way it’s triggered, but
these test cases should now be handled in jest.  Also confirmed it
works as expected with the modal.

* Address code review comments

* Use autoFocus
2017-05-17 12:23:37 -04:00
Thomas Neirynck
9828211dde disable save button if visualization is dirty (#11576) (#11816)
(backport: manual merge edits in test file)
2017-05-16 10:50:42 -04:00
Spencer
a65a652c0f [tests/functional] stop setting the default test timeout everywhere (#11777)
(cherry picked from commit 419f3132b8)
2017-05-15 16:46:18 -07:00
Shaunak Kashyap
547feb1578 Getting Started page (#11805)
* Getting Started page (#11673)

* Initial code

* Renaming files/folders

* Notes and changes from HTML/CSS review

* CSS changes

* Fixing transform units

* Fleshing out logo circle

* Adding logos

* Un-nesting styles

* Adding kuiText class on <p> elements

* Making shield icon 404 go away

* Using trustAsHtml filter; using registry

* Adding code for registry

* Adding images

* Hooking up the opt-out link

* Fixing linter issues

* Fix issue with refresh bringing back nav

* Removing load_default module

* Use GETTING_STARTED_ROUTE constant

* Allow topMessage to be a directive

* Adding kuiLink CSS class to anchor elements

* Adding alt text to images

* Replace getters with regular methods

* Remove leftover comment

* Removing unnecessary comment

* Fixing typo in comment

* Adding comments for message properties

* Fixing typo in method name

* Defining custom CSS class

* Fixing method call

* Creating custom CSS classes

* Adding documentation links

* Use a instead of button for demo link

* Allow directives in manage and monitor messages

* Refactoring shared code into single ui/public/getting_started folder

* Adding README

* Fixing whitespace in/around links

* Trim messages before setting them

* Decorate in-app links with opt-out attribute

* Opt out of the Getting Started page if the user already has index patterns

* Adding more commentary around expectations of setTopMessage use

* Using ng-src and ng-href attributes where attr values are angular expressions

* Importing the directive before using it

* Using ui/registry for message registries

* Renaming service => helpers to clarify intent

* Adding explanatory comment

* Adding "or"

* Fixing div id

* Breaks out the inject logic into another directive

* Adding Getting Started page object for functional tests

* Consolidate into one registry

* Fixes incorrect classes

* Changes how styles are applied to injected-items items

* Modifying class name per CSS style guide

* Adding getting started doc link

* Removing unused import

* Attempting to fix breaking build

Apparently the Getting Started page is preventing access to Console (Dev Tools, really) so the functional tests for Console are failing. This commit opts the user out of the Getting Started page before attempting to navigate to Console.

* Cleanup on aisle testbed! (#11765)

* Navigate to getting started page so we can opt out of it
2017-05-15 14:46:13 -07:00
Spencer
fa6429ec44 [ftr] take screenshots on failure (#11709) (#11742)
* [tests/functional] move screenshots to their own service

* [ftr] add testFailure and testHookFailure lifecycle hooks

* [tests/functional/screenshots] cleanup old screenshots at startup

* [test/functional/screenshots] take screenshots when tests fail

* [cli_plugin/install] fix test

* [ui/scanner] fix test

(cherry picked from commit 2e7fed87fd)
2017-05-11 13:27:04 -07:00
Thomas Neirynck
bd77356e1b When using WMS, the zoom settings of the manifest should not be used (#11707) (#11729)
When a user configures a WMS, we should not use the zoom-settings from the manifest. These depend on the user's license level, and are not relevant when using a 3rd party WMS service.
2017-05-11 10:33:22 -04:00
CJ Cenizal
3ea447380f Make Discover table keyboard accessible. (#11604) (#11705)
* Make Discover table carets tabbable.
* Make Discover table tabs tabbable.
* Make Discover table icon buttons tabbable.
2017-05-10 10:46:56 -07:00
Rashmi Kulkarni
b28be0cfa0 Selenium Test for TagCloud Visualization (#11636)
Selenium Test incorporating TagCloud Viz
2017-05-09 16:50:20 -07:00
Spencer
36b8da4584 Fix default time field selection (#11664)
* [indexPattern/create] fix test subject

* [indexPattern/create] only auto-select when there is more than one time field

* [indexPatterns/create] describe weird timeField auto-selection

* [indexPattern/create] update no-date-field text

* restore functional test changes in 02787e3df5

(cherry picked from commit 9f0caba9b6)
2017-05-09 16:05:41 -07:00
Thomas Neirynck
5c0fa97763 move pointseries test module (#11635) (#11648) 2017-05-08 14:07:18 -04:00
Stacey Gammon
91623d7095 Hide the second toast when adding a new visualization straight from dashboard (#11621) (#11650)
* Hide the second toast when adding a new visualization straight from dashboard

* fix tests that assume two notifications

* fix another tests that assumes two toasts
2017-05-08 12:14:40 -04:00
Lee Drengenberg
e0e064a3e9 Set UTC timezone and default index pattern AFTER wiping .kibana (#11527) 2017-05-04 07:29:30 -05:00
Lee Drengenberg
d034e9aeb7 Change expected data to match change in table UI (#11495)
* Change expected data to match change in table UI

* fix more expected results for data UI change

* Revert one previous change and fix one other test

* fix last issues

* missed splitting the last array element

* missed splitting the last array element
2017-04-28 14:46:14 -05:00
ppisljar
72bb8be650 Revert "fixing heatmap black squares (#11121)
This reverts commit da327af5f5.
2017-04-28 10:17:27 +02:00
Thomas Neirynck
36269e3cbc Make lon/lat comparison less strict in selenium test (#11464) (#11471)
Make comparison on location less strict. Depending on the browser, the location might be slightly off after the decimal point.
2017-04-27 12:59:54 -04:00
Shaunak Kashyap
7aae24bfc9 Removes the "Index contains time-based events" checkbox (#11409)
* Removing "Index contains time-based events" checkbox

* Rename label

* Adding "No Time Filter field" to time field select list

* Using translation for i18n and consistency with label on create form

* More useful verbiage

* Updating copy

* Adding help block below select for added clarity

* Removing functional tests that used time-based events checkbox

* s/INDEX/INDICES/ to be reflect reality

* Fixing logic error

* Updating functional test to match new behavior

* Use controller property instead of inline expression

* More readable variable name
2017-04-26 16:25:46 -07:00
Thomas Neirynck
9be5ead8c2 [5.x] Backport add the functional tilemap test (#10992) (#11430)
* add the functional tilemap test (#10992)

Since the unit-tests now verify all colors and sizing as well, this integration test is mainly relevant for verifying the zooming behavior.

* fix test with new template
2017-04-26 00:11:56 -04:00