Commit graph

16545 commits

Author SHA1 Message Date
Nathan Reese
86f4437968
pass showSpyPanel to Editor (#15283) 2017-12-04 11:11:40 -07:00
Kim Joar Bekkelund
93eb5c1eca
Deprecate --plugin-dir option in plugin installer (#15371) 2017-12-04 18:38:50 +01:00
Kim Joar Bekkelund
48bcd7fc92
No longer recommend manual plugin installs (#15366) 2017-12-04 16:25:50 +01:00
Brandon Kobel
1a1894df90
Modifying anuglar-bootstrap tooltip to use scope.$evalAsync to fix bug (#15262) 2017-12-04 07:05:30 -05:00
Brandon Kobel
3d01a544d2
Courier - $state in searchSource (#15166)
* Modifying courier to exclude filter properties that start with $

* Removing the $state property directly when building the filters
2017-12-04 07:03:30 -05:00
Thomas Neirynck
4e2401c216
Fix maps for reporting (#15272) (#15358)
This fix ensures the render-complete event does not fire before rendering is actually completed. 

- This ensures that the ChoroplethLayer is fully loaded, by explicitly waiting until all geojson files are loaded.
- It also removes the special init() code-path for coordinate-maps.This was the cause of coordinate-maps not showing on reports.
2017-12-01 19:48:50 -05:00
Tim Roes
e5d2ff8219
Refactor and improve Visualize Loader (#15157)
* Simplify promise setup logic

* Import template from own file

* Use angular.element instead of jquery

* Add documentation for loader methods

* Add params.append

* Remove params.editorMode

* Clarify when returned promise resolves

* Add element to handler

* Allow setting CSS class via loader

* Use render-counter on visualize

* Use Angular run method to get access to Private service

* Allow adding data-attributes to the vis element

* Refactor loader to return an EmbeddedVisualizeHandler instance

* Use this.destroy for previous API

* Remove fallback then method, due to bugs

* Reject promise from withId when id not found

* Add tests

* Change developer documentation

* Revert "Use Angular run method to get access to Private service"

This reverts commit 160e47d7709484c0478415436b3c2e8a8fc8aed3.

* Rename parameter for more clarity

* Add more documentation about appState

* Fix broken test utils

* Use chrome to get access to Angular

* Move loader to its own folder

* Use a method instead of getter for element

* Add listeners for renderComplete events

* Use typedef to document params

* Fix documentation
2017-12-02 00:44:28 +01:00
Chris Cowan
de109fc344
Fixes for PR 14731 (#15352)
* Remove dependency on UI code in server

* Fixing tests
2017-12-01 14:37:42 -07:00
Tyler Smalley
99076d1c28
Always log fatal errors (#15319)
Reverts change in c1ef3d892f

If an error is raised before the logger is setup, then the server will exit without any notice.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-01 12:55:47 -08:00
Stacey Gammon
f43c0e5b1b
add extra test for more info (#15326) 2017-12-01 15:36:42 -05:00
Tim Sullivan
4398dc10bf
[Timepicker] Fix alignment, consistency in error msg (#15343)
Fixes https://github.com/elastic/kibana/issues/15333
2017-12-01 12:16:44 -07:00
Shaunak Kashyap
b090efbbb4
Make time picker enable/disable more granular (#15189)
* Make time picker enable/disable more granular

This makes the timefilter API more granular by removing the timefilter.enabled boolean property and introducing timefilter.enableTimeRange(), timefilter.disableTimeRange(), timefilter.enableAutoRefresh(), and timefilter.disableAutoRefresh() methods to toggle the enabled/disabled state of the time range selector and auto-refresh selector, respectively. Further, the current state of these two selectors can be read via timefilter.isTimeRangeEnabled and timefilter.isAutoRefreshEnabled.

* Clearer naming of API methods

* Reverting to !! instead of Boolean cast

* Wrapping the consequent in {} per style guide

* Removing outdated comment
2017-12-01 10:52:14 -08:00
Chris Roberson
f59578a984
Add parsedUrl to the code driving viz/dashboards (#15335) 2017-12-01 13:19:26 -05:00
Shahar Mor
61b521d345 pass bucket size as _interval param to calculation metric script (#14731) 2017-12-01 10:29:28 -07:00
Joe Fleming
97e5e2538c
Fix: exponent values in table view (#15309)
the new release includes a fix for dealing with exponent values and precision
2017-12-01 08:01:26 -07:00
Nathan Reese
9a70fcc539
[input controls] use KuiCheckBoxLabel to ensure proper spacing between checkbox and label (#15301)
* use KuiCheckBoxLabel to ensure proper spacing between checkbox and label

* upper case Kibana

* fix broken jest test
2017-11-30 15:15:08 -07:00
Stacey Gammon
3adcbb7a0f
set last saved filters when a dashboard is saved. (#15311) 2017-11-30 16:14:26 -05:00
Stacey Gammon
b1529792bc
attempt to fix flaky edit visualization link (#15265) 2017-11-30 13:42:45 -05:00
Spencer
caaa1bfdfa
[precommit/casingCheck] enhance casing check for less false-positives (#15102)
* [precommit/casingCheck] enhance casing check for less false-positives

* [dev/File] add tests
2017-11-30 10:43:42 -07:00
Spencer
999126373f
[dev/ci_setup] generalize jenkins_setup script for other CI environments (#15178)
* [dev/ci_setup] generalize jenkins_setup script for other CI environments

* [dev/ci_setup] accept more general `CACHE_DIR` env arg

* [dev/ci_setup] node.js install might not be invalid
2017-11-30 10:26:03 -07:00
Tim Roes
a6b41838b5
Give access to angular $injector via chrome (#15267)
* Implement getActiveInjector

* Fix typo in comments

* Rename method to sound more frightening

* Move test utils

* Add more documentation

* Fix typo in comment

* Fix name of method in comments
2017-11-30 15:00:11 +01:00
Aleh Zasypkin
0317cc6bd6
Expose angularized debounce through provider function. (#15149) 2017-11-30 14:24:32 +01:00
Peter Pisljar
3bea0929ae
fixes pie labels for firefox and IE (#15268)
fixes pie labels for firefox and IE
2017-11-30 08:05:24 +01:00
Tyler Smalley
359ce96105
Fixes issue with Keystore's stdin option (#15221)
Fixes issue preventing stdin option from being used
Using create to overwrite should reset keystore
2017-11-29 15:59:17 -08:00
Stacey Gammon
455cdf0955
Add disabled option for kuiContextMenuItems (#15119)
* Add disabled option for kuiContextMenuItems

* add jest test to make sure onclick isn't called when disabled is set to tru.
2017-11-29 16:51:10 -05:00
Bhavya RM
215d567f46
Kibana home page tests (#15098)
Couple of tests to make sure Kibana home page isn't breaking.
2017-11-29 16:24:00 -05:00
Peter Pisljar
1f4ae7f29e
fix colors of pie labels (for dark theme) (#15266) 2017-11-29 20:14:04 +01:00
Nathan Reese
c579677bf9
[input controls] Horizontal layout (#14918)
* input controls horizontal layout

* fix controlWidth calculation

* add functional test to ensure panel resizing changes layout

* use all caps for consts, add more comments about where values came from

* replace sleeps in functional tests with retry

* use KuiFlexGroup with wrap option instead of manually calculating widths

* remove no longer used min width constants
2017-11-29 10:28:07 -07:00
Stacey Gammon
cd92cff665
Remove uiState from dashboard - communicate via the panelState instead (#14949)
* Remove uiState from dashboard - communicate via the panelState instead

* migrate old app state from the url

* Add comment about migration and why the unused uiStateJSON field is kept around still
2017-11-29 11:26:14 -05:00
Peter Pisljar
1bc1516009
removes left over code from the gauge-metric (#15142)
removes left over code from the gauge-metric
2017-11-29 17:21:21 +01:00
Matt Bargar
f6b0623b37
Revert #15169 (#15220)
Fixes #14159
2017-11-29 11:06:10 -05:00
Chris Roberson
d06ee13ab8
Prepend relative urls (#14994)
* Add url whitelist

* Use .some

* Add/fix tests

* Add browser tests

* Initial pass

* Different approach, and more tests

* Fix linting issues

* Special case relative urls starting with `#`

* Handle root relative link too

* Try this another way

* Reapply my changes
2017-11-29 10:28:30 -05:00
Peter Pisljar
e9bd952f9b
fixing field formatters for gauge (#15145)
* fixing field formatters for gauge

* fixing the if statement

* using lodash _.has for the if statement

* adding selenium test
2017-11-29 13:18:45 +01:00
Peter Pisljar
b787206986
allows to hide warnings in gauge (#15139)
* allows to hide warnings in gauge

* should default to true if option is not set

* fixing based on review

* default for isDisplayWarning needs to be applied, else it fails
2017-11-29 13:17:08 +01:00
Peter Pisljar
ed4fab7b1a
visualize loader fails in IE (#15150) 2017-11-29 13:08:21 +01:00
Peter Pisljar
f36e13fa47
uses maximum space for arc gauge and center aligns it (#15140) 2017-11-29 12:16:27 +01:00
Chris Cowan
b883271d43
Fixing typo where OPERATORS was created as an array instead of an object (#15222) 2017-11-28 20:19:02 -07:00
CJ Cenizal
4539449ac5
[UI Framework] Fix IE11 bug which caused kuiToolBarSearch to grow too wide when there is only a single kuiToolBarSection sibling. (#15215)
* Fix IE11 bug which caused kuiToolBarSearch to grow too wide when there is only a single kuiToolBarSection sibling.
* Fix bugs with KuiListingTableToolBar rendering empty sections. Update docs example to demonstrate a tool bar with a search and a section.
2017-11-28 14:45:50 -08:00
Jonathan Budzenski
4de1bbd334
Bump react-grid-layout (#15067)
* Bump react-grid-layout

* Restore getSelection mock after test
2017-11-28 14:27:22 -06:00
Matt Bargar
c7ce51b5f8
Query the index defined default_field when a field isn't explicitly provided (#15101)
In 7.0 ES put a limit on the number of fields that a query can expand to. Since a search term without an explicit field selection hits all fields by default, a kibana user could get an error if the index they're searching against has more than 1024 fields. With lucene, the ES admin could fix this by changing the default_field in their index settings. Kuery still had a problem though, because multi_match did not support default_field. The ES team kindly added default_field support to multi_match for us, so this PR updates Kuery to rely on default_field when a user submits a query without an explicit field.
2017-11-28 13:51:19 -05:00
Søren Louv-Jansen
f343059597
[Chrome] Bootstrap Angular into document.body (#15158) 2017-11-28 19:44:33 +01:00
Stacey Gammon
b81fd782c7
Fix issue with storing the error object, not string, add tests (#15085) 2017-11-28 12:07:39 -05:00
Nathan Reese
074d7cef8c
[timelion] provide argument suggestions when argument name not provided (#15081)
* get wiring done for timelion application functional tests

* add tests for expression type ahead functions, arguments, and argument values

* provide argument suggestions when argument name not provided

* updates from cjcenizal review
2017-11-28 08:51:11 -07:00
Thomas Neirynck
50a53729ef
fix comparison (#15176)
This fixes the labs behavior.
2017-11-28 10:39:53 -05:00
Tim Roes
4f69c7a4b8
Add tests and docs for the updateOldState function (#15112)
* Add tests for updateOldState function

* Document the updateOldState method

* Add TODO for 'old' updateVisualizationConfig
2017-11-28 12:42:16 +01:00
Tim Roes
6584c6d5b2
Add functional tests, that banner is shown (#15121) 2017-11-28 10:16:00 +01:00
Matt Bargar
2911418677
Temporarily disable scripted field filter tests (#15169)
Commenting out 4 tests that are failing due to elastic/elasticsearch#26760 so we can bump ESVM snapshots. We'll need to revert this PR once elastic/elasticsearch#26760 is fixed.
2017-11-27 16:30:02 -05:00
Chris Cowan
a258f1af44
[TSVB] Add params._interval to mathjs (#14944)
* [TSVB] Add params._interval to mathjs

* Fixing tests
2017-11-27 11:23:51 -07:00
Chris Cowan
0d92568229
[TSVB] Stacked series should not contain null values (#14923) 2017-11-27 11:20:37 -07:00
Tim Sullivan
0e7c426867
[Logging] more tests and added robustness to log formatting (#15035)
* [Logging] more tests and added robustness to log formatting

* empty string for default error message, along with TODO question comment

* try to use stack trace from error when there is no error message

* simplify using the stack as the default error message

* destructure get from lodash

* default no-message to static string instead of error stack

* fix tests
2017-11-27 09:43:20 -07:00