Commit graph

16242 commits

Author SHA1 Message Date
Brandon Kobel
8d4d56a0b0
Sharing - Preserve Layout (#14707)
* Adding method to expose the dashboard app container size to reporting

* Adding a data-shared-items-container attribute to the viewport

* Making visualize tell us how large they are

* Removing the controller methods that returned the item size

* Moving the sharing attributes to be on the actual elements, so we can
figure out their dimensions

* Passing the savedObj to the Visualize elements adding the data- attrs

* Adding the title/description to the Dashboard

* Dispatching the initial title/description

* Reverting some accidental whitespace changes

* Fixing metadata selectors

* Adding newline at end of file...

* Putting the $emit('renderComplete') back

* Passing only the savedObj to the Visualize Editor Controller

* Setting the description on the $scope.vis so we don't have to pass the
SavedObj

* Reverting more TSVB title/description code

* Removing savedObj from scope

* Putting $scope.vis back to vis
2017-11-16 08:02:15 -05:00
Kim Joar Bekkelund
f167a00543
Remove 401 error wrapping (#14324) 2017-11-16 12:06:37 +01:00
Nathan Reese
25ed343633
[home] feature directory - make icon and description be part of href (#14947)
* make icon and description be part of feature href

* do not change background color - just underline title
2017-11-15 19:48:52 -07:00
CJ Cenizal
b0985f9f2c
Add (MIT AND Zlib) to acceptable licenses. (#14985) 2017-11-15 17:12:32 -08:00
Lisa Cawley
85293f9750
[DOCS] Remove X-Pack release note reference (#14983) 2017-11-15 15:22:03 -08:00
dave.snider@gmail.com
fb8c72e802
Fix some accessibility coloring issues (#14972)
Fixes table contract and some discover contrast issues.
2017-11-15 14:41:35 -08:00
Stacey Gammon
d7c8e76cfb
Stop listening for ready:vis to fetch from courier (#14848)
* Stop listening for ready:vis to fetch from courier

This means saved searches will get requested in their own msearch but
this actually improves dashboard loading because waiting on saved
searches can slow down a whole dashboard.  Splitting up visualizations
from saved searches is an improvement and it cleans up the code, so I
think we should do this.

* Push courier.fetch into search_embeddable_handler
2017-11-15 11:31:39 -05:00
Tim Roes
815cfe1069
[Accessibility] Refactor font slider for accessibility (#14817)
* Refactor font slider for accessibility, fix #12905

* Limit input fields min/max values

* Prevent crossing of min/max values

* Revert "Prevent crossing of min/max values"

This reverts commit 575dfac0b5.

* Use UI framework classes
2017-11-15 14:36:18 +01:00
Spencer
5cddc10077
Upgrade to eslint 4 (#14862)
* [eslint] upgrade to 4.10.0

* [eslint-config-kibana] limit jest config to jest test files

* [ui_framework] remove trailing comma from rest-spreads

* [dashboard/tests] tag jest helpers with .test.js suffix

* explicitly import expect.js where used

* [eslint] apply auto-fixes

* [eslint] manually add/wrap some parens for compliance

* [npm] point to local packages for testing/review

* [jest] remove .test extension from jest helpers

* [ui_framework] fix trailing comma removal from 3bc661a1c8

* [packages] upgrade eslint packages
2017-11-14 18:16:59 -07:00
Nathan Reese
94b2b324aa
Timelion typeahead for argument values (#14801)
* timelion argument value suggestions for legend function

* update functions with argument value suggestions

* use async/await instead of promise resolve/reject for suggestion generation

* lookup value suggestions for es index and timefield arguments

* custom handlers for es metric and split arguments

* update suggestions unit test

* remove duplicate code from insertSuggestion switch

* refactor arg_value_suggestions to provide three methods instead of single getSuggetions method

* template literal

* update es index argument desc to include note about type ahead support
2017-11-14 10:56:16 -07:00
Spencer
a3014d7a63
[eslint] add eslint dev script (#14889) 2017-11-14 10:11:59 -07:00
Tyler Smalley
188796314d
Removes index.mapper.dynamic from test fixture (#14930)
This was removed in ES 6.0+

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-14 07:25:38 -08:00
lcawley
e41564c991 [DOCS] Fixed broken link in tilemap.asciidoc 2017-11-13 19:48:37 -08:00
Court Ewing
0bfeb8cdf9 docs: fix erroneous references to es-ref 2017-11-13 20:28:56 -05:00
Matt Bargar
5321d7a567
Remove support for expression based scripted fields (#14310)
This PR removes the ability to create scripted fields with the expression language. It also adds an error message to the scripted field list page if any expression scripts already exist which instructs the user to convert all their scripts to painless.
2017-11-13 15:39:53 -05:00
Chris Roberson
a5bd0af318
[Management] Address UI searching bug with index pattern creation (#14646)
* Move this logic to a separate directive. Also fix a couple bugs with it around how it interacts with angular.

* Updated variable name

* Handle some edge cases and simplify code

* Fixing typo and further simplyfing code
2017-11-13 14:10:37 -05:00
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