Backports PR #10135
**Commit 1:**
Bump node to 6.9.5
* Original sha: e00aa661a7
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2017-02-01T17:07:44Z
Remove libsass as a dependency
libsass is platform specific, therefore we can not ship it as a dependency. Instead, we will commit the compiled CSS for the UI Framework to the repository. This is updated when running `npm run uiFramework:start` which also starts the docs site.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* [npm] use elastic webpack fork
* [webpack] upgrade to @elastic/webpack-directory-name-as-main v2
* bump @elastic/webpack-directory-name-as-main
* import browser mocha with webpackShim
`import 'mocha'` will resolve to `mocha/index.js`, which points to
`mocha/lib/mocha.js`, the node version of mocha. This will not work in
the browser.
Since ng_mock is browser code, we need the mocha build for the browser,
which lives at `mocha/mocha.js`. This isn't referenced at all in the
package.json file, but is references in the bower.json file. Webpack,
however, doesn't observe the bower config, so we need to specifically
reach into the mocha package and point to the `mocha/mocha.js` file.
Backports PR #9497
**Commit 1:**
[webpack] pin to fork with fixed loader aliases
* Original sha: a1e3357615
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T21:57:21Z
**Commit 2:**
[optimizer] upgrade to postcss+autoprefixer
* Original sha: bceecd5929
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-14T23:57:18Z
**Commit 3:**
[timelion] convert uiExports.modules -> webpackShims
* Original sha: 7e90dc6355
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-15T17:20:54Z
**Commit 4:**
[uiExports] remove implementation-leaking and unused uiExport types
* Original sha: 10016f362d
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-15T17:59:04Z
**Commit 5:**
[optimizer] remove unused imports
* Original sha: b841c917f9
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-15T18:01:37Z
**Commit 6:**
[uiBundlerEnv] add a method for exporting global import aliases for special cases
* Original sha: 4969d660df
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-15T18:38:52Z
**Commit 7:**
Merge branch 'master' of github.com:elastic/kibana into fix/webpack-loader-query-strings
* Original sha: bcaf446e7b
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-15T19:45:01Z
Backports PR #9462
**Commit 1:**
Add new components to UI Framework.
- Icon, Link, Button, TextInput, CheckBox, Table, ControlledTable, ToolBar, ToolBarFooter.
- Update Local Nav to use classes with kui prefix.
- Add PostCSS loader to UI Framework webpack.
* Original sha: 644a267ada
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-13T17:22:39Z
Backports PR #9463
**Commit 1:**
[uiFramework] include sass deps in production so we can rebuild
* Original sha: aae8eecade
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T19:08:06Z
**Commit 2:**
[build] do not copy the doc_site source into the final build
* Original sha: fccbe49622
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T19:08:31Z
**Commit 3:**
[licenses] allow code that uses the `Unlicense`
* Original sha: 9406b9e9f3
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-13T20:46:19Z
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 #9192
**Commit 1:**
Migrate UI Framework source into Kibana.
- Add dependencies to package.json.
- Add task for building UI Framework docs and serving locally.
- Import UI Framework scss from autoload/styles.js instead of importing the CSS in base.less.
* Original sha: de3f34f8d5
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-22T22:27:11Z
**Commit 2:**
Refactor UI Framework directory structure.
* Original sha: 4e54844577
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-05T23:03:01Z
**Commit 3:**
Remove babel-polyfill.
* Original sha: 43854bccc4
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-05T23:47:42Z
**Commit 4:**
Fix typos and include SCSS synchronously.
* Original sha: fe5bab1d81
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-10T00:33:17Z
**Commit 5:**
Update with latest changes to UI Framework.
* Original sha: a44140a59d
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-12-13T01:47:09Z
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
Backports PR #9357
**Commit 1:**
upgrade eslint, all related deps, and config files
* Original sha: 054e798a93
* Authored by spalger <email@spalger.com> on 2016-08-24T23:39:11Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:04:20Z
**Commit 2:**
replace gruntify-eslint with basic eslint-cli wrapper
* Original sha: 71732e770f
* Authored by spalger <email@spalger.com> on 2016-09-02T21:33:02Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:41:36Z
**Commit 3:**
arrow-IIFEs must be invoked outside of the parens
* Original sha: b05662cd29
* Authored by spalger <email@spalger.com> on 2016-08-25T17:47:57Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:41:40Z
**Commit 4:**
move import statements before their use
* Original sha: 3572ab8e17
* Authored by spalger <email@spalger.com> on 2016-08-25T17:48:30Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:41:40Z
**Commit 5:**
reindent to satisfy new indentation check algorithm
* Original sha: b31dae18f5
* Authored by spalger <email@spalger.com> on 2016-08-25T17:49:47Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:41:58Z
**Commit 6:**
place missing semicolon
* Original sha: 7b39475116
* Authored by spalger <email@spalger.com> on 2016-09-06T22:27:10Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:42:04Z
**Commit 7:**
ignore copy-pasted decode geohash code
* Original sha: 3c02df9f4f
* Authored by spalger <email@spalger.com> on 2016-09-10T01:49:42Z
* Committed by spalger <spalger@users.noreply.github.com> on 2016-12-02T23:42:04Z
**Commit 8:**
Merge branch 'master' of github.com:elastic/kibana into upgrade/eslint-try2
* Original sha: 1224b1829a
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-10T04:14:32Z
**Commit 9:**
[grunt/eslint] fix argument spacing
* Original sha: 6fa2c6cad0
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-10T04:22:42Z
**Commit 10:**
[gurnt/eslint] add comment about contents of report
* Original sha: 71834ca7ec
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-10T07:59:11Z
**Commit 11:**
Merge branch 'master' of github.com:elastic/kibana into upgrade/eslint-try2
* Original sha: 76e77a7576
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-12T20:17:05Z
**Commit 12:**
[grunt/tasks] use `export default`
* Original sha: 803c0dacba
* Authored by spalger <spalger@users.noreply.github.com> on 2016-12-12T20:19:27Z
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 #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 #9068
**Commit 1:**
Upgrade kibana-ui-framework to 0.0.11. Re-enable clicks on selected Local Nav menu items.
* Original sha: 90dc42d13c
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-11-14T22:26:48Z
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 #8679
**Commit 1:**
Integrate Kibana UI Framework CSS.
- Migrate to new localNav component and subcomponent styles.
- Add support for multi-slot transclusion to kbnTopNav.
- Update Dashboard, Discover, Management, Visualize, Dev Tools, Timelion to use kbnTopNav consistently.
- Update these apps to also display localNavDropdowns consistently, including Timepicker (this mostly meant adding titles).
- Add checkLicenses npm script.
- Add .fullWidth utility class and use it to make search forms 100% width.
* Original sha: b5444c41c8
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-10-14T22:30:48Z
Backports PR #7746
**Commit 1:**
fix#7136 - check SHA of downloaded node binaries
* Original sha: 955972b2b5
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-07-11T19:17:08Z
**Commit 2:**
only skipping download if --skip-download cli argument is present
* Original sha: 325e17245c
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-07T10:54:23Z
**Commit 3:**
updating log messages based on epixas comments
* Original sha: 20b5c4dca2
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-23T06:24:55Z
**Commit 4:**
updating based on courts review
* Original sha: 78c124c0ac
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-10-29T14:44:43Z
Backports PR #8146
**Commit 1:**
trim down test harness, remove StackTraceMapper
* Original sha: ae4ddedaf3
* Authored by spalger <email@spalger.com> on 2016-09-01T16:11:45Z
---------
**Commit 1:**
[npm] update chromedriver
The latest macOS version of Chrome is incompatible with the version of chromedriver we currently depend on, so this updates it.
* Original sha: 29eeed22e2
* Authored by spalger <email@spalger.com> on 2016-10-14T21:03:23Z
Remove Upload Data API
Remove CSV Upload server config
Remove other unused Add Data code
Remove Upload CSV from getting started docs
remove unused npm deps
---------
**Commit 1:**
Upgrades Hapi to 14.2.0
As of Node 6, crypto.pbkdf emits a deprecation warning when the digest isn't explicily set. Under certain conditions we are seeing this warning from Hapi's dependency Iron. Iron resolved this issue as of 4.0.4, which was introduced into Hapi as of 14.0.0.
Node deprecation: 8e8959d3ee
Iron's resolution: 9e0a1ef592
As of Hapi v9, they have removed three build-in plugins from the core which we rely on inert (files and directories), vision (view templates), and h2o2 (proxy). https://github.com/hapijs/hapi/issues/2682
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* Original sha: 4feeff1bb9
* Authored by Tyler Smalley <tyler.smalley@elastic.co> on 2016-09-13T19:20:22Z
---------
**Commit 1:**
Redesign Share UI to emphasize difference between Saved URLs and Snapshot URLs.
- Remove share_object_url.
- Remove clipboard npm dependency.
- Add toggle for switching between Short and Long URLs.
- Add ability to share embedded iframe to saved visualizations, including current global state.
* Original sha: a985840692
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-09-02T20:15:27Z
---------
**Commit 1:**
[state/unhashUrl] use encode-uri-query to generate cleanly encoded urls
By default, the url.format function stringifies the query object and encodes each parameter with `encodeURIComponent()`. This is effective, but does not match the native browser behavior, which is to only encode the non-`pchar` characters as defined by [rfc3986][1]. Because of this, angular's `$location.search()` function uses a function internally called `encodeUriQuery()` to mimic the browser behavior before updating `location.href`.
To bring the same funtionality to the `unhashUrl()` function, the `encodeUriQuery()` was extracted into it's own package and used as the escape handler for `querystring.stringify()`
[1]: https://www.ietf.org/rfc/rfc3986.txt
* Original sha: d9dac3ffdc
* Authored by spalger <spalger@users.noreply.github.com> on 2016-09-09T22:39:57Z
The tests in master are currently failing regularly because our current browser tests are serious memory hogs. Investigation reveals that nearly every test is retaining all of the memory it causes to be allocated. We have made some progress to being able to diagnose the problems, but we expect that problem to take some serious work to fix. We need a short-term solution though, and this is it.
Rather than modify the bundling process, we will shard the top-level test suites by name. For now, we've created 4 shards, but adding new shards is trivial if we need to.
Sharding is accomplished by creating a murmur3 hash of the top level suite names, then bucketing based on the hash output. If a test suite resolves to shard2, but we are running shard1, we simply never pass the function to `mocha.describe()`. Rather than redefine every describe statement, we have shimmed the global `window.describe()` function to accomplish this.