Commit graph

15652 commits

Author SHA1 Message Date
Thomas Neirynck
c20a48cbc9 Revert "Visualize Refactor (#11786)" (#12711)
This reverts commit 3000221fac.

This change broke Xpack, due to some modules being moved to a different location.
2017-07-07 16:32:18 -04:00
Nathan Reese
363a06555c Expose field formatters in kibana server (#12625)
* move field formatters to common

* expose fieldFormats on server

* export Format class from field_formats/types

* remove use of window.atob in StringFormat

* fix test and move server register under directory field_formats

* cleanup

* expose uiSettingDefaults on server so fieldFormats knows how to parse uiSettings

* remove uiSettingDefaults decorator and clean up tests

* move field_formats_service out of kibana plugin

* make duration test more unstandable

* prefix internal member with underscore

* pass getConfig in constructor instead of methods

* move getParamsDefaults for DurationFormat

* add getInstance method to field_formats_server

* move FieldFormat class outside of kibana plugin
2017-07-07 11:47:25 -06:00
Spencer
7610d25aa0 [modifyUrl] only consume the meaningful keys (#12616) 2017-07-07 10:14:23 -07:00
Jonathan Budzenski
c79e22386c Revert same port http -> https redirect (#10930)
- httpolyglot is removed, we no longer automatically redirect from http to https
- server.ssl.redirectHttpFromPort option added to allow for http -> https redirect from one port to another
- We no longer start the dev server with tls by default, it can be turned on with the --ssl flag, npm start -- --ssl, or ./bin/kibana --dev --ssl
- There will currently be error log messages if you connect over the wrong protocol, we have #11209 for downgrading these
2017-07-07 17:15:56 +02:00
Peter Pisljar
3000221fac Visualize Refactor (#11786)
* converting Vis to es6 class

* <visualize>, <visualization> and <visualization-editor>

* editor, responseHandler and requestHandler registries

* updating visualize editor app

* vis, default editor, request handlers and vis types

* updating vis types

* updating kibana to work with new visualize

* migrating existing visualizations

* fixing bugs with rebase

fixing tests

fixing tsvb auto apply button

fix tsvb resizing issue

update scope.$apply for react editor components

re-render react component when vis.params are updated (#12347)

fixing heatmap

remove obsolete maps_renderbot indirection

remove cruft/ remove custom resizing and hook into global event

fixing brush event

fixing resize event for vislib_vis_type

fixing legend

changing based on nathans review

* fixing tests

* fixing renderComplete issues with editor

* map updates

* fixing maps zoom

* fixing based on nathans review

* fixing render complete issue and doulbe rendering with maps

* trying to get maps in order .... wip

* removing resize method from visualizations

* changing the rendering process a bit

* fixing metric chart type auto changing

* minor simplifications in coordinate map viz

* more simplications now we only have single render

* minor fixes

* do not recreate layer when not necessary

* minor changes

* fixing maps bounding box filter

* fixing desaturation option

* fix zoom settings when toggling between WMS/basemap

* adding status to the render method (to figure out what changed)

* fixing legend open icon going out of page

* skip index selection for timelion

* timelion brush fix

* fixing circular json issue

* fix faulty rebase

* fixing updateStatus

* removing timelion requesthandler registration

* removing double slash

* fixing maps

* add debug statement

* test CI with guard statement

* fixing rebase
2017-07-07 17:10:32 +02:00
Thomas Neirynck
5a20d44a08 Tidy up tile-service url in test code (#12690) 2017-07-07 10:13:32 -04:00
Spencer
74b5b7a0e3 [server] remove unused module (#12694) 2017-07-06 16:44:45 -07:00
Spencer
c1ef3d892f Fail to start if settings include unknown keys (#12554)
* [server/config/complete] parameterize test setup

* [server/config/complete] group tests into sub-suites

* [server/config/complete] fail startup if some settings are unused

* [cli/server] pretty-print InvalidConfig errors

* [cli/errors] allow startup errors to control process.exitCode

* [server/config/complete] update tests to check for throwing

* [server/config/complete] test deprecation support more generically

* [server/config/complete] test server.decorate() behavior

* [server/config/complete] test the shape of the thrown error

* [cli/serve] add integration test for invalid config handling

* [testUtils/kbnServer] add createServerWithCorePlugins()

* [uiExports/tests] fix bug this change exposed

* [server/config/complete] add special case for `env` config key

* [server/config/flattenWith] fail faster with less lodash

* [server/config/complete] add test for special "env" handling

* [server/config/complete] combine noun+verb creation

* [testUtils/kbnServer] fix typo

* [server/config/complete] use expressive sinon.assert helper

* [utils/getFlattenedObject] remove traverseArrays option
2017-07-06 16:44:15 -07:00
CJ Cenizal
476b00fd99 Interface changes to toggle directives, and add disabled state (#12655)
* Add kuiToggleButton disabled state.
* Add isDisabled attribute to toggleButton and togglePanel directives.
* Redesign toggleButton and togglePanel directive interfaces to use transclusion instead of attributes, and scope-bound attribute over DOM-bound attribute..
* Use attribute binding.
* Rename 'toggleButtonLabel' attribute to 'buttonText'.
2017-07-06 14:01:30 -07:00
Varun Sharma
411593c738 Fix #12656 aria-hidden without value (#12658) 2017-07-06 16:26:51 +02:00
Tyler Smalley
3ef5e78354 Fixes path to the functional test runner (#12651)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-07-06 00:02:35 -07:00
Nathan Reese
4bb759cde2 do not allow registation of undefined indexpatterns in dashboard state (#12628) 2017-07-05 16:40:11 -06:00
Court Ewing
580e0d2964 docs: setting up cross cluster search (#12599)
There isn't a whole lot to say about cross cluster search support in
Kibana other than how to set it up, which is by design.
2017-07-05 17:18:55 -04:00
CJ Cenizal
e375adb0b2 Make ui-select appearance match other inputs. (#12652)
* Make UI Select match other inputs.
* Add padding to right side of placeholder.
2017-07-05 11:49:15 -07:00
CJ Cenizal
0e6af88236 Refine getIndices() to return an empty array if there are no matching indices. (#12659)
- Fix bug that caused an array of the original query and undefined to be returned when the API response was a 404.
- Scope helper functions to getIndices function.
2017-07-05 11:43:06 -07:00
CJ Cenizal
48e403e2bb Replace brand-danger color with new global red color. (#12654) 2017-07-05 10:18:56 -07:00
Clinton Gormley
4d481a2ef8 Include shared/attributes.asciidoc directly from docs master 2017-07-03 18:27:50 +02:00
Stacey Gammon
17720b5b1b Extract url logic out from chrome.nav internals (#12479)
* Extract url logic out from chrome.nav internals

* Introduce new addQueryParameter function which wraps modifyUrl

* Use modifyUrl in a few more places

get tests passing

* Fix extractAppPathAndId tests

* remove unnecessary undefined check

* Pass port and hostname separately instead of host, use window.location.x to get hostname,protocol,port props

* remove deleted file and function references

* Fix refactor issue

* fix another refactor miss

* Only use hostname, protocol or port defaults if none are specified

Otherwise it’s a bit weird to specify a custom hostname but no port and
have the port be picked up from the current location.
2017-06-30 17:01:12 -07:00
Chris Earle
2d0e2e426d Toast Notification should handle connection failed (#12609) 2017-06-30 16:05:45 -04:00
CJ Cenizal
189747abf7 Allow kuiLocalNavRow to expand vertically if the content wraps. (#12606) 2017-06-30 12:21:36 -07:00
Chris Cowan
39b61c5869 Fixes #11721 - Fix bug with axis updating when data format is changed in TSVB (#12386)
* Fixes #11721 - Fix bug with axis updating when formatter is changed in TSVB

* Changing axis evaluation to use keys on yaxis instead of hash
2017-06-30 12:17:31 -07:00
CJ Cenizal
90834a5d5f Fix jsonify license check (#12615) (#12619)
- Alphabetize order of licenses and overrides.
- Fix jsonify override so that the license passes.
2017-06-30 12:06:26 -07:00
Brandon Kobel
fa8cddd753 Restoring the dashboard-grid padding to appease Gridster (#12613)
Gridster will occasionally throw an error after we updated the padding
to 20px of the dashboard-grid.
2017-06-30 14:21:18 -04:00
Peter Pisljar
3bde72a00d Allow to order percentiles freely (#12498) 2017-06-30 13:44:24 -04:00
Stacey Gammon
b463aebfb6 show the spy toggle in an expanded panel on hover (#12550)
* show the spy toggle in an expanded panel on hover

the css was wrong because the expanded panel is no longer inside
gridster.  Added tests that would have caught this.

* rename toggleSpyPane to toggleSpyPanel
2017-06-30 13:38:00 -04:00
Thomas Neirynck
f6db5ece5e ensure spy panel obscures underlying visualization (#12502) 2017-06-30 12:00:44 -04:00
Thomas Neirynck
491f3a8ab6 goal-type should be discoverable (#12603) 2017-06-30 11:49:19 -04:00
Spencer
aa729af3a1 [ftr/dashboard+scripting] disable unstable tests (#12592) 2017-06-30 00:03:18 -07:00
Spencer
f0f1998175 fix esArchiver tests (#12594) 2017-06-30 00:00:41 -07:00
Spencer
cca8fff6e8 [npm] upgrade grunt-esvm (#12593) 2017-06-29 22:23:27 -07:00
Thomas Neirynck
bcd9e7dc22 Add region map documentation and rename references from tile map to coordinate map (#12370) 2017-06-29 23:49:26 -04:00
Spencer
5af4f21ab1 [tests] increase timeout for es_archiver test setup (#12576) 2017-06-29 19:09:31 -07:00
Thomas Neirynck
b183996b71 remove wrong statement from doc (#12579) 2017-06-29 21:40:52 -04:00
Tyler Smalley
ead5754a42 Uses SavedObjects API in Courier Saved Object (#12407)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-06-29 16:26:19 -07:00
Lisa Cawley
db4ba51f26 [DOCS] Add link to shared attributes (#12574) 2017-06-29 15:28:39 -07:00
Nathan Reese
b6e9628be6 Date histogram brush - add range filter when field is not index pattern time field. (#12286)
* create range filter for brush event when xaxis field is not index pattern timefield

* remove switch statement

* move logic to functions

* convert Dates to milliseconds

* add format:epoch_millis to date range filter
2017-06-29 13:41:04 -06:00
Nathan Reese
fce318bcb9 add groupCount back to addStackedBars method (#12506) 2017-06-29 13:23:11 -06:00
Spencer
fab90fab59 Refactor commaList filter logic into common util (#12553)
* [utils] extract _.commaSeparatedList mixin to common utils

* [utils] test current version of parseCommaSeparatedList()

* [utils] remove mutation in parseCommaSeparatedList()

* [utils] extract commaList filter to util

* [utils] add tests for formatListAsProse()

* [utils] refactor formatListAsProse(), add oxford comma

* [commaList] add oxford comma to commaList output

* [utils/prose] remove pointless condition

* address PR feedback

* 💥 the stringification thingy
2017-06-29 12:00:27 -07:00
Árpád Poprádi
848bf17b29 [UI Framework] Reactify kuiTabs and related CSS components (#12302)
* [UI Framework] Reactify kuiTabs and related CSS components
2017-06-29 07:51:16 -07:00
Peter Pisljar
1243c0f159 updating based on review (#12537) 2017-06-29 09:03:18 +02:00
Court Ewing
55daa20626 Rely on kbn-xsrf header for CSRF protection (#12547)
This change reverts the behavior of accepting content-type as a CSRF
option.
2017-06-28 12:33:41 -07:00
Nathan Reese
532ab640f4 Remove lodash mixin dependencies from Field Formatters (#12507)
* remove private module dependencies from highlight

* remove _.class from _numeral.js

* remove asPrettyString from lodash mixin

* remove shortenDottedString from lodash mixin

* remove use of class lodash mixin in field formatters

* create unit tests for asPrettyString and shortenDottedString

* remove empty constructors and use static to move Class properties inside class definition body

* use class method syntax to ensure method is on prototype instead of instance
2017-06-28 11:04:09 -06:00
Thomas Neirynck
9eb7e58b1d use new staging server for catalogue manifest (#12521) 2017-06-28 11:58:15 -04:00
Lukas Olson
1bea30ddc7 Fix filter bar appearing above other elements (#12480)
* Fix filter bar appearing above other elements

* Make z-index relationships clearer

* Rename variables appropriately

* Use a lower z-index
2017-06-28 08:01:38 -07:00
Chris Cowan
cfa1fc0ef3 removing calculate_indices function from annotations and data requests (#12281) 2017-06-28 07:40:07 -07:00
CJ Cenizal
c5f2ea8066 [UI Framework] Order UI Framework React component exports to be alphabetical (#12526)
* Order UI Framework React component exports to be alphabetical.
* Add globalBoxShadow variable.
2017-06-27 15:51:27 -07:00
Lukas Olson
d49291a386 Fix docs wording for invert filter (#12481) 2017-06-27 10:38:27 -07:00
Lisa Cawley
e21a133e00 [DOCS] Update Kibana Guide to use shared attributes (#12505)
* [DOCS] Update Kibana Guide to use shared attributes

* [DOCS] Add docs repository path
2017-06-27 10:13:42 -07:00
Stacey Gammon
5bc7f7b9f3 Expose the variables for dynamically building doc links (#12513)
* Expose the variables for dynamically building doc links

* Rename variable
2017-06-27 12:53:14 -04:00
Aleh Zasypkin
15c7453717 Gracefully handle query string global state parameter with malformed rison content. (#12376) 2017-06-27 18:20:45 +02:00