Commit graph

16431 commits

Author SHA1 Message Date
Yuri Astrakhan a1a8aacc22
Upgrade to jQuery 3.2.1 (#15674)
* 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 12:46:39 -05:00
Chris Cowan 6c92c10b92
Fixes #15501 - Change xaxis formatter to honor dateFormat:tz; fix tick count to accommodate new formatting rules (#15512) 2017-12-21 14:35:42 -07:00
Nathan Reese c4d5018c43
add button to enter dashboard edit mode from listing page (#15645)
* 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 11:57:32 -07:00
Chris Cowan b445389b79
Revert Resize and FlotChart compontents to 6.0 (#15717)
- fixes #15672
- fixes #14353
2017-12-21 11:21:56 -07:00
Tim Roes 79e134ccb1
Refactor spy panels (#15682)
* 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:01:23 +01:00
Chris Earle 592ac5e085
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:39:36 -05:00
CJ Cenizal 92bafdd47a
Import K6-themed CSS from EUI. (#15725) 2017-12-20 12:35:28 -08:00
Nathan Reese e515127113
Link to format section of numeraljs page (#15715) 2017-12-20 11:57:51 -07:00
Stacey Gammon fbb4412a63
Stabilize dashboard view_edit tests post EUI CSS merge (#15689)
* bring back the tests and run 30x

* Remove extra tests
2017-12-20 13:37:18 -05:00
Yuri Astrakhan 1d92807a18
Doc fix: editorController -> editor (#15607)
There is no `editorController` param in createBaseVisualization.
I think `editor` was meant instead.
2017-12-19 21:04:35 -05:00
CJ Cenizal c55beed24f
Remove testing style guide. (#15699) 2017-12-19 11:28:30 -08:00
Peter Pisljar 4941590354
few enhancements to default sidebar editor (#15619) 2017-12-19 20:27:54 +01:00
CJ Cenizal 3bd256c1c4
Reinstate and skip Dashboard and Visualize tests (#15687)
* Reinstate and skip flaky Dashboard view edit tests.
* Reinstate and skip flaky Visualize gauge chart tests.
2017-12-19 10:23:32 -08:00
Brandon Kobel c6a1ce4987
Removing axis_label titlePadding magic number (#15691)
* Adjusting the titlePadding because eui uses a different font

* No more magic numbers
2017-12-19 12:59:15 -05:00
CJ Cenizal 7840bd453a
EUI css reset fixes (#15685)
* EUI css reset fixes
* Fix linting errors.
2017-12-19 07:02:42 -08:00
CJ Cenizal d654fed93e
Migrate all KUI test helpers dependents to EUI test helpers (#15684)
* 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:53:28 -08:00
CJ Cenizal 429bf734f9
Migrate all KUI services dependents to EUI services. (#15677)
* 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:20:44 -08:00
CJ Cenizal b0e25a9466
EUI: Reset CSS #2 (#15657)
* 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 16:43:32 -08:00
Yuri Astrakhan 1ade6d7c48
Preparing for jQuery 3: size() -> length (#15648)
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 14:22:28 -05:00
Stacey Gammon 74c3ddf78c
Investigate flaky add new visualization test (#15506)
* 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-18 10:36:48 -05:00
Peter Pisljar f4ed330399
fixes pie chart size to normal if labels are not applied (#15641) 2017-12-18 15:40:41 +01:00
Peter Pisljar 7c90b859f2
fixes angular vis type so it correctly propagates events up to visualize (#15629) 2017-12-18 08:52:37 +01:00
Tim Roes 4671aa5824
Fix bug where negative time offsets in visual builder will shift x-axis range (#15554)
* 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:07:30 +01:00
Tim Roes 769bb66d20
Fix broken initial uiState set (#15630) 2017-12-16 11:04:47 +01:00
Stéphane Campinas bb09492bab fix json validation and empty json handling in advanced settings (#15531) 2017-12-15 17:10:19 -05:00
archana 36652c2dbc
[CLI] Readable logs on Windows with chalk colors (#15557)
* [colors] try new cli colors

* [colors] try magentaBright instead of magenta

* [colors] try white for log text

* [colors] replace all remaining ansicolors with chalk

* [colors] try yellowBright instead of yellow

* remove ansicolors from package.json

* [tests] attempt to fix tests

* [tests] attempt to fix tests again

* [color] backgrounds, cleanup
2017-12-15 14:35:10 -06:00
Tyler Smalley 5f126b4e3a
Bumps node to 6.12.2 (#15612)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2017-12-15 10:15:08 -08:00
Matt Bargar 7f39cc8475
Truncate the index pattern selector just like the filter editor (#15510) 2017-12-15 12:56:52 -05:00
Chris Roberson c4eaa300a1
Filter out ctrl and alt key presses (#15500) 2017-12-15 12:05:07 -05:00
Tim Roes fbd715f4c5
Disable transitions of dashboard panels (#15632) 2017-12-15 17:37:04 +01:00
Nathan Reese 4fab0ba40a
disable input control when field contains no values in index pattern (#15317)
* 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 15:49:51 -07:00
Shaunak Kashyap 0d79db8e51
[kuiFlexGroup] Add space-evenly option to justify-content property (#15578) 2017-12-14 12:59:23 -08:00
Stacey Gammon 0f6c9d2ca4
Stabilize dashboard snapshot tests (#15603)
* 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 15:42:50 -05:00
Tim Roes 325eebd4f1 Skpi a flaky (maybe broken) test (#15616) 2017-12-14 14:21:46 -05:00
Chris Roberson 4474525da6
Add test for parsedUrl (#15497) 2017-12-14 13:03:38 -05:00
Tim Roes 51ec1a855e
Set uiState to Vis from visualization (#15549) 2017-12-14 10:40:30 +01:00
Nathan Reese 87498c4b52
[timelion] highlight series on legend mouseover (#15229)
* highlight series on mouseover

* thomasneirynck review items

* make highlighting keyboard accessible

* add check for zero to focus if block
2017-12-13 14:10:11 -07:00
Nathan Reese c06b44584d
set tooltip width so div is centered around triggering element (#15542) 2017-12-13 13:32:04 -07:00
CJ Cenizal 1005e27522
Downgrade babel-preset-env to 1.4.0 and babel-preset-react to 6.22.0. (#15595) 2017-12-13 12:17:52 -08:00
Stacey Gammon 56b9a7c802
Add mechanism for dashboard snapshots (#15463)
* 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 13:41:40 -05:00
Nathan Reese 5673f79f8f
reset lastSubUrl nav links for deleted saved objects (#15508)
* 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 11:20:12 -07:00
Tim Roes 04c60efe83
Remove implementsRenderComplete property (#15579) 2017-12-13 18:44:35 +01:00
Yuri Astrakhan fb583bc460 minor indent fix (#15520) 2017-12-13 11:21:26 -05:00
Stacey Gammon 9c371008b9
The react 16 upgrade requires the width 100% attribute, but using height 100% messes up maximized panel mode (#15565) 2017-12-12 18:05:35 -05:00
CJ Cenizal 190eb695b0
Fix some bugs in the UI Framework caused by the React 16 upgrade. (#15544) 2017-12-12 09:48:19 -08:00
Christopher Dieringer 273e4f8e3d Handle ES _default_ mapping names (#15432) 2017-12-12 09:04:34 -08:00
Chris Cowan b7dce2d233
[TSVB] Fix bucket paths to work with ES 6.0 and later (#15322)
* Fix bucket paths (and pretty up the file some)

* Fixing tests
2017-12-12 09:52:10 -07:00
Stacey Gammon 3878cc835e
Use render counter to fix timing issue with click events on pie slices (#15494)
* Use render counter to fix timing issue with click events not being applied by the time a pie slice is clicked.

* use testSubjects.moveMouseTo function

It has built in safety checks for stale element refs

* remove sleep

* Remove extra test suite runs, passed enough times
2017-12-12 11:36:12 -05:00
Stacey Gammon d0c99661c8
Investigate fix for flaky clone test (#15503)
* First, run the test suite in question 20s to see how flaky it is and if it can be semi reliably repro'ed

* Use testSubjects instead of click by link test.

* spaces in data-test-subj selectors messes this up

* Passed sufficient number of times, remove extra test runs
2017-12-12 10:44:21 -05:00
Tim Roes 8915a40d5f
Extract lab HTML on dashboard into own file (#15546)
* Use visualize loader to in visualize embeddable

* Remove old template

* Fix broken property name

* Extract the lab disabled template
2017-12-12 15:54:58 +01:00