Commit graph

15971 commits

Author SHA1 Message Date
lcawley fd97db7cc5 [DOCS] Commented out broken link to Reindex transformation 2017-09-11 09:35:29 -07:00
Peter Pisljar 1c2420b809 dont auto apply settings in tagcloud (#13859) 2017-09-11 18:00:49 +02:00
Peter Pisljar bf934252e2 point series handler (#13885) 2017-09-11 17:59:43 +02:00
archana 2089a28d45 Updates to Upgrade Kibana docs for 6.x+ (#13897) 2017-09-11 10:40:55 -05:00
Peter Pisljar d82cc0f4ad fixing metric reporting issue (#13933) 2017-09-11 16:51:25 +02:00
Brandon Kobel 5a4a4f5ad6 Adding "BSD 3-Clause" as a valid license (#13934)
We already have "BSD-3-Clause" as a valid license, but there's a variant
with a space instead of a '-' being used by js-base64 that we need to
accomodate for.
2017-09-11 09:18:30 -04:00
Peter Pisljar 036af4ef5c check if grid lines can be drawn (#13860) 2017-09-11 15:12:34 +02:00
Tim Roes 7cc823c863 Move htmlIdGenerator to ui_framework (#13906)
* Move htmlIdGenerator to ui_framework

* Use jest expect instead of chai

* Add htmlIdGenerator to accessibility styleguide

* Improve the writing of the accessibility styleguide
2017-09-11 13:22:32 +02:00
Rashid Khan 0315b983e1 Sanitize timelion label (#13892)
* Sanitize label without jquery
2017-09-08 08:18:48 -07:00
archana 039d6d8cca Update react style guide for jsx/object-curly-spacing never (#13889) 2017-09-08 09:53:23 -05:00
Stacey Gammon 8024a07672 Remove the unnecessary use of "private" for some modules. (#13739)
* Remove the unnecessary use of "private" for these modules.

* Fix tests that use inject to refresh the provider initialization call.

* Add a function to easily clear the request queue and add it to all the fetch tests.

* clear the request queue on after as well, so the tests clean up after themselves
2017-09-08 09:34:19 -04:00
Tim Roes a03f3c5fef Make saved-object-finder and paginated-selectable-list accessible (#13834)
fix #12889
2017-09-08 11:36:04 +02:00
Stacey Gammon eebef4ea22 vis responseHandlers use native promises, need to wrap in $q to have digest apply (#13821) 2017-09-07 17:09:48 -04:00
Lukas Olson d331a7ef81 Refetch even when the query has not changed (#13759)
* Refetch even when the query has not changed

* Change function name to better represent what it does

* Rename all occurrences
2017-09-07 08:52:59 -07:00
Chris Cowan 52cee7dcc8 Fixes a bug with PR #13854 (#13873) 2017-09-07 07:22:12 -07:00
Stacey Gammon d853fcae11 Fix map updates not propagating to the dashboard (#13589)
* Add failing tests

* Add fix by preventing uiState from being directly updated in visualization.

* Add test that would catch error caused by this PR in regards to filter agg

* Fix issue with uiState triggering dirty dashboard state by introducing temporary "sessionState" on a vis

* Click go after toggling the switch

* add more tests to ensure getRequestAggs functions as intented

* Go back to old zoom calculations. Update vis test data

I think because mapCollar is no longer saved in uiState, the save
recenters the data and we get slightly different data points from the
test data.  As far as my eye can tell, everything is working as
intended.

* fixes and tests

- incorporate the new init function which fixes the bug where we lose
map bounds data on a fresh save
- add a test that would have caught that
- adjust tests due to bug where map bounds is changing slightly.  File
another issue for that separately as it doesn’t actually affect the
users map experience.

* Fix tests

Tests relied on my original logic of defaulting to the saved zoom state
and not relying on uiState, so I went back to that logic.  Also found
another bug where mapZoom of 0 was being considered invalid, but it is
actually a valid zoom level.

* Since leaflet upgrade 'path.leaflet-clickable' can't be used to retrieve circles anymore

* Avoid stale element reference

I suspect because the page is changing, you have to keep fetching the
element afresh.  I don’t see this error on my local but saw it on
jenkins.

* remove spy select from PageObjects.visualize.getDataTableData

The function is used in the Data Table visualization where the spy pane
select doesn’t exist.
2017-09-07 08:43:19 -04:00
Árpád Poprádi 752644ab13 [UI Framework] add KuiExpressionItem and related components (#13383) 2017-09-07 13:41:28 +02:00
Kim Joar Bekkelund ecd9bcb356 Upgrade to Jest 21 (#13863)
* Upgrade to Jest 21

* Bump eslint-config-kibana to v0.11.0
2017-09-07 12:06:55 +02:00
Lukas Olson f2f759f6ed Fix "is one of" filter editor (#13771)
* Keep params so phrases editor works after closing and opening

* Add functional test
2017-09-06 20:40:31 -07:00
Kurt Funai 395626efa2 Added a link to the Microsoft VSCode ESLint tool in the CONTRIBUTING.md (#13827) 2017-09-06 15:23:20 -04:00
Nathan Reese 3833b78052 fix html misspelling of class (#13851) 2017-09-06 10:56:45 -06:00
Chris Cowan 8ff37dc38a Adding check for model and visData; they should never be null (#13854) 2017-09-06 09:50:16 -07:00
Tim Roes 743fabbf3a Improve time series visual builder accessibility (#13817)
* Add missing aria-label to aggregation selection

* Make all tabs accessible

* Make add and delete buttons accessible

* Make annotation editor accessible

* Add color picker a11y label

* Make index patten component accessible

* Create htmlId generator

* Make series config accessible

* Make calculation aggregation accessible

* Make derivative agg accessible

* Make filter ratio agg accessible

* Make moving avg accessible

* Make percentile (ranks) aggs accessible

* Make serial diff agg accessible

* Make series agg accessible

* Make static agg accessible

* Make std aggs accessible

* Make option panels accessible

* Make all series headers accessible

* Make time series metrics options accessible

* Fix broken tests

* Add tests for htmlIdGenerator

* Remove unused event handlers in Agg

* Hide split drag handler for screen readers

* Ignore a11y eslint issues in markdown builder

* Move htmlIdGenerator to different lib folder

* Make legend expand button accessible

* Make legend options accessible

* Add keyboard accessibility to annotations

* Ignore some eslint a11y warnings

* Revert "Remove unused event handlers in Agg"

They weren't as unused as I thought.

This reverts commit 1fb6ecc434.

* aria-hide drag handles

* Generate random ids when no suffix is specified
2017-09-06 18:46:49 +02:00
Tyler Smalley 4c76ec94ce Explicitly define injected vars (#13867)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-09-06 09:25:35 -07:00
Peter Pisljar 077d20628d fix metric wrapping and legend (#13242)
* label word wrap

* fixing addLegend issue

* adding test

* fixing based on nathan's review
2017-09-06 14:59:26 +02:00
Thomas Neirynck f872c41609 use parentNode (#13842) 2017-09-06 08:30:51 -04:00
Rashmi Kulkarni 4cc98fc3ad fix create_index_pattern_method to handle no timefields (#13852) 2017-09-05 15:22:53 -07:00
Peter Pisljar 3811b04235 Fix/upgrade vis (#13659)
* smoothLines should not override the seriesParams setting

* adding new series should respect the previous settings

* update visualization configuration

* updating based on review from thomas

* upgrading metric fontSize setting
2017-09-05 11:43:49 +02:00
Søren Louv-Jansen 7939a98aad Update readme: Make ui-framework url a link 2017-09-05 10:48:42 +02:00
Peter Pisljar dc9a2ee3ea parentElement to parentNode (#13830) 2017-09-05 07:18:56 +02:00
Peter Pisljar 07e352d03d gauge/goal should not try to display negative values (#13638)
* gauge/goal should not try to display negative values

* it should take ranges into account when looking for minimum
2017-09-04 08:08:14 +02:00
Peter Pisljar 5eb628c284 remove left over code for category axis title (#13793) 2017-09-04 07:34:08 +02:00
spalger 38cbd44658 [npm] bump grunt-esvm 2017-09-01 11:42:17 -07:00
Court Ewing eac6416a0f docs: remove reference to ES host input in console
There is no feature in console to input a generic URL for Elasticsearch
cluster access. This was an accidental carryover from sense.
2017-09-01 08:17:44 -04:00
Jonathan Budzenski 3a50fd2efc [docs] Add path.data to setup instructions (#13513)
* [docs] Add path.data to setup instructions

* [docs] Add path.data to rpm and deb table
2017-08-31 10:16:50 -05:00
Jonathan Budzenski eaf026b49b [docs] Remove .kibana dynamic mappings section (#13671) 2017-08-31 10:07:05 -05:00
Jonathan Budzenski 811a2f2253 [saved objects] Timestamp all documents (#13503) 2017-08-31 09:40:08 -05:00
Tim Roes 301452ffcb Improve accessibility of the visualize editor (#13780)
* Use aria-expanded and better labels for agg collapsables

* Fix all agg options collapsables, fix #12892

* Label all vis editor inputs correctly, fix #11859

* Fix broken functional test
2017-08-31 11:46:02 +02:00
Peter Pisljar 9786e453c3 visual builder should set vis.initialized when ready (#13779)
* tsvb needs to set vis.initialized

* adding visual builder integration test
2017-08-31 08:57:34 +02:00
jerenmb 6dfde4f793 Spelling corrections (#11908) 2017-08-30 10:52:13 -04:00
Stacey Gammon fa2edcaf20 Investigate flaky add new visualization link test (#13755) 2017-08-30 09:42:04 -04:00
Peter Pisljar c3c07ef8c4 visualize should wait for visualization to finish initialization (#13742)
* visualize should wait for visualization to finish initialization

* clear timeout on destroy

* fixing based on stacey's review
2017-08-30 08:31:56 +02:00
archana a01959451b Complete doc on running functional tests (#13035)
* Complete doc on running functional tests

* Update development-functional-tests.asciidoc

* Fix section title
2017-08-29 16:48:57 -05:00
Matt Bargar 3043ee78c8 Check sort:options for Discover default sort order (#13708)
* Check sort:options for Discover default sort order

I went back and forth on a lot of different solutions for this.

Initially I thought it would make sense to just allow users to set a
default saved search in Discover. There were some problems with that
approach though. It would change the default workflow in Discover.
Instead of starting with an unsaved search, users would be editing a
saved search by default. I could see this leading to a lot of
unintentional changes to the default. The settings from the default
saved search also wouldn't carry over to new searches, which I think
would be desirable most of the time.

I also considered adding a new advanced setting for specifying a default
sort field/direction. This kind of setting would make more sense at the
index pattern level though. One field may not be valid across all index
patterns.

So I ended up going with the simplest solution. It solves the issue
identified by the author of the linked issue and nothing more. If a sort
order is specified in the existing sort:options advanced setting, we'll
use that direction when sorting on the index pattern's timestamp field
by default.

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

* Create a new advanced setting instead of re-using sort:options

* Just pass a default order
2017-08-29 15:42:36 -04:00
Johnny Lim b6153fa302 Fix extracted Kibana directory names in doc (#13658) 2017-08-29 09:28:22 -07:00
Peter Pisljar 3548a57dcf fix heatmap sizing on dashboard (#13636)
* category axes should be rendered from last to first for heatmap to work correctly

* adding a test
2017-08-29 13:41:56 +02:00
Tim Roes 4ddad1a24b Improve accessibility of visualization view (#13726)
* Use correct aria-label react attribute

* Label TSVB auto apply button, fix #12900

* Create possibility to conditionally disable input-focus directive

* Disable auto focus when creating a new viz, fix #12888

* Fix styling of label in TSVB

* Disable auto focus in visualizations, fix #11856

* Fix disable of auto focus

* Disable auto focus of index selection in vis wizard
2017-08-29 12:22:32 +02:00
Tim Roes d22f4eec0b Make breadcrumb a heading for screen readers, fix #12885 (#13734)
* Make breadcrumb a heading for screen readers, fix #12885

* Use h2 in vis wizard step 2
2017-08-29 12:05:14 +02:00
Peter Pisljar 68fd903e77 time picker should be displayed only if index pattern has time field (#13640)
* time picker should be displayed only if index pattern has time field

* fixing based on review from lukas
2017-08-29 11:03:01 +02:00
Peter Pisljar 8e52410ff6 custom value axis should not be overriden (#13639) 2017-08-29 10:30:00 +02:00