Commit graph

14987 commits

Author SHA1 Message Date
Thomas Neirynck
47ca135e7c Update known-plugins.asciidoc (#10301) (#10493)
manual cherry-pick of dd6cb4a34e, which was originally committed on 5.2. This is the forward port.
2017-02-21 16:56:44 -05:00
Mike Dias
1be84bb15d Add Cohort analysis plugin in the known plugins (#9697) 2017-02-21 15:28:24 -05:00
Thomas Neirynck
623c0d3551 Add shard allocation plugin (#10482) 2017-02-21 15:19:28 -05:00
Spencer
a5f4ac2793 [ui/tilemap] switch tile service based on env (#10007) 2017-02-21 09:43:55 -07:00
Richard Hoffman
a3ddaa1db8 Add addTimeMarker to PointSeries chart config (#10169) 2017-02-21 11:22:04 -05:00
Nathan Reese
15d1e7c8cf Do not generate msearch request for visualizations that set requiresSearch to false (#9658)
* only watch searchSource when vis requires search

* add test
2017-02-20 16:05:26 +01:00
CJ Cenizal
e570afcca8 Migrate from a handrolled interface for building examples to using React Components directly. (#10259)
* Migrate from a handrolled interface for building examples to using React Components directly.
* Wrap components with containers instead of passing down state and actions via context.
2017-02-17 16:13:39 -08:00
Brandon Kobel
2fb2b4ca6c Adding attributes to be used by sharing (#10234)
* Adding attributes to be used by sharing

* Moving the shared-item tags for dashboard panels

* Switching from shared-item-title/description to just title/description

* Removing move noise

* Fixing typo

* Adding data- prefix before attributes, began writing tests

Adding shared-item title tests

Switching up the panel tests

Adding description tests

Fixing linting

Adding dashboard timefilter test

Adding visualization shared-item tests

Adding shared-timefilter tests

Adding discover shared-item tests

* Fixing shared-items-count on dashboard

* Fixing functional test data for discover and visualize
2017-02-17 06:59:36 -05:00
Rashid Khan
60b36f7f9a Stub node's fs when using webpack (#10411) 2017-02-16 14:16:35 -07:00
Spencer
c5d3fd5bb2 [courier] resolve looper iteration when requests are aborted (#10392)
* [courier] resolve looper iteration when requests are aborted

The search looper returns the promise from search executions to ensure that subsequent loops do not run until the previous loop has completed. This causes the looper to get stuck when all of the aborted requests are completed, as completed requests do not resolve or reject their promises, causing the looper to never allow another search loop. Since this behavior is desirable for pages where we don't want to execute the `.then()` or `.catch()` callbacks for requests that were aborted, we work around it in this specific case by creating a promise that is resolved when each request is either aborted or completed.

* [ui/promises] add Promise.race() method to Promises util

* [courier/request] use angular promises in courier

* [courier/looper] no single-letter variables

* [ui/promises] add tests for Promise.race()
2017-02-16 13:12:53 -07:00
Lukas Olson
9cfbd3d2c5 Fix issue where selected columns persist when creating a new search (#10357) 2017-02-16 12:36:20 -07:00
Felix Stürmer
1a84ce17c8 Re-use the filter function for inline filtering (#10395)
Re-using the passed filter function improves consistency with the
implementation of the filters in the document details table.
2017-02-16 19:26:16 +01:00
Jonathan Budzenski
9120d17306 [plugin cli] Fix file:/// paths on Windows (#10083)
* [plugin cli] Fix file:/// paths on Windows

* [plugin cli] Stricter path checking, keeps support for file://

* [plugin cli] Add deprecation warning for file://
2017-02-16 12:02:09 -06:00
Felix Stürmer
7c02f3b551 Hide inline filters in absence of filter function (#10394)
The inline filters are now hidden when no `filter` property has been
passed to the row directive, which is more consistent with the filters
in the document details table. The context view relies on this behaviour
to hide the filtering actions.

Improving the `inlineFilter` to actually re-use the passed `filter`
function happens in #10395.
2017-02-16 18:37:51 +01:00
CJ Cenizal
bfadc5e772 Adjust Table component styles and markup to maintain fixed column widths, regardless of cell content. (#10378)
* Adjust Table component styles and markup to maintain fixed column widths, regardless of cell content.
- Fix ellipsis-truncation of text in IE11 and Edge.
- Update Visualize landing table markup.

* Update Dashboard landing table and Saved Objects table with cell liner markup.
2017-02-16 08:45:18 -08:00
Jonathan Budzenski
e1b677ac9f [build] Add notice file (#10344)
* [build] Add notice file

* [build] Include license text if available

* [build] Look for both license and notice files

* [build] Add node license to notice

* [build] Add a base notice file including info on committed dependencies

* Bump license copyright year

* [build] Kibana at top of notice
2017-02-16 11:41:09 -05:00
Jonathan Budzenski
9bc4d9158b Updates to status API, re-align status page (#10180)
* [status] Only provide latest metrics

* [status] Snake case requests object

* [status] Add build snapshot flag, last updated time

* [status] Re-add requests per second

* [status] Add uptime

* [status] collection_time -> collection_interval, add memory object

* [status] Add api tests

* [status] Add breaking changes docs

* [status] Remove metrics config

* [status] nest load under cpu, shorten memory and average

* [status] collection_time -> collection_interval

* [status api] Unnest heap, rename load to load average
2017-02-16 10:30:36 -06:00
CJ Cenizal
408a2e6506 Fix Safari bug: Safari ignores :enabled pseudo class, preventing button active and hover states from taking effect. (#10369) 2017-02-16 08:16:46 -08:00
CJ Cenizal
f002e5df89 Add isFetchingItems flag to disable the PromptForItems when fetching items in Visualize and Dashboard listing tables. (#10381) 2017-02-16 08:13:45 -08:00
Peter Pisljar
686a70944e fixes error with saving hidden metrics (#10220)
* fixing pie chart tooltip custom label bug

* fixing the bug thomas found
2017-02-16 09:13:43 +01:00
CJ Cenizal
e2cd8ee191 Fix position and appearance of magnifying glass icon when opening a Saved Search in Discover. (#10383) 2017-02-15 14:27:07 -08:00
Spencer
9b39a19856 [optimizer] use "unsafe" defaults that have proven to be safe enough (#10275)
* [optimizer] use "unsafe" defaults that have proven to be safe enough

* [docs] add a note to the CONTRIBUTING.md regarding potential pitfalls
2017-02-15 14:14:12 -07:00
Peter Pisljar
723c7c15c9 cumulative sum, moving avg and serial diff pipeline aggregation metric (#10033)
* extracting to parent agg helper

* adding comulative sum agg

* adding serial diff and moving avg

* adding tests
2017-02-15 20:03:45 +01:00
Peter Pisljar
c3c8e55e4d fixing broken group bar chart (#10313)
* fixing broken group bar chart

* fixing test

* updating based on last review
2017-02-15 18:10:04 +01:00
Peter Pisljar
4c85fd4954 Vislib Point Series Charts (#9642)
* adding vislib chart grid

* updating vislib to correctly render all new features

* adding new options to kibana visualizations

* update vis icon on save

* updating documentation

* fixing unit tests

* cleaning up

* updating based on UI review

* adding visualize editor unit tests

* selenium tests

* additional option tabs

* some more changes to the tabs/options [thanks CJ]

* going back from Category/Value axis to X/Y axis

* fixing unselected dropdown options

* updating based on last UI review

* updating based on last review

* updating based on last review

* fixing issue with axis titles

* allowing to specify only upper or only lower data bound

* updating based on brandons review

* fixing horizontal bar chart labels

* fixing test

* adding backward compatibility

* updating based on last review

* fixing selenium tests
2017-02-15 17:54:42 +01:00
CJ Cenizal
9b447c53c1 Fix position of button tooltips in the Dashboard and Visualize listing tables. (#10358)
* Fix position of button tooltips in the Dashboard and Visualize listing tables.

* Remove redundant CSS from ToolBarSearch.
2017-02-15 08:29:49 -08:00
CJ Cenizal
9a3a78b884 Fix CheckBox and ToolBarSearchBox icon positioning. (#10356)
* Fix CheckBox alignment by applying box-sizing: border-box to all before and after pseudo-elements.

* Fix ToolBarSearchBox height and icon alignment.

* Make Table examples consistently use the cell liner.
2017-02-15 08:19:19 -08:00
Lukas Olson
bd966dbacd Fix highlight config so it doesn't require a refresh to apply (#10346)
* Acknowledge doc_table:highlight config even after init

* Use highlightAll on dashboard
2017-02-14 16:50:08 -07:00
Stacey Gammon
31db424b9b Add info notifications for adding visualizations to the dashboard (#10310) 2017-02-14 15:35:34 -05:00
Felix Stürmer
2796e7798b Stabilize tests involving absolute timepicker (#10308)
* Stabilize tests involving absolute timepicker

The asynchronous nature of angular's digest cycle and the page rendering
in the browser can lead to situations in which
`isGlobalLoadingIndicatorHidden()` returns true because the loading
triggered by the previous action has not yet started. In this case
subsequent actions incorrectly assume the loading has already been
completed. This is probably responsible for the flakiness described in #10302.

The newly introduced `waitUntilLoadingHasFinished` first waits for a
duration up to `defaultTimeout` for the loading indicator to appear
before waiting for it to be hidden again. In the best case this will
reduce the false positive rate of `setAbsoluteTimerange()`. In the worst
case the function will wait `defaultTimeout` longer than when just using
`isGlobalLoadingIndicatorHidden`.

fixes #10302
2017-02-14 19:09:53 +01:00
Peter Pisljar
886628f2a2 migrate terms include/exclude to new format (#10193)
* fixing test
migrate terms import/export to new format

* fixing based on review
2017-02-14 12:00:21 -05:00
trevan
920a22fdb7 Remove the single asterisk when converting queries to user side (#10280) 2017-02-14 10:50:53 -05:00
Stacey Gammon
bafaf3b4a2 fix the link path (#10327) 2017-02-14 09:21:17 -05:00
Thomas Neirynck
22386a2f7a Hide tooltip when unselected (#10260)
Hides the tooltip on the map when the checkbox is not selected
2017-02-13 18:27:00 -05:00
Lukas Ciszewski
f41be52b3f Update documentation on coordinator node usage (#9960)
* Update production.asciidoc

* Update production.asciidoc

Reorder configuration guide and mention config files.

* Update production.asciidoc

Fix typo.
2017-02-13 17:18:13 -05:00
Peter Pisljar
be27727399 derivative metric aggregation (#10020)
* updating agg_config to allow adding parent aggregations

* derivative metric aggregation

* disable on metric and tagcloud

* fixing point series to correctly handle missing y values

* adding unit tests

* fix broken ui

* removing percentile ranks

* updating based on review

* fixing bug and adding make_nested_label tests

* fixing error

* fixing test

* fixing based on last review

* fixing based on thomas review

* allow nested aggs

* prevent sorting on derivative metric

* updating based on last review

* adding error message when histogram is not the last bucket

* fixing test

* updating error message
2017-02-13 19:54:08 +01:00
CJ Cenizal
2563d88969 Remove dependency on kibana-ui-framework repo. (#10281) 2017-02-13 10:42:16 -08:00
Matt Bargar
0add791a18 Allow sorting and filtering on _type field (#10254)
It was already possible to sort, aggregate, and filter on _type in ES but we didn't allow it in Kibana because Elasticsearch's APIs pre-5.0 didn't report mapping information for meta fields. Now that field stats returns searchable and aggregatable (including meta fields) we can safely determine if any field is filterable, sortable, or aggregatable without looking at the mappings. This PR simply includes the searchable and aggregatable information in the calculations that determine filterable and sortable status of a field.

Fixes #5684
2017-02-13 10:50:18 -05:00
Peter Pisljar
6296bc52f9 fixing pie chart tooltip custom label bug (#10219)
* fixing pie chart tooltip custom label bug

* fixing test
2017-02-13 16:20:46 +01:00
markwalkom
042088085d Update tutorial-load-dataset.asciidoc (#10298)
Clarified that curl stuff needs to be run in a terminal.

Inspired by https://discuss.elastic.co/t/newbie-stuck-in-1st-tutorial/74660
2017-02-11 09:24:39 -05:00
Spencer
3a272e83bd [utils/streams] implement some generic stream helpers (#10187)
* [utils/streams] implement some generic stream helpers

While working on pr 9853 I have needed to deal with streams in several different ways and along the way ended up with a core set of stream helpers. Since these helpers are not browser or server specific, and are used across components, and tested with generic use in mind I put them in src/utils.

* [utils/streams] address kim's feedback

* [utils/stream/list] move default value into arg list
2017-02-11 00:33:49 -07:00
Brandon Kobel
133e1607ff Resolving unused settings bug when plugin is disabled (#10246)
* Resolving unused settings bug when plugin is disabled

* Revert "Resolving unused settings bug when plugin is disabled"

This reverts commit c829139732.

* Replacing a disabled plugin's config with a simple schema/config with enabled set to false
2017-02-10 06:42:54 -05:00
Peter Pisljar
2fce8ea8fc yaxis tick formatters (#9065)
* yaxis tick formatters

* fixing custom format

* adding information to currency help text

* fixing based on @rashidkpc review

* updating based on rashids comments

* adding some tests

* fixing broken yaxis

* fixing broken currency mode

* adding tick formatters tests

* throw error if currency is not three letter code

* adding server side tests

* fixing bytes mode

* rebasing on master and fixing linting

* fixing custom formatter behaviour.
2017-02-10 12:27:39 +01:00
Spencer
19420f69ac [npm] bump makelogs (#10279) 2017-02-10 01:09:11 -07:00
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
Stacey Gammon
f2da2a3640 Batch mget requests on dashboard load and cache field_stat results (#10081)
* defer loading visualization saved objects so they can be loaded in a single _mget

* Don't request field stats more than once for the same index pattern

* [ui/courier] batch fetch requests for all searches and docs

* [ui/courier] remove remaining mentions of req.isFetchRequested()

* [courier/fetch/request] remove unneceessary !!
2017-02-09 13:49:12 -07:00
Jonathan Budzenski
0d9e51f72f [functional tests] Remove include_in_all (#10268)
* [functional tests] Remove include_in_all

* [functional tests] Get milliseconds from date
2017-02-09 13:52:07 -06:00
Stacey Gammon
20ea24f358 Refactor out state logic from dashboard directive (and a bugfix) (#10152)
* New state and tests and time fixes

* Code review comments

* Remove saving filters if "enter" hasn't been pressed
2017-02-09 09:37:37 -05:00
Brandon Kobel
4662635087 Removing the server.ssl.clientAuthentication setting (#10253)
Removes the server.ssl.clientAuthentication setting, and we'll reevaluate adding this back in when addressing PKI.
2017-02-09 07:09:43 -05:00
Boaz Leskes
b444a40ee6 Console: make literal strings italic (#10244)
Literal strings an extension to JSON and may be confusing to the uneducated reader. Making them italics should help clarify they're special.
2017-02-08 19:44:09 +02:00