Commit graph

16431 commits

Author SHA1 Message Date
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
Chris Roberson 7173053102
fix json validation and empty json handling in advanced settings (#15531) (#15644) 2017-12-18 09:10:53 -05:00
Peter Pisljar df790a42c1
fixes angular vis type so it correctly propagates events up to visualize (#15629) (#15658) 2017-12-18 10:07:07 +01:00
Tim Roes e5eb9d0713
Fix bug where negative time offsets in visual builder will shift x-axis range (#15554) (#15650)
* Shift negative series before drawing, fix #15553

* Add tests fot TSVB markdown

* Use waitUntilLoadingHasFinished

* Remove forgotten skip

* Switch test order

* Use generic seriesOption

* Rename test from chart to metric

* Use test subj to find metric tabs

* Improve TSVB tests
2017-12-16 11:59:51 +01:00
Tim Roes 5d9f5a6dd9
Fix broken initial uiState set (#15630) (#15649) 2017-12-16 11:59:33 +01:00
Tim Roes 7302aa4bcd
Disable transitions of dashboard panels (#15632) (#15634) 2017-12-16 11:04:03 +01:00
Chris Roberson 4a8c219f3f
Filter out ctrl and alt key presses (#15500) (#15635) 2017-12-15 16:59:32 -05:00
Matt Bargar 2bf4b3a4dc
Truncate the index pattern selector just like the filter editor (#15510) (#15637) 2017-12-15 14:36:10 -05:00
Tyler Smalley b286dfee51 Bumps node to 6.12.2 (#15612)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-15 10:16:10 -08:00
Stacey Gammon e4a4969889
Stabilize dashboard snapshot tests (#15603) (#15620)
* Tests were sometimes failing locally when waiting for a render counter of 6

Render counter value, as it turns out, is unstable and unreliable, and
is in the process of being replaced.  For now, we have to use a lower
render counter (sometimes it’s 6, sometimes it’s 4) and add a sleep.
Very unfortunate, but hopefully will soon be able to be use the newer
logic.

* Remove extra test runs
2017-12-14 18:53:08 -05:00
Nathan Reese ef0cdaad10
disable input control when field contains no values in index pattern (#15317) (#15621)
* disable range control when no min and max

* use message text provided by gchaps

* use pui-react-tooltip instead of waiting for UI-framework tooltip

* disable list control when no terms returned

* fix jest tests and add test case disabled controls

* fix pui tooltip styling

* set disable to true since its inside if check for same value

* update jest snapshot
2017-12-14 16:42:33 -07:00
Chris Roberson a287eef7d4
Add test for parsedUrl (#15497) (#15613) 2017-12-14 16:31:21 -05:00
Shaunak Kashyap 29702a21b3 [kuiFlexGroup] Add space-evenly option to justify-content property (#15578) 2017-12-14 13:00:27 -08:00
Stacey Gammon feb41476b1
Skpi a flaky (maybe broken) test (#15616) (#15617) 2017-12-14 15:23:12 -05:00
Tim Roes 31af161c79
Set uiState to Vis from visualization (#15549) (#15609) 2017-12-14 12:59:34 +01:00
Nathan Reese 2e4426cabf
[timelion] highlight series on legend mouseover (#15229) (#15602)
* highlight series on mouseover

* thomasneirynck review items

* make highlighting keyboard accessible

* add check for zero to focus if block
2017-12-13 15:06:05 -07:00
Nathan Reese c0661db279
set tooltip width so div is centered around triggering element (#15542) (#15601) 2017-12-13 14:48:00 -07:00
Thomas Neirynck a03f0de88a
fixed param order (#15518) (#15596) 2017-12-13 16:14:32 -05:00
Stacey Gammon faa2e9771e
Add mechanism for dashboard snapshots (#15463) (#15593)
* Add mechanism for dashboard snapshots

* Adjust wait for render function since it needs to be 2, not gt 0.

Should be obsolete when the new render stuff is complete.

* resize images using new library so comparisons work across different screen resolutions

* use jimp comparison and see if expanding to expanded panel mode helps when comparing across browser/os

* Try to ensure window size

* Experiment with a smaller window, see if screenshot dimensions change

Update screenshot for new window dimensions

* Try cover + quality, see what the diffs look like.

* Stop trying to get TSVB to pass, try area charts

There is a timezone bug with tsvb:
https://github.com/elastic/kibana/issues/15501

* gah, cover didn't work, check resize

* bump render counter to 6, as it should be.

As it turns out, the visualization was not done re-rendering to
maximized mode

* Bump threshold for comparison

* reduce down to a single test run

* Don't use an environment variable to detect updateBaselines cmd line flag
2017-12-13 15:49:18 -05:00
CJ Cenizal e96589fd64
Downgrade babel-preset-env to 1.4.0 and babel-preset-react to 6.22.0. (#15595) (#15599) 2017-12-13 12:19:54 -08:00
Nathan Reese 4531c17334
reset lastSubUrl nav links for deleted saved objects (#15508) (#15590)
* untrack nav links for deleted saved objects

* move nav cleanup logic to saved_object_loader delete method

* notify with info when redirected when missing
2017-12-13 12:42:08 -07:00
Tim Roes 14e5cfd73c
Remove implementsRenderComplete property (#15579) (#15589) 2017-12-13 19:56:08 +01:00