Commit graph

15923 commits

Author SHA1 Message Date
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
Nathan Reese e3ea7f2550 TEST - Fix flaky map functional test (#13039)
* add time to toggleSpyTable to give time for tab to open and map to adjust

* make open and close spy panel functions that retry until panel is in correct state
2017-07-21 16:05:54 -06:00
Chris Earle 4fc2a96324 [Test] Field List Pagination doesn't need so many constants (#13028)
Some of these can be inferred by the others, which makes the test a little
more flexible in the face of changing data.
2017-07-21 14:29:00 -04:00
Spencer e7fde42323 remove mapping.single_type setting from last es_archive (#13021) 2017-07-21 14:15:21 -04:00
Jonathan Budzenski 457b9fe09e Bump makelogs to 4.0.2 (#13007) 2017-07-21 11:00:23 -05:00
Matt Bargar d379e9a35b Implement new Kibana query language (#12624)
Initial version of an experimental new query language for Kibana.
2017-07-21 11:55:15 -04:00
Court Ewing 1b024200cd Restrict ES data proxy to msearch and search (#13020)
We are only using msearch and search on this proxy, so there's no reason
for us to expose more capabilities than this. Ultimately we want to move
all functionality like this to REST API rather than being a straight up
proxy, so this will help proxy usage not expand throughout upcoming
versions until it can be removed entirely.
2017-07-21 11:29:49 -04:00
Nathan Reese 72f6b8a37f Filter geohash_grid aggregation to map view box with collar (#12806)
* filter geo hash agg - merged with vis refactor

* get collar size from geohash aggregation

* fix getBounds

* add test for _buckets to handle single bucket case

* use _getGeoHashAgg to update precision

* call reload when map bounds outside of map collar

* update fit control to use geo_bounds aggregation metric

* remove geo_hash param collarScale

* fix precision parameter test

* refactor _geo_hash.js test for readability

* do not trim map bounds

* only change aggregation state when data needs to be refected because zoom changed or map bounds are outside of collar

* remove extra geo_utils.js file from tile_map plugin

* only filter geoJson layer on client when results are not filtered on server

* set up layer options before creating geoJson layer

* add updateExtent back

* add getUntrimmedBounds, clean up filter option verbage, remove scale param from scaleBounds function

* move check for server-side filtering for updateExtent into geohash_layer

* move fetchBounds to geohash_layer

* fix _tile_map functional test, response data is different because of added filter aggregation
2017-07-21 07:35:46 -06:00
Felix Stürmer b7d1b46d05 Use node instead of webpack config for jest (#12974)
This allows for testing components that use generators or async/await as well as for the usage of these features in the test files.
2017-07-21 11:59:43 +02:00
Court Ewing fac1935750 Remove the es_admin proxy (#13000)
Saved object access is now handled through the saved object client
rather than by making direct requests to the admin cluster through a
proxy. The indices module and scanner module were both still relying on
the proxy, so temporary "legacy" endpoints have been created for their
specific use-cases. We should add more purposeful endpoints to the
public API in the future to replace these.

The admin cluster itself is still readily available on the server and
should still be used for all requests for internal kibana indices.
2017-07-20 19:54:23 -04:00
Chris Earle 92acce2798 [Tests] Adjust makelog mappings and associated tests (#13014)
This updates the function tests by:

Changing logstash_functional's _type from docs (changed in #13001) to doc.
Adding the original _type (apache or nginx) as a new field named type to logstash_functional's documents.
Updated the mappings to include the expected type field.
Did the same for makelogs by removing _default_ and other _types in favor of doc and the new type field.
Dropped the single_type setting from makelogs.
Updated associated tests that were looking for _type values of apache and nginx.
2017-07-20 18:57:56 -04:00
Tyler Smalley 3519006c05 Allows search when no term is defined (#13005)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-20 11:33:10 -07:00
Stacey Gammon 3d37e026e5 Fix issue with "Infinity" value not working (#12980)
* Fix issue with "Infinity" value not working. Treat negative numbers as "hide the notification"

* Rip out negative number means hiding the notification

* Parse number types so Infinity string gets translated into Infinity number
2017-07-20 13:22:07 -04:00
Tim Sullivan cc951549d4 [UI Framework] Allow custom placeholder for Tool Bar Search Box (#12959) 2017-07-20 09:45:12 -07:00
Nathan Reese 7c7f5716c8 update logstash data for single type (#13001) 2017-07-20 09:17:05 -06:00
Thomas Neirynck cd4b7fff21 save intermediate work (#12931) 2017-07-20 10:45:11 -04:00
trevan 0ee63e6249 Use the customMetric's formatter for pipeline aggregations (#11933) 2017-07-19 16:42:28 -04:00
Tyler Smalley 3c0c0ff441 Use single ES document type (#12794)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-19 09:27:16 -07:00
João Duarte 52e5d45f69 add api tag to api routes (#12948)
- adds api tag to import/export and status routes
2017-07-19 16:25:48 +01:00
Tyler Smalley c3713a8ef0 Bumps ua-parser-js license override (#12972)
└─┬ prop-types@15.5.8
  └─┬ fbjs@0.8.12
    └── ua-parser-js@0.7.14

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-19 07:50:15 -07:00
Toby McLaughlin 11cc609aaa [docs] Generalize docs for Docker env vars (#11581)
The documentation for setting Kibana options with environment variables under
Docker was brittle and difficult to maintain. Rather than list every option,
this change describes the method by which they are defined, thus avoiding the
need to edit the docs in multiple places when a new option is introduced.
2017-07-19 09:35:13 -05:00
trevan 396b073001 Handle date histogram scaling for table vis and avg_buckets metric (#11929) 2017-07-19 10:30:26 +02:00
Peter Pisljar 19cfbd4eab add font size control to markdown visualization (#12860)
* add font size control to markdown visualization

* params to defaults
2017-07-19 08:26:43 +02:00
Peter Pisljar 8f038237cc cancel queries on fail (#12942) 2017-07-19 08:26:04 +02:00
Lukas Olson 3aa244b042 Fix call to suggestions API to correctly use index pattern title (#12917) 2017-07-18 16:16:00 -07:00