Commit graph

15954 commits

Author SHA1 Message Date
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
Tim Roes c4c3ab1ee0 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:23:34 +02:00
Tim Roes 0d7f8b3df7 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:08:38 +02:00
Peter Pisljar fbd00dcced custom value axis should not be overriden (#13639) (#13747) 2017-08-29 11:36:02 +02:00
Chris Cowan 24c7fdf67f Closes #13471 - Change split behavior of gauges and metrics vis (#13583)
* Closes #13471 - Change split behavior of gauges and metrics vis

* removing old css classes
2017-08-28 11:58:30 -07:00
Chris Cowan 8071ff5cd6 Fixes #13010 - Add config to react vis; Adding dateFormat to all visualziations that display dates (#13626) 2017-08-28 09:37:25 -07:00
Jonathan Budzenski e1cb4c6954
Ignore package-lock.json (#13731) 2017-08-28 11:15:03 -05:00
Matt Bargar c11cd4963b Fix blank index pattern selector in Discover (#13715)
ui-select-match's expression was expecting an IndexPattern object, but
the indexPatternList passed to ui-select-choices contained SavedObject
instances due to the [SavedObjectsClient refactor][1]. This wasn't a
problem most of the time because switching index patterns caused the
entire directive to get destroyed and re-created. However, when the
directive didn't get re-created (for example, when clicking the already
selected pattern) it would result in a blank select box.

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

[1]: https://github.com/elastic/kibana/pull/12719
2017-08-28 11:01:58 -04:00
Peter Pisljar a93ee59b5a Clamp the centroid to stay within the box boundaries (#13581) (#13728)
* Clamp the centroid to stay within the box boundaries

If a document has two or more geo fields, then the centroid calculation
will place the centroid in between the two geo fields. This can cause
the centroid to be in the middle of nowhere so clamp it to keep it
closer to where it should be.

* Add geocentroid and clamping tests
2017-08-28 17:00:08 +02:00
Søren Louv-Jansen 3095b3bffb Update react 15.6.1 (#13672) (#13724) 2017-08-28 14:12:41 +02:00
Peter Pisljar 7c7494599d fixing disabling aggregations (#13686) 2017-08-28 13:13:16 +02:00
Lukas Olson 1625f64013 Re-enable filter editor suggestions (#13376)
* Re-enable filter editor suggestions

* Use search instead of include

* Escape query

* Show spinner

* Use include rather than search

* Add additional regex and explanation for parameters

* Add suggestions API test

* Make sure test actually runs

* Use send instead of query

* Fix suggestions API test
2017-08-25 16:43:45 -07:00
CJ Cenizal 71f6faaba9 Use aria-label in TSVB React components, instead of ariaLabel. (#13714) 2017-08-25 15:28:19 -07:00
Spencer fa4378ccb1 Upgrade Angular to 1.6.5 (#13543)
* [angular/$http] remove use of .success() and .error() callbacks

* [angular/$route] remove `!` hash prefix

* [angular] upgrade

* [angular/$timeout] prevent unhandled exception "canceled" logging

* [ui/fancy_form] refactor FormController for compatibility

* [ngModelController] ensure method calls keep context

* [ui/queryBar/tests] attach $elem to DOM so "click" triggers "submit"

* [confirmModalPromise] fix test for rejected promise

* [watchMulti] specifically check watchers array for length

* [typeahead] check for property rather than own keys

* [ui/compat] add initAfterBindingsWorkaround

* [ui/fancyForms] fix _getInvalidModels()

* [fancyForm] add tests that check nested form error counting

* [ui/fancyForms] ensure that submit is blocked properly

* [ui/fancyForms] escalate soft errors on failed submit

* [ui/fancyForms] bind handlers to this in constructor

* [uiBootstrap/tooltip] describe the new error handling

* [ui/confirmModalPromise] use more sinon assertions

* [$http] resp => data before old .success() and .error() handlers

* [indices/createWizard] apply callAfterBindings workarounds

(cherry picked from commit 2eae80cd0c)
2017-08-25 15:01:32 -07:00
Nathan Reese 9d304cd8b2 Keep current cursor or top line in view when resizing Console to avoid losing user context (#13695) (#13712)
* keep current cursor or top line in view when resizing to avoid losing user context

* rename variable to more descriptive name

* move state from editor to smart_resize
2017-08-25 14:50:08 -06:00