Commit graph

16021 commits

Author SHA1 Message Date
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
Brandon Kobel 0971e6a2ac Removing mapper.dynamic setting from the esArchiver mappings (#13970)
index.mapper.dynamic should not be used for 6.0+ indices, so this commit
removes it from the esArchiver mappings.json for kibana

Related elastic/elasticsearch#25734
2017-09-13 07:14:18 -04:00
David Moreno Lumbreras bc8b0369dc Add new plugin "Dotplot" to known plugins 2017-09-13 06:11:50 -04:00
Peter Pisljar b5527aebdc additional vislib unit tests (#13949)
* additional vislib unit tests

* removing unused code
(cherry picked from commit 78e71c5)
2017-09-13 09:54:44 +02:00
Stacey Gammon 60ad20f8c1 fix wrapped retry error. This was copied code from 6.x, which didn't have the back ported version (#13967) 2017-09-12 20:25:54 -04:00
Tim Sullivan a8171c2d4a Remove Stats API (#13896) 2017-09-12 13:47:13 -07:00
Stacey Gammon 9587611ca8 Update react style guide (#13958) 2017-09-12 15:57:35 -04:00
Chris Cowan 83b55721a3 Allow user to select any field for cardinality in filter ratio aggregation for TSVB (#13762)
* Remove field selection restriction for cardinality

* fixing a bug with filter ratio where not selecting a metric.field throws a fatal

* Adding tests; fixing bug
2017-09-12 12:57:12 -07:00
Matt Bargar f23f606383 Improve missing index pattern error message (#13915)
Since the title of the missing pattern is unknown (because it's missing) we can't display it, but we can improve the error slightly by including the name of the pattern that is being loaded instead. I've added that, in addition to the ID so there's no confusion if the titles are the same.
2017-09-12 14:51:40 -04:00
Jonathan Budzenski 1e25cf656b [docs] Sort settings page (#13514)
* [docs] Sort settings page

* Fix path.data
2017-09-12 13:02:37 -05:00
Stacey Gammon f55c9da6f2 Investigate 6.0 flaky tile map test (#13942) 2017-09-12 08:38:22 -04:00
Nathan Reese c9c135ea14 relative date field formatter (#13921)
* add relative date field formatter

* add unit test for relative_date field formatter
2017-09-12 06:04:23 -06:00
Peter Pisljar 1615d9c5ca editor render method should not be called if request is pending (#13858) 2017-09-12 11:59:11 +02:00
archanid 5022d776df [DOCS] Upgrade doc update for 7.x 2017-09-11 12:41:57 -05:00
lcawley 1aef20f78a Merge remote-tracking branch 'upstream/master' 2017-09-11 09:35:46 -07:00
lcawley fd97db7cc5 [DOCS] Commented out broken link to Reindex transformation 2017-09-11 09:35:29 -07:00