Backports PR #9612
**Commit 1:**
server: downgrade ECANCELED logs to debug
Just like we do for EPIPE and ECONNRESET, we can downgrade ECANCELED
client errors to the debug logging level rather than treating them as
errors.
* Original sha: c2c2bbe42c
* Authored by Court Ewing <court@epixa.com> on 2016-12-22T18:41:04Z
Backports PR #9590
**Commit 1:**
Improve spy tab performance on Discover
Switching between tabs in the spy panel takes a really long time in the
Discover histogram. The root cause is that there is an expensive forced
layout happening. It's expensive because the "response" tab includes all
500 hits from the search response which is a lot of content. This
affects all the tabs because we're using ng-show instead of ng-if,
meaning we're incurring the cost of layout on all that content even when
it's not being shown. This PR switches to ng-if to speed up all of the
tabs other than "Response".
The response tab remains slow because the vis is re-rendered any time
uiState changes, and when the vis is re-rendered it triggers forced
reflows. This is a non-trivial issue to fix that Peter is already
working on separately, so for now we'll settle for only speeding up the
other tabs.
Fixes https://github.com/elastic/kibana/issues/9464
* Original sha: e333cc7cf2
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-12-21T16:44:43Z
Backports PR #9446
**Commit 1:**
Bump elasticsearch client
* Original sha: c007b5534c
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-12-12T18:51:41Z
**Commit 2:**
Bump elasticsearch version in tests entry template to master
* Original sha: 2419fe3e21
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-12-12T19:13:27Z
Backports PR #9437
**Commit 1:**
Add close button to localNavDropdowns.
- Make Timelion docs dropdown scroll only the table.
- Make Timelion tutorial a fluid height, instead of fixed.
* Original sha: f149a440a2
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-10T00:15:50Z
**Commit 2:**
Use chevron for localDropdownCloseButton.
* Original sha: e4c62eb465
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-10T00:49:44Z
Manual backport
tag cloud did not work with empty responses correctly. One of the side-effects is that the back button did not work properly. For example, pressing the back button would not empty out the screen and show stale clouds.
This also caused a type-error. Empty configurations meant that we could not access any aggregation-configs to produce a label.
Backport of renderComplete change (#9183) happened before Tagcloud was backported to 5.x/5.1. This caused a divergence in master vs 5.x/5.1 in the tag-cloud code.
Backports PR #9307
**Commit 1:**
Modifying the dashboard grid to not unnecessarily set appStatus.dirty
* Original sha: 2431ec0c5d
* Authored by kobelb <brandon.kobel@elastic.co> on 2016-12-01T16:23:19Z
Backports PR #9251
**Commit 1:**
Skip assertion when the test blips.
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.
* Original sha: d5b6879eb5
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-29T18:32:45Z
Backports PR #9313
**Commit 1:**
Change loading screen background to white to make it less distracting when navigating between apps.
* Original sha: 816084335b
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-01T18:10:26Z
Backports PR #9308
**Commit 1:**
settings: do not query ES for settings in non-green status
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.
* Original sha: 43742b2cd4
* Authored by Court Ewing <court@epixa.com> on 2016-12-01T17:02:19Z
Backports PR #9260
**Commit 1:**
[plugin cli] Retry folder rename on windows eperm
* Original sha: 398662fc84
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-29T20:05:19Z
Backports PR #9263
**Commit 1:**
Mouse out over legend should not cause errors to the console
* Original sha: e6880651ad
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-29T21:44:03Z
Backports PR #9167
**Commit 1:**
[draggable] continue to work when debug info is disabled
* Original sha: 7bed6e8b2c
* Authored by spalger <email@spalger.com> on 2016-11-19T00:53:28Z
Backports PR #9194
**Commit 1:**
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
* Original sha: af5d5c6db7
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-23T00:20:04Z
**Commit 2:**
ensure tagcloud expands to full height in reporting
* Original sha: de95bf17b9
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-28T23:13:18Z
**Commit 3:**
remove magic numbers
* Original sha: 011474c620
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-28T23:33:48Z
Backports PR #9171
**Commit 1:**
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
* Original sha: b2a86bb02e
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-21T23:18:20Z
**Commit 2:**
DRY it up
* Original sha: 927de50d38
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-22T16:21:21Z
**Commit 3:**
Phrase tests
* Original sha: 79e69bd730
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-22T16:48:12Z
**Commit 4:**
Only include necessary comparators and add tests
* Original sha: 5b9137b592
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-22T17:38:59Z
Backports PR #9235
**Commit 1:**
fix issue with hiding loading message in embedded mode
* Original sha: a5d4aaa621
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z
**Commit 2:**
Fix match as well
This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.
* Original sha: 1f6d7d9389
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
Backports PR #9181
**Commit 1:**
Do not crash for warning and error nodes without http published address
* Original sha: 89e6ded545
* Authored by Daniel Hodan <danielhodan@avocode.com> on 2016-11-04T19:15:02Z
* Committed by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T15:16:47Z
**Commit 2:**
[es version check] Prevent failure on incompatible nodes without http
* Original sha: 020dfd3ff6
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-11-22T16:20:23Z
Backports PR #9206
**Commit 1:**
[docTable/row] delay first render until watchers initialize
* Original sha: 4945e088c1
* Authored by spalger <email@spalger.com> on 2016-11-23T18:57:22Z
**Commit 2:**
[docTable/row] emit a renderComplete event, count in table directive
* Original sha: 641f9af0e3
* Authored by spalger <email@spalger.com> on 2016-11-23T18:58:21Z
**Commit 3:**
[renderCounter] unify render counting login into directive
* Original sha: 0c084acc97
* Authored by spalger <email@spalger.com> on 2016-11-23T21:26:44Z
**Commit 4:**
[docTable] remove unused var
* Original sha: 275bf70a95
* Authored by spalger <email@spalger.com> on 2016-11-23T22:00:52Z
Backports PR #9214
**Commit 1:**
[server/uiSettings+shortUrl] surface errors from es
* Original sha: 9c9b55100e
* Authored by spalger <email@spalger.com> on 2016-11-16T01:56:38Z
**Commit 2:**
[uiExports/replaceInjectedVars] update the uiSettings stub
* Original sha: 65b1e0a50b
* Authored by spalger <email@spalger.com> on 2016-11-23T23:38:04Z
**Commit 3:**
[uiSettings] correct test cases after moving from 401 -> 403
* Original sha: c2c7fdbb8c
* Authored by spalger <email@spalger.com> on 2016-11-23T23:41:08Z
Backports PR #9183
**Commit 1:**
BACKPORT: 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
* Original sha: 719026009e
* Authored by Joe Fleming <joe.fleming@gmail.com> on 2016-11-22T16:49:16Z
Backports PR #8104
**Commit 1:**
tagcloud squashed
* Original sha: 1282011fab
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-18T21:08:29Z
**Commit 2:**
ensure tags are not turned upside down
* Original sha: 68e09f477a
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:43:41Z
**Commit 3:**
remove unnecessary background
* Original sha: dba79b87ad
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T03:55:54Z
**Commit 4:**
add option to hide the label
* Original sha: 7f32544fa0
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T04:08:45Z
**Commit 5:**
use double-ende slider for font-size selection
* Original sha: 00c9ea8291
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T15:26:14Z
**Commit 6:**
give slider some more space
* Original sha: b282084cc5
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:38:55Z
**Commit 7:**
do not allow 0-sized tags
* Original sha: 42bbc39110
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:44:26Z
**Commit 8:**
fix typo
* Original sha: f753e1a90d
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T16:48:24Z
**Commit 9:**
make capitalization consistent
* Original sha: 63101d2c36
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T19:47:44Z
**Commit 10:**
doc checkin
* Original sha: fefa40a4c0
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:21:17Z
**Commit 11:**
minor doc edits
* Original sha: 84a8fc3abe
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:34:32Z
**Commit 12:**
doc build issues
* Original sha: cd2374a052
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-11-21T21:46:59Z
Backports PR #9115
**Commit 1:**
fixing error when vis has no spy panel
* Original sha: c47f84984e
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-17T11:39:29Z
Backports PR #9133
**Commit 1:**
Update PageObjects for Visualize, Dashboard, and Discover to use data-test-subj selectors for menu items.
* Original sha: 84cf9ba9de
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-17T21:28:09Z
**Commit 2:**
Run checkPlugins task as part of test:ui:runner task.
* Original sha: 7cdf829629
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-19T18:07:47Z
Backports PR #9126
**Commit 1:**
Wrap the breadcrumb in a div that has height
* Original sha: a53a8e04dd
* Authored by Trevan Richins <trichins@eastwindnetworks.com> on 2016-11-17T17:36:48Z
Backports PR #9039
**Commit 1:**
support scripted fields
* Original sha: 4a6e9fed25
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-10T22:35:23Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:30:53Z
**Commit 2:**
update column_chart test to check brush for ordered data
* Original sha: 97aab8a61d
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-10T23:06:29Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:32:28Z
**Commit 3:**
brush histogram
* Original sha: 3b6652f745
* Authored by nreese <reese.nathan@gmail.com> on 2016-10-18T20:42:23Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:33:27Z
**Commit 4:**
incorporate changes request by cjcenizal
* Original sha: 0f7e70ab62
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-01T22:08:38Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:33:43Z
**Commit 5:**
fixed typo
* Original sha: 48e5bd6656
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-02T03:39:41Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:33:52Z
**Commit 6:**
support scripted fields
* Original sha: 4a2788109c
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-10T22:35:23Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:34:00Z
**Commit 7:**
update column_chart test to check brush for ordered data
* Original sha: 77c295a36b
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-10T23:06:29Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-10T23:35:31Z
**Commit 8:**
Fix init_x_axis unit tests.
* Original sha: 32d9ce167d
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-11T22:13:06Z
**Commit 9:**
add brush_event test
* Original sha: 22807f2250
* Authored by nreese <reese.nathan@gmail.com> on 2016-11-16T03:56:35Z
* Committed by CJ Cenizal <cj@cenizal.com> on 2016-11-16T18:34:28Z
**Commit 10:**
Fix small timezone bug in brushEvent tests. Polish test descriptions.
* Original sha: 28c8a6a0ea
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-16T19:20:43Z
Backports PR #9071
**Commit 1:**
[uiExports] add replaceInjectedVars() export type
* Original sha: 7ad237cce1
* Authored by spalger <email@spalger.com> on 2016-11-14T22:11:47Z
**Commit 2:**
[ui] do not assume es plugin is always there
* Original sha: 5ac383d476
* Authored by spalger <email@spalger.com> on 2016-11-15T00:28:45Z
**Commit 3:**
[server/status] fix typo
* Original sha: 3a97f69683
* Authored by spalger <email@spalger.com> on 2016-11-15T00:29:19Z
**Commit 4:**
[ui] add errror handling to /app/{id} endpoint
* Original sha: 33aa9def6e
* Authored by spalger <email@spalger.com> on 2016-11-15T00:29:43Z
**Commit 5:**
[ui] add tests for replaceInjectedVars()
* Original sha: 44714533e2
* Authored by spalger <email@spalger.com> on 2016-11-15T00:30:14Z
**Commit 6:**
Merge branch 'master' of github.com:elastic/kibana into implement/extend-injected-vars
* Original sha: d316ff57ae
* Authored by spalger <email@spalger.com> on 2016-11-17T01:54:58Z
**Commit 7:**
[npm] swap out jsdom with cheerio
* Original sha: c0e6a62f81
* Authored by spalger <email@spalger.com> on 2016-11-17T01:58:01Z
**Commit 8:**
[server/ui] continue extender => replacer rename
* Original sha: 3d833e80b0
* Authored by spalger <email@spalger.com> on 2016-11-17T20:55:11Z
Backports PR #9098
**Commit 1:**
Add original message back to loading screen. Run CSS through autoprefixer.
* Original sha: 2f9b817f05
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-16T14:06:27Z
**Commit 2:**
Make kibanaWelcomeView and kibanaWelcomeLogo styles available to plugins which may need them, by moving them into ui_app.jade.
* Original sha: 30a452ee94
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-16T18:24:21Z
Backports PR #9090
**Commit 1:**
Add a note on multi-statement scripted field limitation
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
* Original sha: b4aaed8282
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-15T22:47:26Z
Backports PR #8914
**Commit 1:**
visualize emits renderComplete event once its done rendering
* Original sha: 2195692411
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-04T09:32:29Z
**Commit 2:**
fixing test
* Original sha: 97a390ab3a
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-04T09:48:23Z
**Commit 3:**
adding renderComplete event to timelion
* Original sha: b83387325f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-10T15:14:16Z
**Commit 4:**
adding renderComplete event to timelion
* Original sha: ab94eef9d8
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-11T09:20:32Z
**Commit 5:**
adding implementsRenderComplete property to vis
* Original sha: b2ff87477c
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-16T06:50:19Z
**Commit 6:**
adding helper method on vis
* Original sha: fc78562c2b
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-16T18:21:46Z
**Commit 7:**
adding onRenderComplete method
* Original sha: 451ab9a1db
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-16T18:48:48Z
Backports PR #9089
**Commit 1:**
Encode embedded loading logo SVG to work in Firefox.
* Original sha: c68492bea8
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-15T22:42:21Z
* Implement new 5.0 loading screen.
* Remove old Kibana loading gif.
* Add Open Sans font files to public/assets/fonts dir, and remove some unused ones.
* Serve fonts directly from ui directory, using exposeStaticDir.
Backports PR #9075
**Commit 1:**
Added server.defaultRoute
* Original sha: cb565e1afe
* Authored by Gabriel Moskovicz <gmoskovicz@gmail.com> on 2016-11-15T14:32:23Z
* Committed by GitHub <noreply@github.com> on 2016-11-15T14:32:23Z
**Commit 2:**
Update settings.asciidoc
* Original sha: 1de02971d5
* Authored by Gabriel Moskovicz <gmoskovicz@gmail.com> on 2016-11-15T15:53:52Z
* Committed by GitHub <noreply@github.com> on 2016-11-15T15:53:52Z
Backports PR #9014
**Commit 1:**
Speed up rendering of large docs in doc table
Back in 2014 a utility was added to insert <wbr> (word break opportunity)
tags into doc table fields to improve their display in the browser. This
utility looped over every character in _source when it was selected as a
column in the doc table, which it was be default. That really started to
slow things down when displaying large docs. I compared how the browser
renders things with and without the <wbr>'s and there's almost no
difference, certainly nothing as dramatic as shown in the linked PR
which added this word breaking functionality. Perhaps browsers have
improved in the last two years, or perhaps something changed in our CSS.
Since we're getting no or negligible value from this utility and it
makes Discover impossible to use with large docs, I simply removed it.
Fixes https://github.com/elastic/kibana/issues/6328
Related https://github.com/elastic/kibana/pull/1993
* Original sha: fc443bb76d
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-09T00:11:45Z
**Commit 2:**
Improve word breaking in doc table
To maintain similar word breaking without adding <wbr> tags I've added
some css styles that do essentially the same job. word-break: break-word
gives us the best formatting but it's not a part of the standard yet
(see link below) so I provided an almost-as-good fallback with
break-all.
https://bugs.chromium.org/p/chromium/issues/detail?id=492202#c21
* Original sha: ac385245e7
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-11-10T23:01:30Z
Backports PR #9032
**Commit 1:**
Remove dark theme when leaving the Dashboard app.
* Original sha: 700f7508de
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-10T19:40:34Z
**Commit 2:**
Upgrade kibana-ui-framework to 0.0.10: localNav dark theme styles.
* Original sha: c3396948be
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-10T19:48:10Z
Backports PR #8176
**Commit 1:**
updating legendPosition to read values from config
* Original sha: 6aa3476a5e
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T08:31:14Z
**Commit 2:**
adding legendPosition setting to tile map
* Original sha: f10fb0ee80
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T08:31:45Z
**Commit 3:**
legendPosition for tile map
* Original sha: 83a513505c
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T08:32:06Z
**Commit 4:**
adding title to tile map legend
* Original sha: 9e08139cb5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T09:05:50Z
**Commit 5:**
fixing top left position
* Original sha: 76f66a814f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-08T10:56:56Z
**Commit 6:**
adding text/value to legendPosition options
* Original sha: c8ede10fa6
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-11-09T11:52:46Z