Commit graph

15923 commits

Author SHA1 Message Date
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
Tyler Smalley 854f79561d Removes webpack-directory-name-as-main dependency (#13584)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-25 13:05:27 -07:00
Spencer 9d2f3ae0ee [visualize] Fix agg param race (#13429)
* [visualize/aggConfig] do not rely on the view to reset params

* [vis/editor/aggParams] check for agg and type before accessing

(cherry picked from commit f7721fe420)
2017-08-25 12:55:38 -07:00
Nathan Reese ae81b2c10a Map filter not set appropriately when spy panel is open (#13678) (#13707)
* get dimensions from parent elements when map has not height or width

* clean up test variable names
2017-08-25 12:30:33 -06:00
Nathan Reese 99d6adbc86 Dashboard dark-theme fixes (#13690) (#13704)
* fix 13421 - filter overlay obscuring saved search table

* fix 13553 - Dashboard dark theme borders in edit mode don't appear
2017-08-25 10:06:54 -06:00
Jonathan Budzenski 0ecbaf928b
[console] Don't infer request method (#13694) 2017-08-25 09:43:17 -05:00
Tyler Smalley c9e6894d3d Changes verbage for opening an existing pattern (#13697)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-08-25 07:19:30 -07:00
Tim Roes ba6d80065f Allow reordering aggregation priority by keyboard (#13635)
* Make aggs sortable by keyboard, fix #11858

* Add keyboard_move tests

* Use $parse instead of creating a child scope

* Use keyCodes from ui_framework
2017-08-25 10:18:13 +02:00
Tim Roes 64b3c0ffa3 Refactor keycode exporting in ui_framework (#13663)
* Refactor keycode exporting in ui_framework

* Replace all uses of ENTER_KEY and SPACE_KEY

* Use ESCAPE instead of ESC universally

* Rename keycodes -> keyCodes

* Replace keyCodes in advanced_row
2017-08-24 21:26:13 +02:00
CJ Cenizal 592253fbe3 [Accessibility] Give kuiTables keyboard-accessible column headers (#13586) (#13692)
* Make KuiTable headers keyboard-accessible in UI Framework.
* Use flexbox to consistently apply spacing between table header cell text and sort icon.
* Add aria-label attributes to KuiTableHeaderCell, KuiTableHeaderCheckBoxCell, and KuiTableRowCheckBoxCell.
* Update Jest snapshots.
* Update Dashboard listing table with new markup.
* Update Saved Objects tables with new markup.
* Update Settings table with new markup.
* Update Visualize listing table with new markup.
* Remove padding-right for cells containing checkboxes.
* Update sortableColumn directive with new markup.
2017-08-24 11:52:18 -07:00
Nathan Reese f8f25d999b Upgrade kibana to leaflet 1.x (#12367) (#13688)
* upgrade leaflet modules to 1.x latest

* fix css for leaflet controls

* update draw options so it is easier to see polygon when drawing

* fix chrome touch issues with closing polygon in leaflet draw

* use canvas renderer

* use leaflet-responsive-popup to avoid tooltip cutoff

* remove radius configuration from leaflet heatmap

* make blur a factor of radius. Set maxZoom to map zoom since new values are calculated per precision

* use _.get to avoid error, cannot read property of undefined

* add cluster size slider

* experiments with image differences

* onload not onLoad

* use canvas dimensions

* compare map canvas to stored PNG of map canvas

* remove pixelmatch from project dependecies

* fix broken test - rounding error

* add expected image tests for geohash layers shaded circles and geohash grids

* bump z-index of vis-spy

* update functional test expected data

* update to leaflet 1.2.0

* revert to leaflet 1.0.3 and update expected data set for map functional tests

* test geohash_layer heatmap in unit test

* update region_map functional test since it can not longer pluck map vectors from DOM

* update documentation
2017-08-24 11:47:39 -06:00
Thomas Neirynck 13526e3ef4 exclude filter agg from visualizations (#13680) 2017-08-24 12:25:07 -04:00
Nathan Reese 37a63e5462 Replace "marked" with "markdown-it" (#13623) (#13667)
* add markdown functional test

* update markdown vis to use markdown-it

* migrate markdown angular filter to markdown-it

* place other uses of marked and remove dependency

* update breaking changes documenation and set linkify to true
2017-08-24 07:45:59 -06:00
Chris Roberson 4885ca1743 "Create index pattern" wizard. (#13454)
* Create Index Pattern Creation wizard.
- Create a directive for each step in the wizard.
- Reorganize files into conventional folder structure.
- Rename files with more conventional and consistent naming patterns.
- Display indices, partial matches, exact matches.
- Add loading, empty, and success states.
- Add option to include system indices.

* Temp: comment out and mock getIndices functionality.

* Hook up data seaching

* Add for/id connections for form inputs and labels

* Automatically append a wildcard

* Highlight the index pattern in the results

* Ensure we only remove the last character if it's a `*`

* Auto hide index pattern id controls

* Ensure this link is tabbable

* Move the advanced fields down

* Use toggle button

* This shouldn't ever be required

* Revert "This shouldn't ever be required"

This reverts commit b6e31e79308271e7f04ea1d42ce66e32e7aa0612.

* Update based on comments in PR

* Ffew more changes

* Port changes from Tyler's PR, https://github.com/elastic/kibana/pull/13353

* Remove unnecessary file

* Fix broken functional tests

* Copy changes

* Fix functional tests

* Remove loading from the main select, and move to an additional select

* Show help text when loading

* Fix sorting

* Fixing broken functional tests

* Couple changes from PR review

* Ensure input field does not show a red border until touched

* More descriptive and consistent copy
2017-08-24 09:04:58 -04:00
Tim Roes 59aa497e69 Remove custom keyboard mode in datepicker (#13644) 2017-08-23 16:32:30 +02:00
Court Ewing fd084aea3b Shortcut to build asciidocs (#13164)
* Shortcut to build asciidocs

The command to build the Kibana docs using the elastic/docs repo can be
easy to forget, so this script is an easy to way to do it right every
time.

* Configurable docs repo location

For folks that clone the elastic docs repo to a different location than
as a sibling of kibana.
2017-08-23 10:28:19 -04:00
Peter Pisljar 1c0cb169f4 don't hide metric if show labels is false (#13637) 2017-08-23 14:39:26 +02:00
Thomas Neirynck 1eb07a925f Add interval doc (#13629) 2017-08-22 23:53:01 -04:00
Johnny Lim c50cf24bad Use "curl -O" for Darwin (#13602) 2017-08-22 17:48:24 -07:00
Matt Bargar 24ad8c0374 Disable creation of "exists" filters for scripted fields (#13538) (#13641)
* Disable exists filter button for scripted fields in doc viewer

* Disabled exists filter button for scripted fields in discover sidebar

* Fix reference to non-existent scope variable
2017-08-22 13:10:37 -04:00
Tim Sullivan 6d90c08b5c [UI Bundler] Add Aliases for Moment so plugins can use the same instance (#13628) 2017-08-22 09:27:09 -07:00
Tim Roes 45848c7522 Show a warning for non accessible charts for screen readers (#13573)
* Show warning for non accessible visualizations, fix 13572

* Mark markdown vis as accessible
2017-08-22 11:25:33 +02:00
Spencer dc595320b8 [chrome/nav/lastUrl] do not track redirect routes (#13432)
* [chrome/nav/lastUrl] do not track redirect routes

* [chrome/subUrl] always track subUrl when no router

(cherry picked from commit 9a349929d9)
2017-08-21 22:35:16 -07:00
Thomas Neirynck e6ce9705ad remove geo_bounds agg from visualizations (#13536)
* remove geo_bounds agg from visualizations

* remove from horizontal bar chart
2017-08-21 16:02:35 -04:00
Matt Bargar 5e73c36c46 Fix discover sidebar Visualize button for geo_point fields (#13539) (#13614)
Fixes #12227

It seems the order of aggs is important now. I don't know the underlying cause here, I just saved a good and bad version of tilemap visualizations and compared the saved objects to figure out what changed.
2017-08-21 13:05:22 -04:00
CJ Cenizal 3696fc02de Fix bug with Dashboard breadcrumb alignment. (#13580) (#13620) 2017-08-21 09:15:46 -07:00
CJ Cenizal e087c4b7d9 [UI Framework] Add KuiOutsideClickDetector (#13521) (#13618)
* Add KuiOutsideClickDetector.
* Convert KuiColorPicker and KuiPopover to use KuiOutsideClickDetector.
2017-08-21 09:00:43 -07:00
Thomas Neirynck d5ce2e60fb fix available metric aggs (#13518) (#13612) 2017-08-21 11:54:23 -04:00
Tim Roes 904bda9b27 Improve timelion accessibility (#13531)
* Fix broken refresh shortcut for non OS X

On non OS X systems, the e.metaKey is most likely the windows key.
Hotkeys with the windows key are usually used as global (non application
internal) hotkeys. Also the documentation states, that Ctrl + Enter
should also work. With this commit it doesn't matter whether you press
the Meta or the Ctrl key + Enter.

* Make timelion datepicker more accessible

* Add meaningful labels to each interval shortcut, and
* Add a proper label to the custom input text field

* Make save options keyboard accessible, fix #12246, fix #12487

* Make sort button of saved-object-finder accessible, fix #12486

* Label timelion options correctly, fix #12907

* Make timelion legends keyboard accessible, fix #11844

* Make timelion autocompletion properly accessible

Fixes #11533, fixes #11525, fixes #12908

* Make timelion charts and actions accessible, fix #12909

* Add some more inline comments

* Fix HTML styles according to styleguide

* Replace sr-only by kuiScreenReaderOnly

* Make timelion autocompletion work with ARIA 1.1
2017-08-21 11:54:12 +02:00
Spencer d1e26e28eb [savedObjectClient] decorate non-es errors too (#13596)
(cherry picked from commit 8141e3fe4b)
2017-08-18 18:08:35 -07:00
CJ Cenizal 7ed4365c2c [Accessibility] Make table pagination controls keyboard-accessible. (#13541) (#13601)
* Make table pagination controls keyboard-accessible. Update KuiLink so it can be used on a button element.
* Add additional properties to link mixin to make kuiLink look the same for both buttons and anchor tags.
* Fix tests.
2017-08-18 17:15:12 -07:00
CJ Cenizal 25900adc51 [UI Framework] [K7] Improve generator snippets (#13598) (#13599) (#13600)
* Remove extraneous path info from SCSS import snippet.
* Add GuideCode to demo page. Put stateless function params on multiple lines.
* Log an error if you try to create a component with a blank name.
2017-08-18 16:14:54 -07:00