Commit graph

16452 commits

Author SHA1 Message Date
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
Tim Roes
91b8340a7d
Only apply forced max mode when panel is shown (#15752) (#15761) 2017-12-23 19:58:59 +01:00
Yuri Astrakhan
7fa21bf39d
Upgrade to jQuery 3.2.1 (#15674) (#15757)
* Upgrade to jQuery 3.2.1

The jquery-migrate showed a number of warnings,
but no errors, so it should be safe to use.

Warnings mostly related to bind, unbind, focus, ...
https://github.com/jquery/jquery-migrate/blob/master/warnings.md

To enable jquery-migrate, I added it to package.json, and added
a require('jquery-migrate') to the webpackShims/jquery.js right
after the require('jquery').

* Breaks in jQuery3: $(window).offset()

* await field.type(), update chromedriver
2017-12-22 16:42:53 -05:00
CJ Cenizal
c04693788b
Remove unused pattern-checker directive. (#15756) (#15759) 2017-12-22 12:18:01 -08:00
Nathan Reese
09fba75cd1
add button to enter dashboard edit mode from listing page (#15645) (#15741)
* add button to enter dashboard edit mode from listing page

* do not show actions column when dashboard is in read only mode
2017-12-21 15:07:40 -07:00
Chris Cowan
085dee449c Fixes #15501 - Change xaxis formatter to honor dateFormat:tz; fix tick count to accommodate new formatting rules (#15512) 2017-12-21 14:36:33 -07:00
Chris Cowan
44369bf4c0 Revert Resize and FlotChart compontents to 6.0 (#15717)
- fixes #15672
- fixes #14353
2017-12-21 11:22:36 -07:00
Tim Roes
008034c1aa
Refactor spy panels (#15682) (#15734)
* Fix design of debug spy panel

* Simplify the debug spy panel

* Fix height of spy content

* Use scope bindings for spy

* Allow modes to be enabled/disabled based on vis

* Make showSpyPanel docs for loader more detailed

* Only show default panels when using courier

* Fix styling of req/resp spies

* Fix title styling in spy panel

* Get rid of visData in spy panels

* Use tabs instead of select box

* Ensure uiState in spy

* Restyle code in default editor

* Remove unnecessary if protection

* Use local scope variable for rowsPerPage

Due to issues with primitive datatype bindings in Angular this anyway
didn't save it correctly back into the variable.

* Pull all logic into spy directive

* Fix bug when closing panel

* Check for minimum chart size

* Skip spy tests for now

* Fix functional tests

* Improve uiState mock

* Create unit tests

* Remove dead scope binding
2017-12-21 12:55:13 +01:00
Chris Earle
60f809826d Use auto_expand_replicas to stay green on 1 node clusters (#15694)
This makes use of the `auto_expand_replicas` setting to keep `.kibana` green on one node clusters, which should help to create a better starting experience.
2017-12-20 17:42:24 -05:00
Nathan Reese
cf41aedeb0
Link to format section of numeraljs page (#15715) (#15723) 2017-12-20 15:25:12 -07:00
CJ Cenizal
d3b8b9f89d
Import K6-themed CSS from EUI. (#15725) (#15726) 2017-12-20 12:36:21 -08:00
Stacey Gammon
99bf2cb200
Stabilize dashboard view_edit tests post EUI CSS merge (#15689) (#15719)
* bring back the tests and run 30x

* Remove extra tests
2017-12-20 14:45:25 -05:00
Yuri Astrakhan
3edd4a87db
Doc fix: editorController -> editor (#15607) (#15705)
There is no `editorController` param in createBaseVisualization.
I think `editor` was meant instead.
2017-12-19 21:14:54 -05:00
CJ Cenizal
133067ae62
Remove testing style guide. (#15699) (#15701) 2017-12-19 12:55:29 -08:00
Brandon Kobel
0283455193
Removing axis_label titlePadding magic number (#15691) (#15696)
* Adjusting the titlePadding because eui uses a different font

* No more magic numbers
2017-12-19 15:49:14 -05:00
Peter Pisljar
20c9e3bf30
few enhancements to default sidebar editor (#15619) (#15700) 2017-12-19 21:32:37 +01:00
CJ Cenizal
3294a2ff8e
Reinstate and skip Dashboard and Visualize tests (#15687) (#15698)
* Reinstate and skip flaky Dashboard view edit tests.
* Reinstate and skip flaky Visualize gauge chart tests.
2017-12-19 10:26:59 -08:00
Peter Pisljar
9a3b016aa1
fixes pie chart size to normal if labels are not applied (#15641) (#15664) 2017-12-19 17:19:13 +01:00
CJ Cenizal
6ea957879d
EUI css reset fixes (#15685) (#15688)
* EUI css reset fixes
* Fix linting errors.
2017-12-19 07:06:09 -08:00
Stacey Gammon
5ed5235eed
Investigate flaky add new visualization test (#15506) (#15667)
* try to repro

* try 30 times

* some clean up and extra tests

Don’t see how this should help, but switch to using data-test-subj and
add a wait until loading line.

Still, I don’t see that it would actually help.

Also it took 50 test run to hit it once, so doubling the amount of
times the test suite runs to improve chances of hitting it.

* Throw the function in a retry

Unfortunately it’s probably not worth investigating why the click
sometimes fails, given how rare it is and that it’s only reproducible
in the test environment.

* Remove extra test loops

* remove skip and check multiple times again

* Fix issue with flaky field toggle selection

* forgot await

* More stabilizations

* Stabilize by disabling toast auto hides on all dashboard tests

* avoid all the retries to see if disabling toast auto hides was what was messing everything up

* remove comment that is no longer relevant

* Remove extra tests
2017-12-19 09:48:33 -05:00
Court Ewing
444b2b5dc6 docs: 6.1.1 release notes 2017-12-19 08:58:35 -05:00
CJ Cenizal
ba3e6edddc
Migrate all KUI test helpers dependents to EUI test helpers (#15684) (#15686)
* Migrate all KUI test helpers dependents to EUI test helpers.
* Remove TestSubjects test helper from KUI.
* Remove test helpers from the KUI public interface.
2017-12-19 05:54:37 -08:00
CJ Cenizal
86f26f7303
Migrate all KUI services dependents to EUI services. (#15677) (#15678)
* Migrate all KUI services dependents to EUI services.
* Remove KUI services from public interface.
* Add KUI deprecation notice to docs site.
2017-12-18 22:21:51 -08:00
CJ Cenizal
d67d6206e6
EUI: Reset CSS #2 (#15657) (#15676)
* Add EUI v0.0.7 as a dependency.
- Add support for using dark theme EUI CSS in Dashboard.
- Set light theme as the default.
- Add comments to chrome.jade about role of theme node.
- Add (WTFPL OR MIT) to acceptable licenses.

* Remove old reset CSS.
- Remove naked element selectors from base.less.
- Remove Bootstrap resets.
- Remove UI Framework reset.
- Remove unused reset styles from UI Framework.

* Fix CSS regressions caused by removal of CSS reset.
- Replace usage of sr-only with euiScreenReaderOnly.
- Apply euiButtonEmpty classes to the 'Add a filter' button.
- Fix Notification padding and layout.
- Apply euiTabs styles to Timepicker mode tabs.
- Fix layout of Available Fields heading in Discover.
- Add padding to Popular Fields container in Discover.
- Push down Selected Fields heading in Discover sidebar.
- Fix appearance of links in Discover sidebar.
- Fix height of pills in Filter Bar.

* Fix timepicker tests.
- Remove kbn-accessible-click from timepicker buttons.

* Fix functional tests.
- Use byCssSelector inside of testSubjects.find.
- Delete flaky view_edit.js test: 'when time changed is stored with dashboard'.
- Delete flaky view_edit.js test: 'and preserves edits on cancel > when time changed is stored with dashboard'.
- Delete flake Gauge Chart tests. EUI changed the font size, and the text within the gauges doesn't render when the window is too small.
2017-12-18 17:39:06 -08:00
Yuri Astrakhan
492a15eb2d
Preparing for jQuery 3: size() -> length (#15648) (#15671)
Per https://api.jquery.com/size/ - .size() is deprecated,
and should be changed to .length

Making this change alone already makes Kibana run with jQuery master.
2017-12-18 16:17:10 -05:00