Commit graph

906 commits

Author SHA1 Message Date
Matthias Wilhelm
0a35be7544
Support for date_nanos type timestamps in context view (#38652) 2019-06-11 19:17:39 +02:00
Nathan Reese
6faecfb239
Fetch options for input control child select boxes (#38148) (#38399) 2019-06-07 08:21:45 -06:00
Vitali Haradkou
b6ae2f7a34
[TSVB] [AT] implement new test cases for time series formatter (#37506) (#38124)
* implement new test cases for time series formatter
2019-06-06 10:59:59 +03:00
Dmitry Lemeshko
d898d77e6d
functional tests/firefox wait for loading after page refresh (#38082) (#38118) 2019-06-06 07:58:51 +02:00
Luke Elmers
565dfd455a
Fix broken filtering on metric visualizations. (#38029) (#38143) 2019-06-05 16:09:33 -06:00
Josh Dover
5c4e18778f
[7.x] Add addError function to toastNotifications (#32187) (#37739) 2019-06-03 17:06:47 -05:00
Spencer
7aea62aa61
[7.x] FTR: add support for Firefox browser (#32509) (#37750)
* skip and adjust functional tests for Firefox

* downgrade geckodriver to 0.22.0

* [ftr] add firefox specific config file

* remove hard coded firefox adjustments

* remove firefox specific screenshot directory

* run functional tests in firefox in x-pack

* pass the logger to readConfigFile()

* rename local var

* skip xpack firefox config

* run xpack firefox functional tests in separate command

* update report name for XPack firefox results

* adjust viz shared item test

* skip shared item test

* [test/feature_controls] increase timeout to 20 sec & use forceLogout

* FF timeout on TSVB, refresh page on failure for url navigation

* [feature_controls/visualize_security] increase timeout to 20 sec

* skip dev_tools_spaces tests on FF

* run all groups 3 times

* skip more func tests

* skip more tests

* skip all feature controls tests for Firefox

* revert back changes in feature controls tests

* rename xpack report for chrome

* skip tile map for FF, wait for render before saving

* Revert "run all groups 3 times"

This reverts commit 12b4f69627.

* revert refresh on login

* apply feedback
2019-05-31 17:18:31 -07:00
Vitali Haradkou
fad0c658eb
revert missing test for TSVB Time Series (#37336) (#37638) 2019-05-31 15:31:34 +03:00
Maryia Lapata
24da45d5b1
Import func tests "_metric_chart" to ciGroup10 (#36623) (#37639)
* Add metric_chart tests to job and update them

* Revert removing file

* Remove obsolete test

* Move _metric_chart.js to ciGroup10
2019-05-31 15:17:40 +03:00
Matthias Wilhelm
d72f72628e
Support Elasticsearch date_nanos datatype (#36111)
* Add date_nanos to date type in kibana field types
* date_nanos by default is formatted by "Date Nanos" format
* Format computed date_nanos field to strict_date_time to prevent rounding
* Hide Discover - "View surrounding documents" btn for date_nanos (will be subject of another PR)
* Append number of nano seconds to formatted timeField
* Add new key dateNanosFormat to UI setting defaults
2019-05-31 11:31:05 +02:00
Nick Peihl
8ae77eb3f7
Skip tilemap zoom warning functional test on cloud (#37570) (#37585) 2019-05-30 22:11:21 -07:00
Maryia Lapata
8791531896
[Vis: Default editor] EUIficate order_agg param editor (#36984) (#37330)
* EUIficate order_agg param editor

* Update browser tests

* Add types

* Update enzyme version in x-pack

* Fix functional tests

* Changes due to comments

* Update_terms_helper.tsx

Co-Authored-By: Maryia Lapata <mary.lopato@gmail.com>

* Fix code review comments

* Update yarn.lock
2019-05-29 17:09:45 +03:00
Vitali Haradkou
8db18cdb86
[TSVB] [AT] TimeSeries refactor (#36987) (#37319)
* move tsvb timeseries tests into new file
2019-05-29 15:20:29 +03:00
Dmitry Lemeshko
ac01d6102b
[visualize/_shared_item] skip test due to #37130 (#37131) (#37278) 2019-05-29 00:01:13 +02:00
Dmitry Lemeshko
b403fe3d22
TSVB: functional test for color picker, preview disable and series clone (#37186) (#37220)
* [visualize/_tsvb_chart] test for color picker, changing  preview and cloning series
2019-05-28 16:17:21 +02:00
Vitali Haradkou
a93ffdbfed
[TSVB] markdown variables(revert fix) (#34067) (#37197)
* add markdown tests
2019-05-28 03:40:28 +03:00
Vitali Haradkou
04c650502a
[TSVB] Table tests (#36762) (#37071)
* implement table tests
2019-05-24 14:04:27 +03:00
Lee Drengenberg
9c76d08c55
Check visualize timezone (#36416) (#36918)
* check newest doc timestamp in diff timezones

* Check that data shifts with the timezone

* use retry.waitFor instead of sleep
2019-05-23 10:00:58 -05:00
spalger
4b5f0d6627 Revert "Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x"
This reverts commit 215bc28186, reversing
changes made to 9aa5242607.
2019-05-21 10:58:41 -07:00
Lee Drengenberg
b813675f8e check newest doc timestamp in diff timezones (#36322) 2019-05-10 14:40:54 -05:00
Spencer
8280517349
[7.x] [ftr/tsvb] retry if the legent count is off (#36375) (#36391) 2019-05-09 18:19:06 -07:00
Matt Bargar
d6100f4f36
Extract QueryBarInput component from QueryBar (#35827) (#36383)
Solution for use cases that need a query bar without a submit button or date picker that still want KQL and autocomplete. Necessary for the KQL in TSVB and KQL in filters aggregation efforts.
2019-05-09 17:49:16 -05:00
Va Da
8aa6fb52f8
Better scripted field editor (#36064) (#36340)
* fix: 🐛 make script input field full width

* test: 💍 update Jest snapshots

* feat: 🎸 add Groovy syntax highlighting

* test: 💍 update test snapshot

* test: 💍 fix scripted field form functional test

* test: 💍 fix more functional tests for scripted field input

* refactor: 💡 use import instead of require()
2019-05-09 13:12:22 +02:00
Dmitry Lemeshko
12aa67edb2
adjust tests to pass on Firefox (#35597) (#36069)
* adjust tests to pass on Firefox

* update feature controls tests to pass on Firefox

* use xpath to search for index pattern
2019-05-04 09:31:26 +02:00
Daniil Suleiman
aba6d6233c
[Vis: Default editor] EUIficate time interval control (#34991) (#36006)
* EUIficate time interval control

* Update tests

* Remove empty option, update fix tests

* Bind vis to scope for react component only

* Combine two interval inputs into one EuiCombobox

* Add error message

* Add migration script; remove unused translations

* Update fuctional tests

* Update unit test

* Update tests; refactoring

* Use flow to invoke several functions

* Update test

* Refactoring

* Reset options when timeBase

* Add type for editorConfig prop

* Add placeholder

* Fix lint errors

* Call write after interval changing

* Fix code review comments

* Make replace for model name global

* Revert error catch

* Remove old dependency

* Add unit test for migration test

* Fix message

* Fix code review comments

* Update functional test
2019-05-03 12:03:42 +03:00
Daniil Suleiman
813b6ef8b7
[Vis: Default editor] EUIficate order and size controls (#35134) (#36005)
* EUIficate order and size controls
2019-05-03 12:02:56 +03:00
Daniil Suleiman
d7be854275
[Vis: Default editor] EUIficate other bucket control (#34945) (#35781)
* EUIficate other_bucket control

* Filter invalid string params

* Fix functional tests

* Fix browser tests
2019-04-30 13:21:30 +03:00
Maryia Lapata
3870c9e24b
[Vis: Default editor] EUIficate number interval (#35478) (#35728)
* EUIficate number interval

* Add type for EditorConfig

* Update functional tests

* Add placeholder

* Update placeholder

* Use FormattedMessage instead of i18n

* Set validity in the effect only

* Refactoring: add showValidation prop and remove isInvalid

* Update prop
2019-04-29 16:10:28 +03:00
Marco Vettorello
b06221e3ec
Fix filling x axis values for date histogram (#35247) (#35645)
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-26 11:50:26 +02:00
Aaron Caldwell
94c4c86d0b
Fix map embeddable test (#34648) (#35609)
* Remove skip for testing on server. Unable to repro locally

* run kibana-ciGroup2 40 times per build

* Temporarily skip 'geo map' check

* Left out 'Rendering Test: ' in filter string

* Revert "run kibana-ciGroup2 40 times per build"

This reverts commit 103a5c9c6e.

* Review feedback. Remove 'Flaky' test ref
2019-04-25 12:51:31 -06:00
Matt Bargar
7e17ce66df
Improve KQL error messages (#34900) (#35559)
Attempts to make KQL syntax errors more sensical to the average user.

I initially tried to use a similar solution to the one we used for detecting usage of old lucene syntax. In other words, I tried to create rules in the grammar that would match strings containing common mistakes the user might make and throw custom error messages for each situation. This proved to be more difficult for detecting errors in the regular language. While the Lucene rules could be completely separated from the main grammar, the KQL error rules had to be mixed into the main grammar which made it much more complex and had a lot of unintended side effects.

So instead I decided to lean more heavily on PEG's built in error reporting. Giving certain rules human readable names allows the parser to use those names in the error reporting instead of auto generating a long list of possible characters that might be expected based on the matching rules. Since the PEG errors contain location information I was also able to add ascii art that points the user to exactly where the error occurred in their query string. While this approach is not quite as nice as bespoke error messages that tell the user exactly what is wrong in plain English, it's much more maintainable and I think it still results in much better error messages compared to what we have today.

I've also removed the old original kuery grammar (for queries like is(response, 200)). We were only using it to display an error if I user was still using the old syntax. This version of kuery hasn't existed since 6.3 and we've had error messages telling users this since then. I think it's safe to remove the legacy parser at this point, which greatly reduces the complexity of our error reporting.
2019-04-24 19:21:23 -04:00
John Dorlus
ed8f128428
Removed createIndexPattern via UI and used ES Archiver. (#35374) (#35477) 2019-04-24 12:17:21 -04:00
Joe Reuter
3a00782052
Correctly apply timezone to formatted dates and ticks (#33831) (#35522) 2019-04-24 11:28:39 +02:00
Dmitry Lemeshko
6a9b9d41e2
update functional tests to support Firefox (#34635) (#35205) 2019-04-17 15:25:20 +02:00
Maryia Lapata
bebbdef3c1
[Vis: Default editor] EUIficate field selection control and apply form validation (#34548) (#34946)
* EUIficate field selection control

* Refactoring

* Remove unused commaList filter

* Remove field.html, update functional tests

* Update functional tests

* Remove unused translation

* Update unit test since wrapped React component haven't compiled yet

* Move setValidity invocation to the component

* Update functional test

* Fix type export

* Wrap setValidity into useEffect due to react warning on init load with empty value

* Update types

* Remove extra tag

* Removed changed translations

* Update functional test

* Add help and error message

* Update error message

* Remove unused dependency

* Remove helpText

* Remove unused dependencies

* Remove unused translation

* Refactoring

* Refactoring

* Update form validation; remove setTouched

* Update from validation

* Update form validation

* Update agg select validation

* Refactoring

* Add ariaLabel

* Revert changes

* Update comments

* Remove unnecessary aria-label

* Disable selector with no options

* Add 'required' support for string control

* Update messages

* Fix merge conflict

* Update message

* Fix eslint
2019-04-11 20:20:55 +03:00
Liza Katz
7836db591d
Editing a scripted field causes errors #33251 (#34679) (#34912)
* Changed the default fieldFormatMap to undefined - bugfix

* Test for bug #33251

* Remove only
2019-04-11 13:33:45 +03:00
Dmitry Lemeshko
f80762ef4f
Fix visualize tests (#34390) (#34885)
* wait for rendering

* run ciGroup12 x60 times

* [visualize/_tsvb_chart] redesign tests

* wait for viz initial loading before navigation

* [visualize/_tsvb_chart] assert tab is loaded

* Revert "wait for viz initial loading before navigation"

This reverts commit 1023db4fb9.

* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes

Fix: #34433

* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes

Fix: #34433

* improve tests

* Revert "[TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes"

This reverts commit a04ed55103.

* Revert "[TSVB] [Performance]request for api/metrics/fields triggered after all UI changes"

This reverts commit 040f0b106b.

* Revert "run ciGroup12 x60 times"

This reverts commit c38427f67f.

* rename dataTestSubj
2019-04-10 21:58:21 +02:00
Vitali Haradkou
5ed3f9ff70
Revert [TSVB] markdown variables (#33324) (#34788) 2019-04-10 12:00:10 +03:00
Mike Côté
abe6055aa7
Convert saved objects UI to use new import / export API (#33513) (#34802)
* Initial work converting UI to use new server side APIs

* Remove missed file

* Fix jest tests

* Code cleanup pt1

* Fix file casing

* Fix jest tests

* Modify UI to support including nested references

* Fix button layout

* Connect includeReferencesDeep, remove references_missing_references logic

* Fix broken tests

* Cleanup

* Display success notifications and auto close modals on export

* More code cleanup

* Log to server when user imports using legacy .json file

* Final cleanup

* Update test snapshots to match updated text

* Apply PR feedback pt1

* Remove isLoading and wasImportSuccessful state variables, use single status variable instead

* Move business logic out of flyout component

* Apply PR feedback

* Update wordings
2019-04-09 12:51:34 -04:00
Tiago Costa
f062c97302
chore(NA): merge and solve conflicts with 7.x (#34645) 2019-04-05 19:14:26 +01:00
Matthias Wilhelm
d90e6cebbb
Use enter to submit save modals (#34417) (#34611)
Now you can use the Enter key to submit the form used e.g. when saving a new dashboard
Good for a11y + a time saver

Adds Form element, migration of Button onClick to Form's onSubmit 
Adds functional test for Enter key submission

Fix #30831
2019-04-05 12:43:19 +02:00
Tim Roes
e4fa63d972
Hide gauge labels when value is hidden (#34171) (#34278)
* 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:01:47 +02:00
spalger
ab6cedae42 disable failing suite 2019-04-01 11:38:54 -07:00
spalger
6f7ab40fa5 disable flaky test (#33468)
(cherry picked from commit 179b9be6bb)
2019-03-28 19:23:32 -07:00
Vitali Haradkou
c1972bef15
[TSVB] markdown variables (#33324) (#33930)
* improve test coverage for TSVB markdown
* add new tests for change label, variable and rendering markdown table
2019-03-27 16:25:08 +03:00
Spencer
883ea31bd2
[@kbn/expect] "fork" expect.js into repo (#33761) (#33794)
* [@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:21 -07:00
Spencer
591942d3b9
[7.x] [ftr/dashboard] wait for importFile() to finish (#33723) (#33750)
Backports the following commits to 7.x:
 - [ftr/dashboard] wait for importFile() to finish  (#33723)
2019-03-22 16:30:18 -07:00
spalger
e299444465 skip flaky test suite (#33504)
(cherry picked from commit 33083c80eb)
2019-03-22 09:26:12 -07:00
Dmitry Lemeshko
a4ed1c442c
Dashboard embeddable rendering tests: return names of failed visualisations (#32646) (#33488) 2019-03-19 11:52:01 +01:00
Luke Elmers
c1e28581d4
Ensure saved filters from searchSource are always passed to response handlers (#33074) (#33270) 2019-03-14 17:19:45 -06:00