Commit graph

15797 commits

Author SHA1 Message Date
Tim Sullivan 508d6cb8eb [Framework/Accessibility] Add kuiScreenReaderOnly class (#13133)
* [Framework/Accessibility] Add kuiScreenReaderOnly class

* fix typo

* use GuideLink

* add screen_reader react component and tests

* export KuiScreenReaderOnly

* --wip-- [skip ci]

* fix lint rule

* remove obsolete snapshots
2017-08-01 15:56:12 -07:00
Thomas Neirynck 2d73481f8a ensure we are working with data-series (#13266) (#13273)
This fixes a regression introduced by https://github.com/elastic/kibana/pull/13217.
2017-08-01 18:34:44 -04:00
Matt Bargar 42fb0a504a Send map filters through so it get picked up by both kuery and lucene (#13251) (#13262) 2017-08-01 15:37:16 -04:00
Matt Bargar 2521f83285 Add some functional tests for query language switching (#13036) (#13256)
* Add some functional tests for query language switching
2017-08-01 13:47:04 -04:00
Thomas Neirynck 1e4d4c7753 Exclude stacktrace from error response of Timelion backend (#12973) 2017-08-01 11:46:01 -04:00
Peter Pisljar 555bb70d64 removes :filters from label (#12962) (#13234) 2017-08-01 13:17:55 +02:00
Peter Pisljar cfd4887c47 in percentage mode tooltip should also show percentages (#13217) (#13238) 2017-08-01 13:17:02 +02:00
Felix Stürmer 4182eba6d9 [6.x] Use version 0.9.0 of eslint-config-kibana (#13183)
Backports PR #13177
2017-08-01 12:00:44 +02:00
Kim Joar Bekkelund c830f0cd61 Remove @elastic folder from packages/ (#13089)
(cherry picked from commit 5772f56d7a)
2017-07-31 13:59:27 -07:00
Spencer e396a783fc [server/indexPatterns] expose indexPatternService getter/factory (#13012)
(cherry picked from commit 9389f0b71a)
2017-07-31 12:46:07 -07:00
Chris Roberson e21c399d71 Update saved objects client usage to attributes instead of _source. Also, fixing an improper "safe" apply usage. (#13223) 2017-07-31 14:43:00 -04:00
Tim Roes 05057e7d50 Fix typos and punctuation in WMS settings (#13146) 2017-07-31 15:52:36 +02:00
Spencer f3cbc4d2a4 [testUtils/esTestCluster] use more standard api style (#13197)
(cherry picked from commit d36080bca8)
2017-07-28 15:50:46 -07:00
Court Ewing 7ee7cd7d68 test: hard code esApiVersion to master (#13198)
Until elasticsearch.js actually has support for 6.x/6.0 branches, this
needs to just rely on the master apiVersion.

Also, we shouldn't change this esApiVersion in tests unless we are also
changing the value in our elasticsearch plugin proper, otherwise our
tests can accidentally use a different API version than reality.
2017-07-28 17:54:46 -04:00
Chris Cowan 31b3ec2218 Add Checks to Dashboard Context (#13182)
* Fixes #13181 - Check values before adding them to filter

* Adding tests

* Adding check to make sure query is never undefined
2017-07-28 13:38:19 -07:00
Spencer be008690a3 [esTestConfig] fix esvm directory (#13190)
(cherry picked from commit 7d94bb1240)
2017-07-28 12:38:40 -07:00
Spencer 48bfe7f1a9 Implement esTestCluster test util (#13099)
* [es/tests] remove unused module

* [testUtil/es] add utility for starting es nodes in tests

* [ftr/tests] use esTestCluster util to start es

* [es/tests/routes] use esTestCluster to start own es

* [testUtils/kbnServer] disable uiSettings unless plugins are enabled

* [testUtils/esTestCluster] use standard test es port by default

* [server/http/tests] add esTestCluster to setup

* [test/config] unify es test config into a single module

* [testUtils/esTestCluster] directory is no longer configurable

* [testUtils/esTestCluster] throw when es.start() is called again without es.stop()

* [testUtils/esTestCluster] is* checks should not mutate state

(cherry picked from commit 6748b22d03)
2017-07-28 12:37:10 -07:00
Court Ewing b39c28ed17 esvm: use branch from package.json (#13149)
Since versions are synced across the stack, the esvm config can use the
same branch configuration as Kibana itself.
(cherry picked from commit 8d5eac959f)
2017-07-28 12:34:33 -07:00
Thomas Neirynck ae61b99cab Should respect pinned filters (#13019) (#13188) 2017-07-28 14:33:36 -04:00
Thomas Neirynck 4d93c74f10 Region map should respect saved center and zoom (#12883) (#13169) 2017-07-28 11:55:16 -04:00
Thomas Neirynck 181435a039 Save layer setting in the region map UI (#12956) (#13168) 2017-07-28 11:00:24 -04:00
Chris Roberson b8edbc26ee Ensure conflicted fields can be searchable and/or aggregatable (#13070)
* Ensure that conflict fields can be searchable and/or aggregatable in the UI

* Use `some` instead of `reduce`

* Revert UI changes

* Attempt to convert multiple ES types to kibana types, and if they all resolve to the same kibana type, there is no conflict

* Add comma back

* Cleaner code

* Add tests

* Update failing test to handle searchable and aggregatable properly

* Add functional test to ensure similar ES types are properly merged

* Update tests

* Revert shard size
2017-07-28 10:46:35 -04:00
Stacey Gammon 17dc4e6076 Remove try/catch for short url so the appropriate errors will be propagated to the UI (#13004) (#13179)
* Remove try/catch for short url so the appropriate errors will be propagated to the UI

* Simply ensure the error is a Boom error by wrapping it, but keep the original error details.

* Boom.wrap can't handle non Error instances, as exist in some of the tests.

* Only support Error objects, and check both status and statusCode

* fix test

* Fix test errors for reals this time

* Break out status and statusCode short url error tests
2017-07-28 09:47:22 -04:00
Stacey Gammon 67de869c15 Stabilize and bring back flaky tests (#13034) (#13159)
* Stabalize tests and bring back flaky test

* Try to fix flaky map radius visualize test

* fix flaky tile map zoom test

* Try to fix flaky zoom test by avoiding zooming in and out with spy panel open

* Remove duplicate wrapped retry around find methods

The retry was moved internally, around a check for stale elements as
well, so this should no longer be neccessary.
2017-07-28 08:57:02 -04:00
Peter Pisljar 7454a52e5a adding docs for goal and gauge (#13140)
* adding docs for goal and gauge
2017-07-28 14:42:01 +02:00
Peter Pisljar c6d5693c1e fix metric default color (#12993) 2017-07-28 14:36:10 +02:00
Nathan Reese 4ded8a6287 date_histogram: some bars are too big (#13068) (#13151)
* handle data sets with holes

* add unit tests
2017-07-27 12:49:44 -06:00
CJ Cenizal 7bffcda1ae Upgrade eslint config to 0.8.1. (#13128) (#13155)
* Fix incorrect peerDependency and bump eslint config version to 0.8.1.
* Upgrade eslint config to 0.8.1. Fix JSX to adhere to new formatting rules.
2017-07-27 11:27:05 -07:00
Chris Earle 9e1f88d3fe change branch from master to 6.x in package.json 2017-07-26 20:10:52 -04:00
Lukas Olson 5b18d3568b Update filter editor docs with addition of advanced option (#13084) 2017-07-26 16:49:33 -07:00
CJ Cenizal 7890439ad5 Make 'time picker' button in Discover no results prompt keyboard and screen-reader accessible. (#13046) (#13134)
* Make 'time picker' button in Discover no results prompt keyboard and screen-reader accessible.
2017-07-26 16:25:53 -07:00
Tim Roes 26dff17610 Plugin installer proxy support (#12753) (#13115)
Proxy support for plugin installer
2017-07-26 20:03:17 +02:00
Stacey Gammon 43b66cea3c ensure timezone attribute in tests is adhered to (#13121) (#13126)
* ensure timezone attribute is adhered to

Two issues - one the archiver was loading the visualize mapping after
the config setting so it was bring overwritten, and two,
uiSettings.replace wasn’t working correctly to begin with.

* extra line to ensure server is stabilized to prevent transitory failures
2017-07-26 13:22:30 -04:00
Tyler Smalley f6e3aa1b81 Removed _default_ from esArchiver test and updates data.json (#13122)
I untar'd data.json as it makes it harder to grep/update/review.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-26 09:49:53 -07:00
CJ Cenizal 223d9d951e Add linting rules for formatting JSX. (#12810) (#13125)
* Add linting rules for formatting JSX.
* Bump eslint config version to 0.8.0.
2017-07-26 08:57:49 -07:00
CJ Cenizal 739360aac9 Move eslint-config-kibana into core (#12725) (#13124)
* Initial commit

* added actual config

* version 0.0.1

* version 0.0.2

* [no-const-assign] Disallow assignment to const

http://eslint.org/docs/rules/no-const-assign

* [no-redeclare] Disallow redeclaring variables

http://eslint.org/docs/rules/no-redeclare

* version 0.0.3

* [no-unused-vars]: Disallow declaration of variables that are not used in the code.

* Bump to 0.1.0.

* upgrade deps in preperation for babel6 transition

* 0.2.0-alpha1

* use yaml for readability

* 0.2.0

* update/pin peed dependency versions

* 0.2.1

* [quotes] allow template literals

This allows eslint to validate this rule from the styleguide: https://github.com/elastic/kibana/blob/master/style_guides/js_style_guide.md#use-template-strings-to-avoid-escaping-single-quotes

* 0.2.2

* add object-curly-spacing and no-global-assign rules

* sort .eslintrc.yaml rules

* 0.3.0

* add basic react support

* 0.4.0

* Disallow using 'context' in tests

* 0.5.0

* move from .eslintrc.yaml to .eslintrc.js without .json generation (#6)

* Implement import plugin (#7)

* update deps

* include eslint-plugin-import

* Dereference import config (#8)

* reorganize existing rules into groups

* defreference eslint-plugin-import "recommended" config

Based on ea9c92c732/config/recommended.js

* 0.6.0

* set environment info for import rule

* 0.6.1

* update peerDependencies

* 0.7.0

* Move eslint-config-kibana into packages directory
2017-07-26 08:54:48 -07:00
Tyler Smalley 4d8120d5fa Updates esArchiver mappings to use single type (#13107)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-26 08:20:08 -07:00
Stacey Gammon 9b54028749 skip flaky discover test (#13114) (#13117)
Caused last 4 builds to fail on master.

Will attempt to bring back in
https://github.com/elastic/kibana/pull/13034
2017-07-26 10:21:46 -04:00
Stacey Gammon 9f62ee555e remove inline awaits (#13043) (#13104)
* remove inline awaits

* testSubjects.find now always returns a promise, so we need to make sure there is no more inlining

* more find conversions

* need to pass property name

* Make sure async functions are awaited on.
2017-07-26 07:54:12 -04:00
Chris Roberson f3551a145c Remove premature abstraction (#13042) 2017-07-25 14:39:47 -04:00
Chris Roberson eb9f8a5040 [Management] Provide a way to fetch index pattern titles (#13030)
* Refactor how `get_ids` works to enable fetching other properties of index patterns, specifically the `title` or name

* Remove unnecessary lines

* Only cache for `id` calls
2017-07-24 15:52:40 -04:00
jimgoodwin 811e6922b9 Branching for 6.0: Bump version to 6.1.0 2017-07-24 15:31:28 -04:00
Court Ewing 90c713fd18 Remove translations from management section (#13049)
We need to revisit how we embed translations into templates, so until we
do we might as well go back to embedding text directly in the page. The
translation implementation now makes it difficult to navigate throughout
complicated HTML.

It also suffers from an inability to flag on unused translation keys,
which creates a good deal of technical debt. Close to half of all
translation keys in the translation file in this initial pilot were
already unused since it was introduced a couple of months ago.
2017-07-24 12:49:16 -04:00
Chris Cowan 190cd5f3f6 Fixes #12602 - Change TSVB Fields API to use fieldCaps API (#12611)
* Fixes #12602 - Change TSVB Fields API to use fieldCaps API

* Removing obsolete test

* updating tests

* removing the extra sortBy
2017-07-24 09:25:08 -07:00
Thomas Neirynck 37fc9495c6 Should only fit on shapes that are part of the result (#12881) 2017-07-24 11:24:11 -04:00
Stacey Gammon 2f233030bc Children of buttons won't capture hover events in firefox (#13015)
* Children of buttons won't capture hover events in firefox

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

* Make full screen div accessible

* Remove nested aria labels
2017-07-24 09:01:37 -04:00
Tim Roes 2043cf0e0a Add rule about tabindex > 0 to the styleguide (#12981) 2017-07-22 07:48:02 +02:00
Tim Sullivan 7d08c68875 Fix/ui app link to last url ii (#13044)
* [App] Allow plugin app to specify linkToLastUrl

* clean up tests

* remove "built-in" wording

* restructure test to clarify the behavior
2017-07-21 16:34:07 -07:00
Court Ewing 7a918f17d2 Configurable custom response headers for server (#13045)
* Configurable custom response headers for server

The server.customResponseHeaders configuration allows users to configure
custom headers to send on all responses to the client from anywhere in
the Kibana server.

This can be useful for setting headers like x-frame-options when you
don't want people embedding even Kibana dashboards in an iframe.

* Consistent header overriding and explicit unknown
2017-07-21 18:35:02 -04:00
Tyler Smalley 776ad0d531 Respects ES customHeaders config for Console (#13033)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-21 15:29:38 -07:00