Commit graph

16510 commits

Author SHA1 Message Date
Yuri Astrakhan
4831cbac37
cleanup dispose, bump VegaLite dep (#16066) (#16068) 2018-01-16 14:49:15 -05:00
Tim Roes
bb5d3ecb0e
Listen to resize events in <visualize> (#16048) (#16067)
* Add enable method to ResizeChecker

* Listen in visualize for resize events

* Listen on resize event

* Fix rendering timing issue
2018-01-16 20:37:30 +01:00
Brandon Kobel
27e5c90855
Functional tests comparePngs write resized images to the session directory (#15976) (#15991) 2018-01-16 13:21:16 -05:00
Chris Roberson
0b36c0a747
[Management] Index pattern step in React! (#15936) (#16063)
* 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 13:17:02 -05:00
jimgoodwin
a8198cc3a0 Merge branch '6.x' of github.com:elastic/kibana into 6.x 2018-01-16 11:59:34 -05:00
Chris Cowan
3baed0ee59 Fixes bug with filter ratio (#16052) 2018-01-16 08:01:58 -07:00
Tim Roes
385ebe49d7
Add missing discover labels (#16030) (#16058)
* Add missing discover labels

* Add aria-pressed for column toggle
2018-01-16 11:18:07 +01:00
Kim Joar Bekkelund
139ecb3a43
Upgrade to Jest 22.0.6 (#16041) (#16057) 2018-01-16 10:36:08 +01:00
jimgoodwin
22999fa883 Release notes 6.1.2 2018-01-15 19:24:55 -05:00
Tyler Smalley
1a79309a2e
[optimizer] More aggressive chunking of common/vendor code (#15907) (#16051)
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 12:38:19 -08:00
Tim Roes
dd3a340abf
Stabilize and fix visualization rendering (#15972) (#16044)
* 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 12:45:21 +01:00
Tim Roes
9bd8f534c1
Fix some styling issues (#16023) (#16043)
* Fix border of vis view

* Fix pagination looks

* Fix functional tests
2018-01-15 11:04:18 +01:00
Yuri Astrakhan
e9ff24872f
Migrating vega_vis from plugin (#15014) (#16035)
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 16:26:07 -05:00
dave.snider@gmail.com
acfaf1d448
Homepage / index pattern design cleanup (#16005) (#16032)
Rebuilds most of the homepage using EUI components. Adjusts styles to be closer to mocks.
2018-01-13 09:08:32 -08:00
Peter Pisljar
92366ffd8d
check if data hash changed instead of stringifying (#15988) (#16017) 2018-01-13 10:01:26 +01:00
Nathan Reese
486c5dcc47
[home] display tutorial artifacts (#16000) (#16022)
* 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 17:43:01 -07:00
Lukas Olson
9578180414 Merge remote-tracking branch 'upstream/6.x' into 6.x 2018-01-12 14:13:44 -07:00
Lukas Olson
aaa5f569e6 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:13:17 -07:00
Spencer
c2a611b956
[6.x] [docs/logging] document useUTC flag (#16018) (#16019) 2018-01-12 10:40:24 -07:00
Peter Pisljar
549b48f973
fixing boolean filters (#15927) (#16013) 2018-01-12 16:41:18 +01:00
Nathan Reese
06b88edede
[home] Add target=_blank to all markdown links (#15995) (#16006)
* Add target=_blank to all markdown links

* add rel property

* fix jest test
2018-01-12 07:00:58 -07:00
Peter Pisljar
20a2a52183
fixing log scale error (#15984) (#16009) 2018-01-12 15:00:18 +01:00
Peter Pisljar
eaeb14c965
fixing tag cloud and region map click handler (#15861) (#15925) 2018-01-12 13:07:48 +01:00
Nathan Reese
faf5aaabc8
fix alignment of step headers and step content (#15994) (#16001) 2018-01-11 15:15:24 -07:00
spalger
034d8d97f5 [functional/context] disable flaky test
(cherry picked from commit 5d49d52328)
2018-01-11 13:47:19 -07:00
Kim Joar Bekkelund
49d2ffd038
Updates for kibana-extra folder (#15471) (#15985)
* Update docs to handle kibana-extra

* Add info about plugin directory structure to docs
2018-01-11 21:18:30 +01:00
Chris Cowan
decde4d5d0 Create check for scaledDataFormat and dateFormat in xaxisFormatter (#15997) 2018-01-11 12:11:07 -07:00
Tim Roes
743853c227
Use euiCallOut for experimental banner (#15989) (#15996) 2018-01-11 18:46:02 +01:00
Spencer
2a7fcc3201
[6.x] [ftr/integration/withEsArchiver] assert exit code is 0 (#15867) (#15978) 2018-01-10 19:56:40 -07:00
Kim Joar Bekkelund
889bda8284
Download Yarn on CI (#15966) (#15969) 2018-01-10 20:46:44 +01:00
Brandon Kobel
f729c5094c
Adding a fetch polyfill (#15968) (#15973)
* Adding a `fetch` polyfill

* "globally" shimming the whatwg-fetch
2018-01-10 14:27:23 -05:00
Nathan Reese
ff460a70cc
[6.x] Kibana Home page - phase two (#14749) (#15965)
* 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

* fix broken depenencies (#15960)

* update yarn.lock
2018-01-10 11:40:06 -07:00
Bhavya RM
1dea44c592
Kibana home page tests (#15098) (#15964)
Couple of tests to make sure Kibana home page isn't breaking.
2018-01-10 11:27:20 -05:00
Kim Joar Bekkelund
a817517574
[6.x] Switch to Yarn (#15485) (#15955)
* 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

* Update lockfile
2018-01-10 16:54:20 +01:00
Kim Joar Bekkelund
2bc6689cc4
Revert removal of history dependency (#15956) (#15957)
* Revert "Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938)"

This reverts commit 2fdaf868d9.
2018-01-10 16:01:59 +01:00
Nathan Reese
e67977b2b4
update DashboardCloneModal to use EUI framework (#15697) (#15934)
* update DashboardCloneModal to use EUI framework

* EuiModalOverlay changed to EuiOverlayMask

* fix jest test
2018-01-10 07:19:08 -07:00
CJ Cenizal
1dfe3f9f45
Update react-ace, react-addons-test-utils, and pui tooltip dependencies (#15944) (#15946)
* 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:59:46 -08:00
CJ Cenizal
00a2a1b174
Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938) (#15942) 2018-01-09 16:57:41 -08:00
Spencer
206fc7b389
[6.x] [npm] bump grunt-esvm (#15937) (#15939) 2018-01-09 17:16:05 -07:00
Spencer
a676f08d93
[6.x] [ui/UiApp] sort used modules so entry files can be cache keys (#15910) (#15941)
* [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 14:52:34 -07:00
Chris Cowan
f423729a88 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:26:11 -07:00
Court Ewing
59726c0b75
[optimizer] allow http caching for bundles (#15880) (#15933)
By setting cache-control to must-revalidate, we indicate to the browser
that it should send the if-none-match header with the last known etag
value. If the etags match, the server responds with a 304 and no body,
and if they don't the server responds with a 200 and a body along with a
new etag.

This ensures a cache is always invalidated when a bundle changes, like
when Kibana is upgraded or a plugin is installed.

We no longer send the last-modified header because we don't want the
browser caching based on time. Doing so can be unpredictable since the
browser may not agree with the server's definitions of DST, and the
server time itself can be changed.
2018-01-09 13:33:45 -05:00
Nathan Reese
f8f8141191
Visualization render status - pass correct parameters to resize check (#15855) (#15930)
* pass correct parameters to hasChangedUsingGenericHashComparison

* handle case where size parameter is not set
2018-01-09 10:30:33 -07:00
Spencer
ccb794980a
[6.x] [optimizer] run webpack compilation ASAP (no more laziness) (#15795) (#15917)
* [optimizer] run webpack compilation ASAP (no more laziness)

* [optimize] fix variable reference
2018-01-09 10:09:44 -07:00
Nathan Reese
3cd90d894b
display NOT when new filter is negated (#15865) (#15928) 2018-01-09 09:24:53 -07:00
Tim Roes
c0f0150f08
Fix panel content vis styling (#15754) (#15921) 2018-01-09 11:21:24 +01:00
Tim Roes
e4e9868fb7
Refactor rendering events (#15895) (#15920)
* Rename timelion internal event for more clarity

* Add test for native DOM events

* Remove Angular renderComplete event
2018-01-09 10:54:23 +01:00
Tim Roes
c82be961ba
Fix broken editor styles (#15735) (#15919)
* Fix broken collapse of editor

* Fix broken styling in small editor mode

* Remove unneeded media query

* Revert "Fix broken collapse of editor"

This reverts commit 1e909b3cf1.
2018-01-09 10:49:24 +01:00
Spencer
cec220fa94
[6.x] [functional/management/import] disable flaky test (#15914) (#15915) 2018-01-08 21:39:19 -07:00
Chris Cowan
9cac187f43 Fixing the form font sizes (#15909) 2018-01-08 16:44:14 -07:00