Commit graph

14943 commits

Author SHA1 Message Date
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
CJ Cenizal
416760aa85 Add support for Panel with and without a PanelHeader. (#10112) 2017-01-30 17:27:05 -08:00
CJ Cenizal
49192e5980 Add ActionItem and MenuButton components. (#10113) 2017-01-30 17:19:12 -08:00
Shaunak Kashyap
40e6f25aa3 Fixing typo in tag cloud warning message (#10092)
* Fixing typo

* Simplifying language
2017-01-30 08:48:30 -08:00
Shaunak Kashyap
48604eb650 Reordering fields to enable smoother path through form (#9991)
* Reordering fields to closely follow previous field choices

* Moving deprecated choice field to end of form.

* Forgot to move related section

* Always show "Time-field name" field when index is time-based

* Only require the field when it's not disabled
2017-01-30 08:44:36 -08:00
CJ Cenizal
0972f2deff [UI Framework] Add Icon and InfoPanel types. (#10056)
* Add inactive and info Icons.

* Add info, success, and warning InfoPanels. Change background-color to white and use a colored border instead.

* Update Saved Object Management view to use new InfoPanel styles.

* Address Shaunak's feedback.
2017-01-28 17:39:47 -08:00
Stacey Gammon
58b5cbda25 Add ability to pass a title and show the close button on a modal (#10069)
* Add ability to pass a title and show the close button on a modal

* address code review comments

- Clean up tests and add some new ones
- Default onClose to onCancel if nothing is supplied.
2017-01-28 10:48:57 -05:00
Wataru Takase
5421e2f9f8 Add a new plugin link (#9955) 2017-01-27 19:41:02 -05:00
CJ Cenizal
7ff2b710f5 [UI Framework] Add HeaderBar, StatusText, Menu, Text, and Event components. (#10075)
* Add HeaderBar component.
* Add StatusText component.
* Add Menu, Text, and Event components.
2017-01-27 15:57:27 -08:00
Lukas Olson
341c092d3c Switch to absolute mode when using step forward/backward buttons (#9906)
* Switch to absolute mode when using timepicker step forward/backward buttons

* Instead of merging state, replace entire time object

* Uncomment time navigation buttons and fix pretty duration
2017-01-27 10:47:23 -07:00
Court Ewing
3cb5ffb477 test: try() separately on confirm modal actions (#10087)
Rather than wrapping two discrete webdriver requests in a single try()
block, we do each request in its own block to help prevent inconsistent
failures.
2017-01-27 08:03:15 -05:00
CJ Cenizal
d41b31db4d Override Bootstrap styles that are inherited by CheckBox component. (#10067) 2017-01-25 10:13:29 -08:00
Stacey Gammon
3f9402dc1c Put back changes from filter bar refactor overwritten by dashboard landing page (#10064) 2017-01-25 12:17:18 -05:00
Brandon Kobel
5a4263835d Modifying SSL settings to be consistent with the stack (#9823)
This introduces the following new settings:
- server.ssl.enabled
- server.ssl.keyPassphrase
- server.ssl.certificateAuthorities
- server.ssl.clientAuthentication
- server.ssl.supportedProtocols
- elasticsearch.ssl.keyPassphrase


and deprecates the following:
- server.ssl.cert -> server.ssl.certificate
- elasticsearch.ssl.ca -> elasticsearch.ssl.certificateAuthorities
- elasticsearch.ssl.cert -> elasticsearch.ssl.certificate
- elasticsearch.ssl.verify -> elasticsearch.ssl.verificationMode
- console.proxyConfig
2017-01-25 10:58:56 -05:00
Thomas Neirynck
1df8e80bc2 Should only support 10 zoom levels. (#10041)
The map service is dialed back to only support 10 zoom levels iso. 12. Update corresponding integration test.
2017-01-25 09:48:18 -05:00
Stacey Gammon
5ba6603042 Dashboard landing page (#10003)
* Introduce dashboard landing page

Still TODO:
 - Add clickable breadcrumbs
 - Remove New and Open top nav options

* use clickable breadcrumbs instead of 'New' and 'Open' nav items

* code cleanup

improve tests

* Add new empty dashboard styling

* Fix selenium tests

* Address code review comments

- rename bread_crumb_url => bread_crumb_urls
- fix reporting link in dash (separate PR)
- Use NoItems instead of PromptForItems when searching
- Style fixes

* Use a constant for the landing page url

* Fix tests
2017-01-25 09:44:40 -05:00
Shaunak Kashyap
6f431f5fc4 Expose handleEsError so other plugins may use it (#9994)
For consistency sake all Kibana plugins should probably handle ES errors the same way. We could achieve this by exposing the handleEsError function that is already defined in the core Kibana plugin.
2017-01-25 04:42:51 -08:00
CJ Cenizal
f59328be43 Add Title and SubTitle components. (#10052) 2017-01-24 17:29:02 -08:00
Stacey Gammon
9c28e63949 Use better confirm button text. rename safe confirm. (#9984)
* Use better confirm button text. rename safe confirm.

Use confirm_modal_promise only when it’s easier than using
confirm_modal directly.

change all native confirmations to the new dialog

* address code review comments

* Be consistent with the confirm button text pattern

Address other code review comments

* remove default option for confirmButtonText

Require onConfirm and confirmButtonText for confirmModal

* fix tests for no longer using alertText

* address code review comments Round 2
2017-01-24 15:23:03 -05:00
CJ Cenizal
949d2aac65 [UI Framework] Use box-shadow to create outlines in Button and CheckBox focus state (#10044)
* Use box-shadow instead of outline to create focused states for Button and CheckBox.

* Fix hover state of Hollow Button in Timelion.
2017-01-24 12:06:14 -08:00
CJ Cenizal
5bb6161ebd Document TextArea and StaticInput components. (#10032)
* Document TextArea component and remove classes from base.less.
* Move StaticInput component into the UI Framework and remove classes from base.less.
* Remove kuiInput class by merging it into kuiSideBarInput class.
* Improve VerticalRhythm documentation.
2017-01-24 08:32:46 -08:00