Commit graph

16223 commits

Author SHA1 Message Date
Spencer
98a1c5a0f1
[6.x] Upgrade to eslint 4 (#14862) (#14951)
* [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 20:20:37 -07:00
Spencer
242c6fae2e
[6.x] [eslint] add eslint dev script (#14889) (#14941) 2017-11-14 10:24:00 -07:00
Tyler Smalley
81b9e727bd 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:26:14 -08:00
Jonathan Budzenski
1cd87ef246
[6.x] [ci] Build docs (#14868)
* [ci] Build docs (#14130)

* [ci] Build docs

* fix context

* remove docs task from jenkins:unit

* [jenkins] Add docs script (#14769)

* [jenkins] Add docs script

* remove xvfb
2017-11-14 09:16:16 -06:00
lcawley
939d08c7bc [DOCS] Fixed broken link in tilemap.asciidoc 2017-11-13 19:47:45 -08:00
Court Ewing
f5ea01d97d
docs: list breaking change sections (#14932) 2017-11-13 20:59:17 -05:00
Court Ewing
628d0cd194 docs: fix erroneous references to es-ref 2017-11-13 20:26:32 -05:00
Court Ewing
116ed38a14
docs: 6.0.0 release notes (#14927) 2017-11-13 20:13:25 -05:00
Tyler Smalley
6355b12a46
[docs] Enforce a single type for migrated Kibana index (#14884)
This prevents users from using tools which insert dashboards/visualizations directly into the index, which would cause Kibana to stop functioning.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-13 14:39:44 -08:00
Alex F
a6fe72efb6
Details in Kibana types 2017-11-13 16:00:22 -05:00
Matt Bargar
b20e31fe11
Deprecate expression based scripted fields (#14281)
This PR adds deprecation messages in two places in the Kibana UI. The first is the scripted field creation page, where a message is shown if you've chosen a deprecated language for your script. The second is the index pattern scripted field list page, where a message is shown if any existing scripted fields use a deprecated language. It also adds an error message to the list page if a completely unsupported language is detected.
2017-11-13 15:40:29 -05:00
Chris Roberson
076cea1694
[Management] Address UI searching bug with index pattern creation (#14646) (#14922)
* 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 15:29:24 -05:00
Tyler Smalley
3dff020add 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:33 -08:00
Stacey Gammon
7b9eb6da7b
fix console warning about missing required prop (#14876) (#14897) 2017-11-11 08:10:51 -05:00
Jonathan Budzenski
f02f77fe43
[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:27:37 -06:00
CJ Cenizal
49aa2f2063
Fix Jest warnings for ConfirmModal. (#14892) (#14902) 2017-11-10 09:04:28 -08:00
Tim Roes
544e84b917
Fix broken date range look, fix #12731 (#14837) (#14900) 2017-11-10 17:47:14 +01:00
Tim Roes
6996d0599b
Fix issue, where tags are vanishing after double resize (#14822) (#14899)
* Fix issue, where tags vanishing after resizing

* Also fix rawText in debug log
2017-11-10 17:46:53 +01:00
Stacey Gammon
d813d99caa
Add new title query param to dashboard listing page (#14760) (#14880)
* 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 17:06:30 -05:00
Stacey Gammon
6ded17979c
rename EmbeddableHandler/s => EmbeddableFactory/ies (#14863) (#14881) 2017-11-09 17:05:35 -05:00
Thomas Neirynck
0287054e8c
Do not use ng-repeat-start (#14711) (#14795) 2017-11-09 14:46:23 -05:00
Tyler Smalley
9b1ae201b6
Notice regarding index.format in manual re-index steps (#14828)
This setting is not available until 5.6. Users are technically able to re-index against a previous version. If a user manually migrates their index without this setting and visits the Upgrade Assistant in 5.6, Kibana will still be shown as needing to be re-indexed, however it will fail with "Index .kibana-6 already exists. There may be an unfinished task reindexing to this index, or this index may have not been cleaned up previously."

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-11-09 10:26:24 -08:00
CJ Cenizal
615242ef74
[UI Framework] Add isReadOnly prop to KuiCodeEditor. (#14804) (#14875)
* 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:24:11 -08:00
Chris Cowan
0b3de29410 [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:24:23 -07:00
Nathan Reese
85dc72177f
Timelion query language support for scripted fields (#14700) (#14844)
* 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 10:37:42 -07:00
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