Commit graph

14963 commits

Author SHA1 Message Date
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
Stéphane Campinas
c08d9ab0fa typo (#10243) 2017-02-08 10:40:28 -05:00
JacobBrandt
194189df09 Supply default to precision value slider controle (#9837) 2017-02-08 09:05:47 -05:00
CJ Cenizal
9074396473 Revert "Make searching saved objects more powerful with query_string (#9870)" (#10239)
This reverts commit 64a03fafd4.
- We should discuss how to solve this within the UI layer first.
2017-02-07 15:42:36 -08:00
CJ Cenizal
740fa072db Fix race condition caused by Visualize page object's clickNewSearch method. (#10231)
* Add a sleep to Header page object's clickTimepicker method, to wait for the page to render on Jenkins.

* Add a sleep to Visualize page object's clickNewSearch method, to wait for the page to render on Jenkins.

* Wait for loading indicator to disappear to signify completion of clickNewSearch() in Visualize page object.

* Wrapper Header page object's clickTimepicker method in a try block.
2017-02-07 13:09:12 -08:00
Peter Pisljar
38cc8b613a showing too many series error just on heatmap (#10134)
* showing too many series error just on heatmap

* adding tests

* adding test for non heatmap chart
2017-02-07 17:42:53 +01:00
Court Ewing
5c361eb4ec Bump httpolyglot to use our fork (#10225) 2017-02-07 11:29:55 -05:00
Jonathan Budzenski
372185a166 [console] Add content-type when using copy as curl (#10086) 2017-02-07 08:19:24 -06:00
Jonathan Budzenski
142a9b8b1e [console] Set multiline json content type to application/x-ndjson (#10201) 2017-02-07 08:18:35 -06:00
CJ Cenizal
a5705f8dd0 Add landing page with table to Visualize app. (#9605)
* Refactor Visualize Wizard to use explicit controller names, instead of defining them dynamically.
* Add landing page with table to Visualize app.
* Update Visualize wizard UI.
* Add kuiIcon--basic and support icons in Table component. Display icons in Visualize landing page.
* Refactor Visualize Wizard templates to use import syntax.
* Set kuiViewContent width to 100% to avoid it shrink wrapping its content.
* Move ToolBar buttons to the right side. Remove labels and add tooltips.
* Remove unused Visualize load menu template.
* Disable timepicker in Visualization listing.
* Change Visualize route names. Add omitPages attribute to breadcrumbs directive. Make Visualize breadcrumbs into links.
* Remove Open and New menu buttons from Visualize.
* Add ConfirmationModal for deleting visualizations.
* Implement sorting for name and type columns in Visualize listing.
* Refactor Visualize routes into VisualizeConstants file. Fix functional tests.
* Add pager_controls directive and pager service. Add pagination to Dashboard and Visualize landing pages. Change Dashboard listing to use hrefs for each dashboard.
* Use ng-if instead of ng-hide to hide/reveal Table action buttons in Dashboard listing.
* Redirect from old Visualize wizard routes to new ones.
* Use ViewContent and Title components in Visualize wizard.
* Fix Visualize and Dashboard listing table logic so that selection only applies to the current page of items.
* Paging clears the selection.
* Searching clears the selection.
* Sorting clears the selection.
* Use consistent "Create" terminology in both Visualize and Dashboard for creating new items.
* Use NoItems and PromptForItems components in Visualize listing view.
* Use $injector to inject dependencies in Visualize and Dashboard listing.
2017-02-06 14:41:21 -08:00
Joe Fleming
c8c03e5fec add architecture styleguide (#10094)
* add architecture styleguide

* be clearer about application architecture

* define as plugin architecture

and downplay the webpack alias and shims that are available

* fix typo, simplify server description
2017-02-06 15:34:39 -07:00
Stacey Gammon
ae20e40827 Bring back panel expand: avoid mget calls for every visualization after panel collapse (#10043)
* Avoid mget calls for every visualization after panel collapse

This will still cause the data to refresh (an msearch call).

* use ng-hide check, not width check
2017-02-06 13:11:12 -05:00
Peter Pisljar
912454a31f allow visualizations to have full width editor (#10175)
* allow visualizations to hide sidebar editor

* fixing styles

* fixing broken html
2017-02-06 09:49:24 +01:00
Lukas Olson
8357749bd6 Fix doc table fade out gradient in dark theme (#10167)
* Fix doc table fade out gradient in dark theme

* Update dark theme source row labels
2017-02-03 15:52:12 -07:00
Lukas Olson
909b8c7a0e Improve highlighting by using highlight_query with all_fields enabled (#9671)
* Add all_fields to highlight query to improve highlighting

* Refactor highlighting and move out of _flatten

* Make changes as per @bargs' requests

* Add documentation about highlightAll setting

* Fix docs typo

* Remove unused function

* Remove unused code
2017-02-03 10:44:00 -07:00
CJ Cenizal
36821edf52 Fix bug with using title attribute in breadcrumbs directive. (#10171) 2017-02-03 06:50:17 -08:00
CJ Cenizal
023cae3067 Sort items when they're first loaded in Dashboard listing. (#10146) 2017-02-02 10:21:32 -08:00
Richard Hoffman
3251c99094 Allow saved objects to have orderable fields with a fieldOrder property (#9992)
* Allow saved objects to have orderable fields with a fieldOrder property

* Add clarification for fieldOrder param for saved objects
2017-02-02 07:01:03 -08:00
Tim Sullivan
3e0e0a6d63 Fix a TypeError in an data table visualization scenario (#9797)
* Fix an empty data table visualization scenario

In ui/agg_response/ we parse the ES response. For each value we create
an AggConfigResult object, and its quite normal to pass nulls as a value
into it.

It is a bit harder to cause in a data table visualization, but it is
possible with a large data set and many metric and bucket aggregations.
If an aggregation result is a null, it broke the data table
visualization, because Angular didn't know how to handle it for sorting.

* undo changes to AggConfigResult initialization

* fix AggConfigResult null value in paginated table valueGetter
2017-02-01 14:56:33 -07:00
Jonathan Budzenski
242047a683 Bump node to 6.9.5 (#10135) 2017-02-01 11:54:57 -06:00
Shaunak Kashyap
02eed36f3b Adding autocomplete rules for Ingest APIs (#10098)
* Adding initial autocomplete rules for Ingest APIs

* Fixing append processor autocomplete rules

* Adding autocomplete rules for Convert processor

* Adding autocomplete rules for the Date processor

* Adding references to docs

* Adding autocomplete rules for Date Index Name processor

* AAdding autocomplete rules for the Fail processor

* Adding autocomplete rules for Foreach processor

* Adding autocomplete rules for Grok processor

* Adding autocomplete rules for gsub processor

* Fixing autocomplete rules for Gsub processor

* Adding autocomplete rules for the Join processor

* Adding autocomplete rules for JSON processor

* Adding autocomplete rules for the KV processor

* Adding autocomplete rules for Lowercase processor

* Adding autocomplete rules for the Remove processor

* Adding autocomplete rules for the Rename processor

* Adding autocomplete rules for the Script processor

* Adding autocomplete rules for the Set processor

* Adding autocomplete rules for the Split processor

* Adding autcomplete rules for the Sort processor

* Fixing definition of Sort processor

* Adding autocomplete rules for the Trim processor

* Adding autocomplete rules for the Uppercase processor

* Adding autocomplete rules for Dot Expander processor

* Fixing autocomplete rules for Dot Expander processor

* Fixing forward reference problem

* Removing TODO note

* Enable (recursive) autocomplete on foreach processor's "processor" field
2017-01-31 15:17:10 -08:00
Richard Hoffman
1c9aad7c9a Add link to top for paginated tables (#9997)
* Add link to top for paginated tables
2017-01-31 11:31:50 -08:00
Stacey Gammon
03ebf1848c Grid isolate scope (#10074)
* Dashboard clean up

- Stop storing the grid element on the panel which caused a circular
reference and required special code to make it serializable.
- Call state.save directly rather than broadcasting change:vis

This is in prep for possibly making grid scope isolate and view/edit
mode implementation.

* Make dashboard grid scope isolate

This will help prepare for state changes for view/edit mode in
dashboard.js

* Remove unnecessary uses of findPanelByPanelIndex

can just use the panelElement directly

* Only need the panelIndex stored on the inner element

* Remove memory leak

Clean up panelElementMapping
2017-01-31 12:45:43 -05:00
Matt Bargar
4da7d8a6e7 Click to filter values in Discover doc table and Visualize data table (#9989)
Adds + and - icons on hover in the doc table and data table, allowing users to drill down with more options and fewer clicks. Previously in the doc table a user had to expand the row in order to filter on a document value. In the data table a user could filter simply by clicking a cell, but there was no way to create a negative filter. This commit brings feature parity between the data table and doc table.
2017-01-31 12:33:27 -05:00
Felix Stürmer
3dacbaef81 Avoid infinite digest loop in debounce (#10036)
The custom debounce implementation uses Angular's `$timeout`, which
interacts unfavourably with the unconditional `$watch` handler used in
the `fixed-scroll` directive. It results in an infinite digest being
triggered about every 100ms. To avoid that, this commit uses the
`invokeApply` option of `$timeout` and instead calls `$scope.$apply`
conditionally.
2017-01-31 15:54:02 +01:00