Commit graph

15204 commits

Author SHA1 Message Date
CJ Cenizal
c3fc467a14 Update docs for new vis landing page (#11262)
* Update 'Visualizing your Data' doc with copy and screenshots.

* Update 'Creating a Visualization' doc with copy.
2017-04-17 09:35:33 -07:00
archana
be609d9505 [jenkins] update call to pleaserun with --log-path (#11275)
* [jenkins] update pleaserun with --log-path for 0.0.28

* [jenkins] update contributing guide pleaserun version
2017-04-17 11:08:06 -05:00
Thomas Neirynck
b5049580ed fix typo (#11261)
Fixes the minimum opacity setting of the heatmap
2017-04-17 10:47:42 -04:00
Stacey Gammon
9f33293e5c Default to named ui/public: a to m (#11200)
* Convert remaining export default's in ui/public

* Chunk 2

* Part 3

* Part 4

* Part 5

Note: Must check in https://github.com/elastic/x-pack-kibana/pull/938
first

* Part 6

* Part 6

* Part 8

* Part 9

* address code review comments
2017-04-16 07:21:36 -04:00
Spencer
0c67890bd9 [dashboard] disable toast auto-hiding (#11248)
* [dashboard] disable toast auto-hiding

* [functional/service/kibanaServer] describe disableToastAutohide() method
2017-04-15 18:08:24 -07:00
Spencer
d6e15a7a1c [visualize] allow vis types to request the time picker (#11247) 2017-04-14 18:09:43 -07:00
CJ Cenizal
a372328831 Fix missing icons in Visualize listing. (#11243)
* Fix StatusText component so that it supports image icons.

* Fix missing icons in Visualize listing. Support both icons and images.
2017-04-14 14:00:53 -07:00
Brandon Kobel
b8939ffdee Resolving issue with TSVB resizeHandler not triggering renderChart (#11259)
Previously, when viewing some time series visual builder panels on a
Dashboard and doing a hard-refresh, all the calls to flot_chart.js's
renderChart method were early returning because the resize.clientHeight
and resize.clientWidth were 0; then a call to handleResize was coming
and it wasn't triggering the initial drawing of the chart. This modifies
the logic to keep track of whether the chart has been rendered yet, and
if it hasn't calls renderChart from the resize handler.
2017-04-14 16:23:29 -04:00
Chris Cowan
76c9e0cab4 Add data-shared-item to Time Series Visual Builder editor (#10945)
* Adding attributes and prefixer to visualization elements for reporting

- adding data-shared-item attribute to visualization element
- Adding render-counter attribute
- Moving inline to reactcss for prefixing; moving inline to less files where applicable

* Fixing reactcss calls
2017-04-14 12:52:35 -07:00
Brandon Kobel
cb1aeaf3e6 Discover and visualization set appStatus.dirty before saving new (#11156)
Sharing relies upon appStatus.dirty to determine whether changes
have been made that must be saved. This wasn't being set correctly in
Discover and Visualize when the user first creates a new object and
hasn't saved it yet.
2017-04-14 12:40:02 -04:00
Stacey Gammon
945316cc15 Default to named export conversion: Courier (#11165)
* Default to named export conversion: Courier - Part 1

* Part 2
2017-04-13 16:22:42 -04:00
Peter Pisljar
9fbc39f21a fixing axis title height (#11230) 2017-04-13 22:05:28 +02:00
Spencer
811ed5b5f5 Cleanup some FunctionalTestRunner tidbits (#11211)
* [esArchiver] match functionalTestRunner --config default

* [functionalTestRunner] expose readConfigFile function

* [functionalTestRunner/mocha reporter] define undefined variable

* [functionalTests/services/remote] log tunnel output in verbose mode
2017-04-13 12:15:01 -07:00
Jonathan Budzenski
925a953338 [status] 15m load average should use the 3rd index (#11202) 2017-04-13 08:52:33 -07:00
CJ Cenizal
f6ab93f91f Refactor Index Pattern Management files into a hierarchical directory structure. (#11175)
* Move Index Pattern Creation files into create_index_pattern directory.
* Group Edit Index Pattern files in edit_index_pattern directory.
* Make import paths for refresh_kibana_index relative.
* Remove unused field_popularity.html and add_data_wizard.less files.
* Add index.js files for new directories.
* Change index.js exports to imports.
2017-04-13 08:46:50 -07:00
Peter Pisljar
17d88663e1 fixing point series chart axis titles class names (#11118) 2017-04-13 09:29:08 +02:00
Lukas Olson
03ca71ed3c Fix spelling in color rules (#11212) 2017-04-12 17:22:28 -07:00
Spencer
6b0aface7a Minor issues fixed while trying to write browser tests in plugins (#11214)
* [contributing.md] fix command for testing plugins

* [ui/chrome] add navLinkExists() method

* [mocha] expose describe.skip
2017-04-12 17:17:46 -07:00
Stacey Gammon
8c1c617161 Removing unused files and their tests (#11201) 2017-04-12 16:52:56 -04:00
Kim Joar Bekkelund
90bccde33b Update UI framework Jest docs (#11088)
* Update UI framework Jest docs

* fix more 'npm run's
2017-04-12 15:15:00 -04:00
Jim Unger
3ff7d5b6fa Adds subdirectories section to architecture style guide (#11187)
Adds subdirectories section to architecture style guide
2017-04-12 13:53:08 -05:00
Tyler Smalley
6ecdbd092a Handle undefined control group paths (#11189)
It's possible that the cgroup file is either empty or does not include the referenced cpu/cpuacct paths.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-04-12 11:13:15 -07:00
Kim Joar Bekkelund
1b1e6838e8 [test] Stricter test-matching for Jest (#11190) 2017-04-12 14:01:42 -04:00
Court Ewing
918b4181a6 cli: make dirs in correct location (#11188)
The previous behavior was writing empty directories to a separate
location when the plugin installer was being invoked from outside the
main kibana directory.
2017-04-12 12:52:18 -04:00
Peter Pisljar
766646c5be fixing heatmap black squares (#11121) 2017-04-12 18:40:58 +02:00
Peter Pisljar
da7ab525ce fixing heatmap y axis title and labels (#11181) 2017-04-12 14:53:35 +00:00
Spencer
ea838ec900 [functional_test_runner] fix grunt failure logging (#11172) 2017-04-12 07:52:26 -07:00
Stacey Gammon
bf63cac183 Convert default to named exports: ui/public/agg_response/* (#10987)
* Convert default to named exports starting with agg_response code

* Default to Named: Agg Response - Chunk 2

Committing in chunks so I can check test passes

* Default to Named: Agg Response - Chunk 3

* Default to Named: Agg Response - Chunk 4

* Default to named: AggTypes - Chunk 1
2017-04-12 06:59:50 -04:00
Stacey Gammon
5aea4ff210 Add no default exports custom rule (#10981)
* Introduce a custom kibana estlint rule for no default exports

Turn it on only at the level of /kibana/src/core_plugins/public/ for
now, just to keep the PR sizes manageable.

* Don't call functions directly on the import

* Create a packages dir and move the custom rule in there

* Remove copied package.json portions, use minimal info necessary
2017-04-12 06:59:14 -04:00
CJ Cenizal
49255e04a9 Apply elastic.co look and feel to UI Framework docs site. (#11174) 2017-04-11 17:25:23 -07:00
Stéphane Campinas
9910770513 hide also the tooltip when it is destroyed (#11146) 2017-04-11 16:29:18 -07:00
spalger
b79334b964 [functional_test_runner] tweak doc styling 2017-04-11 15:26:28 -07:00
Spencer
90434765c0 [functionalTestRunner] replace intern (#10910)
* [functional_test_runner] replace functional testing tools with custom/pluggable solution

* [functional_test_runner] Convert unit tests to commonjs format

* [functional_test_runner] Fix dashboard test in wrong mode

* [functional_test_runner] Add dashboardLandingPage test subject

* [functional_test_runner] Get Visualize page object

* [functional_test_runner] Fix outdated references

* [functional_test_runner] Fix more outdated refs

* [functional_test_runner] Remove duplicate tests

* [functional_test_runner] Improve test readability

* [functional_test_runner] 😞 So many duplicate methods

* [functional_test_runner] Move mgmt `before` outside toplevel describe

* [functional_test_runner] Settings page obj missing methods

* [functional_test_runner] Add improvements from @gammon

* [functional_test_runner] Fix return statements in async funcs

* [functional_test_runner] Move before() to correct scope

* [functional_test_runner] Add after() hooks to remove index patterns

* [functional_test_runner] Attempt to fix vertical bar chart tests

* [functional_test_runner] Clean up

* [functional_test_runner] Reinstate unit tests

* [functional_test_runner] Set default loglevel back to info

* [functional_test_runner] Replace `context`s with `describe`s

* [functional_test_runner] Better error handling

* [functional_test_runner] Add in new Tile Map tests

* Incorporate changes from master

* [functional_test_runner] validate that every test file has a single top-level suite

* Update contributing doc with link to full doc

* [docs] Spelling and grammar fixes

* docs: writing and running functional tests

* [docs] Move plugin doc to plugin area

* [docs] Housekeeping. Doc in wrong place

* [docs] Remove dup doc file

* [grunt] Only run mocha_setup when running tests, not every grunt task
2017-04-11 17:01:06 -05:00
Tyler Smalley
6ae4a07cff Replaces zip library and small refactor of plugin install (#11145)
Previously our plugin installation used over 5,000 file descriptors when analyzing and extracting the archive. To mitigate this, we are moving to a more supported zip library, Yauzl.

In addition to the replacement of the zip library, this refactors the getPackData method. It was extracting the plugin package.json files, reading them, then finally deleting them. This commit performs this all in memory, removing the need for any file system operations during this step.

These changes reduced the installation time by an average of 35%, from 211.18 seconds to 137.8 seconds. The majority of this time is now spent during optimize.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-04-11 12:58:38 -07:00
Lukas Olson
6752dfe168 Timepicker step forward/backward should not overlap (#11131)
* Timepicker step forward/backward should not overlap
This PR fixes the step forward/backward buttons in the timepicker so that the ranges do not overlap. Prior to this PR, if you stepped forward/backward, the new range would include one millisecond of time in both ranges, which could result in documents being visible in both time ranges.

* Add unit for add/subtract methods
2017-04-11 12:52:08 -07:00
Shaunak Kashyap
2fed5d3f22 [Advanced Settings] Use better logic for detecting non-default values (#11036)
* Use better logic for detecting non-default values

* Use a positive name for the boolean function to increase readability

* Adding comment describing conf.isCustom

* Make trash button logic consistent with default text logic
2017-04-11 10:59:27 -07:00
Matt Bargar
e39111a2c5 Do not expand index patterns by default (#11155)
Updates the management screen for index patterns to make the field_stats behavior opt-in rather than the default. Also removes now-inaccurate warning about non-expanded wildcard patterns being non-performant.
2017-04-11 13:54:25 -04:00
Spencer
25e6435792 [courier/rootSearchSource] stop loading the defaultIndexPattern (#11012) 2017-04-11 10:36:06 -07:00
Tyler Smalley
006fae00f7 Fetches control group resource information (#10402)
Adds control group data to status API and kbnServer.metrics
2017-04-11 10:20:30 -07:00
Tyler Smalley
38f6cc876c Fixes URL image formatters for basePath (#11082)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-04-11 10:05:14 -07:00
Stacey Gammon
8eb17b330e Refactor table sort properties (#11073)
* Refactor sorting capabilities

* clean up and comments

* Move to ui_framework/services

- add tests
- address code review feedback
- Include new folders in build output.

* Rename to sortableProperties

Require initial sorted property name.

* fix a refactor miss
2017-04-11 12:47:33 -04:00
Court Ewing
a2053b3731 docs: curl content-type for getting-started (#11154) 2017-04-11 11:36:42 -04:00
Spencer
ca3d3e03af [storeUrlInSession] only check for url overflows when not storing state in session (#10878) 2017-04-10 20:34:13 -07:00
Jonathan Budzenski
6d254a3cc9 [functional tests] Wait for url to update when removing all filters (#11108)
* [functional tests] Wait for url to update when removing all filters

* [functional tests] waitUntilUrlFound -> waitUntilUrlIncludes
2017-04-10 16:00:44 -05:00
Jonathan Budzenski
2b24b5c488 Bump node to 6.10.2 (#11039) 2017-04-10 15:26:16 -05:00
Joe Fleming
fb7be6229f Fail early on import, and don't prompt to overwrite when failing (#11059)
* stop importing if JSON parsing fails

* fail early if improper JSON

we expect to get an array of objects, so show an error message if we find something that is not an array

* clarify import error message
2017-04-10 11:39:09 -07:00
CJ Cenizal
2a0d3428ac Fix focus states of Buttons inside of the ToolBar. (#11129) 2017-04-10 10:18:48 -07:00
trevan
74641d7d85 Format the totals row (#10414)
* Format the totals row

* Add tests and format count results

* Handle the new metrics better

* Rename variable to isFieldNumeric and isFieldDate

* Add pipeline tests

* Fix timezone issues in tests
2017-04-10 18:10:04 +02:00
Chris Cowan
c13e786e10 Fix Drilldown URL for Top N in Time Series Visual Builder (#11092)
* Implimenting drilldown feature

* Use the label not the id
2017-04-10 08:48:30 -07:00
Brandon Kobel
00da1341ac Reordering and modifying asserts for reloading the logging config (#11050)
There's an intermittent failure that is occurring with our CI that this
will hopefully let us diagnose
2017-04-10 11:15:57 -04:00