Commit graph

16431 commits

Author SHA1 Message Date
Brandon Kobel
40a5701ed5
Courier - $state in searchSource (#15166) (#15367)
* Modifying courier to exclude filter properties that start with $

* Removing the $state property directly when building the filters
2017-12-04 08:07:19 -05:00
Brandon Kobel
6101b8445a
Modifying anuglar-bootstrap tooltip to use scope.$evalAsync to fix bug (#15262) (#15370) 2017-12-04 07:06:24 -05:00
Court Ewing
fa3c2d5e83 Revert "Refactor and improve Visualize Loader (#15157) (#15359)"
This reverts commit bead35811f.

This backport was botched, so a bunch of inline diffs were committed.
2017-12-02 14:13:41 -05:00
Tim Roes
bead35811f
Refactor and improve Visualize Loader (#15157) (#15359)
* 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 11:36:01 +01:00
Thomas Neirynck
03fe715b6d
Fix maps for reporting (#15272) (#15357)
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:29 -05:00
Chris Cowan
51cb853d1c Fixes for PR 14731 (#15352)
* Remove dependency on UI code in server

* Fixing tests
2017-12-01 14:38:15 -07:00
Tyler Smalley
4ae2610765
Uses inline script for re-index (#14982)
While still working in 6.0, this has improved backwards compatibility with ES 5.x.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-01 12:59:09 -08:00
Shaunak Kashyap
e11c7bb7db 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 11:26:57 -08:00
Shahar Mor
799c80ef8e pass bucket size as _interval param to calculation metric script (#14731) 2017-12-01 10:30:24 -07:00
Nathan Reese
b82f34a992
[input controls] use KuiCheckBoxLabel to ensure proper spacing between checkbox and label (#15301) (#15329)
* use KuiCheckBoxLabel to ensure proper spacing between checkbox and label

* upper case Kibana

* fix broken jest test
2017-11-30 16:12:38 -07:00
Nathan Reese
cb5557c671
[6.x] [input controls] Horizontal layout (#14918) (#15307)
* [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

* fix dashboard grid function test.
2017-11-30 16:11:38 -07:00
Spencer
91777d20e3
[6.x] add support for number format internationalization (#14019) (#15132) 2017-11-30 15:42:13 -07:00
Stacey Gammon
3c9fef9620
set last saved filters when a dashboard is saved. (#15311) (#15324) 2017-11-30 17:16:38 -05:00
Spencer
920b5ae716
[6.x] [precommit/casingCheck] enhance casing check for less false-positives (#15102) (#15306)
* [precommit/casingCheck] enhance casing check for less false-positives

* [dev/File] add tests
2017-11-30 14:32:19 -07:00
Stacey Gammon
1f25c56ece
attempt to fix flaky edit visualization link (#15265) (#15312) 2017-11-30 16:27:00 -05:00
Aleh Zasypkin
d3eec6c2b7
Expose angularized debounce through provider function. (#15296) 2017-11-30 20:55:48 +01:00
Spencer
7e1709964f
[6.x] [dev/ci_setup] generalize jenkins_setup script for other CI environments (#15178) (#15303)
* [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:59:22 -07:00
Tim Roes
3cb873f3c0
Give access to angular $injector via chrome (#15267) (#15292)
* 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:53:48 +01:00
Stacey Gammon
1c7066d0a5
Add disabled option for kuiContextMenuItems (#15119) (#15271)
* Add disabled option for kuiContextMenuItems

* add jest test to make sure onclick isn't called when disabled is set to tru.
2017-11-30 08:54:40 -05:00
Peter Pisljar
d779fbe745
fixes pie labels for firefox and IE (#15268) (#15284)
fixes pie labels for firefox and IE
2017-11-30 09:27:34 +01:00
Peter Pisljar
9130805235
fix colors of pie labels (for dark theme) (#15266) (#15269) 2017-11-30 08:06:57 +01:00
Peter Pisljar
2ad742f251
removes left over code from the gauge-metric (#15142) (#15258)
removes left over code from the gauge-metric
2017-11-30 08:05:58 +01:00
Thomas Neirynck
dc7345a558
reverts metric visualization (#14052) (#15177) (#14882)
Uses the previous html/css rendering code instead of the svg-based rendering for simple metrics.

This backport required manual edits and js-linting.
2017-11-29 14:40:56 -05:00
Stacey Gammon
7d9d441377
Remove uiState from dashboard - communicate via the panelState instead (#14949) (#15260)
* 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 12:31:07 -05:00
Chris Roberson
daab94b704
Prepend relative urls (#14994) (#15249)
* 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 11:41:54 -05:00
Matt Bargar
cc2ad44e77
Revert #15169 (#15220) (#15256)
Fixes #14159
2017-11-29 11:09:02 -05:00
Peter Pisljar
d8af7cbd06
fixing field formatters for gauge (#15145) (#15242)
* fixing field formatters for gauge
2017-11-29 16:07:27 +01:00
Peter Pisljar
aacd23403a
allows to hide warnings in gauge (#15139) (#15238)
* 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 16:05:16 +01:00
Peter Pisljar
af6a2fc6e2
visualize loader fails in IE (#15150) (#15236) 2017-11-29 16:02:26 +01:00
Peter Pisljar
499199c518
uses maximum space for arc gauge and center aligns it (#15140) (#15232) 2017-11-29 13:38:02 +01:00
Chris Cowan
9705983e07 Fixing typo where OPERATORS was created as an array instead of an object (#15222) 2017-11-28 20:20:49 -07:00
CJ Cenizal
855fe9f200
[UI Framework] Fix IE11 bug which caused kuiToolBarSearch to grow too wide when there is only a single kuiToolBarSection sibling. (#15215) (#15224)
* 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:52:19 -08:00
Søren Louv-Jansen
5ddc824284
[Chrome] Bootstrap Angular into document.body (#15158) (#15207) 2017-11-28 23:13:06 +01:00
Matt Bargar
3cf1a89221
Query the index defined default_field when a field isn't explicitly provided (#15101) (#15210)
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 16:35:22 -05:00
Nathan Reese
375c0764c3
[timelion] provide argument suggestions when argument name not provided (#15081) (#15193)
* 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 13:59:30 -07:00
Stacey Gammon
048e7a922f
Clean up dashboard padding and coloring (#14811) (#15205)
Fixes some coloring issues with dashboards with the new margin settings. Makes everything consistent between mode / theme.
2017-11-28 15:45:31 -05:00
Jonathan Budzenski
5ad0cda0d7
Bump react-grid-layout (#15067)
* Bump react-grid-layout

* Restore getSelection mock after test
2017-11-28 14:28:09 -06:00
Stacey Gammon
958a4f6026
Fix issue with storing the error object, not string, add tests (#15085) (#15199) 2017-11-28 13:03:49 -05:00
Thomas Neirynck
536903aeeb
fix comparison (#15176) (#15192)
This fixes the labs behavior.
2017-11-28 11:52:10 -05:00
Tim Roes
eebf5cb9a3
Update brace to 0.10.0 (#15060) (#15111) 2017-11-28 14:13:57 +01:00
Tim Roes
781ce559cc
Add tests and docs for the updateOldState function (#15112) (#15183)
* Add tests for updateOldState function

* Document the updateOldState method

* Add TODO for 'old' updateVisualizationConfig
2017-11-28 14:13:38 +01:00
Tim Roes
3bdcb21c47
Add functional tests, that banner is shown (#15121) (#15181) 2017-11-28 12:40:12 +01:00
Tim Sullivan
b228008b53
[Logging] more tests and added robustness to log formatting (#15035) (#15161)
* [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 16:35:59 -07:00
Matt Bargar
3ada261d98
Temporarily disable scripted field filter tests (#15169) (#15173)
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:57:58 -05:00
Chris Cowan
1183f35bc3 [TSVB] Add params._interval to mathjs (#14944)
* [TSVB] Add params._interval to mathjs

* Fixing tests
2017-11-27 11:24:26 -07:00
Chris Cowan
5c87ab8fa1 [TSVB] Stacked series should not contain null values (#14923) 2017-11-27 11:21:04 -07:00
Brandon Kobel
855b424cae
Revert "Adding libesvm@3.8.8 as a devDependnecy to workaround a bug in 3.8.9 (#15113)" (#15118) (#15129)
This reverts commit a5c6fb443c.
2017-11-27 09:07:51 -05:00
CJ Cenizal
6dc4130627
Fix spacing beneath Visualize Wizard step 1 title. (#15136) (#15137) 2017-11-22 21:03:41 -08:00
trevan
e7ca60014a Grab the default index pattern and use it in TSVB (#14739) 2017-11-22 17:17:49 -07:00
Chris Cowan
9308497c8d [TSVB] Changing the behaivor of getLastValue to get the actual last value (#14919) 2017-11-22 16:21:43 -07:00