Commit graph

14734 commits

Author SHA1 Message Date
Thomas Neirynck
ac6c4cd3ef improve tag cloud doc (#9356) 2016-12-02 18:56:22 -05:00
Shaunak Kashyap
d635c11c61 Update mappings for kibana index (#9280)
* Update buildNum mapping from string/not_analyzed to keyword

* Change index-pattern type mappings from string -> keyword

* Updating unit test

* Updating string mappings for various saved object types

* Fixing mapping for index pattern title field

This needs to be text because other types in the Kibana index also have a field named "title", whose mapping needs to be text. We can't have the same field have different mappings in different types within the same index.

* Removing unused files

* Removing test file because corresponding source file is gone now
2016-12-02 10:54:47 -08:00
Brandon Kobel
083d564a7c Modifying the dashboard grid to not unnecessarily set appStatus.dirty (#9307) 2016-12-02 12:01:59 -05:00
Stacey Gammon
f432698c27 Save/rename flow fix (#9087)
* Save/rename flow fix

- Use auto generated ids instead of coupling the id to the title which
creates problems.
- Adjust UI to make the save flow more understandable.
- Remove confirmation on overwrite since we will now be creating
duplicate objects even if they have the same title.

* use undefined instead of null

* Change titleChanged function name

* address code review comments

* Add isSaving flag to avoid checkbox flicker, fix regression bug from refactor.
Added tests and fixed a couple bugs
Updated info message

* Update doc and nav title with new name on rename
don't hardcode Dashboard
2016-12-02 09:33:30 -05:00
Court Ewing
9d79d8bc63 build: remove deepModules hackery (#9327)
The deepModules hacks in the build system were added to support the long
paths that resulted from npm2, but npm3 fundamentally addresses that
problem, so deepModules is no longer necessary. In practical terms, npm3
shouldn't ever cause path lengths to become so long that they trigger
path length problems on certain operating systems.
2016-12-01 19:52:37 -05:00
Spencer
dd1105eceb upgrade makelogs (#9295) 2016-12-01 17:10:29 -07:00
Spencer
467a5bddb3 [git] ignore extra files in the root config/ directory (#9296) 2016-12-01 17:10:17 -07:00
Thomas Neirynck
8569bd1fce Skip assertion when the test blips. (#9251)
Tests fails intermittently, and for identical reasons. When this occurs, skip the test. This only occurs in CI and cannot be reproduced locally.

Additional changes:
- Use async/await to improve legibility.
- Move async behaviour to beforeEach and keep test stubs synchronous to improve labeling of tests.
2016-12-01 18:18:42 -05:00
CJ Cenizal
c989ee152f Change loading screen background to white to make it less distracting when navigating between apps. (#9313) 2016-12-01 11:33:28 -07:00
Court Ewing
a15d1c90cf settings: do not query ES for settings in non-green status (#9308)
If the ui settings status is not green, that means there is at least one
dependency (so elasticsearch at the moment) that is not met in order for
it to function correctly, so we shouldn't attempt to determine user
settings at all.

This ensures that when something like the version check fails in the
elasticsearch plugin, Kibana correctly behaves by not attempting
requests to elasticsearch, which prevents 500 errors and allows users to
see the error status on the status page.

We also now periodically check for compatible elasticsearch versions so
that Kibana can automatically recover if the elasticsearch node is
upgraded to the appropriate version.
2016-12-01 12:54:27 -05:00
Matt Bargar
4ef3b68409 Add docs on all available console server config options (#9288) 2016-11-30 17:56:05 -05:00
Stacey Gammon
ddfa603927 Panel clean up (#9282)
the right syntax is ‘require’ not ‘requires’, but it isn’t needed
anyhow (and throws an error if the right syntax is used).
2016-11-30 16:40:15 -05:00
Matt Bargar
cd3269bf96 Fix sorting on scripted date and boolean fields (#9261)
The elasticsearch API only [supports][1][2] sort scripts of type `number` and
`string`. Since dates need to be returned as millis since the epoch for
visualizations to work anyway, we can simply add a condition to send dates
as type number in the sort API. ES will cast booleans if we tell them
its a string, so we can add a similar condition there as well.

[1]: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/search-request-sort.html#_script_based_sorting
[2]: aeb97ff412/core/src/main/java/org/elasticsearch/search/sort/ScriptSortBuilder.java (L359)

Fixes: https://github.com/elastic/kibana/issues/9257
2016-11-30 16:04:06 -05:00
Stacey Gammon
0266a9adbe Code clean up (#9262) 2016-11-30 12:28:19 -05:00
Jonathan Budzenski
6759e25780 [plugin cli] Retry folder rename on windows eperm (#9260) 2016-11-30 12:22:50 -05:00
Thomas Neirynck
1aaa3813ca Mouse out over legend should not cause errors to the console (#9263) 2016-11-30 10:43:04 -05:00
szydan
8d642709bd move timepicker's styles to separate less file (#9117) 2016-11-29 15:03:47 -07:00
CJ Cenizal
7cdd29822f Use data attribute to select loading message, instead of CSS class… (#9248)
* Use uniquely and semantically named data attribute to select loading message, instead of CSS class since that creates a brittle coupling between JS and CSS.
* Formalize this rule in the CSS style guide.
2016-11-29 14:21:57 -07:00
Court Ewing
4d6e0d726e Removes "global-style" setting for npm (#9256)
This change, which was originally introduced in #9136, resulted in much
larger installs for Kibana (50MB larger in dev mode), which isn't a
reasonable tradeoff for the convenience that global-style provides.
2016-11-29 15:43:57 -05:00
Pablo Sanchez
4cc4ddf22e Update client node for Coordinating only node (#9178)
Since client node doesn't exist anymore, this should be replace by the coordinating only node.
2016-11-29 13:17:31 -05:00
Thomas Neirynck
8a528dcd97 Tagcloud fixes (#9194)
* Improve robustness

Tagcloud was subsceptible to race conditions, potentially yielding stale clouds.
- Introduced queue to explicitly keep track of outstanding jobs and avoid clobbering of the state.
- Expanded unit tests

* ensure tagcloud expands to full height in reporting

* remove magic numbers
2016-11-29 11:31:37 -05:00
Matt Bargar
10eb827133 Fix filters for complex painless scripted fields (#9171)
* Fix filters for complex painless scripted fields

Painless scripted fields that consisted of more than a single expression
would break when the user attempted to filter on them in Discover or
Visualize because of the naive way we were building them. We now wrap
the user's script in a lambda so that it can be as complex at they need
it to be. The only special exception is that the user cannot define
named functions since those cannot go inside a Painless lambda.

Fixes https://github.com/elastic/kibana/issues/9024
Related https://github.com/elastic/elasticsearch/pull/21635

* DRY it up

* Phrase tests

* Only include necessary comparators and add tests
2016-11-29 10:51:33 -05:00
Stacey Gammon
5d689aa5ed fix issue with hiding loading message in embedded mode (#9235)
* fix issue with hiding loading message in embedded mode

* Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.
2016-11-28 16:44:03 -05:00
aquister
2e34898f31 replace non-US-ASCII characters in kibana.yml 2016-11-28 10:29:44 -05:00
Stacey Gammon
469a211483 Create tests for savedobject.js in prep of refactoring and changes (#9127)
* Create tests for savedobject.js in prep of refactoring and changes

* Address code review comments

* Remove needless injector param, replace with es
2016-11-28 09:40:06 -05:00
Stacey Gammon
6d271b04bf Add ability to delete timeline sheets (#9191)
Note there is a bug that already exists in timeline where the
notify.info message disappears immediately.  Not fixing in this PR, but
the delete info message suffers the same bug as the save info message
does already.
2016-11-28 08:47:52 -05:00
Spencer
6f1cd39f65 [server/uiSettings+shortUrl] surface errors from es (#9214)
* [server/uiSettings+shortUrl] surface errors from es

* [uiExports/replaceInjectedVars] update the uiSettings stub

* [uiSettings] correct test cases after moving from 401 -> 403
2016-11-23 16:51:12 -07:00
Spencer
8d003a1675 [status/api] send the kibana version and build info (#9195) 2016-11-23 15:38:20 -07:00
Spencer
9527a8f2ca render-counter directive (#9206)
* [docTable/row] delay first render until watchers initialize

* [docTable/row] emit a renderComplete event, count in table directive

* [renderCounter] unify render counting login into directive

* [docTable] remove unused var
2016-11-23 15:03:47 -07:00
Jonathan Budzenski
0e7b5c7b06 Prevent crashing from incompatible nodes without http when logging (#9181)
* Do not crash for warning and error nodes without http published address

* [es version check] Prevent failure on incompatible nodes without http
2016-11-23 13:18:05 -06:00
Clinton Gormley
a0a1fbda56 Fix UI link to filebeat getting started 2016-11-23 17:16:28 +01:00
Peter Pisljar
11f5711aa2 fixing timelion Y axis #9114 (#9197) 2016-11-23 15:02:31 +01:00
Joe Fleming
4556ac3b94 Trigger renderComplete on DOM instead of the Vis (#9176)
* correctly use implementsRenderComplete from vis config

* set implementsRenderComplete on all vis types

* emit on DOM instead of the vis

* vis doesn't need to be an EventEmitter

* listen for renderComplete on visualize

set and update element attributes as the event(s) fire, and indicate if they ever will

* [vislib/handler] fall through to lower return

* [vislibRenderbot/tests] reduce expected call count

* [vis/tests] add $element to test injectors

* [markdownVis] fix test
2016-11-22 09:45:06 -07:00
Thomas Neirynck
31a6cbab6d Add Tag Cloud Visualization
A tag cloud visualization is a visual representation of text data, typically used to visualize free form text. Tags are usually single words. The font size of word corresponds  with its importance.
2016-11-21 17:03:25 -05:00
Spencer
85913ab1fc [draggable] continue to work when debug info is disabled (#9153) 2016-11-21 14:50:35 -07:00
Spencer
e62c48d9ae [npm] install deps "global-sytle" (#9136)
Installing dependencies "global-style" creates a top-level directory in `node_modules` for each direct dependency, and then creates a flat tree of dependencies inside each of those.

I prefer this method because it prevents accidentally depending on a dependency of a dependency, and makes it easier to find dependencies in `node_modules`.

Unfortunately the `node_modules` directory will be a little deeper.
2016-11-21 13:51:13 -07:00
Peter Pisljar
5ef7a524c1 fixing error when vis has no spy panel (#9115) 2016-11-21 17:56:06 +01:00
CJ Cenizal
f0a8887f7b Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items. (#9133)
* Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items.

* Run checkPlugins task as part of test:ui:runner task.
2016-11-19 10:08:43 -08:00
trevan
62c2e312a1 Wrap the breadcrumb in a div that has height (#9126) 2016-11-18 13:04:31 -08:00
CJ Cenizal
93a6667bdc brush histogram 2 (#9039)
* support scripted fields

* update column_chart test to check brush for ordered data

* brush histogram

* incorporate changes request by cjcenizal

* fixed typo

* support scripted fields

* update column_chart test to check brush for ordered data

* Fix init_x_axis unit tests.

* add brush_event test

* Fix small timezone bug in brushEvent tests. Polish test descriptions.
2016-11-18 10:23:22 -08:00
Spencer
dd46f75b6e Add a method for plugins to add injected vars to every app (#9071)
* [uiExports] add replaceInjectedVars() export type

* [ui] do not assume es plugin is always there

* [server/status] fix typo

* [ui] add errror handling to /app/{id} endpoint

* [ui] add tests for replaceInjectedVars()

* [npm] swap out jsdom with cheerio

* [server/ui] continue extender => replacer rename
2016-11-18 10:35:30 -07:00
CJ Cenizal
f1717660a9 Update README with links to resources, and remove old getting started instructions (made redundant by elastic.co getting started guide). (#9104) 2016-11-18 09:30:43 -08:00
CJ Cenizal
96a668be29 Add original message back to loading screen. (#9098)
* Add original message back to loading screen. Run CSS through autoprefixer.

* Make kibanaWelcomeView and kibanaWelcomeLogo styles available to plugins which may need them, by moving them into ui_app.jade.
2016-11-17 11:36:37 -08:00
Jonathan Budzenski
34d7bde075 [plugin cli] Wrap arguments in quotes to preserve whitespace (#8945) 2016-11-17 10:10:24 -06:00
Matt Bargar
5032b91d73 Add a note on multi-statement scripted field limitation (#9090)
Multi-statement scripts are currently incompatible with the way we
create filters on scripted fields. We're investigating the possibility
of enhancing elasticsearch to fix this issue, but we may have to
fallback on showing users a warning if we can't reach an agreement in
the near term.

See https://github.com/elastic/kibana/issues/9024
Related https://github.com/elastic/elasticsearch/issues/21479
2016-11-17 11:00:05 -05:00
Peter Pisljar
3b0cfa5bd3 visualizations emit 'renderComplete' event when done rendering (#8914)
* visualizations emit 'renderComplete' event when done rendering (#8914)
2016-11-17 08:56:03 +01:00
Kevin Kluge
d539acf59a Update plugins doc to give compatibility warning (#9109) 2016-11-16 14:42:55 -08:00
CJ Cenizal
1f5d6c8abc Encode embedded loading logo SVG to work in Firefox. (#9089) 2016-11-16 10:12:38 -08:00
a22d236d91 docs: Remove "v" from version in Docker docs 2016-11-16 13:53:56 +11:00
CJ Cenizal
038a8340b8 Add checkPlugins task to check for plugins before running tests. (#8981) 2016-11-15 16:11:03 -08:00