Commit graph

16873 commits

Author SHA1 Message Date
Nathan Reese abd70b22bd
fix data table styling (#16031)
* fix data table styling

* remove styling from pagination buttons, fix styling on kbn-table headers
2018-01-16 12:34:50 -07:00
Yuri Astrakhan 80a7340872
cleanup dispose, bump VegaLite dep (#16066) 2018-01-16 13:49:09 -05:00
Tim Roes 2116eecb8a
Listen to resize events in <visualize> (#16048)
* Add enable method to ResizeChecker

* Listen in visualize for resize events

* Listen on resize event

* Fix rendering timing issue
2018-01-16 19:47:35 +01:00
lcawley 29683b542a Merge remote-tracking branch 'upstream/master' 2018-01-16 08:40:15 -08:00
Chris Roberson bc3f36095f
[Management] Index pattern step in React! (#15936)
* Index pattern step in React!

* Remove dead lines

* Ensure this only shows up when applicable

* PR feedback

* Use pager

* Add tests for lib/

* PR feedback

* Tests and PR feedback

* More tests and PR feedback

* New jest functionality
2018-01-16 11:08:40 -05:00
Chris Cowan a169ac1093
Fixes bug with filter ratio (#16052) 2018-01-16 08:01:15 -07:00
Tim Roes a7273ee559
Add missing discover labels (#16030)
* Add missing discover labels

* Add aria-pressed for column toggle
2018-01-16 09:35:49 +01:00
Kim Joar Bekkelund 039e24f56f
Upgrade to Jest 22.0.6 (#16041) 2018-01-16 09:26:34 +01:00
Tyler Smalley 41d905309b
[optimizer] More aggressive chunking of common/vendor code (#15907)
Previously, we were not aggressive in combining common code which resulted in duplicates included in the bundles.

As an example `node_modules/elasticsearch-browser/elasticsearch.angular.js` is present in the following chunks:

* kibana.bundle.js
* dashboardViewer.bundle.js
* apm.bundle.js
* monitoring.bundle.js
* ml.bundle.js
* timelion.bundle.js
* graph.bundle.js

Vendored code (anything inside node_modules) is placed in vendors.bundle.js while everything else with more than two references is placed in commons.bundle.js.

This has a couple positive side-effects (numbers are with x-pack & canvas):

* Decreased build time. Seeing builds go from 475.76 seconds to 274.72.
* Decreased memory overhead. Uses roughly 1/3 the memory overhead.
* Decreased bundle size. A 68% reduction in overall bundle size. Going from 66.16 MB to 21.13 MB.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-01-15 08:15:28 -08:00
Kim Joar Bekkelund cae1a82140
Skip flaky CLI manager test (#16045) 2018-01-15 14:35:11 +01:00
Tim Roes 001534fcb6
Stabilize and fix visualization rendering (#15972)
* Check on uiState directly instead of broken appState check

* Remove uiState listener in visLib

This isn't needed anymore, since the encapsulating visualization or
visualize will take care of listening on uiState changes and causing a
rerender.

* Properly check for changes in visualization

* Only listen on resize events in visualization

Since we don't need to fetch new data, when a visualization is resized
we got rid of the resize listener in visualize and just use (and fix)
one in visualization

* Resize check the actual graph element (without legend)

* Remove unused parameter

* Mount editor template before compiling

* Share the observer to prevent multiple scope listeners

* Properly wait for legend to render

* Listen on visualization element again

* Remove redundant listener
2018-01-15 10:18:38 +01:00
Tim Roes c11bb351d5
Fix some styling issues (#16023)
* Fix border of vis view

* Fix pagination looks

* Fix functional tests
2018-01-15 10:13:49 +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
dave.snider@gmail.com c5001b1f55
Homepage / index pattern design cleanup (#16005)
Rebuilds most of the homepage using EUI components. Adjusts styles to be closer to mocks.
2018-01-12 15:59:54 -08:00
Lukas Olson e6b65fc4c6
Add advanced setting to control quick ranges (#15975)
* Add advanced setting to control quick ranges

* Fix test

* Add docs for quick ranges

* Remove comment
2018-01-12 14:11:42 -07:00
Nathan Reese 6511fc264f
[home] display tutorial artifacts (#16000)
* display launch dashboard button at end of add data instructions

* add 'View exported fields' button

* view exported fields open in new tab

* use Writer to avoid modifing global Mustache object
2018-01-12 11:18:23 -07:00
Spencer 4b92c7481c
[docs/logging] document useUTC flag (#16018) 2018-01-12 10:39:24 -07:00
Peter Pisljar e65ccfa5c7
check if data hash changed instead of stringifying (#15988) 2018-01-12 17:42:28 +01:00
lcawley cbdc8313f8 Merge remote-tracking branch 'upstream/master' 2018-01-12 08:21:53 -08: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
Peter Pisljar 7431ec1538
fixing boolean filters (#15927) 2018-01-12 15:00:58 +01:00
Peter Pisljar 96bedef1fa
fixing log scale error (#15984) 2018-01-12 13:26:40 +01:00
lcawley b79f110f1c Merge remote-tracking branch 'upstream/master' 2018-01-11 15:02:18 -08:00
Nathan Reese 9ccc963370
[home] Add target=_blank to all markdown links (#15995)
* Add target=_blank to all markdown links

* add rel property

* fix jest test
2018-01-11 15:14:30 -07:00
spalger 5d49d52328 [functional/context] disable flaky test 2018-01-11 13:46:42 -07:00
Nathan Reese 4d331227c1
fix alignment of step headers and step content (#15994) 2018-01-11 13:13:19 -07:00
Chris Cowan aa589c800f
Create check for scaledDataFormat and dateFormat in xaxisFormatter (#15997) 2018-01-11 12:09:05 -07:00
lcawley 86a8c60f33 Merge remote-tracking branch 'upstream/master' 2018-01-11 08:56:38 -08:00
Tim Roes 4be8b1ca16
Use euiCallOut for experimental banner (#15989) 2018-01-11 17:36:54 +01:00
Brandon Kobel 738c5e7f85
Functional tests comparePngs write resized images to the session directory (#15976) 2018-01-11 07:59:41 -05:00
Kim Joar Bekkelund 07a67916c4
Updates for kibana-extra folder (#15471)
* Update docs to handle kibana-extra

* Add info about plugin directory structure to docs
2018-01-11 09:17:04 +01: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
Spencer edaaadb790
[ftr/integration/withEsArchiver] assert exit code is 0 (#15867) 2018-01-10 15:41:52 -07:00
lcawley 4bd3263a61 Merge remote-tracking branch 'upstream/master' 2018-01-10 11:37:11 -08: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
Kim Joar Bekkelund 97df0b64d8
Download Yarn on CI (#15966) 2018-01-10 19:30:53 +01:00
Nathan Reese 2570eeb639
fix broken depenencies (#15960) 2018-01-10 08:46:45 -07:00
Kim Joar Bekkelund 9ac62fcda5 Update lockfile 2018-01-10 15:29:32 +01: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
Kim Joar Bekkelund 2bfe5b14f3 Update Yarn lockfile 2018-01-10 13:28:43 +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
Yuri Astrakhan 222d79a5c4
Removed href=# from a button (#15947) 2018-01-10 02:53:38 -05:00
Yuri Astrakhan 7731a7384b
Added rel=noreferrer to _blank target (#15948) 2018-01-10 02:53:15 -05: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 2ee17cd1ec
[ui/UiApp] sort used modules so entry files can be cache keys (#15910)
* [ui/UiApp] sort used modules so entry files can be cache keys

* [ui/bundles+apps] test changes and verify assumptions down to appEntryTemplate
2018-01-09 13:41:27 -07: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 ea88ea1ead
update DashboardCloneModal to use EUI framework (#15697)
* update DashboardCloneModal to use EUI framework

* EuiModalOverlay changed to EuiOverlayMask

* fix jest test
2018-01-09 10:29:31 -07:00