Commit graph

15968 commits

Author SHA1 Message Date
Peter Pisljar
45c7cc0065 editor render method should not be called if request is pending (#13858) 2017-09-12 12:36:16 +02:00
Peter Pisljar
c6879441ee dont auto apply settings in tagcloud (#13859) 2017-09-11 18:02:26 +02:00
Peter Pisljar
734edd8ebc point series handler (#13885) 2017-09-11 18:00:24 +02:00
archana
4f86b1fe95 Updates to Upgrade Kibana docs for 6.x+ (#13897) 2017-09-11 10:40:36 -05:00
Peter Pisljar
f97a2dd362 fixing metric reporting issue (#13933) 2017-09-11 16:52:18 +02:00
Brandon Kobel
ed64146907 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:19:50 -04:00
Peter Pisljar
c49ebde2bd check if grid lines can be drawn (#13860) 2017-09-11 15:13:00 +02:00
Tim Roes
51aab7edb2 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:23:33 +02:00
Stacey Gammon
e46830e17e Remove the unnecessary use of "private" for some modules. (#13739) (#13907)
* 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 14:27:25 -04:00
Rashid Khan
7560e96c8f Dont use jquery 2017-09-08 08:23:06 -07:00
archana
1dcc77e457 Update react style guide for jsx/object-curly-spacing never (#13889) 2017-09-08 09:55:28 -05:00
Stacey Gammon
b78c7b0732 vis responseHandlers use native promises, need to wrap in $q to have digest apply (#13821) (#13900) 2017-09-08 09:53:19 -04:00
Tim Roes
23287d91df Make saved-object-finder and paginated-selectable-list accessible (#13834)
fix #12889
2017-09-08 11:40:17 +02:00
Court Ewing
96a25b6aea Revert "Links Upgrade Assistant (#13893)"
This reverts commit 572917b908.

Docs links in the reverted commit are invalid and were breaking docs
builds.
2017-09-07 21:51:12 -04:00
Tyler Smalley
572917b908 Links Upgrade Assistant (#13893)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-09-07 15:15:41 -07:00
Lukas Olson
eb86cff5e1 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:53:40 -07:00
Chris Cowan
2391b7cd43 Fixes a bug with PR #13854 (#13873) 2017-09-07 07:24:44 -07:00
Stacey Gammon
6a712e7470 Fix map updates not propagating to the dashboard (#13589) (#13883)
* 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 10:23:40 -04:00
Felix Stürmer
5e0bc36915 [6.x] [UI Framework] add KuiExpressionItem and related components (#13881)
Backports PR #13383
2017-09-07 14:47:15 +02:00
Kim Joar Bekkelund
dfa1d12acb Upgrade to Jest 21 (#13863) (#13879)
* Upgrade to Jest 21

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

* Add functional test
2017-09-06 20:41:59 -07:00
Kurt Funai
3aa8be4fb1 Added a link to the Microsoft VSCode ESLint tool in the CONTRIBUTING.md (#13827) 2017-09-06 15:24:03 -04:00
Rashmi Kulkarni
fc5e685b0e fix create_index_pattern_method to handle no timefields (#13852) 2017-09-06 11:31:41 -07:00
Nathan Reese
5dec8d58eb fix html misspelling of class
backport of https://github.com/elastic/kibana/pull/13851
2017-09-06 11:01:02 -06:00
Chris Cowan
4c538fe524 Adding check for model and visData; they should never be null (#13854) 2017-09-06 09:56:01 -07:00
Tim Roes
fcd6d1809e 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:49:41 +02:00
Tyler Smalley
b28e70d980 Explicitly define injected vars (#13867)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-09-06 09:26:03 -07:00
Peter Pisljar
b8e97b29d5 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:51 +02:00
Thomas Neirynck
e2e3177d96 use parentNode (#13842) 2017-09-06 08:43:17 -04:00
Peter Pisljar
a69f10405a 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:44:45 +02:00
Peter Pisljar
bdd2259b75 parentElement to parentNode (#13830) (#13840) 2017-09-05 10:08:06 +02:00
Peter Pisljar
89cf6b3e89 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:59 +02:00
Peter Pisljar
2224dadc13 remove left over code for category axis title (#13793) 2017-09-04 07:34:47 +02:00
spalger
ea9e946df5 [npm] bump grunt-esvm
(cherry picked from commit 38cbd44658)
(cherry picked from commit 0e215e2326)
2017-09-01 11:44:19 -07:00
Court Ewing
f29abf1eaf 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:19:37 -04:00
Jonathan Budzenski
d68383578e
[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:18:18 -05:00
Jonathan Budzenski
cc0cef43b6
[docs] Remove .kibana dynamic mappings section (#13671) 2017-08-31 10:08:08 -05:00
Jonathan Budzenski
ad964429e0
[saved objects] Timestamp all documents (#13503) 2017-08-31 09:44:14 -05:00
Stacey Gammon
41b6f06a1c Investigate flaky add new visualization link test (#13755) (#13776) 2017-08-31 09:47:09 -04:00
Tim Roes
99acc17f4a 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:33 +02:00
Peter Pisljar
a62bfe82ee visual builder should set vis.initialized when ready (#13779)
* tsvb needs to set vis.initialized

* adding visual builder integration test
2017-08-31 08:58:17 +02:00
Tyler Smalley
220b39f7ec [docs] Manually migrating Kibana index (#13696)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-30 20:52:30 -07:00
Johnny Lim
15ca7312c1 Fix extracted Kibana directory names in doc (#13658) 2017-08-30 15:02:23 -07:00
jerenmb
2799a3fbcb Spelling corrections (#11908) 2017-08-30 10:53:35 -04:00
Peter Pisljar
db36ef7735 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:33:32 +02:00
archana
e672b3f49c 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:51:50 -05:00
Matt Bargar
b942987fed Check sort:options for Discover default sort order (#13708) (#13763)
* 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 17:07:12 -04:00
Matt Bargar
14cb571179 Fix relative z-index of spy panel and filter editor (#13717) (#13736)
* Fixes relative z-index of spy panel and filter editor

* Position sidebar above main content so collapser button remains clickable
2017-08-29 10:47:25 -04:00
Peter Pisljar
826ca443a1 time picker should be displayed only if index pattern has time field (#13640) (#13749)
* time picker should be displayed only if index pattern has time field

* fixing based on review from lukas
2017-08-29 15:37:40 +02:00
Peter Pisljar
4a2d318826 fix heatmap sizing on dashboard (#13636) (#13752)
* category axes should be rendered from last to first for heatmap to work correctly

* adding a test
2017-08-29 15:37:31 +02:00