Commit graph

16226 commits

Author SHA1 Message Date
Tyler Smalley
fb4a381514
Adds keystore for securely storing settings (#14714)
Introduces bin/kibana-keystore providing create, list, add, and remove actions.

Settings stored within the keystore will be loaded at runtime.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-13 10:25:10 -08:00
Jonathan Budzenski
b4565aabdf
Revert "Bump react-grid-layout to 0.16.0 (#14620)" (#14912)
This reverts commit 2b06e4bac6.
2017-11-10 18:30:49 -06:00
Jonathan Budzenski
05f4ad0344
[console] assorted autocomplete fixes (#14770)
* [console] add miminum_should_match to match query

* [console] source include,exclude -> includes,excludes

* [console] Remove lowercase expanded terms

* [console] _source_{include,exclude} -> _source_{includes,excludes}

* [console] autocomplete for rollover api

* [console] autocomplete for extended_bounds
2017-11-10 12:26:17 -06:00
Jonathan Budzenski
2b06e4bac6
Bump react-grid-layout to 0.16.0 (#14620) 2017-11-10 11:47:12 -06:00
CJ Cenizal
3bde84393c
Fix Jest warnings for ConfirmModal. (#14892) 2017-11-10 07:56:06 -08:00
Tim Roes
30238e8744
Fix broken date range look, fix #12731 (#14837) 2017-11-10 16:31:14 +01:00
Stacey Gammon
9fa4a0435c
fix console warning about missing required prop (#14876) 2017-11-10 08:24:29 -05:00
Peter Pisljar
5f1f28ba41 reverts metric visualization (#14052)
Uses the previous html/css rendering code instead of the svg-based rendering for simple metrics.
2017-11-09 14:49:58 -05:00
Stacey Gammon
9bf1c78435
rename EmbeddableHandler/s => EmbeddableFactory/ies (#14863) 2017-11-09 14:42:26 -05:00
Stacey Gammon
6d4972869b
Add new title query param to dashboard listing page (#14760)
* introduce a mechanism to load a dashboard by title is a single one is found, if not, to refill the search box on the listing page

* Make case insensitive and prevent listing page from "blipping" up on the screen before the redirect

* Add tests
2017-11-09 14:23:14 -05:00
CJ Cenizal
b6b0e6134c
[UI Framework] Add isReadOnly prop to KuiCodeEditor. (#14804)
* Add isReadOnly prop to KuiCodeEditor.
* Place cursor at beginning of code editor if it's read-only.
* Surface prompt for isReadOnly mode. Only show cursor when the editor is focused.
2017-11-09 09:22:48 -08:00
Chris Cowan
680cf1abd4
[TSVB] Change term sorting to match Kibana Core (#14679)
* [TSVB] Change term sorting to make Kibana Core

* removing last bucket changes

* Update tests to reflect new sorting metric
2017-11-09 07:23:45 -07:00
Kim Joar Bekkelund
50fcc364cc
Remove circular dep from concat_stream (#14847) 2017-11-09 10:18:55 +01:00
dave.snider@gmail.com
75006b7196
Clean up dashboard padding and coloring (#14811)
Fixes some coloring issues with dashboards with the new margin settings. Makes everything consistent between mode / theme.
2017-11-08 10:43:28 -08:00
Shaunak Kashyap
3367db0c7e
Load browserify-ied files before main (#14851) 2017-11-08 08:30:21 -08:00
Spencer
a155f23992
Support browser mocha options (#14018)
* [browserTests] support ?mocha options

* [testHarness] tell user when we cannot parse mocha opts
2017-11-08 08:47:04 -07:00
Spencer
b79ba98889
[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
2017-11-08 08:43:52 -07:00
Tim Roes
0661a4aa64
Fix issue, where tags are vanishing after double resize (#14822)
* Fix issue, where tags vanishing after resizing

* Also fix rawText in debug log
2017-11-08 16:18:14 +01:00
Nathan Reese
86e3925a80
Timelion query language support for scripted fields (#14700)
* update run REST API to fetch index pattern and use script for scripted fields

* allow scripted fields for elasticsearch split argument

* add test cases for scripted fields to elasticsearch test

* update help text for .es() index argument

* move scripted field check into common file, remove stop characters from index pattern title

* use space instead of nothing for replacing stop chars

* wrap index name in quotes instead of removing dash character
2017-11-08 06:52:58 -07:00
Toby McLaughlin
8558a33fc2
[docs] Dehyphenate "open-source" in Docker docs (#14835) 2017-11-08 16:31:15 +11:00
Jonathan Budzenski
34b4e8c05d
[jenkins] Add docs script (#14769)
* [jenkins] Add docs script

* remove xvfb
2017-11-07 15:37:28 -06:00
Jonathan Budzenski
a2fbce565c
[console] Remove cluster/_nodes/stats (#14757) 2017-11-07 14:22:54 -06:00
Jonathan Budzenski
01cc8117e2
[console] Make GET requests converted to POST case insensitive (#14327) 2017-11-07 14:21:09 -06:00
Stacey Gammon
f806d64e60
Add dashboard tests (#14775)
* 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 14:59:18 -05:00
Thomas Neirynck
75acde9950
Do not use ng-repeat-start (#14711) (#14796) 2017-11-07 12:34:55 -05:00
Tim Roes
322e4c078c
Add rel="noopener noreferrer" to external links (#14440)
* Add rel=noreferrer to url field formatter

* Add rel="noopener noreferrer" to external links
2017-11-07 10:44:35 +01:00
Stacey Gammon
1fda5f6260
Get rid of map item specific reducers (#14808)
* 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-06 19:50:11 -05:00
Stacey Gammon
88e159119f
Fix react proptype warning (#14771)
* 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 16:26:10 -05:00
Stacey Gammon
81e89685e1
Don't update layout multiple times in updateLayout function (#14780)
* 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 15:36:46 -05:00
Jonathan Budzenski
29e1fd8a6c
gitignore npm-debug.log (#14797) 2017-11-06 14:36:28 -06:00
Stacey Gammon
ff7b383cee
Clean up over-selectoring dashboard (#14765) 2017-11-06 13:22:12 -05:00
Tyler Smalley
cfaf09df07
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:32:45 -08:00
Jonathan Budzenski
bfd34edddf
Bump chromedriver to 2.33.2 (#14790) 2017-11-06 11:28:36 -06:00
Peter Pisljar
67dead811c
going back to $rootScope.$broadcast (#14784) 2017-11-06 17:19:03 +01:00
Thomas Neirynck
22a2fa0f4a
add more regionmaps tests (#14735) 2017-11-06 09:31:15 -05:00
Tim Roes
3257f12baa
Visualize bug fixes (#14748)
* 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 09:42:54 +01:00
Chris Cowan
c2cabaf123
[TSVB] Fix weird merge problems with Table PR (#14774) 2017-11-03 18:37:40 -07:00
CJ Cenizal
a76ada84fb
Fix spacing bug with LocalTabs. (#14772) 2017-11-03 15:20:46 -07:00
Jonathan Budzenski
7c5ccf03fb
[ci] Build docs (#14130)
* [ci] Build docs

* fix context

* remove docs task from jenkins:unit
2017-11-03 13:59:50 -05:00
Nathan Reese
8b57e4af22
Timelion typeahead for argument names (#14657)
* 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 12:58:13 -06:00
Nathan Reese
ba0f1d5ddb
Remove the Filter Pill merging functionality from Input Controls (#14511)
* add controlledBy field to meta block of filters created by InputControls

* update tests to ensure controlledBy property set
2017-11-03 12:34:30 -06:00
CJ Cenizal
0d9c151775
Reset Chrome's native styling for button border-radius (#14758)
* Use buttons in LocalNav examples.
* Reset button border-radius to 0 to fix Chrome native styles.
2017-11-03 10:44:49 -07:00
Nathan Reese
e274f118f7
Show the x-axis (time) value in legend when hovering over a Timelion graph (#14627)
* 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 09:17:18 -06:00
Stacey Gammon
ac5ae44590
Add new "use margins" option to add separation between panels (#14708)
* 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 19:17:43 -04:00
Stacey Gammon
09d9dfd33d
Hack to fix scroll issue with panels (#14713)
* 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 17:55:12 -04:00
Thomas Neirynck
019502e967
Track layer by name instead of URL (#14139)
* track by name

* dynamically generate id

* add ids

* remove bc change

* remove unused code
2017-11-02 17:54:43 -04:00
Stacey Gammon
92964ef45f
Sync saved searches that don't have local modifications on a dashboard (#14452)
* 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 16:47:40 -04:00
Stacey Gammon
403f966d39
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
2017-11-02 16:05:59 -04:00
Stacey Gammon
abef22b2ef
only show expand toggle, in view mode, on hover (#14706)
* only show expand toggle, in view mode, on hover (and focus for accessibility)

* Fix tests
2017-11-02 15:00:57 -04:00
Nathan Reese
ffcd5da562
Kibana Home page - phase one (#14673)
* 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 12:58:46 -06:00