Commit graph

638 commits

Author SHA1 Message Date
Richard Hoffman
8b4c052889 babel 6 upgrade (#9702)
* [npm] upgrade babel

The upgrade to babel 6 requires an upgrade to all of the associated modules, which meant that a few other things changed at the same time. The most notable is the way that we handle our babel-options, which is now done with an npm module and includes using the babel-loader's "presets" query string param.

This meant changes to the babel_options.js module and extending it to help setting up the "babel-register" module, which was previously copy-pasted in several places.

* [mtodules] upgrade to support babel6 module semantics

* [eslint] fix lint errors

* [babel] ignoer massive fixture files

* [cli/errors] use Object.setPrototypeOf since subclassing Error is broken

* [babel] Upgrading core babel libraries

[babel] Use WIP babel-6-fix branch of babel-preset-kibana

* Fix broken test

* [babel] Reverse unnecessary module.exports changes

* Fix notifier

* Use babel presets and plugins directly

* [babel/options] resolve preset/plugins paths for better plugin compatibility

* [babel/options] use babel-preset-env for correct node settings

* [babel] cache babel compilation in webpack like we thought we were
2017-02-09 14:48:55 -07:00
Court Ewing
5c361eb4ec Bump httpolyglot to use our fork (#10225) 2017-02-07 11:29:55 -05:00
Jonathan Budzenski
242047a683 Bump node to 6.9.5 (#10135) 2017-02-01 11:54:57 -06:00
Tyler Smalley
e6669ee19d Remove libsass as a dependency (#9803)
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>
2017-01-09 20:27:54 -08:00
Shaunak Kashyap
78dd094c5e Bumping up makelogs version so it works with latest Kibana+ES (#9685) 2016-12-30 10:23:42 -08:00
Spencer
9bdbc260c6 [webpack] upgrade to @elastic/webpack-directory-name-as-main v2 (#9601)
* [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.
2016-12-22 09:32:03 -07:00
Spencer
1982062e67 [npm] use elastic webpack fork (#9540) 2016-12-19 13:54:04 -06:00
Spencer
cb3219c798 [webpack] fix loader query string usage (#9497)
* [webpack] pin to fork with fixed loader aliases

* [optimizer] upgrade to postcss+autoprefixer

* [timelion] convert uiExports.modules -> webpackShims

* [uiExports] remove implementation-leaking and unused uiExport types

* [optimizer] remove unused imports

* [uiBundlerEnv] add a method for exporting global import aliases for special cases
2016-12-15 16:11:42 -07:00
CJ Cenizal
2f93b18f11 Add new components to UI Framework. (#9462)
- 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.
2016-12-15 11:22:09 -08:00
Spencer
db60725a02 [eslint] enable object-curly-spacing and no-global-assign (#9486)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule
2016-12-14 13:29:32 -07:00
Spencer
e488a16e6f [eslint] reenable no-extra-semi and quotes rules (#9473)
* [eslint] re-enable no-extra-semi and quotes rules

* [eslint] update to version 0.2.2 of eslint config

* [eslint] autofix
2016-12-13 18:17:47 -07:00
Martin Hickey
7028a88efd Kibana Globalization - Phase 1 (#7545)
* Add low level i18n plugin

Manages languages that are available and is responsible for loading translated
content at the granularity of a plugin.

To be done:
 - APIs for store and retrieval

* Use Kibana install as root for the translation store directory

Setting the path for storing the bundled language translation files to
<KIBANA_INSTALL>/data/store_translations/<PLUGIN_NAME>

* Updated i18n core plugin APIs to be asynchronous

To be done:
 - Better error handling in APIs
 - Fix threading issue with storePluginLanguageTranslations API

* Fix thread synchroization issue in storePluginLanguageTranslations

* Update error handling in i18n core plugin

* Change to use NodeJS mkdirp function for creating directories recursively

Updates with review comments from @srl295. Changed export syntax to show the
exported functions at end of file.

* Add REST API for getting translations of a language for a plugin

To be done:
 - Add algorithm to decide on the language for a plugin by comparing the accept languages
from the REST call and the plugin supported languages
 - Add REST API tests

* Add algorithm for determining plugin language when retrieving translations

Client would pass languages used in the 'accept-language' header. These
languages would then be compared against the plugin supported languages
and best compared language would be selected.

To be done:
 - Add REST API tests

* Add API to return all registered plugin language translations

* Add HAPI API to get all plugins translation files

* Update register translations API to be independent of plugin name and language

The register API is updated to be independent of plugin name and language. The API will now
traverse the path given and create language bundles as per language files it traverses.
The translations files structure has also been simplified to be just key/value objects.

To be done:
 - Add hapi API to get translations
 - Extend the API tests to test responses

* Update API test

* Add eslint fix for API test

* Update with review comments

From review https://github.com/elastic/kibana/pull/7545#issuecomment-231147435
following comments updated:
- README, .gitignore, and .eslintrc are not needed in a core plugin
- package.json only needs name and version
- unit tests need to go in a tests directory otherwise they won't get picked up
by the grunt tasks. Also our convention is to name the test file with the same
name as the module it's testing (so i18n_tests.js should just be i18n.js)
- For consistency with the rest of the code base, rename the data directory to fixtures.
- Prefer const (or let if necessary). Don't use var.
- Use ES6 imports/exports rather than commonjs style
- Only export the i18n module's public API. For instance, I don't think getPluginTranslationDetails is used outside of the i18n module, so it shouldn't be exposed publicly. If you want to expose it for testing purposes, I would recommend creating an i18n directory with an index.js file that exports the module's public API, and a separate i18n.js file with the "private" API. index.js will be for public use, i18n.js will be for private internal use.

* Update after review comments

From review (https://github.com/elastic/kibana/pull/7545#issuecomment-231884490):
- i18n module API should return promises for async operations instead of using
callbacks
- All filesystem access should be async
- Unit tests need to be updated based on new proposed plugin structure
(single language file, not split by view)

From design (https://github.com/elastic/kibana/issues/6515#issuecomment-231400097):
- Removed API as will consider in later phase

TODO:
- Make write function async

* Update after review comments

Updated write function to be asynchronous

* Update registerTranslations API to take absolute translation file as argument

The API originally took the directory as the argument but following reviews it
was decided to change to absolute file because it will be less brittle
since it is more explicit.

* Translate the Kibana welcome message

Translates the start-up message (“Kibana is loading ...”)in the Jade template.

To be done:
 - Means to register the core plugin translations. They are currently added
in the fixtures directory as static files. Need to be generated on the fly.

* Add build task to generate core plugin translations

Task which calls registerTranslations API and then a task which copies the
regsitered translations to <kibana_root>/build/kibana

* Add hook to optimize module to add registration during dev startup

Registration of the core plugin translations during development start of
Kibana server. The translations include the welcome message and server error
startup message.

* Handle scenario when the user preferred language header is not passed

The UI when loading asks i18n plugin which language translation to use
depending on the user preferred language header 'accept-language'.
This commit is to handle scenario where header is not passed. The algorithm
then chooses the default language.

* Replace registering of translations at plugin install time to the plugin init phase

This change follows review comments in:
https://github.com/elastic/kibana/issues/6515#issuecomment-236237218

* Update after review comments

Comments:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-72890673
- https://github.com/elastic/kibana/pull/7545#discussion-diff-72894762

* Update after plugin folder layout changes in Kibana

This require to use <kibana_root>/data for registered translations
and i18n plugin moved to core_plugins from plugins.

Refer to PR for more details:
https://github.com/elastic/kibana/pull/7562

* Update translation registration to file path rather than bundling

After review discussions it was agreed to just register the absolute paths
to translation files rather than bundling each file into one central file
at registration.

* Update review comments

This commit contains the following review comments:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74661282
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74661392
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74662271
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74663235
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669201
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669269
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669419
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669628
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74799382

* Update review comments

The following review comments are included in the commit:
- https://github.com/elastic/kibana/pull/7545#discussion_r74663515
- https://github.com/elastic/kibana/pull/7545#discussion_r74666995
- https://github.com/elastic/kibana/pull/7545#discussion_r74805552

* Expose the i18n APIs in the server object for plugin access

Plugins should call the i18n plugin APIs through the server object
and not directly from the module.

This closes he following comments:
- https://github.com/elastic/kibana/pull/7545#discussion_r74662598
- https://github.com/elastic/kibana/pull/7545#discussion_r74669327
- https://github.com/elastic/kibana/pull/7545#discussion_r74669765

* Update accept-language-parser module to 1.2.0

Module version 1.2.0 fixes issue:
https://github.com/opentable/accept-language-parser/issues/8

This commit updates review comments:
https://github.com/elastic/kibana/pull/7545#discussion-diff-75525214
https://github.com/elastic/kibana/pull/7545#issuecomment-240290461

* Add i18n default locale as a configurable item

Adds 'defaultLocale' configurable item to the i18n plugin configuration.
The default locale is used for translations if the locale specified by user
is not supported.

This commit satisfies the review comment:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669970

* Move UI i18n wrapper functionality into a module

This commit better structures the i18n capability so that it can be called
in UI code in a clearly defined fashion with minimum code. It also fixes
potential race conditions.

This commit updates review comments:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74804791
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74801802
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74670457

* Fill any missing translations using translations from default locale

The default language translations are loaded and are compared against the selected
language translations. The comparison can then highlight any missing translation
keys and can load the default translations keys as needed. This helps to unsure
where possible that a translation string is available in most scenarios even if not
in the locale requested.

This commit resolves review comments:
- https://github.com/elastic/kibana/pull/7545#issuecomment-239202583
- https://github.com/elastic/kibana/pull/7545#issuecomment-239203734

* Add unit tests for the i18n UI wrapper functions

* Fix issues after rebase with master

* Add translation keys verification tool

This tool helps to check that translation keys are translated. This tool can be
used for non-angular translation constructs like the Jade templates.

* Updates after review comments

Updates for review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-3748114

* Update after review comments

Update for review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-3937958

To be done:
- Update of unit tests for UI and server
- Call of verify translations

* Update unit tests after review changes

There was a number of changes to the i18n module and the ui i18n wrapper
following review comments. This commit is to update the unit tests with
respect.

* Add build task for verify translations

* Update the kibana i18n IDs to be prefixed with kibana

* Update verify translations to test registered translations

It was testing the static translation files. It is now updated to
test the translations registered when Kibana server is started and
the plugins have initialized.

* Update after review comments

Updates following review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-5529711

* Update after review

This commit contain updates after the following review:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-5707951

* Updates after review

Updates for review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-6656571

* Update after review

Updates for the following review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-6911265

* Update after review

Updates after the following review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-7084765

* Update unit tests to use expect throwError

* Update after rebase with master

Loading message changed following merge of commit
26c53e8a8d (diff-e25d7fee746a4f249e17f87c02fd95f8R55)
This required update to the welcome message and how it is called.

* Update following review

Updated the following review comments:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-9297662

* Update the algorithm to return the locale

The algorithm to return which locale to use for translations based on the user
locale list and the regsitered locales is updated in this commit. The algorithm
previously did an exact match on all the user locales first before (by priority)
then checking for best case match. The algorithm is now modified to check each
user locale starting with the highest priority first for an exact match and then
for best case match. If no match it then moves to the next user locale with
the next highest priority. This is to follow the priority list that a user
browser is configured for where there maybe a locale translation available
but might not be the exact match with regard to the locale code and/or script.
An example of this is that the highest priority locale of the user is 'en-US'
but the locale translation available is 'en'. It is better select the 'en'
locale rather than select the next highest locale which is an exact match.

* Update after review comments

Updates after the following reviews:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-9785665
https://github.com/elastic/kibana/pull/7545#pullrequestreview-9786404

* Fix after merge with master

Change in the flo and layout of ui index meant that acceptLanguages were not
being passed. This commit is an update to fix this so that the welcome
messages are loaded.

* Update after review comments

This commit is for updates after the following review:
https://github.com/elastic/kibana/pull/7545#pullrequestreview-10435175

* Fix issue when unit test run in CI as core translations are registered

When unit tests are run on a test server (like in the CI), it will start
Kibana server and register the core translations. This means that the i18n
unit tests need to be able to store the existing registration prior to
testing and replace after testing.

* [server/ui] move i18n into ui module

* [server/ui] restore renderApp() method signature

* [server/ui] unify i18n logic in UiI18n class

* [server] move translation files into "translations" dir

* Update i18n module to loaded by multiple server instances within the one process

* Update i18n module to a class

Moving the i18n module into a class so as to encapsulate the registered
translations which means there can be different and distinct instances per process.
This is to accomodate the user case where there might be multiple Kibana server
instances in a process and the localization should be at the server level.

* Identify private members in a class with underscore-prefix convention

* Remove redundant translation from core translation file

Message starting with 'Give me a moment...' is no longer part of loading
message folowing a rebase with master.

* [ui/i18n] reject translations files that do not use absolute paths

* Update config item locale to defaultLocale

* Update after review comments

- Update after following review: https://github.com/elastic/kibana/pull/7545#pullrequestreview-12775161
- Also, fix syntax mess following rebase with master of src/optimize/index.js

* Fix rebase with master error

* Add task for verifying translations in CI

* Fix lint errors
2016-12-13 17:55:48 -07:00
Spencer
4b2ac10381 Fix build with ui framework (#9463)
* [uiFramework] include sass deps in production so we can rebuild

* [build] do not copy the doc_site source into the final build

* [licenses] allow code that uses the `Unlicense`
2016-12-13 14:41:57 -07:00
Jonathan Budzenski
e125db2b02 Bump elasticsearch client (#9446)
* Bump elasticsearch client

* Bump elasticsearch version in tests entry template to master
2016-12-13 08:34:37 -06:00
CJ Cenizal
1e315d92c9 Migrate UI Framework source into Kibana. (#9192)
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.
- Refactor UI Framework directory structure.
- Remove babel-polyfill.
- Include SCSS synchronously.
2016-12-12 17:54:56 -08:00
CJ Cenizal
10f7880bc8 Add close button to localNavDropdowns. (#9437)
* Add close button to localNavDropdowns.
- Make Timelion docs dropdown scroll only the table.
- Make Timelion tutorial a fluid height, instead of fixed.

* Use chevron for localDropdownCloseButton.
2016-12-12 14:54:40 -08:00
Spencer
0c736724b0 Upgrade eslint (#9357)
* upgrade eslint, all related deps, and config files

* replace gruntify-eslint with basic eslint-cli wrapper

* arrow-IIFEs must be invoked outside of the parens

* move import statements before their use

* reindent to satisfy new indentation check algorithm

* place missing semicolon

* ignore copy-pasted decode geohash code

* [grunt/eslint] fix argument spacing

* [gurnt/eslint] add comment about contents of report

* [grunt/tasks] use `export default`
2016-12-12 13:44:18 -07:00
Spencer
dd1105eceb upgrade makelogs (#9295) 2016-12-01 17:10:29 -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
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
b066807716 Upgrade kibana-ui-framework to 0.0.11. Re-enable clicks on selected Local Nav menu items. (#9068) 2016-11-14 15:23:40 -08:00
CJ Cenizal
deec2ebfe3 Remove dark theme when leaving the Dashboard app. Add dark theme for localNav. (#9032)
* Remove dark theme when leaving the Dashboard app.

* Upgrade kibana-ui-framework to 0.0.10: localNav dark theme styles.
2016-11-11 12:57:53 -08:00
Peter Pisljar
9b5a96e034 [build] Check SHA sum of downloaded node package (#7746)
* fix #7136 - check SHA of downloaded node binaries
* skips download if --skip-node-download cli argument is present
2016-10-29 17:10:46 +02:00
Spencer
adc95d0955 trim down test harness, remove StackTraceMapper (#8146) 2016-10-28 14:12:48 -07:00
CJ Cenizal
b5444c41c8 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.
2016-10-26 21:39:47 -07:00
Jonathan Budzenski
26a0be8caa
Bump node to 6.9.0 2016-10-18 13:40:27 -05:00
spalger
29eeed22e2 [npm] update chromedriver
The latest macOS version of Chrome is incompatible with the version of chromedriver we currently depend on, so this updates it.
2016-10-14 14:10:25 -07:00
spalger
89a243f605 [hotfix] force gulp-sourcemaps to 1.7.x https://github.com/floridoo/gulp-sourcemaps/issues/238#issuecomment-253634399 2016-10-13 14:09:12 -07:00
Jonathan Budzenski
63c6e9a4da
Bump node version to 6.7.0 2016-10-10 05:57:25 -05:00
spalger
0a93b333fe remove unused npm deps 2016-10-01 02:19:39 +02:00
Tyler Smalley
2fd4920f67 Merge pull request #8313 from tylersmalley/hapi-upgrade
Upgrades Hapi to 14.2.0
2016-09-26 05:39:16 -07:00
Tyler Smalley
4feeff1bb9 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>
2016-09-19 08:03:30 -07:00
spalger
7573105f27 bump grunt-esvm
elasticsearch 5.x uses a slightly different log format, so grunt-esvm needed an update.
2016-09-14 10:53:02 -07:00
CJ Cenizal
a985840692 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.
2016-09-13 10:22:49 -07:00
Jonathan Budzenski
bd0a60156b
Bump grunt-esvm 2016-09-12 19:17:37 -05:00
spalger
d9dac3ffdc [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
2016-09-09 16:02:57 -07:00
spalger
1030689f4a [optimizer] move to querystring-browser package for up-to-date api
Webpack automatically injects libraries to support many node.js APIs in the browser using the https://github.com/webpack/node-libs-browser package. This package uses https://github.com/mike-spainhower/querystring for the querystring module, but that module hasn't been updated in 4 years and doesn't support the modern querystring api.

This change points to the https://github.com/mathiasvr/querystring package instead, which is up to date (specifically it supports the `encodeURIComponent` option of [`querystring.stringify`](https://nodejs.org/api/querystring.html#querystring_querystring_stringify_obj_sep_eq_options).
2016-09-09 14:16:14 -07:00
Court Ewing
48e4edec07 Fix semver version that was incorrectly bumped
This change accidentally happened when bumping the version of Kibana.
2016-09-08 10:31:44 -04:00
Court Ewing
3859958183 Bump to verson 6.0.0-alpha1 2016-09-08 10:23:22 -04:00
Court Ewing
edb7020396 Bump to 5.1.0 2016-09-08 10:21:13 -04:00
Court Ewing
19328b9871 Bump to 5.0.0-beta1 2016-09-08 10:13:21 -04:00
Court Ewing
1f6b66bc21 Bump versions on a handful of node modules 2016-09-06 16:10:54 -04:00
Rashid Khan
13da673bc8 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-09-02 12:47:19 -07:00
spalger
88427e9a43 add test sharding
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.
2016-09-02 10:38:29 -07:00
Rashid Khan
1c47159939 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-08-29 09:09:01 -07:00
Tyler Smalley
ad97552c03 Upgrade to Node 6.4.0
* Updated dependencies to include graceful-fs ~4.0
* Replaced deprecated grunt-s3 package with suggested grunt-aws-s3
* Update licenses task to better support npm 3

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-08-25 08:40:14 -07:00
Tyler Smalley
dad5195bfe Bump elasticsearch and elasticsearch-browser
Resolves issue with Elasticsearch breaking change introduced in https://github.com/elastic/elasticsearch/pull/20001

Fixes #8028

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-08-19 10:00:58 -07:00
Rashid Khan
c50c5fba53 Add timelion tests 2016-08-15 11:29:17 -07:00
Rashid Khan
52b1fea73b Add timelion dependencies 2016-08-12 14:15:58 -07:00
Court Ewing
4b36f9ab65 version 5.0.0-alpha6 2016-08-09 12:18:28 -04:00
Lee Drengenberg
a7942b1056 Merge pull request #7859 from ppisljar/downgradeChromeDriver
upgrade chromedriver 2.21.2 -> 2.22.1
2016-08-03 12:22:15 -05:00
ppisljar
0a1838ef6e upgrading chromedriver to latest version 2016-08-02 13:55:47 +02:00
ppisljar
13d7db3ebe downgrading chromedriver 2016-07-27 17:18:03 +02:00
Jonathan Budzenski
7cf64c75a5
Bump marked 2016-07-27 08:54:33 -05:00
Court Ewing
937dc70724 Bump makelogs to support timestamp changes in ES
Makelogs 3.0.2 is compatible with the latest breaking changes to
timestamps in Elasticsearch master.
2016-07-19 15:48:56 -04:00
CJ Cenizal
f23d98e7db Merge pull request #7591 from cjcenizal/refactor/remove-angular-bootstrap-dependency
Remove angular-bootstrap dependency.
2016-07-05 15:41:14 -07:00
CJ Cenizal
2cf49428a5 Remove bootstrap dependency. Move bootstrap less and glyphicon fonts into src/ui/public/styles/bootstrap and /fonts. 2016-07-05 13:30:48 -07:00
CJ Cenizal
08f5061247 Remove angular-bootstrap dependency. Copy required code into src/ui/public/angular-bootstrap directory for future refactoring and deprecation. 2016-07-05 12:27:20 -07:00
CJ Cenizal
d9cf54f119 Rename 'fields' property to 'stored_fields' to adhere to new ES msearch API.
- Upgrade elasticsearch client to 12.0.0-rc4.
2016-07-05 08:01:52 -07:00
Court Ewing
b940966471 Bump to 5.0.0-alpha5 2016-07-04 09:40:10 -04:00
Court Ewing
117581ffe2 Bump node to 4.4.7 and npm to 2.15.8 2016-06-29 10:48:24 -04:00
CJ Cenizal
37f82f146f Create visual_regression test suite.
- Add test:visualRegression npm script.
- Split up test:visualRegression grunt task into takeScreenshots and buildGallery subtasks.
- Add intern_visual_regression.js test file.
- Rename api_itern.js -> intern_api.js for consistency.
- Refactor delayed exports logic for readability.
- Refactor common.js page object to use ES2015 Class.
2016-06-21 20:50:55 -07:00
CJ Cenizal
5caa6c0626 Merge pull request #7515 from cjcenizal/grunt/visual-regression-subtask
Move visualRegression subtask from npm scripts to grunt task.
2016-06-21 12:03:24 -07:00
CJ Cenizal
ca9b085ef0 Remove test:visualRegression from test npm script.
- Add it to end of test grunt task.
2016-06-21 11:23:40 -07:00
CJ Cenizal
2694a84ea9 Merge pull request #7524 from cjcenizal/improvement/silence-dot-template-log
Update visualRegression task to use Handlebars instead of DoT templates.
2016-06-21 11:18:18 -07:00
CJ Cenizal
e1ef581747 Upgrade to npm@2.15.1, which resolves the discrepenacy with the defined engine, and resolves the licenses task failure wrt abbrev@1.0.7. 2016-06-21 10:51:56 -07:00
CJ Cenizal
45437de0ba Update visualRegression task to use Handlebars instead of DoT templates.
- This eliminates the annoying DoT messages from the terminal.
2016-06-21 10:42:49 -07:00
Matt Bargar
15a4fa1cdd Merge pull request #7372 from elastic/feature/ingest
Add Data - CSV
2016-06-17 16:23:46 -04:00
Lee Drengenberg
e2ff6bb7a5 Merge pull request #7442 from LeeDr/runTestsOnChrome
Re-implement most of PR #7024 switch to Chrome browser
2016-06-17 15:06:40 -05:00
Court Ewing
1e2c953f16 Release task now always publishes to staging
Production builds should never be published directly from a local
machine. Instead, the release command will now publish to a
commit-specific staging URL, so you use it to publish a release
candidate, and then when those builds have been verified, you need to
copy the RC builds from on the staging location on s3 to the production
folder.
2016-06-17 14:26:08 -04:00
Nicolás Bevacqua
6419e5a814 Merge pull request #6791 from bevacqua/feature/custom-toaster-banner
Added a custom banner feature in advanced settings
2016-06-16 16:12:54 -03:00
LeeDr
ae56c13583 merge master 2016-06-16 13:54:01 -05:00
Matthew Bargar
b853d89139 Merge branch 'master' into feature/ingest 2016-06-16 14:23:12 -04:00
Court Ewing
54af670045 Merge pull request #7476 from epixa/datemathbump
Bump datemath to 2.3.0
2016-06-16 14:19:05 -04:00
Nicolás Bevacqua
f36cb6524a Merge branch 'master' into feature/custom-toaster-banner 2016-06-16 14:32:39 -03:00
Matthew Bargar
0065fbaa9b Merge branch 'master' into feature/ingest
Resolved conflicts, still need to move around some add data files.
2016-06-16 12:57:29 -04:00
Court Ewing
49c3401864 Merge pull request #7478 from ycombinator/upgrade-makelogs
Use the latest makelogs
2016-06-16 07:31:39 -04:00
Shaunak Kashyap
aedcdf716d
Use the latest makelogs 2016-06-15 21:25:12 -07:00
Court Ewing
1febea9da6 Bump datemath to 2.3.0 2016-06-15 16:38:24 -04:00
Timothy Sullivan
ac9f59fced bump version to 5.0.0-alpha4 2016-06-15 10:25:06 -07:00
LeeDr
bfcb875c77 Merge master 2016-06-15 11:29:23 -05:00
Court Ewing
dbfee59b66 Merge pull request #7317 from epixa/newbuild
Apply -snapshot suffix during build task
2016-06-14 16:25:39 -04:00
CJ Cenizal
aa47599cd1 Merge pull request #7410 from cjcenizal/improvement/ui-screenshot-coverage
Take screenshots of UI throughout functional tests.
2016-06-14 08:54:17 -07:00
LeeDr
3e22acdaf9 Update intern version to 3.2.3, fix failing test 2016-06-14 10:41:37 -05:00
CJ Cenizal
9e353fd451 Add visual regression screenshot gallery.
- Add 'test:visualRegression' grunt task.
- Run 'test:visualRegression' as part of npm script 'test'.
- Add 'clean:screenshots task'.
- Clean screenshots/session when funtional tests are run.
2016-06-14 08:33:45 -07:00
Court Ewing
4b36d05e52 Bump moment.js to latest version 2016-06-14 07:52:31 -04:00
LeeDr
01255ee4d4 Re-implement most of PR #7024 switch to Chrome browser 2016-06-13 16:03:40 -05:00
Court Ewing
834f56392e Apply -snapshot suffix during build task
The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.
2016-06-11 15:57:30 -04:00
Matthew Bargar
a0915145dd Merge branch 'master' into feature/ingest 2016-06-10 16:27:42 -04:00
spalger
a28dd03d66 updated grunt-esvm to latest 2016-06-09 13:49:31 -07:00
CJ Cenizal
9fa2e82b31 Add screenshot-comparison utility, to protect against visual regressions during CSS refactors.
- Remove test/output and added test/screenshots (requires a Jenkins change).
- Add test/screenshots/baseline images. These document the expected state of the UI.
- Add dependency on image-diff package.
- Add utilities/compareScreenshots.js, which can be run via 'npm run compareScreenshots'.
2016-06-08 15:52:23 -07:00
Matthew Bargar
0a956057f6 Merge branch 'master' into feature/ingest 2016-06-03 15:53:42 -04:00
Nicolás Bevacqua
ef1fb42a68 Merge pull request #6720 from bevacqua/feature/bouncy-castle
Support configuration reloads for logging
2016-06-01 19:03:29 -03:00
Joe Fleming
94cc728851 Merge pull request #6845 from Bargs/ingest/uploadUI
Add Data - CSV Upload UI
2016-06-01 14:51:55 -07:00
Nicolás Bevacqua
59981ba9bc [dep] Bump even-better to 7.0.2 fixing potential memory leak issues. 2016-06-01 17:26:09 -03:00
Lee Drengenberg
b50451f90c Merge pull request #7298 from LeeDr/dashboardTests
New dashboard tests using elasticdump
2016-05-31 17:06:24 -05:00
Nicolás Bevacqua
1cf2979ab2 Merge pull request #6566 from bevacqua/feature/sort-dimensions-dragging
Drag aggregations to sort instead of having up/down arrows.
2016-05-27 18:22:25 -03:00
LeeDr
988be91266 New dashboard tests using elasticdump 2016-05-26 16:32:53 -05:00
Matthew Bargar
02f24b176b Merge branch 'master' into feature/ingest 2016-05-24 17:22:14 -04:00
Nicolás Bevacqua
8df5ecf98a [merge] Merge with master. 2016-05-24 14:15:43 -03:00
Nicolás Bevacqua
87e68ab977 [merge] Merged with master. 2016-05-20 16:43:39 -03:00
Matthew Bargar
57c391aa4e [Wizard] Creates a new CSV Add Data Wizard 2016-05-12 18:15:38 -04:00
Nicolás Bevacqua
22877bcbbf [test] Added draggable container, item, and handles tests. 2016-05-12 11:46:34 +02:00
Matthew Bargar
417d8a3e34 only need the parse portion of the csv package 2016-05-10 17:12:06 -04:00
Nicolás Bevacqua
7bf698acc9 Merge branch 'master' into feature/sort-dimensions-dragging 2016-05-10 16:29:44 +02:00
Jonathan Budzenski
470404ff7e [node] Bump node.js to 4.4.4 2016-05-06 13:31:36 -05:00
Matthew Bargar
19be188367 [API] Use JSONStream instead of manually stringifying 2016-04-29 16:47:29 -04:00
Matthew Bargar
40654d15d1 [API] Add CSV bulk indexing support to Kibana API 2016-04-29 16:47:29 -04:00
Matthew Bargar
0023839423 Merge branch 'master' into feature/ingest 2016-04-29 10:31:42 -04:00
spalger
fe260e0ec6 Merge branch 'master' of github.com:elastic/kibana into implement/babelForFunctionalTests 2016-04-27 23:26:42 -05:00
Matthew Bargar
2f789e2e23 Merge branch 'master' into feature/ingest 2016-04-26 17:45:47 -04:00
Nicolas Bevacqua
79f08d34e9 [merge] Merged master into feature/sort-dimensions-dragging. 2016-04-18 19:35:44 -03:00
Joe Fleming
e634320c35 bump the datemath module to a working version 2016-04-18 14:15:44 -07:00
Court Ewing
78b8e0b58f [internal] Use datemath dependency rather than hardcoding
Datemath was already pulled out into an npm module so it could be reused
in the reporting plugin, so this should essentially be a noop on the
resulting source.
2016-04-18 14:15:44 -07:00
Matthew Bargar
48c719d54f Merge branch 'master' into feature/ingest 2016-04-18 15:48:51 -04:00
Court Ewing
310b812b0b [internal] Use rison dependency rather than hardcoding
Rison was already pulled out into an npm module so it could be reused in
the reporting plugin, so this should essentially be a noop on the
resulting source.

The rison file was originally copied and pasted directly into the Kibana
project, so it doesn't match our styleguide and is unlintable. This
means we basically have to keep our hands off of it. The node module
also has the benefit of including some tests.
2016-04-18 09:41:04 -04:00
spalger
b63bfd2e0a [test] setup babel for the functional tests 2016-04-17 16:58:34 -07:00
Nicolas Bevacqua
01c3a43f19 [pkg] Remove unused "main" field. 2016-04-14 20:24:59 -03:00
Matthew Bargar
d6467689b6 Merge branch 'master' into feature/ingest 2016-04-08 09:52:41 -04:00
Nicolás Bevacqua
9ecaa4373c Merge branch 'master' into feature/sort-dimensions-dragging 2016-04-07 16:53:30 +02:00
Nicolas Bevacqua
f09b374779 [test/fix] Improved test case for logging configuration reloads. 2016-04-06 17:56:23 -03:00
Court Ewing
8a14f45fae Merge pull request #6745 from epixa/bumpeslint
[internal] Bump eslint-config-kibana to 0.0.3
2016-04-06 10:04:01 -04:00
Nicolas Bevacqua
61a6ff52ee [feature/custom-banner] Added a custom banner feature in advanced settings. Fixes #4452. 2016-04-05 18:56:45 -03:00
Timothy Sullivan
f219b3bfd1 [server] generate and manage uuid 2016-04-05 11:31:28 -07:00
Court Ewing
e79b785eb5 [internal] Bump eslint-config-kibana to 0.0.3
Two new rules here:

no-const-assign
no-redeclare
2016-04-01 16:27:22 -04:00
Nicolas Bevacqua
b7dbfb987b [logging] Support configuration reloads for logging. Fixes #4407. 2016-04-01 14:23:02 -03:00
Matthew Bargar
1b6a6f96ed Merge branch 'master' into feature/ingest 2016-03-31 17:58:36 -04:00
Nicolas Bevacqua
64c642d42f Merge branch 'master' into feature/sort-dimensions-dragging 2016-03-30 16:56:14 -03:00
Nicolás Bevacqua
6fa397e790 [contrib] The cake is a lie 🍰 Sort alphabetically. 2016-03-30 16:16:01 -03:00
Nicolás Bevacqua
b1f79b69e4 [contrib] Rank myself higher as a contributor 🚀 Profit. 2016-03-30 16:14:27 -03:00
Nicolás Bevacqua
ab40e4271d [contrib] Adding myself as a contributor! 🎉 2016-03-30 16:05:32 -03:00
Nicolas Bevacqua
bdf321b3f3 [ui] Replace up/down buttons with a drag handle that allows user to sort aggregations. #5563 2016-03-29 13:21:59 -03:00
Matthew Bargar
3e399289bd Merge branch 'master' into feature/ingest 2016-03-28 18:55:46 -04:00
spalger
a7a9b0bb00 [npm] upgrade grunt-esvm 2016-03-28 12:12:24 -07:00
Matthew Bargar
b1e1c63865 Merge branch 'master' into feature/ingest 2016-03-24 18:12:12 -04:00
Jim Unger
c649b49ef8 Merge pull request #6402 from BigFunger/plugin-pack-installer
Plugin pack installer
2016-03-24 09:22:48 -05:00
Rashid Khan
8bc49597f4 Remove growl dependency 2016-03-23 16:25:07 -07:00
Matthew Bargar
d9aecd3941 Merge branch 'master' into feature/ingest 2016-03-23 15:47:57 -04:00
Court Ewing
62316aab1d Remove -reskin from 5.0 snapshot version
This was a leftover artifact from the large design feature branch
effort, and it shouldn't have been pushed to master.
2016-03-23 10:10:03 -04:00
Matthew Bargar
ad01828bab Merge branch 'master' into feature/ingest 2016-03-23 09:53:34 -04:00
Jim Unger
52f653a47d Merge branch 'master' into plugin-pack-installer 2016-03-22 21:22:15 -05:00
spalger
08e9202e20 [npm] update babel 2016-03-22 16:03:37 -07:00
Jim Unger
c0b1b9ac26 Merge branch 'master' into plugin-pack-installer 2016-03-22 11:01:16 -05:00
Rashid Khan
cf838fff96 Merge branch 'master' into feature/design 2016-03-21 12:03:06 -07:00
Matthew Bargar
89c3ecf8d1 Merge branch 'master' into feature/ingest 2016-03-21 14:26:59 -04:00
spalger
75c124c0d1 [npm] bump grunt-esvm for master compat 2016-03-18 14:03:23 -07:00
Matthew Bargar
bbd718708c Merge branch 'master' into feature/ingest 2016-03-18 16:10:43 -04:00
Shelby Sturgis
aae8583455 Merge branch 'master' into feature/design 2016-03-18 12:48:55 -07:00
Nicolás Bevacqua
3491565e7c Merge pull request #6547 from bevacqua/feature/release-distro-ignore-extraneous-files
Ignore OS-specific files in other operating systems
2016-03-18 13:35:16 -03:00
Nicolas Bevacqua
79739ab5ce Ignore OS-specific files in other operating systems. Fixes #4460 2016-03-17 21:05:15 -03:00