Commit graph

708 commits

Author SHA1 Message Date
CJ Cenizal 5a09763a34
Revert "Revert "Upgrade to EUI 0.0.19. (#16576)"" (#16622)
This reverts commit 73de529a00.
2018-02-08 16:22:07 -08:00
Court Ewing 73de529a00 Revert "Upgrade to EUI 0.0.19. (#16576)"
This reverts commit dddb906a83.
2018-02-08 08:14:22 -05:00
Kim Joar Bekkelund 88c18d667f
Preinstall check that mentions 'yarn kbn' (#16572) 2018-02-08 13:40:57 +01:00
CJ Cenizal dddb906a83
Upgrade to EUI 0.0.19. (#16576) 2018-02-07 19:01:32 -08:00
Kim Joar Bekkelund e58b43f744
Prettier + ESLint setup (#16514)
* Move .eslintrc (yaml) to .eslintrc.js (js)

* Add Prettier setup to ESLint

* Run Prettier on @kbn/build

* Update style guide with Prettier
2018-02-05 18:18:43 +01:00
Court Ewing 271a941621
lint: error on innerHTML and family (#16477)
* lint for innerHTML and family

Browser apis like innerHTML and document.write are dangerous when used
incorrectly, so we should not be using them unless we explicitly opt-out
of the linting rule on a case by case basis.

* add no-unsanitized to eslint peerDependencies
2018-02-04 08:38:37 -05:00
Kim Joar Bekkelund 43dfbf01dc Babel preset package (#16479)
* [babel-preset] turn into a package

* switch to @kbn namespace

* [babel] pin babel-preset-env to 1.4.0, newer versions don't shim symbols

* [yarn] update lockfile
2018-02-03 12:24:16 -07:00
Kim Joar Bekkelund c8f3efd4ef
Rename @elastic/kbn-build to @kbn/build (#16507) 2018-02-03 12:04:35 +01:00
Kim Joar Bekkelund 136ded978f
Build multiple Kibana packages for production (#16313)
* Build packages before running ESLint on CI

* Add production task to kbn-build

* Ensure packages are bootstrapped before running the build

* Run ESLint on kbn-build
2018-02-02 20:49:57 +01:00
CJ Cenizal b27c5772cf
Upgrade EUI to 0.0.18. (#16486) 2018-02-02 10:11:02 -08:00
Yuri Astrakhan 638ee3f6ba
Bump jquery to ^3.3.1 (#16472)
* Bump jquery to ^3.3.1
2018-02-02 05:53:28 -05:00
Spencer f8738752e6
[yarn] remove locked angular resolution (#16422) 2018-01-31 11:24:04 -07:00
Spencer 8cc0775c49
[yarn] remove locked moment resolution (#16418)
* [yarn] remove locked moment resolution

* [yarn] upgrade moment to latest minor upgrade

* [kibana/fieldFormats/date] fix test, see https://github.com/elastic/kibana/pull/16256#issuecomment-360592151

* [ui/timepicker] fix test to have valid date
2018-01-31 11:16:36 -07:00
Tim Roes f346455470
Fix metric contrast (#16296)
* Update EUI to 0.0.14

* Make metrics text white when on dark color
2018-01-30 19:12:13 +01:00
Yuri Astrakhan 0d400a5462
bump vegalite dep, fix dispose (#16335) 2018-01-29 19:04:29 -05:00
Yuri Astrakhan e47ce5544f
Use nocanvas vega-lib instead of original vega (#16137)
Fixes #16110
2018-01-26 11:06:54 -05:00
Brandon Kobel 6a629f6014
Adding CustomEvent polyfill for IE11 support (#16275)
* Adding CustomEvent polyfill for IE11 support

* Fixed version

* Fixed version in the yarn.lock as well

* Back to ^
2018-01-25 09:38:16 -05:00
Kim Joar Bekkelund 08e48aa847
Kibana build tool (#15055)
* Introduce `kbn`, the Kibana build tool

* yarn kbn

* Make all deps devDeps

* Exclude __fixtures__ folder from Jest to avoid warnings

* Review fixes

* Update readme

* Use 'yarn kbn'

* Consistent rootPath

* Link to kbn tool

* Unsupported URL 'debug help' in contributing guide
2018-01-24 10:34:52 +01:00
Brandon Kobel b992281223
Updating datemath to 4.0.2, fixing bug with IE11 (#16167) 2018-01-19 14:05:58 -05:00
Kim Joar Bekkelund fa6736f31d
Upgrade license checker (#16147) 2018-01-19 08:49:55 +01:00
Yuri Astrakhan 764d1587ca
Bumped Vega dependency 2.0.8->2.0.9 (#16133) 2018-01-18 14:31:04 -05:00
Brandon Kobel b6537e67c7
Upgrading the datemath.parse syntax to version 4.0 (#15999)
* Upgrading the datemath.parse syntax to version 4.0

* [@elastic/datemath] bump to version 4

* Updating yarn.lock for datemath-js@4.0

* Updating to dateamath-js@4.0.1
2018-01-17 08:15:01 -05:00
Spencer 215d9a066a Upgrade react deps (#16025)
* [yarn] upgrade react deps

* [yarn] reinstall pivotal-ui so that react dep is deduped

* [yarn] remove unused deps

* [react-ace] update snapshots to include new aria props

* [react-input-range] update snapshot with new allowSameValues prop, default is still false

* [react-select] update snapshots with new default from features added since 1.0.0-rc5
2018-01-17 10:14:12 +01:00
Spencer 465bf631b8
[yarn] upgrade makelogs (#16082) 2018-01-16 17:36:56 -07:00
dave.snider@gmail.com 3cd54728fe
EUI 0.0.13: open sans font, along with disc bar alignment fix (#16053)
Updates Kibana to EUI version 0.0.13
2018-01-16 14:57:57 -08:00
Thomas Neirynck 073f375367
Add topojson support / EMS v3 support (#15361)
This adds support for the v3 endpoint of the Elastic Maps Service. This includes support for Topojson files.
2018-01-16 15:30:52 -05:00
Yuri Astrakhan 80a7340872
cleanup dispose, bump VegaLite dep (#16066) 2018-01-16 13:49:09 -05:00
Kim Joar Bekkelund 039e24f56f
Upgrade to Jest 22.0.6 (#16041) 2018-01-16 09:26:34 +01:00
Yuri Astrakhan 1b70e7400a
Migrating vega_vis from plugin (#15014)
Large PR to migrate Vega plugin into the core.
https://github.com/nyurik/kibana-vega-vis

The code underwent a large number of changes and
reviews discussed in the PR thread:
https://github.com/elastic/kibana/pull/15014
2018-01-13 15:14:04 -05:00
Court Ewing 61c7f21111
Remove angular-translate (#13066)
* remove angular translate

* remove angular-translate deps from yarn.lock
2018-01-12 09:13:42 -05:00
Jonathan Budzenski 4a06fd9e0d
Add debug script to set inspect flags (#15967)
* Add debug script to set inspect flags

* remove no-base-path flag
2018-01-10 17:12:20 -06:00
Brandon Kobel 1cfabfb317
Adding a fetch polyfill (#15968)
* Adding a `fetch` polyfill

* "globally" shimming the whatwg-fetch
2018-01-10 14:26:02 -05:00
Nathan Reese 57dfdd58a7
Kibana Home page - phase two (#14749)
* add tutorial directory and home promo section

* tutorial components

* use KuiCodeEditor for displaying instruction code

* move spec files to server so joi can be used. Fetch via rest API

* Adding more tutorials (#4)

* More edits on the Apache logs tutorial

* Added nginx, mysql, and sytem modules for FB

* Moved apache to apacheLogs and added an apacheMetrics tutorial

* Added mysqlMetrics, nginxMetrics, systemMetrics tutorials

* Reduce duplication in the tutorials

This uses common objects for the install and start steps for Filebeat.
Same can be done for MB.

* fix windows path for config file

* add markdown parsing

* use mustache to replace config.kibana.version with kibana version

* add image preview to tutorial introduction

* fix css class name

* add param types constants

* add docs variables

* [WIP] Logstash Netflow module tutorial (#5)

* First draft of Logstash Netflow module tutorial

* Incorporated writing style suggestions

* pass params to template replace logic

* parameter inputs

* use isReadOnly flag from ui-framework for KuiCodeEditor

* dedemorton commits on netflow

* remove trailing slash from base links

* add config.docs.logstash and fix vertical spacing between Content component and commands

* Use logstash docs config variable

* Starting to add Deb instructions

* Fix Logstash documentation link

* Make commands optional

* Refactor: extract common LS instructions

* Edits for the existing tutorials

* change schema to support three instruction types

* [Netflow tutorial] Simplify OSX instructions

* replace axios with fetch

* pass credentials to tutorial fetch

* display cloud instructions when cloud set

* RadioButtonGroup component

* update copy

* add tutorial component jest tests

* content component test

* load isCloudEnabled in home_app

* add functional test ensuring add data tutorials are fetch and displayed

* rename card btns to 'Add data', fix type in tutorial directory tab, remove 'Set up index pattern from tutorial directory'

* move parameters form to right of instruction set title

* add copy snippet button, remove line numbers from command block

* add breadcrumb to tutorial view

* update tutorial jest snapshot

* use componentDidMount and ignore async results if componenent has been unmounted

* define shape of prop for instructionVariants and params. Create NumberParameter and StringParameter components

* add bread crumb to add data directory page

* Add cloud version of the apache_logs tutorial (#16)

* Add cloud version of the apache_logs tutorial

* Added onprem-cloud version as well

* fix styling broken by EUI rebase

* add artifacts to tutorial schema

* fix styling for code block

* [Tutorials] Netflow: instructions for onPremCloud (#18)

* Extract common on-prem cloud instructions so LS and Beats can share them

* Extracting common instructions; adding onPremCloud instructions

* fix copy bug where copy would only contain previously selected text

* make string parameter input type be text

* Implementing Elastic Cloud tutorial for Netflow module (#19)

* More tutorial edits (#20)

* More tutorial edits

This updates the on prem instructions with a step that installs the GeoIP and
UA plugins in ES. It also makes the on-prem steps more consistent with the cloud
instructions which results in less redundancy in the code.

* Show config step for all variants

* More DRY in the tutorial content

* Updated screenshot for apache_logs

* wrap markdown content in markdown-body class

* use EuiFlexGroup to remove wasted space with 'copy snippet' button and instruction text

* change OSX to macOS, use Computed property names for instruction_variant DISPLAY_MAP, replace /app/kibana with kbnBaseUrl, remove unneeded if check in copy_to_clippboard, put getTutorials mixin on server instead of request

* capitilize 'C' in Elastic Cloud

* remove try/catch from copy_to_clipboard

* Removing unrelated instructions

* Copy editing fixes

* Multiply edits to the Beats tutorials (#21)

* Updated Nginx module

* Updated MySQL logs module

* Updated system logs module

* Correct the on_prem_cloud enable steps

* Updated the Nginx metrics tutorial and added screenshot

* Updated the Apache metrics module + screenshot

* Updated the MySQL metrics module + screenshot

* Updated the system metrics module + screenshot

* prevent 'Copy snippet' button text from wrapping

* [Netflow tutorial] Windows instructions (#22)

* [Netflow tutorial] Adding onPrem instructions for Windows

* Removing unrelated/superfluous instructions

* Adding Windows instructions for onPremElasticCloud and elasticCloud

* use EuiImage so tutorial images are clickable to view in full screen

* fix jest tests

* set fullScreenIconColor and alt options for EuiImage, add space between command block and instruction text
2018-01-10 07:20:38 -07:00
Kim Joar Bekkelund b40f55654b
Revert removal of history dependency (#15956)
* Revert "Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938)"

This reverts commit 2fdaf868d9.

* Update lockfile
2018-01-10 13:59:28 +01:00
Spencer 0fde087ca2 Switch to Yarn (#15485)
* switch to yarn

* cleanup misc references to npm

* [yarn] loosen dependency ranges so yarn will merge more deps

* fix linting error now that moment uses ESM

* [licenses] font-awesome changed the format of its license id

* Use local yarn

* Misc fixes

* eslintignore built yarn file

* Remove mkdir which doesn't do what it should do

* Check build without upgrading lots of versions

* Fix license check

* too many moments

* Better description

* Review fixes

* Lock to angular@1.6.5

* More specific version locks

* Revert "More specific version locks"

This reverts commit 11ef81102e.

* Revert "Lock to angular@1.6.5"

This reverts commit 3ade68c14c.

* rm yarn.lock; yarn

* Forcing a specific version of React, Angular, Moment

* Using vendored version of yarn in ci

* Use --frozen-lockfile

* fixes
2018-01-10 13:23:43 +01:00
CJ Cenizal 1f6ea3a399
Update react-ace, react-addons-test-utils, and pui tooltip dependencies (#15944)
* Upgrade react-ace to 5.5.0 for compatibility with react 16.0.0.
* Remove unused react-addons-test-utils dependency.
* Replace pui tooltip dependencies with pivotal-ui dependency.
2018-01-09 16:57:58 -08:00
CJ Cenizal 2fdaf868d9
Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938) 2018-01-09 12:51:57 -08:00
Spencer fb61c7d9ac
[npm] bump grunt-esvm (#15937) 2018-01-09 13:10:33 -07:00
Chris Cowan 43bf1dbf4a
Remove MathJS Feature (#15652)
* Reverting a258f1af4

* Revert "[TSVB] Add support for Math Aggregation to tables (#14553)"

This reverts commit d2537d8039.

* Revert "Math Aggregation to support Sibling Aggs for TSVB (#13681)"

This reverts commit 9c9fb17fef.

* removing old partial bucket cliping from table vis

* Adding support for percentiles for bucket_script args

* removing old partial bucket cliping for table vis

* Fixing support for drop last bucket

* Adding unsupported agg message
2018-01-09 12:25:33 -07:00
Nathan Reese 056a641634
upgrade to eui 0.0.11 (#15870) 2018-01-05 18:13:09 -07:00
Spencer e4edbae2d6
[eslint-config-kibana] upgrade to v0.15.0 (#15831) 2018-01-03 10:59:59 -07:00
Shaunak Kashyap 6397616d5a
Bumping EUI version + updating code for breaking changes (#15815) 2018-01-02 12:05:08 -08:00
Spencer d29a3e2cde
Upgrade eslint (#15796)
* [eslint] upgrade eslint-related deps

* [eslint] remove snake_case destructured keys
2017-12-30 02:03:28 -07:00
Yuri Astrakhan a1a8aacc22
Upgrade to jQuery 3.2.1 (#15674)
* Upgrade to jQuery 3.2.1

The jquery-migrate showed a number of warnings,
but no errors, so it should be safe to use.

Warnings mostly related to bind, unbind, focus, ...
https://github.com/jquery/jquery-migrate/blob/master/warnings.md

To enable jquery-migrate, I added it to package.json, and added
a require('jquery-migrate') to the webpackShims/jquery.js right
after the require('jquery').

* Breaks in jQuery3: $(window).offset()

* await field.type(), update chromedriver
2017-12-22 12:46:39 -05:00
CJ Cenizal b0e25a9466
EUI: Reset CSS #2 (#15657)
* Add EUI v0.0.7 as a dependency.
- Add support for using dark theme EUI CSS in Dashboard.
- Set light theme as the default.
- Add comments to chrome.jade about role of theme node.
- Add (WTFPL OR MIT) to acceptable licenses.

* Remove old reset CSS.
- Remove naked element selectors from base.less.
- Remove Bootstrap resets.
- Remove UI Framework reset.
- Remove unused reset styles from UI Framework.

* Fix CSS regressions caused by removal of CSS reset.
- Replace usage of sr-only with euiScreenReaderOnly.
- Apply euiButtonEmpty classes to the 'Add a filter' button.
- Fix Notification padding and layout.
- Apply euiTabs styles to Timepicker mode tabs.
- Fix layout of Available Fields heading in Discover.
- Add padding to Popular Fields container in Discover.
- Push down Selected Fields heading in Discover sidebar.
- Fix appearance of links in Discover sidebar.
- Fix height of pills in Filter Bar.

* Fix timepicker tests.
- Remove kbn-accessible-click from timepicker buttons.

* Fix functional tests.
- Use byCssSelector inside of testSubjects.find.
- Delete flaky view_edit.js test: 'when time changed is stored with dashboard'.
- Delete flaky view_edit.js test: 'and preserves edits on cancel > when time changed is stored with dashboard'.
- Delete flake Gauge Chart tests. EUI changed the font size, and the text within the gauges doesn't render when the window is too small.
2017-12-18 16:43:32 -08:00
archana 36652c2dbc
[CLI] Readable logs on Windows with chalk colors (#15557)
* [colors] try new cli colors

* [colors] try magentaBright instead of magenta

* [colors] try white for log text

* [colors] replace all remaining ansicolors with chalk

* [colors] try yellowBright instead of yellow

* remove ansicolors from package.json

* [tests] attempt to fix tests

* [tests] attempt to fix tests again

* [color] backgrounds, cleanup
2017-12-15 14:35:10 -06:00
Tyler Smalley 5f126b4e3a
Bumps node to 6.12.2 (#15612)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-15 10:15:08 -08:00
CJ Cenizal 1005e27522
Downgrade babel-preset-env to 1.4.0 and babel-preset-react to 6.22.0. (#15595) 2017-12-13 12:17:52 -08:00
Stacey Gammon 56b9a7c802
Add mechanism for dashboard snapshots (#15463)
* Add mechanism for dashboard snapshots

* Adjust wait for render function since it needs to be 2, not gt 0.

Should be obsolete when the new render stuff is complete.

* resize images using new library so comparisons work across different screen resolutions

* use jimp comparison and see if expanding to expanded panel mode helps when comparing across browser/os

* Try to ensure window size

* Experiment with a smaller window, see if screenshot dimensions change

Update screenshot for new window dimensions

* Try cover + quality, see what the diffs look like.

* Stop trying to get TSVB to pass, try area charts

There is a timezone bug with tsvb:
https://github.com/elastic/kibana/issues/15501

* gah, cover didn't work, check resize

* bump render counter to 6, as it should be.

As it turns out, the visualization was not done re-rendering to
maximized mode

* Bump threshold for comparison

* reduce down to a single test run

* Don't use an environment variable to detect updateBaselines cmd line flag
2017-12-13 13:41:40 -05:00
CJ Cenizal 190eb695b0
Fix some bugs in the UI Framework caused by the React 16 upgrade. (#15544) 2017-12-12 09:48:19 -08:00