Commit graph

16476 commits

Author SHA1 Message Date
Kim Joar Bekkelund
2bc6689cc4
Revert removal of history dependency (#15956) (#15957)
* Revert "Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938)"

This reverts commit 2fdaf868d9.
2018-01-10 16:01:59 +01:00
Nathan Reese
e67977b2b4
update DashboardCloneModal to use EUI framework (#15697) (#15934)
* update DashboardCloneModal to use EUI framework

* EuiModalOverlay changed to EuiOverlayMask

* fix jest test
2018-01-10 07:19:08 -07:00
CJ Cenizal
1dfe3f9f45
Update react-ace, react-addons-test-utils, and pui tooltip dependencies (#15944) (#15946)
* Upgrade react-ace to 5.5.0 for compatibility with react 16.0.0.
* Remove unused react-addons-test-utils dependency.
* Replace pui tooltip dependencies with pivotal-ui dependency.
2018-01-09 16:59:46 -08:00
CJ Cenizal
00a2a1b174
Remove history dependency, which was only being used by the KUI framework, and is unnecessary. (#15938) (#15942) 2018-01-09 16:57:41 -08:00
Spencer
206fc7b389
[6.x] [npm] bump grunt-esvm (#15937) (#15939) 2018-01-09 17:16:05 -07:00
Spencer
a676f08d93
[6.x] [ui/UiApp] sort used modules so entry files can be cache keys (#15910) (#15941)
* [ui/UiApp] sort used modules so entry files can be cache keys

* [ui/bundles+apps] test changes and verify assumptions down to appEntryTemplate
2018-01-09 14:52:34 -07:00
Chris Cowan
f423729a88 Remove MathJS Feature (#15652)
* Reverting a258f1af4

* Revert "[TSVB] Add support for Math Aggregation to tables (#14553)"

This reverts commit d2537d8039.

* Revert "Math Aggregation to support Sibling Aggs for TSVB (#13681)"

This reverts commit 9c9fb17fef.

* removing old partial bucket cliping from table vis

* Adding support for percentiles for bucket_script args

* removing old partial bucket cliping for table vis

* Fixing support for drop last bucket

* Adding unsupported agg message
2018-01-09 12:26:11 -07:00
Court Ewing
59726c0b75
[optimizer] allow http caching for bundles (#15880) (#15933)
By setting cache-control to must-revalidate, we indicate to the browser
that it should send the if-none-match header with the last known etag
value. If the etags match, the server responds with a 304 and no body,
and if they don't the server responds with a 200 and a body along with a
new etag.

This ensures a cache is always invalidated when a bundle changes, like
when Kibana is upgraded or a plugin is installed.

We no longer send the last-modified header because we don't want the
browser caching based on time. Doing so can be unpredictable since the
browser may not agree with the server's definitions of DST, and the
server time itself can be changed.
2018-01-09 13:33:45 -05:00
Nathan Reese
f8f8141191
Visualization render status - pass correct parameters to resize check (#15855) (#15930)
* pass correct parameters to hasChangedUsingGenericHashComparison

* handle case where size parameter is not set
2018-01-09 10:30:33 -07:00
Spencer
ccb794980a
[6.x] [optimizer] run webpack compilation ASAP (no more laziness) (#15795) (#15917)
* [optimizer] run webpack compilation ASAP (no more laziness)

* [optimize] fix variable reference
2018-01-09 10:09:44 -07:00
Nathan Reese
3cd90d894b
display NOT when new filter is negated (#15865) (#15928) 2018-01-09 09:24:53 -07:00
Tim Roes
c0f0150f08
Fix panel content vis styling (#15754) (#15921) 2018-01-09 11:21:24 +01:00
Tim Roes
e4e9868fb7
Refactor rendering events (#15895) (#15920)
* Rename timelion internal event for more clarity

* Add test for native DOM events

* Remove Angular renderComplete event
2018-01-09 10:54:23 +01:00
Tim Roes
c82be961ba
Fix broken editor styles (#15735) (#15919)
* Fix broken collapse of editor

* Fix broken styling in small editor mode

* Remove unneeded media query

* Revert "Fix broken collapse of editor"

This reverts commit 1e909b3cf1.
2018-01-09 10:49:24 +01:00
Spencer
cec220fa94
[6.x] [functional/management/import] disable flaky test (#15914) (#15915) 2018-01-08 21:39:19 -07:00
Chris Cowan
9cac187f43 Fixing the form font sizes (#15909) 2018-01-08 16:44:14 -07:00
Nathan Reese
b4af0430d3
replace KuiConfirmModal with EuiConfirmModal in confirm-modal directive (#15693) (#15898)
* replace KuiConfirmModal with EuiConfirmModal

* add titles to confirm modals. Update modal text and button text

* updates for newest version of EUI

* use EUI class in overlay and EUI button constants

* remove logic about changed filters in cancel dashboard editing modal, clean up wording for import saved objects modal

* fix broken function test - management delete index pattern

* wrap names in single quotes
2018-01-08 12:16:54 -07:00
Brandon Kobel
0ebc879792
Sharing - exposing Dashboard and Visualize title and type (#14946) (#15903)
* Exposing the sharing title on the controller

* Implementing the getSharingType on the controllers

* Adding a getSharingSavedObjectId method

* We don't need the savedObjectId anymore
2018-01-08 13:53:14 -05:00
Tim Roes
e5e59b85cf
Fix JSON hint (#15890) (#15892) 2018-01-08 18:57:24 +01:00
Nathan Reese
45ce09c05c
add time to visualization status (#15856) (#15894)
* add time to visualization status

* account for custom time on visualization

* update docs
2018-01-08 10:55:00 -07:00
Peter Pisljar
d288d2ddac
fixing dot ratio slider (#15860) (#15883) 2018-01-08 12:04:07 +01:00
Peter Pisljar
cc556b7433
removing type from classes (#15862) (#15882) 2018-01-08 12:03:57 +01:00
Peter Pisljar
acbdf48b6a
other and missing bucket support for terms agg (#15525) (#15864) 2018-01-08 07:59:47 +01:00
Court Ewing
73eced9e52
Revert "[optimizer] More aggressive chunking of common/vendor code (#15816)" (#15878) (#15879)
This reverts commit 92b373b304.
2018-01-07 09:31:15 -05:00
Nathan Reese
2ed3d8ffb7
upgrade to eui 0.0.11 (#15870) (#15872) 2018-01-05 19:19:05 -07:00
Lukas Olson
13246b3ea3 Introduce simple kibana query language (#15646)
* Introduce simple kuery language

* Rename to kql and add modules
2018-01-05 12:59:31 -07:00
Tyler Smalley
303f98a25a [optimizer] More aggressive chunking of common/vendor code (#15816)
Previously, we were not aggressive in combining common code which resulted in duplicates included in the bundles.

As an example `node_modules/elasticsearch-browser/elasticsearch.angular.js` is present in the following chunks:

* kibana.bundle.js
* dashboardViewer.bundle.js
* apm.bundle.js
* monitoring.bundle.js
* ml.bundle.js
* timelion.bundle.js
* graph.bundle.js

Vendor code (anything inside Kibana's node_modules) is placed in vendors.bundle.js while everything else with more than two references is placed in commons.bundle.js.

This has a couple positive side-effects (numbers are with x-pack & canvas):

* Decreased build time. Seeing builds go from 475.76 seconds to 274.72.
* Decreased memory overhead. Uses roughly 1/3 the memory overhead.
* Decreased bundle size. A 68% reduction in overall bundle size. Going from 66.16 MB to 21.13 MB.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-01-05 10:13:06 -08:00
Spencer
a29c6e4b69
[6.x] [ui/bundles][optimizer] only use caches when in dev mode (#15780) (#15854)
* [ui/bundles][optimizer] only use caches when in dev mode

* [optimize/caching] make cache-loader disabling more explicit

* [optimize/caching] clarify why we only want caching in dev
2018-01-05 11:11:35 -07:00
Brandon Kobel
56dc541bdd
Sharing render-complete (#15574) (#15853)
* Naively switching to Observables

* Dispatching native renderStart and renderComplete events

* Emitting actual event...

* Removing the visualize debounce

* Fixing unsubscribe

* Dispatching correct event for the metric visualization

* Moving the $scope.$apply to right after the call to render so it does
what it's supposed to

* Switching angularjs attribute name

* Removing the renderStart since it doesn't do anything

* Removing the renderComplete trigger from visualize, since no one listens
at this level

* Using vis.requestError to communicate when there's a request error

* Grabbing the container when creating the observable

* Dispatching renderStart as soon as we can

* Only emitting renderComplete after we wait for a new animation frame

* Can't ignore the first resize, sometimes it's actually a resize

* Use $timeout in visualiationEditor render, it can be in a digest already

* Calling renderComplete in componentDidUpdate as well

* Switching tests to use render-complete

* Fixing peer review corrections from @gammon

* Removing visDiv reference, we don't need it anymore

* Removing requestAnimationFrame

* Removing unused $timeout

* Removing test that was testing an implementation detail

* Adding $timeout.flush

* Moving the failures to the actual tests don't work.

* Deleting tests that weren't running before

* Removing import of removed test

* Consolidating the dispatchRenderComplete/dispatchRenderStart
2018-01-05 08:05:13 -05:00
Walter Rafelsberger
6eee132f19
[DOCS] Add Kibana Milestones Visualization plugin to list of known plugins. (#15841) (#15858)
This PR adds a link to the Milestones Visualization plugin (https://github.com/walterra/kibana-milestones-vis) to the list of known Kibana plugins.
2018-01-05 12:31:53 +01:00
Peter Pisljar
7ea1005eac
refactoring vis uiState (#15709) (#15851) 2018-01-05 10:33:31 +01:00
Spencer
bfe4b70a2e
[server] remove server.getKibanaStats() (#15834) (#15839)
* [server] remove server.getKibanaStats()

* [clusterManager] support ignoring args passed to process (for tests)
2018-01-04 10:48:06 -07:00
Brandon Kobel
fb8c23c7bd
Update color field formatter (#15837) (#15847)
* Updating color field formatter

* Just using single quotes, back-ticks no longer necessary

* Revising the tests
2018-01-04 12:03:00 -05:00
Peter Pisljar
f32b284689
fixing collapsible side bar editor (#15826) (#15846) 2018-01-04 16:49:25 +01:00
Brandon Kobel
e0cbb9e95e
Using ng-src so a request isn't made before angular compiles template (#15836) (#15845) 2018-01-04 07:40:06 -05:00
Brandon Kobel
55c2ca8d6b
Advanced Settings - Image Input (#15342) (#15829)
* Beginning to work on image advanced setting type

* Making the maxSize code and UI more user-friendly (hopefully).

* Getting rid of that border, I was using the wrong class

* Displaying an image for the preview

* Not displaying the image if we don't have a value

* Removing no longer used code

* Adding explicit throw in the subscription to make our intents more clear

* Changing some of the Observable style based on  input from the peer review

* Using the maxSizeKB option to enforce the size

* Adding support for no max

* Throwing better errors

* No longer duplicated the multiple usage error message

* Using the maxSize attribute to control the max size of the settings

* No longer using JSON.stringify, it's already a string and that approach
won't really do anything for other data-types

* Extracting validate to it's own method

* No longer hardcoding the maxLength validation in the uiSettings

* Using a Joi schema instead

* Punting on server-side validation for the time being
2018-01-03 16:19:15 -05:00
Nathan Reese
170a735915
Set list-style-type for list items in markdown-body (#15827) (#15830)
* fix markdown list style broken by EUI

* apply style to list element instead of item element
2018-01-03 13:09:49 -07:00
Nathan Reese
5edc0f0705
replace element selector with class selector (#15702) (#15823) 2018-01-03 13:09:35 -07:00
Spencer
8b1cc5a27f
[6.x] [eslint-config-kibana] upgrade to v0.15.0 (#15831) (#15832) 2018-01-03 11:00:56 -07:00
Søren Louv-Jansen
3b091817aa
[KUI] Add defaultValue to KuiToolBarSearchBox (#15797) (#15825) 2018-01-03 14:32:51 +01:00
Spencer
b112eb6ac0
[6.x] Upgrade eslint (#15796) (#15799)
* [eslint] upgrade eslint-related deps

* [eslint] remove snake_case destructured keys
2018-01-02 13:36:05 -07:00
Shaunak Kashyap
94a16ece8c Bumping EUI version + updating code for breaking changes (#15815) 2018-01-02 12:07:44 -08:00
CJ Cenizal
bc3f6069ea
Add caret icon to time field select control. (#15811) (#15813) 2018-01-02 10:09:26 -08:00
Nathan Reese
8a027e8189
Fix z-index and clipping of panels while dragging (#15670) (#15809)
* fix z-indexing so dashboard panels are below left nav when dragging

* make dragged panel be on top
2018-01-02 10:36:43 -07:00
Chris Roberson
54676a829e
First pass at applying EUI styles to the index pattern creation page (#15722) (#15810)
* First pass at applying EUI styles to the index pattern creation page

* PR feedback

* PR feedback

* PR feedback
2018-01-02 11:45:20 -05:00
Matt Bargar
318fe724ae
Update known-plugins.asciidoc (#14370) (#15805)
Add my new plugin 'Markdown Doc View'. And add sign to my plugin 'Notification Center'.
2018-01-02 09:51:55 -05:00
Thomas Neirynck
0898e258de
Adding SPG Conveyor as a known Kibana plugin (#15772) (#15791) 2017-12-29 14:38:03 -05:00
Thomas Neirynck
cf9ffcf9e9
Add svg screenshot comparison test (#15777) (#15784)
Extend ImageComparator to allow for SVG-comparisons, add sample test in tag-cloud.
2017-12-28 14:56:57 -05:00
Shaunak Kashyap
d81bcc69f1 Adding autocomplete rules for composite agg (#15787) 2017-12-28 11:37:11 -08:00
Thomas Neirynck
cc57ef4feb
Add more automated map tests (#15507) (#15767)
Adds screenshot tests for the region maps.

This also closes https://github.com/elastic/kibana/pull/15483, https://github.com/elastic/kibana/issues/13293
2017-12-26 14:01:13 -05:00