Commit graph

16086 commits

Author SHA1 Message Date
CJ Cenizal
7e32c506ba Rename all $global-prefixed SCSS vars to use $kui-prefix for compatibility with K7. (#14222) 2017-09-29 15:47:50 -07:00
Jonathan Budzenski
e2dbf77a6c [build] Commit generated init scripts (#11205) 2017-09-28 14:55:35 -05:00
Tim Sullivan
7a52fed0d4 [Test/FTR] Add getPropertyAll to testSubjects service (#14210) 2017-09-28 10:59:50 -07:00
Lukas Olson
47b743f3d9 Fix typeahead (#14135)
* Fix typeahead

* Use evalAsync rather than apply
2017-09-27 16:28:18 -07:00
Spencer
4fed3725ae [SavedObjects] use constructor options (#14200) 2017-09-27 14:57:47 -07:00
Peter Pisljar
46e5919262 fixes error when expanding gauge to full screen (#14114) 2017-09-27 20:16:02 +02:00
Thomas Neirynck
8a22002bf6 use correct element for size (#14105) 2017-09-26 18:05:02 -04:00
Stacey Gammon
e35d7b0141 Replace gridster with react-grid-layout (#13853)
* Initial check-in to replace gridster with react-grid-layout and reactify panels

* # This is a combination of 3 commits.
# This is the 1st commit message:
Add margin of error to test determining panel widths

# This is the commit message #2:

use real kibana version when creating panel data. Will make future conversions easier.

# This is the commit message #3:

Fix lint errors

* Add margin of error to test determining panel widths

use real kibana version when creating panel data. Will make future conversions easier.

Move default height and width to dashboard_constants so those that need it don't end up including extra stuff like ui/chrome

* Remove unnecessary _.once when creating react directives in dashboard.js

* Remove unnecessary constructors

* Use componentDidMount instead of componentWillMount bc of async calls, and handle case where destroyEmbeddable is not defined.

* Remove unnecessary null in classNames

* Use loads defaultsDeep instead of Object.assign

* use render* instead of get* for functions returning an element

* use relative css paths

* Use local import path

* Switch to local imports and remove need for plugins path in jest tests

* Improve accessibility of max/min panel toggle icon

* remove unused css

Had to implement this via code

* disable eslint rule for setState in componentDidMount

Am not aware of a better way to handle this, aside from switching to
redux, since it’s recommended not to put async calls in
componentWillMount.  Since I plan to investigate redux next, disabling
for now. Open to other’s opinions on the matter.

* Use native map instead of lodash

* Have the grid handle setting the z-indexes of the right reactgriditem

* Make the draggable handle the title, not the whole heading

Otherwise the drag event often takes over click events when trying to
open the panel options menu and it gets really annoying.

* Change from click to mouse down detector in KuiOutsideClickDector so drags also close pop ups.

* Fix mistaken commit

Code from the redux PR snuck into this one.

* Run getEditPath and getTitle async calls in parallel - no need to wait on the return value of one before starting the others.

* Fix tests: update snapshots, add promise returns.

* version being added to panelData in the wrong spot caused isDirty flag to be true when it shouldn't be

* Fix unmounting/mounting problem with panels due to view/edit mode switch

* Fix bug where panels get squashed to one side when view mode is changed while a panel is expanded.

* Update snapshots to match wrong view mode comparison

* Improve naming of a variable

* Fix issue with pop over hiding behind tile maps

* Previous panel.js included ui/doc_table and ui/visualize - needed to include them in the chain for Dash only mode but not in that file.

* Fix bad merge: remove baseline screenshots
2017-09-26 18:02:13 -04:00
Spencer
014dee07fa [cli/dev] rely on commander for deduping argv (#14181)
In eb317804b5 I started combining custom argv with the process's argv, and naively used union to combine the lists. This breaks cli arguments that are supposed to be repeated and isn't necessary since commander handles parsing the argv and deduping/merging based on config.
2017-09-26 13:37:17 -07:00
Chris Cowan
9ec5d90caf Fixes #14171 - Handle boom errors properly for vis data requests (#14174) 2017-09-26 10:21:50 -07:00
Chris Cowan
893b3990ac [TSVB] Greater Than or Equal to Interval Pattern (#13872)
* Create new interval pattern for specifying greater than or equal to a bucket size

* Updating label to add >=1m example

* Adding test case for gteAutoMatch
2017-09-26 09:37:40 -07:00
Chris Cowan
42f2a19f64 Fixes 13144 - Add ability to select percentiles in pipeline aggs (#13453)
* WIP

* Fixes #13144 - Add ability to select percentiles for pipeline aggs

* Adding check for targetMetric

* Adding some notes for how percentiles are handled differently
2017-09-26 09:28:42 -07:00
Jonathan Budzenski
b278ad96a9 [functional tests] Remove default screenshots (#14122)
* [functional tests] Remove default screenshots

* Remove baseline screenshots
2017-09-26 08:37:12 -05:00
Peter Pisljar
e208b42bd2 fixes legend refreshing (#14150) 2017-09-26 10:48:54 +02:00
Peter Pisljar
02bc9d31c5 adds stroke back to area charts (#14149) 2017-09-26 10:23:06 +02:00
Tyler Smalley
6f6d8be5fd [docs] Updates Connect to ES to reflect Index Pattern wizzard (#13918) 2017-09-25 20:19:08 -07:00
Tim Roes
bdc37be5b5 [UI Framework] Add KuiCodeEditor as react-ace replacement/wrapper (#14026)
* Create KuiCodeEditor component

* Add additional tests

* Add PropTypes for KuiCodeEditor

* Rename hintInactive to isHintActive

* Rename enableOverlay to stopEditing

* Rename and move configureAce method

* Rename onHintKeyDown to onKeyDownHint

* Fix broken configureAce call

* Add onBlur to editor example

* Regroup test cases

* Don't lose value in KuiCodeEditor example

* Remove window.alert, due to annoying behavior when switching tabs

* Remove unnecessary constructor

* Replace string ref by callback ref

* Add a snapshot test

* Move stop editing method

* Use mount to render editor during test

* Extract setState into method in example
2017-09-22 18:09:32 +03:00
Thomas Neirynck
6569f1d864 Wrap responsehandler call in angular promise (#14095) 2017-09-22 10:28:23 -04:00
Spencer
b0dc2469c7 [vis/requesting] only call when actually requesting (#14017)
* [vis/requesting] only call when actually requesting

* [courier/dataSource] use Promise.map to catch sync errors

* [courier/request] move source mutation logic out of request
2017-09-22 02:40:47 -07:00
Spencer
84a15fcfd5 [uiFramework] fix webpack config (#14067)
(cherry picked from commit 9938ff8af1)
2017-09-21 16:33:17 -07:00
Chris Cowan
748365f5c8 [TSVB] Fix chart legend formatting in bottom position (#14084) 2017-09-21 08:35:25 -07:00
Tim Roes
47cba40e94 Allow console to send multiline strings with CRLF line endings (#14094)
* fix #13142 allow Console to send multiline string values on windows too

* Add tests
2017-09-21 15:48:12 +02:00
Yuri Astrakhan
153326ce03 Adds Vega-based visualizations to Known Plugins list (#14062) 2017-09-20 13:00:22 -07:00
Nathan Reese
30cc42f4ba Input Control visualization (#13314)
* react editor example

* ensure props are not updated

* use new stageEditorParams method to stage parameter changes

* make component stateless

* use terms_vis_editor component

* get add button to work

* update vis controller to display terms input controls

* update componenent when query bar updates

* add functional test

* lay ground work for different control types in single visulization

* make editors for range and text controls

* text control

* implement type ahead suggestor for text control

* add range slider

* some CSS work

* add submit button, move control init functionallity under control_factory

* add custom options for control types

* provide buttons to move controls up and down

* Make ControlEditor component and clean up styling of editor

* styling work

* multi select for terms dropdown control

* add option to disable filter staging, only enable submit button when filters are staged

* clean up range styling

* rename top level vis folder

* cleanup

* move control type select out of each control editor

* dark theme styling

* use ui/public/filter_manager/lib/phrases.js to build phrases filter, add tests to range filter manager

* use savedObjectsClient to get index patterns

* remove text control and add id to controls for react tracking

* ensure fields get updated when index pattern changes

* update PropTypes for react 15.6.1

* update to latest react-select to avoid isMounted deprecation warnings

* fix input controls functional test

* rename termsControl to listControl to be more generic

* add function test for clear button, refactor directory structure

* functional tests for updateFiltersOnChange is true

* fix react-select clipping problem in dashboard

* try clicking option instead of pressing enter to set react-select value in functional tests

* react-select css

* clean up control_editor component, make ListControlEditor component be function

* add jest test for vis_editor component and accessibility

* add decimal places option to range slider

* add jest test for InputControlVis component

* add default to switch blocks, split editor into seperate tabs, use shallow in snapshot tests

* fix race condition in field_select, update index_pattern_select to fetch indexPatterns on each filter

* clean up control initialization

* use htmlIdGenerator to avoid html element id conflicts

* update functional test to support new editor tabs

* finish jest tests for sub componenets

* mark vis as experimental, refactor buttons for better usability

* fix bug in list control where unable to select options containing numbers and options containing commas. Truncate display of long list options

* fix chart types functional test

* fix jest tests, add margin to action buttons

* remove binds from render functions

* experement with native input range sliders

* Revert "experement with native input range sliders"

This reverts commit aed599e88a.

* Use Promise.resolve in tests and replace _createRequest with searchSource.fetch

* add inputs to range control
2017-09-20 06:22:55 -06:00
Spencer
48d35f81fd create babel-preset and babel-register modules (#13973)
* [babel] create babel-preset and babel-register modules

* [babel-preset] add comments to babel-preset-env.target choices

* [babel-preset] use more normal BUILT_WITH_BABEL signal

* [babel-register] extended comment about filtering ./src in dist

* [babel-preset] stage of class properties has changed, sorta
2017-09-19 17:44:47 -07:00
Spencer
1f5835c351 [ftr/config] prevent mochaOpts and timeouts conflict (#14060) 2017-09-19 17:08:47 -07:00
lcawley
612385e927 [DOCS] Added index-shared6 Remove index-shared11 2017-09-19 10:38:49 -07:00
lcawley
5879c7ffcf [DOCS] Added index-shared6.asciidoc 2017-09-19 10:37:49 -07:00
Lisa Cawley
26bccb0b86 Add links to X-Pack release notes (#13630)
* [DOCS] Add links to X-Pack release notes

* [DOCS] Added breaking changes for X-Pack
2017-09-19 10:23:00 -07:00
Peter Pisljar
9346b49769 adding additional vis unit tests (#14031) 2017-09-19 16:53:57 +02:00
Peter Pisljar
7bcc7435e2 tabify responeHandler for table (#13877)
* adding tabify response handler

* tabify should be the default response handler

* asAggResultConfig should be configurable for BWC

* update table to work with new tabify response handler

* region map needs to define responseHandler: none

* fixing tests

* markdown should set responseHandler to none
2017-09-19 16:43:38 +02:00
Court Ewing
bdcafa0c8c docs: add dendogram to known-plugins 2017-09-19 10:14:30 -04:00
Stacey Gammon
c3c55ded22 Allow custom timeouts on click (#14042) 2017-09-19 09:56:40 -04:00
Court Ewing
d49692f122 Bump chromedriver (#14053) 2017-09-19 09:01:47 -04:00
Tim Roes
821bd96d32 Dev Tools console is now keyboard accessible (#13946)
* Remove redundant kbn-accessible-click

* Make history in console accessible, fix #13937
2017-09-19 12:15:02 +02:00
Spencer
199e5c3623 [aggTypes/paramTypes] naming cleanup (#14020) 2017-09-18 16:49:59 -07:00
sw-jung
93a565c2ab Update known-plugins.asciidoc (#13701) 2017-09-18 14:39:15 -04:00
Thomas Neirynck
e8b43b55e9 Allow panning beyond dateline (#13955) 2017-09-18 12:42:03 -04:00
Stacey Gammon
c9123a4426 Remove unused doc source code (#13756)
* Remove unused doc source code

Ever since the saved object api was introduced, we’ve been using that,
or querying es directly, for mget data.

* Remove commented out code
2017-09-18 11:24:06 -04:00
Stacey Gammon
2ab28f2abb Replace and then remove searchSource .onError (#13871)
* Stop using onError because there is a memory leak there

* Restart segmented fetch errors.

* Get rid of all onError calls

* Remove unused functions

* Continue searching when a doc_table error is encountered

Otherwise a single saved search failure won’t try again when it’s on a
dashboard.  The previous implementation handled this via the
request.retry in the default errorHandler.

* Fix lint error

* don't pass resolve and reject into inner function
2017-09-18 11:07:56 -04:00
Nathan Reese
d6a5470779 Allow visualizations to specify open editor tab (#13977)
* pull active tab from visType

* open first tab be default when no tab marked as active and data not used
2017-09-15 06:03:29 -06:00
Tyler Smalley
94d14e5060 Sets update_all_types when setting mapping (#14002)
Prior to 5.6, we would push mappings once the object type was used. Since we are now ensuring all mappings are set, there is a situation where a field with type string exists but we are pushing text.

You can not have a field with the same name, but different data type, in two different document types.

To resolve this, we are setting update_all_types when updating mappings.

Backport of #13991

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-09-14 20:16:13 -07:00
Spencer
e72a20670d [ftr] remove timestamp prefix, jenkins has it built in now (#13825) 2017-09-14 19:21:56 -07:00
Spencer
7866a15db7 [npm] Upgrage wreck (#13849) 2017-09-14 18:46:55 -07:00
Matt Bargar
239d846049 Expose Kuery API to Visualizations (#13912)
After some trial and error trying to build a generic API that could control both kuery and legacy filters I decided it wasn't going to work well. So instead I'm taking a different approach. I'm making kuery available to visualizations alongside the existing queryFilter. Visualizations can choose to support one or both. Eventually we can just deprecate and remove queryFilter from the vis API. The standard filter_bar_click_handler still supports both, so basic visualizations that rely on that behavior will just work.

The vis API has two new members:

queryManager - contains two simple methods, one for getting and the other for setting the current app level query.
kuery - all of the functions exported by the kuery module, made available so visualization plugins don't have to import them directly from kibana
The addition of these two members should provide visualizations with everything they need to read, modify, and update kuery queries.
2017-09-14 17:12:22 -04:00
Tim Sullivan
f1c2d31feb [FTR] Add a generic env object to schema (#13981) 2017-09-14 13:42:40 -07:00
Shaunak Kashyap
4a01554646 Adding test subjects to enable functional testing (#13925)
When functional testing UIs that contain this component for pagination, we need a way to get a handle on the "previous page" and "next page" buttons. So we add test subject attributes to these buttons' elements.
2017-09-14 10:35:10 -07:00
Fabien Baligand
7f40ab764a add an option for url types so that it can be opened in current tab (master branch) (#13209) 2017-09-14 08:12:42 -05:00
Peter Pisljar
9ca9e93531 adding visualize tests (#13957) 2017-09-13 18:29:56 +02:00
Rashid Khan
70dd9fd985 Check color, dont bind (#13922) 2017-09-13 08:59:31 -07:00