Commit graph

659 commits

Author SHA1 Message Date
Spencer
f6b4d247d0
[7.1] [ftr/tsvb] retry if the legent count is off (#36375) (#36395) 2019-05-09 13:06:13 -07:00
spalger
55b3c7be50 disable edge-case test that is only flaky in 7.0 2019-04-29 12:42:30 -07:00
John Dorlus
3de0c05256
Removed createIndexPattern via UI and used ES Archiver. (#35374) (#35479) 2019-04-24 12:17:45 -04:00
Joe Reuter
87295f50c4
Correctly apply timezone to formatted dates and ticks (#33831) (#35523) 2019-04-24 11:28:42 +02:00
Marco Vettorello
bf4d1233d4
Fix filling x axis values for date histogram (#35247) (#35520)
The interval parameter is used to fill the gaps between missing buckets. If we are using a calendar interval it not always correspond correctly to his milliseconds representation. E.g. 1y interval can correspond to 365 or 366 days depending on the interval and. If transformed to milliseconds it can get one of those two values depending of the interval start and end. The same happens for months.

Add a new esarchive with 7 years of data, used for those functional tests

Removed angular dependency from zero injection
2019-04-24 09:15:04 +02:00
Dmitry Lemeshko
d1e8ca057a
update functional tests to support Firefox (#34635) (#35214) 2019-04-17 15:05:43 +02:00
Tim Roes
180f1ec4c2
Hide gauge labels when value is hidden (#34171) (#34279)
* Hide gauge labels when value is hidden

* Only hide subtext when value is hidden

* Use better free space calculation

* Fix tests
2019-04-02 10:02:09 +02:00
spalger
6ae392286b disable flaky test (#33468)
(cherry picked from commit 179b9be6bb)
2019-03-28 19:31:04 -07:00
Spencer
76cc216aa0
[@kbn/expect] "fork" expect.js into repo (#33761) (#33799)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 13:13:12 -07:00
Spencer
2a65969075
[ftr/dashboard] wait for importFile() to finish (#33723) (#33751)
* [ftr/dashboard] wait for importFile() to finish

* move waitUntilLoadingHasFinished() into importFile() call

* remove unnecessary page object
2019-03-22 17:27:20 -07:00
spalger
7f5f552ac5 skip flaky test suite (#33504)
(cherry picked from commit 33083c80eb)
2019-03-22 09:26:24 -07:00
dave.snider@gmail.com
ddc0187116
Eui/6.10.5 in Kibana 7.0 - A design feedback PR before GA (#33273)
Adds EUI bigfixes and backports the nav changes and dark mode changes. And includes backports for #32864 and #32728.
2019-03-15 12:25:46 -07:00
Luke Elmers
01e0a95cba
Ensure saved filters from searchSource are always passed to response handlers (#33074) (#33271) 2019-03-14 17:19:26 -06:00
Spencer
67043db238 [chrome] strip # from hash before updating $location (#32732)
* add functional test to prove regression

* [chrome] strip # from hash before updating $location

* add opt-out level for disabling auto fix, disable in APM

(cherry picked from commit 319921ebfc)
2019-03-13 07:17:48 -07:00
Liza Katz
922eb1ee48 Back button navigation fix 31238 (#32372)
* initial fix for navigation issue + Spencer
* added navigation test for issue #31238 
* added more validations to the navigate back test

(cherry picked from commit ace80d1b59)
2019-03-13 07:17:43 -07:00
spalger
35e2b80ff3 Revert "correctly passing saved filters and query to all response handlers (#32749) (#32964)"
This reverts commit 46801c33db.
2019-03-12 11:41:09 -07:00
Peter Pisljar
46801c33db
correctly passing saved filters and query to all response handlers (#32749) (#32964) 2019-03-12 11:46:35 +01:00
Luke Elmers
d842fe6069
Ensure extra columns are not shown in table vis when showPartialRows:true (#27154) (#32962) 2019-03-11 23:20:08 -06:00
spalger
3b8cca3350 [mgmt/scriptFields] use better assertions to help debug #32862
(cherry picked from commit bbe106aea1)
2019-03-10 12:21:34 -07:00
Dmitry Lemeshko
53ecc0b119
Restore webdriver-based functional test runner driver (#31446) (#32846) 2019-03-09 19:45:28 +01:00
Spencer
2c2637d4ee
[7.0] [ts] add script to verify that all ts is in a project (#32727) (#32827)
* [ts] add script to verify that all ts is in a project (#32727)

Based on #32705 

We currently have TypeScript code that was backported to 7.0, which was backported without issue because it falls outside of any TypeScript projects in 7.0. This means that the pre-commit hooks break on changes to these files, and that they are not getting type checked by the type_check script. To fix this we need to verify that every typescript file in the repository is covered by a tsconfig.json file as part of CI.

* tests typescript migration (#31234)

* add typescript support for functional tests

* [ts][ftr] improve types for ftr and expect.js, cleanup changes to tsconfig files (#31948)

In https://github.com/elastic/kibana/pull/31234 there were some extra changes that I've reverted, like use of the `tsconfig-paths` package to magically rewrite import statements to defy the standard node module resolution algorithm, the inclusion of several unnecessary options in the `test/tsconfig.json` file, and changes of the line-endings in the config files. This also brings a few enhancements from https://github.com/elastic/kibana/pull/30190 including a modularized version of the expect.js types, and options for explicit mappings for the PageObjects and services used in ftr tests.
# Conflicts:
#	src/functional_test_runner/lib/config/schema.js
#	test/common/services/es.ts
#	test/functional/page_objects/index.ts
#	test/functional/services/apps_menu.js
#	yarn.lock
2019-03-08 19:50:34 -08:00
Vitali Haradkou
e935c02bae
[TSVB]: initial markdown test implementation (#31893) (#32634) 2019-03-07 14:08:09 +03:00
Spencer
2e3df6e2d9
[dashboard/ftr] remove _-prefix from file names (#32585) (#32591) 2019-03-06 20:51:06 -08:00
Lukas Olson
3639f4c972 Use default index pattern when one is not present in visualize (#30574)
* Use default index pattern when one is not present in visualize

* Review feedback

* Add functional test

* Fix test

* Attempt to fix test again

* Try moving test to its own describe
2019-02-19 17:35:13 -07:00
Spencer
b50c73effa
[7.0] [ftr] move server.maxPayloadBytes config to central shared config (#31360) (#31384)
Backports the following commits to 7.0:
 - [ftr] move server.maxPayloadBytes config to central shared config  (#31360)
2019-02-17 19:01:57 -08:00
Luke Elmers
dc450f83b7
Share global filters & queries with coordinate maps vis. (#30595) (#31271) 2019-02-15 09:57:48 -07:00
Spencer
595ec5c08c
[7.0] [ftr/defaultTimezone] make UTC the default timezone (#30460) (#31074)
Backports the following commits to 7.0:
 - [ftr/defaultTimezone] make UTC the default timezone  (#30460)
2019-02-14 13:50:31 -08:00
Caroline Horn
f8d5e1aed6
Dark mode fixes for Visualize charts, TSVB, and Timelion (#30478) (#31150)
* Some quicky changes

* Fixes dark vs light coloring for TSVB charts

* Fix coloring of tooltips and annotations for TSVB

* Fix up TSVB Markdown

No uses the same base styles as Visualize and Canvas

* More fiddling with spacing around filter bar

* Fixing dark mode grid and

removing hard-coded hex values where possible and adding an alpha channel to those that can’t

* more tweaks

* removing more `reversed` props

* Skip dark mode test for now

Since `.reverse` doesn’t exist unless bg is opposite of theme

* SASS linter enabled for TSVB

* Fix chrome path

* Enable sass-lint on Timelion

* Enable sass-lint on vislib

* Fix more spacing with query bar and enable sass-lint

* temp var name update

* A frew more files linted

* missed a few more hardcoded colors

* Addressed PR comments

* Changing #rrggbbaa to rgba()

For IE
2019-02-14 15:08:59 -05:00
Spencer
5820318371 [7.0] [kuery] support matching field names with newlines (#29539) (#30769)
* [kuery] support matching field names with newlines (#29539)

* [kuery] support matching field names with newlines

* Add support for newlines in KQL grammar

* Add test for newlines in wildcards

* Fix test

* Use 's' instead of 'm' to match newlines instead of doing multi-line

* Fix autocomplete suggestions to handle newlines and tabs in field names

* Add line feed to escaped whitespace

* Fix broken test
2019-02-13 12:50:19 -07:00
Stacey Gammon
6c920912c8 [7.0] Stabilize dashboard render and filtering tests (#30419) (#30901)
Backports the following commits to 7.0:
 - Stabilize dashboard render and filtering tests   (#30419)
2019-02-12 17:18:58 -08:00
Spencer
09d2511c28
[ftr/uiSettingDefaults] disable telemetry by default (#30473) (#30671) 2019-02-11 18:50:45 -08:00
Matt Bargar
c525f003e8
skip flaky dashboard test 2019-02-11 12:27:51 -05:00
Matt Bargar
c0cc5a319a
Enable query bar datepicker in core apps where appropriate (#30171) (#30590)
Updates discover, visualize, and dashboard to use the date picker added to the query bar in #29130. There are still some areas where we use the top nav date picker, like Timelion and TSVB which don't have a query bar.
2019-02-08 19:10:34 -05:00
Matt Bargar
e885b6cc26
Makes KQL the default query language for new searches (#27092) (#30329)
Changes the default query language to KQL in all apps that respect the `search:queryLanguage` advanced setting.
2019-02-06 19:12:26 -05:00
Nathan Reese
6ad036b187
Replace angular timepicker with EuiSuperDatePicker (#29204)
* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* Embed timepicker in query bar (#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* update setAbsoluteRange for EuiSuperDatePicker

* replace setQuickTime with calls to setAbsoluteTime

* remove open time picker button in discover empty results view

* pass config values to super-date-picker directive

* remove getPrettyDuration

* clean up typescript lint problems

* some functional test fixes

* try something else to fix I18n problems

* fix some more functional tests

* update query_bar jest test

* remove unused method in kbn_global_timepicker

* do not import removed timepicker styles

* remove mode from time state

* remove mode from time_history interface

* fix problem with ui_settings_defaults

* fix failing TSVB functional test

* another round to test fixes

* more functional test changes

* fixes for failing tests

* add retry block to flaky tsvb test

* styles/bootstrap_dark.less

* fix functional tests

* call fetch event even when times are the same

* add retry around flaky tsvb test

* fix timefilter jest test, attempt to fix another flaky functional test

* revert emitting fetch outside of areTimePickerValsDifferent check

* clean up time mode code that is no longer needed in dashboard

* fix timefilter tests changed by timefilter emit revert
2019-02-05 20:45:31 -07:00
Dmitry Lemeshko
3a260b02cd
[visualize/_point_series_options] update test with proper wait: fixes 29502 (#29950) 2019-02-05 10:31:26 +01:00
Nathan Reese
908b387236
[Maps] add saved objects for all sample data sets (#28797)
* [Maps] add saved objects for all sample data sets

* add functional tests that compare sample data maps to baseline images

* add check for layer loading in functional tests

* try something out in CI

* try map without EMS regions

* add weblogs test but hide region layer

* skip tests with EMS vector layers

* gis-map to map and ES_GEOHASH_GRID to ES_GEO_GRID

* add resolution property to ES_GEO_GRID source descriptor

* move alphaValue from style descriptor to layer descriptor and rename to alpha

* terms join label change 'group by' to 'of'

* ensure sample data sets work with no internet access

* get functional tests working with updated full screen snapshots

* delete gis folder left overs

* give time for visibility to toggle to fire

* make web logs screen comparision more forgiving

* wait for layers to load on full screen
2019-02-04 20:18:11 -07:00
Joe Reuter
93fef68647
Fix fieldformatter calls in pipeline helper and add functional test for range aggs (#29842) 2019-02-04 11:25:06 +01:00
dave.snider@gmail.com
037fcf4ab5
Inter UI and roboto mono font stack. Remove K6 theming. We did it (#29152)
Adds inter ui as the default font for Kibana. Removes the K6 theming. Kibana now uses EUI default.
2019-01-31 20:59:56 -08:00
Matt Bargar
8a83955650
Re-introduce new filter bar (#29752)
Fixes the build issues introduced in #25563 and re-introduces the new react/eui/typescript filter bar, essentially reverting the revert in #29662. I did have to resolve one merge conflict in query_bar.tsx, and re-deleted all of the old filter bar code where translation code had been added.
2019-01-31 18:36:26 -05:00
Ryan Keairns
bbc68b0000
[7.0] Adds new K7 side navigation (#28940)
* initial commit of K7 side nav

* [ui/persistedLog/recentlyAccessed] support observing history items

* [globalNav] use real recentlyAccessed and navLink data

* fixes header logo and mobile layout

* handle hidden links and no recents, use size vars

* handle hidden links and no recents, use size vars

* adds prop to wrap flyout link text

* fix menu scroll for IE

* [chrome/headerGlobalNav] fix typescript issues

* [chrome/headerGlobalNav] only ignore types that are actually missing

* update EUI to 6.6.0

* Revert "update EUI to 6.6.0"

This reverts commit 048cbf9157f8fc7410d4cf8e017b210c4548104e.

* [chrome] remove HeaderAppMenu component

* [ftr/services/appsMemnu] update for new style

* [ftr/discover] tweak size of discover tests and size-dependent assertions

* [chrome] disable offsets in embed mode

* [ftr/discover] try sticking with original screen width

* [ftr/discover] try to force screensize before checking axis labels

* [ftr/services/appMenu] ensure menu closed after clicking app

* uptime app icon, mobile header size removed

* [ftr/discover] make assertion resilient to minor changes in vis width

* [chrome] add types for nav apis

* [chrome/recentlyAccessed] display app icons when possible

* [ftr/discover] make a little wider so scroll doesn't interfer with vis width

* [ftr/services/globalNav] fix test subject
2019-01-31 10:13:40 -06:00
Peter Pisljar
db64c791a2
adding tests for vilisb legend filtering (#29604) 2019-01-31 04:41:21 -08:00
Matt Bargar
45b24afe83
Revert "Migrate filter bar to React, EUI, and Typescript (#25563)" (#29662)
This reverts commit 410c094547.
2019-01-30 17:00:42 -05:00
Matt Bargar
410c094547
Migrate filter bar to React, EUI, and Typescript (#25563)
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
2019-01-30 15:48:31 -05:00
Mike Côté
9eef63f783
Allow passing a default operator to use on saved object client find operations (#29339)
* Allow passing a default operator to use on find operations

* Default operator to OR like elasticsearch to avoid passing null

* Add dashboard search tests

* Make search_operator optional

* Fix query_params.test.js

* Include searchOperator in saved_object_finder

* Apply PR feedback

* Rename searchOperator to defaultSearchOperator
2019-01-30 11:33:44 -05:00
Chris Davies
2510ccb0ae
Upgrade Kibana to Elasticsearch 7.0 (#29184) 2019-01-30 09:08:58 -05:00
Luke Elmers
c6f0595262
Remove nested table splits from table vis (#26057) 2019-01-25 10:13:19 -07:00
Marco Vettorello
b3eacc04d2
Fix timelion data-render-complete attribute on resize (#29320)
* Fix timelion missing renderer on resize

Adding a watch to the renderComplete promise to fix missing rendering of chart
when the resize observer detect a change in size.
Removed the existing resize observer.

* Revert removing observe resize

It's need on the timelion app to resize since that app doesn't use
visualize loader

* Change double watch to watchgroup

* Reenable skipped dashboard test
2019-01-25 15:50:04 +01:00
Spencer
879025e603
Implement global dark theme (#28445)
* [scss] build a light/dark theme for each style sheet, only include correct stylesheet

* Created dark theme Bootstrap

Right now it’s importing both dark and light theme, but light is last so it’s overriding. Not sure how to only import the one or the other.

* migrate light/dark style to unique webpack bundle

* [build] fix log messaage about built sass

* [build/notice] deduplicate notices

* [uiRender/bootstrap] make try auth if necessary

* [visualize/editor] set reversed prop

* remove unnecessary change

* [styles] show toast when theme:darkMode is changed

* [styles] update copy

* [uiRender] default dark mode to false
2019-01-24 17:26:23 -08:00
Spencer
65c80048fd
[ftr/dashboard] disable flaky suite (#29299) 2019-01-24 15:42:05 -08:00