Commit graph

16326 commits

Author SHA1 Message Date
Chris Cowan
53748044b0
[TSVB] Series Filter (#14696)
- Add filter to timeseries config
- Add filter to global series
- Add test for series filter
2017-11-02 11:09:03 -07:00
Jim Unger
a5f0f03f54
Fixes require statements to use explicit loader statements (#14725) 2017-11-02 12:48:31 -05:00
Stacey Gammon
6f708ea5f5
clean up courier (#14492)
* 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 11:05:43 -04:00
Wadim Kruse
03ef7d1d9a Fix typo in accessibility styleguide link (#14718) 2017-11-02 12:28:22 +01:00
Toby McLaughlin
ee5301f156
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:32:46 +11:00
CJ Cenizal
6911573419 Remove unused snapshot_component.js. 2017-11-01 16:18:38 -07:00
dave.snider@gmail.com
4a92ec22c5
Donut icon (#14704)
Adds a donut icon in place of the pie.
2017-11-01 13:46:17 -07:00
Spencer
f60639fccb
Upgrade to webpack 3 (#14315)
* [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
2017-10-31 16:31:22 -07:00
Árpád Poprádi
b38f45b9b1 [UI Framework] Reactify basic form components (#14374)
* add basic form React components and their tests
* make own subdirectory for each form element
2017-10-31 15:36:58 -07:00
Thomas Neirynck
a348ea74e5
Stop listening to filter updates when exiting Visualize (#14647) 2017-10-31 15:42:03 -04:00
Jonathan Budzenski
32a74e1ad1
[build] Clean examples from node modules (#14587) 2017-10-31 13:07:01 -05:00
CJ Cenizal
3977eef52a
[UI Framework] Update Popover, Table, and ContextMenu to support ContextMenus within Tables (#14682)
* Update Popover, Table, and ContextMenu to support ContextMenus within Tables.
2017-10-31 10:40:29 -07:00
Stacey Gammon
5984553962
Fix issue with saved search changes not being preserved on a dashboard (#14678)
* 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 08:30:47 -04:00
Søren Louv-Jansen
91a089bf87
Update to Backport 1.1.1 (#14675) 2017-10-31 09:53:37 +01:00
Matt Apperson
c00fa9eddd
[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:24:45 -04:00
Chris Cowan
d2537d8039
[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:23:36 -07:00
Spencer
4c91fa1c7d
[es/clusters] improve cleanup (#14188)
* [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 13:40:21 -07:00
Spencer
3e08a7e765
[flot-charts] move into ui/public (#14669) 2017-10-30 12:43:12 -07:00
Stacey Gammon
70cb006838
Refactor selectors and use them in place of a few spots that accessed… (#14658)
* 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 15:06:53 -04:00
Lukas Olson
a132bc6d39
Create documentation link directive to avoid cluttering scope (#14630)
* Create documentation links directive to avoid cluttering scope

* Rename to documentationHref
2017-10-30 09:22:07 -07:00
Court Ewing
72afeaec2b
Revert "Add whitelist for urls (#14613)" (#14666)
This reverts commit c464b752a0.
2017-10-30 07:46:39 -04:00
Chris Roberson
677742ee06
[Management] [7.0] Handle saved search import better (#14637)
* Port fixes from #14625 to 7.0

* Fix linting issue
2017-10-27 11:46:45 -04:00
François Prunayre
a1af8ee5f3 Add tooltip to long title. (#14167)
On visualization title ellipsis() is applied and full title is not readable. Display tooltip title.
Past versions were displaying tooltips (cf. https://github.com/elastic/kibana/pull/2401#issuecomment-67576939).
2017-10-27 10:45:24 -04:00
Peter Pisljar
a844f0875b Visualize loader updates (#14528)
* allow loading visualization list thru loader

* visualize should monitor uiState if appState does not exist

* filterBar click handler should check if appScope actualy exist before writing to it

* updating based on review

* update based on review
2017-10-27 16:38:18 +02:00
Kim Joar Bekkelund
146c6aa05b Import Babel polyfill when running Jest tests (#14508) 2017-10-27 16:25:54 +02:00
Matt Apperson
834cb178f2 fix issue of duplicate chart creation (#14626) 2017-10-27 08:05:00 -04:00
Peter Pisljar
fb406a271c extending and updating documentation for visualize (#14441)
* extending and updating documentation for visualize

* updating based on review
2017-10-27 09:30:04 +02:00
CJ Cenizal
7a81638561 [UI Framework] Fix Popover and ContextMenu bugs (#14617)
* Rename KuiPopover isFocusable prop to ownFocus. Focus on first focusable element by default.
* Fix bug where ContextMenuPanel keyboard navigation broke if the user was using tab instead of arrow keys.
2017-10-26 17:00:32 -07:00
Chris Cowan
bb859d93b9 [TSVB] Fix bugs with the new split gauge/metric behavior (#13823)
* Adding a check to make sure everything is available to render

* Adding some safety

* Fixing a bug with the label

* Adding an additional sleep to wait for the new data to arrive.
2017-10-26 15:47:57 -07:00
Chris Roberson
c464b752a0 Add whitelist for urls (#14613)
* Add url whitelist

* Use .some

* Add/fix tests

* Add browser tests
2017-10-26 14:03:19 -04:00
CJ Cenizal
63c6d3f5a2 Port KuiModal K7 improvements. (#14557)
* Port KuiModal K7 improvements.
- Add FocusTrap to KuiModal.
- Delete KuiModalBodyText.
- Add support for dark theme to KuiModal and typographic components.
- Update Kibana Angular confirm modal and Clone Dashboard modal.
* Remove KuiModalBodyText reference from ChangeIndexModal.
* Improve color contrast of hollow Button in dark theme.
* Fix bug with ShowCloneModal not being unmounted when it's closed.
* Fix bug with ShowChangeIndexModal not being unmounted when it's closed.
2017-10-26 11:02:32 -07:00
Nathan Reese
e70f9c356b Timelion .fit() - avoid removing values that are zero (#14560)
* do not filter out values that are not zero

* do not call fit function when series is all null

* simplify filter code

* add another test case
2017-10-26 11:45:34 -06:00
Stacey Gammon
fc27d2abe6 wrap the check in a retry so we know it's not just taking a little long for the css changes to take affect in the UI (#14575) 2017-10-26 09:55:09 -04:00
Tim Roes
00bbee354c [Accessibility] Improve visualization legends accessibility (#14505)
* Make legend toggle button accessible, fix #11843

* Make legend filter buttons accessible

* Highlight chart segments when focusing legend, fix #11845

* Make legend color picker accessible

* Remove aria-hidden from legend

* Use proper indentation

* Remove bluring color button again

* Close legend details on pressing escape

* Add hint about the action

* Only capture escape press when details are opened
2017-10-26 14:15:04 +02:00
Tim Roes
315da4e74b Fix linting issues due to space checks (#14599) 2017-10-26 11:57:29 +02:00
Tim Roes
8ac1d7399c Fix tagcloud sync issues, fix #14565 (#14566)
* Fix tagcloud sync issues, fix #14565

* Remove console.log statement
2017-10-26 08:13:33 +02:00
Tim Sullivan
515e3f913a [UI] allow search toolbar input to be updated from state change (#14588) 2017-10-25 16:15:49 -07:00
CJ Cenizal
8a9266f811 Improve logic for tabbing through a ContextMenuPanel's form elements. (#14572)
- Support left arrow going back when the panel itself is focused.
2017-10-25 15:20:36 -07:00
CJ Cenizal
05cbb92965 [eslint-config-kibana] Apply AirBnB spacing rules (#14522)
* Add AirBnB key-spacing rule.
* Add AirBnB comma-spacing rule.
2017-10-25 15:08:05 -07:00
Matt Apperson
417a650cb3 Hide only TSVB controls, not charts (#14545)
* hide only TSVB controls, not charts

* revert format changes

* Update vis_editor_visualization.js

* walk back more style changes

* fix regression

* fix more regressions

* add new lines back
2017-10-25 17:17:19 -04:00
Chris Cowan
83ed42744b Fixes #14124 - removes the 1w label (#14577) 2017-10-25 11:17:50 -07:00
Court Ewing
c8d71a1fb2 scripts: bump backport tool to 1.0.1 (#14581) 2017-10-25 13:28:03 -04:00
Chris Cowan
ef608dc2b6 [TSVB] Remove console.log from Resize PR (#14555) 2017-10-25 09:45:57 -07:00
Thomas Neirynck
f1f5b892cb use proper SVG APIs to readout contents (#14458) 2017-10-25 12:16:52 -04:00
Jonathan Budzenski
092f46bbde Bump node to 6.11.5 (#14568) 2017-10-25 09:26:00 -05:00
Nathan Reese
6d01b35cd4 Set configurable to true so AggConfig decorated properties can be deleted (#14569)
* make decorated property configurable so it can be deleted

* same for histogram aggregation
2017-10-25 08:24:01 -06:00
Tim Roes
7025c32c02 [Accessibility] Improve filter bar accessibility (#14474)
* Prefix negative filters with "NOT"

* Make filters tabable and add ARIA
2017-10-25 08:38:07 +02:00
Tim Roes
8c798d231a [TSVB] Allow negative time offsets (#14494)
* Allow negative offsets in TSVB

* Fix linting issue
2017-10-25 08:25:36 +02:00
CJ Cenizal
d58ffe43da Fix broken kuiInputBackgroundColor reference. (#14558) 2017-10-24 17:53:34 -07:00
CJ Cenizal
ec38367b70 [UI Framework] Improve KuiContextMenu keyboard navigation UX (#14434)
* Refactor focus state logic to use the React lifecycle correctly.
* Update KuiPopover snapshots.
* Remove unnecessary isVisible prop from KuiContextMenu.
* Allow user to both tab AND use the arrow keys for navigation.
* Reinstate ability to tab and shift-tab to the title of KuiContextMenuPanel.
* Release focus from Dashboard panel options KuiContextMenu by closing it when you select an option.
* Update KuiContextMenu example to demonstrate best practice of closing the menu when an item is clicked.
* Replace native transitionend event handler with onAnimationEnd React event handler.
2017-10-24 17:37:51 -07:00