Commit graph

16198 commits

Author SHA1 Message Date
Alex F 929e671e6c
Update migrate_6_0.asciidoc (#14854) 2017-11-08 11:54:55 -05:00
Shaunak Kashyap bbe43c4e51 Load browserify-ied files before main (#14851) 2017-11-08 08:30:49 -08:00
Spencer e4a256c472 Support browser mocha options (#14018)
* [browserTests] support ?mocha options

* [testHarness] tell user when we cannot parse mocha opts

(cherry picked from commit a155f23992)
2017-11-08 08:47:22 -07:00
Spencer abab9fc8c5 [server/logging] Allow opting out of UTC (#14705)
* [server/logging] make use of UTC configurable

* [server/logging/tests] try removing TZ from moment

* [server/log/formatJson] use strict equality checks

* [server/log/format] note in method name that time is extracted

(cherry picked from commit b79ba98889)
2017-11-08 08:44:12 -07:00
Alex F ff02816fea
Update migrate_6_0.asciidoc (#14843) 2017-11-08 08:07:49 -05:00
Toby McLaughlin ee65a42e11 [docs] Dehyphenate "open-source" in Docker docs (#14835) 2017-11-08 16:33:24 +11:00
Spencer 4a5ba237df
[6.x] Upgrade to webpack 3 (#14315) (#14824)
* [timelion] remove last remaining amd modules

* [eslint-config-kibana] remove env.amd

* [webpack] use absolute loader names

* [webpack] remove absolute node_modules/ imports

* [webpack] upgrade to webpack 3

* [uiFramework] make webpack build compatible with v3

* [eslint-import-resolver] use https://github.com/elastic/eslint-import-resolver-kibana/pull/21

* [baseOptimizer] don't break when pkg has no dependencies

* [optimize] remove unnecessary json-loader

* [optimize] remove local references to webpack vars

* [eslint] upgrade to eslint-import-resolver-kibana 0.9.0

* [baseOptimizer] comment tweaks

* [baseOptimizer] remove loader pinning

In webpack 1 the loaders defined here were resolved relative to the file they were going to load, which meant that plugins in other projects could accidentally overwrite the loaders Kibana was trying to use, which is why the aliases were used to enforce proper resolution.

In webpack 2 loaders are now resolved relative to the webpackConfig.context, which is set to the root of the Kibana repo. See https://webpack.js.org/configuration/module/#useentry

* [webpack] rely on kibana webpack shims before checking node_modules

(cherry picked from commit f60639fccb)
2017-11-07 15:54:48 -07:00
Stacey Gammon 4a90855db1
Add dashboard tests (#14775) (#14826)
* add a test that will fail due to the current TSVB bug

* add a test to catch the latest bug with saved searches

* reorder array so tests pass

* Update tests since the first panel is TSVB and won't have a spy pane toggle
2017-11-07 16:25:32 -05:00
Jonathan Budzenski 2c48d600f8
[console] Remove cluster/_nodes/stats (#14757) 2017-11-07 14:23:35 -06:00
Jonathan Budzenski 1f212d7691
[console] Make GET requests converted to POST case insensitive (#14327) 2017-11-07 14:21:43 -06:00
Tim Roes ee5eb88181
Add rel="noopener noreferrer" to external links (#14440) (#14819)
* Add rel=noreferrer to url field formatter

* Add rel="noopener noreferrer" to external links
2017-11-07 15:02:13 +01:00
Stacey Gammon 208fb0fe62
Get rid of map item specific reducers (#14808) (#14812)
* get rid of funneling map entry updates through

This was one of the suggestions in the redux discussion but after
sitting with it, I decided I don’t like it.  I think it is too much
overhead and makes the code more difficult to read.  There are not so
many actions at both levels (touching the whole mapping vs touching a
single mapping object) that justifies this, IMO.

* small refactor of merging panel data logic.
2017-11-07 07:09:58 -05:00
Thomas Neirynck ce44014c3a
add more regionmaps tests (#14735) (#14793) 2017-11-06 20:13:17 -05:00
Stacey Gammon 1f9ceb3440
Fix react proptype warning (#14771) (#14809)
* Fix react proptype warning

React expects panelIndex to always be a string type.

* Add tests to catch panelIndex as a number issue, clean some stuff up.
2017-11-06 19:49:52 -05:00
Stacey Gammon ec81ed7ca0
Don't update layout multiple times in updateLayout function (#14780) (#14805)
* Don't update panels in state one at a time when layout changes

* Add test that would have caught the bug

* fix test

Hmmm, I thought grabbing the panels the second time would change their
order predictably but seems no.  Still unsure if the order is
garaunteed.

* Need to split out merging panel updates action and setting panels

Tests caught this issue, woot.

* Fix remaining setState warnings by not calling getEmbeddableHander in render
2017-11-06 16:25:39 -05:00
Jonathan Budzenski 4ca55988e3
gitignore npm-debug.log (#14797) 2017-11-06 14:45:38 -06:00
Stacey Gammon 3794c10414
Clean up over-selectoring dashboard (#14765) (#14803) 2017-11-06 14:15:19 -05:00
Tyler Smalley a6428e43d8 Provide the scroll parameter to keep the scroll open (#14776)
Without this, a new scroll_id will not be provided for subsequent requests

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-06 09:33:38 -08:00
Jonathan Budzenski 5db38afaf0
Bump chromedriver to 2.33.2 (#14790) 2017-11-06 11:30:18 -06:00
Peter Pisljar 173fbce6d0 going back to $rootScope.$broadcast (#14784) 2017-11-06 17:22:24 +01:00
Tim Roes 5891edd7d9
Visualize bug fixes (#14748) (#14782)
* Fix issue where event isn't set

This method is called from onSubmit without pasing an event which
crashes Kibana.

* Fix broken open buckets

If you leave one side open of an interval, the from/to in the bucket
range will be undefined but null in the config, why this check failed.

* Pass submit event
2017-11-06 11:18:47 +01:00
CJ Cenizal a823972f40
Fix spacing bug with LocalTabs. (#14772) (#14773) 2017-11-03 22:59:08 -07:00
Chris Cowan 727a643e8f [TSVB] Fix weird merge problems with Table PR (#14774) 2017-11-03 18:38:46 -07:00
Nathan Reese bf94ff8e41
Timelion typeahead for argument names (#14657) (#14768)
* arguments suggestions for timelion

* argument_value suggestions

* add incompleteArgument parse failure

* sort suggestions list in domain so index matches selected

* clean up argument replace error, and rename some variables to reflect that suggestions can things other than functions

* add tests for suggestions

* add types text to argument suggestions view

* cjcenizal review updates

* updates from timroes review

* fix raw loader for webpack 3

* make cursor be pointer in timelion expresson textarea
2017-11-03 14:13:31 -06:00
Nathan Reese 7427060f1f
Remove the Filter Pill merging functionality from Input Controls (#14511) (#14767)
* add controlledBy field to meta block of filters created by InputControls

* update tests to ensure controlledBy property set
2017-11-03 13:39:07 -06:00
CJ Cenizal c371dfda28
Reset Chrome's native styling for button border-radius (#14758) (#14762)
* Use buttons in LocalNav examples.
* Reset button border-radius to 0 to fix Chrome native styles.
2017-11-03 10:49:02 -07:00
Nathan Reese 775efab7de
Show the x-axis (time) value in legend when hovering over a Timelion graph (#14627) (#14753)
* Show the x-axis value when hovering over a Timelion graph

* Update legend tests

* provide class name for caption styles, reuse single caption element instead of removing/adding

* provide class name for caption styles dark theme
2017-11-03 10:39:04 -06:00
Thomas Neirynck 9fe8de0ac6
Track layer by name instead of URL (#14139) (#14740) 2017-11-02 22:28:38 -04:00
Stacey Gammon e58951878c
Add new "use margins" option to add separation between panels (#14708) (#14746)
* Add an option to add margins between panels

Make it a boolean useMargins to make this even simpler

* Fix issue with undefined not matching false and triggering a dirty state

* add some test helpers and css for plugin use-age

* default to margins on for new dashboards.

* use const variable syntax for margins

* Fix issue with older dashboards being bumped into useMargins: true mode
2017-11-02 20:15:52 -04:00
Stacey Gammon d16093291a
Hack to fix scroll issue with panels (#14713) (#14743)
* hack to fix scroll issue with panels

* get rid of the debounce to make it smoother

* fix issue when screen is maximized
2017-11-02 19:17:30 -04:00
Stacey Gammon 9cd64fdc19
[6.x] refactor panel header (#14736)
* Refactor panel header and menu options (#14652)

* Refactor panel header and menu options

- Makes them containers to avoid passing more props down
- Will make it easier to add/update actions in the header and options.
This will eventually need to be pluggable as well and I think this
setup will work better.

* Don't expose Container semantics externally

* remove unused props

* add comments and proptypes to containers

* Clean up and pass less props through to container

* Fix breakages after merge with selectors file change

* don't lost last change after merge with master

* Revert "don't lost last change after merge with master"

This reverts commit 27d303aa30.
2017-11-02 18:31:57 -04:00
Stacey Gammon 91faad4cbb
Sync saved searches that don't have local modifications on a dashboard (#14452) (#14738)
* Add tests to catch error

* Fix test

* Don't store column and sort state in panel uiState unless explicitly overridden in a dashboard.

* add debug messages

* Elements can go stale between the find by and the click event so wrap in a retry

* fix bad merge with master
2017-11-02 17:51:42 -04:00
Nathan Reese eae5e6893b
Kibana Home page - phase one (#14673) (#14733)
* make kibana home app default when defaultAppId not set

* make kibana icon link to home page, add react-router for routing within home app

* directory registry

* add href to directory listings

* add tabs to directory page

* add promo section to home page

* home page styling

* use kuiFlex components to display directory in columns

* fix react array missing key warning

* add icons

* remove feature directory title from home page, change data sources to integrations

* add tutorials registry

* fix rebase mistake

* start tutorial component

* wrap tutorial registration in helper function to hide implemenation details

* add constants for categry and instruction variant ids

* filter tutorial directory by tab category

* remove later phase stuff

* clean-up feature directory styling

* add kbnDirectory to uiExports

* remove unused file

* cleanup timelion plugin definition

* fix lint errors

* css work recommended by formgeist review

* cleanup from pairing session with snide

* rename kbnDirectory registry to featureCatalogue, rename kbnDirectory uiExports to home

* update kibana index uses name to match ui-exports name

* remove carot from package versions

* remove kuiViewContent--constrainedWidth from feature directory view

* updates from Stacey-Gammon review

* import FeatureCatalogueCategory instead of passing as parameter

* wrap KuiButton in href to fix button click bug

* remove conditional check for ADMIN and DATA feature category tabs

* consider apps for the 'OTHER' tab as anything not in ADMIN or DATA

* remove temp variable tabs and just store in this

* avoid overwriting kui class styles

* prefix class names with home

* updates from timroes review
2017-11-02 14:11:24 -06:00
Stacey Gammon 592736353d
only show expand toggle, in view mode, on hover (#14706) (#14734)
* only show expand toggle, in view mode, on hover (and focus for accessibility)

* Fix tests
2017-11-02 15:57:07 -04:00
Stacey Gammon e414f02e5d
clean up courier (#14492) (#14722)
* Remove search strategy abstraction

Unnecessary ever since doc strategy was removed and there was only ever
one strategy type.  Reduces complexity in the courier.

* Remove unnecessary Provider abstraction for courierNotifier

* Remove unused fetch.search and fakeFetchThese functions

* Remove unneccessary provider abstraction for RequestStatus consts

* Rename fetch and fetchThese to better distinguish their differences

* Remove unnecessary use of defer - just pass the function in directly

* RequestStatus does not need to be an object, it's just used as an enum

* Remove unnecessary transformResponse function

* Use Array.isArray instead of lodash's _.isArray

* add RequestFetchParamsToBody tests

most are in jest, one is in mocha because I needed IndexPattern class
via the Provider wrapped in private and I’m not sure if we can use
ngMock in jest.

* fix test

* Remove accidentally cached values in the provider for indexToListMapping and timeBounds

* Rename debouncedFetchThese => debouncedFetchNow

* Remove test that only checks our mock

* add getInactive tests

* Make sure self.close is only called once after a fatal error - no need to call multiple times.
2017-11-02 14:36:41 -04:00
Chris Cowan 6bb1ff5fe9 [TSVB] Series Filter (#14696)
- Add filter to timeseries config
- Add filter to global series
- Add test for series filter
2017-11-02 11:09:42 -07:00
Tim Roes bc7e341ebe
Fix typo in accessibility styleguide link (#14718) (#14719) 2017-11-02 12:35:28 +01:00
Toby McLaughlin f2cd26ae73 Docker docs v6 (#14683)
Update Docker docs for 6.0.0 and image flavours

* Use Compose v2 in Docker examples

* Use US spelling in Docker docs

* Link to www.docker.elastic.co in docs
2017-11-02 15:41:27 +11:00
CJ Cenizal 5f5f727d39
Remove unused snapshot_component.js. (#14709) 2017-11-01 16:19:39 -07:00
CJ Cenizal 25128638ea
[UI Framework] Reactify basic form components (#14374) (#14697)
* add basic form React components and their tests
* make own subdirectory for each form element
2017-10-31 15:47:39 -07:00
Thomas Neirynck a50ce1d562
Stop listening to filter updates when exiting Visualize (#14647) (#14692) 2017-10-31 17:23:13 -04:00
Jonathan Budzenski 8a7551f38f
[build] Clean examples from node modules (#14587) 2017-10-31 13:08:09 -05:00
CJ Cenizal 329288d63a
[UI Framework] Update Popover, Table, and ContextMenu to support ContextMenus within Tables (#14682) (#14691)
* Update Popover, Table, and ContextMenu to support ContextMenus within Tables.
2017-10-31 10:52:50 -07:00
Stacey Gammon ffecd74619
Fix issue with saved search changes not being preserved on a dashboard (#14678) (#14686)
* add tests to catch the issue

* use Object.assign instead of the spread operator

since we want it to modify the original object
2017-10-31 10:55:10 -04:00
jimgoodwin b9ac291681 Kibana Release Notes for 6.0.0-rc2 2017-10-31 09:43:45 -04:00
Matt Apperson cd9437b353 [FIX #14628] Don’t use preventDefault() on IE unless the user pressed enter (#14667)
* Don’t use prevent default on IE unless the user pressed enter

* Implament ie fix on number fields too

* share the ie detection lib

* change file names and export types
2017-10-30 17:25:58 -04:00
Chris Cowan e765e3b967 [TSVB] Add support for Math Aggregation to tables (#14553)
* Add support for Math Aggregation to tables

* Removing the range reduction for dropping the last bucket
2017-10-30 14:24:13 -07:00
Spencer 79fdf95612
[6.x] [es/clusters] improve cleanup (#14188) (#14676)
* [es/clusters] automatically close all clusters on server close

* [es/cluster] track and close all created clients

* [es/clusters] remove old close tests
2017-10-30 14:12:24 -07:00
Stacey Gammon 71342b7ec1
Refactor selectors and use them in place of a few spots that accessed… (#14658) (#14671)
* Refactor selectors and use them in place of a few spots that accessed state directly

* Add some more action/reducer/selector tests

* Move jest tests out of __tests__ folder

Without a better idea, i put them in reducers folder, even though they
really span reducers, selectors and actions.  They can’t be in the
__tests__ folder or the mocha build breaks.

* rename state param into specific part of state tree, add jsdocs to make this clearer
2017-10-30 16:45:53 -04:00
Spencer c0a5788835 [flot-charts] move into ui/public (#14669)
(cherry picked from commit 3e08a7e765)
2017-10-30 12:44:00 -07:00