Commit graph

2985 commits

Author SHA1 Message Date
Tim Roes
58ef3a3c49 Add addError function to toastNotifications (#32187) 2019-05-29 13:24:35 -05:00
Daniil Suleiman
a2542d35c6 [Vis: Default editor] EUIficate order_agg param editor (#36984)
* 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 15:53:06 +03:00
Vitali Haradkou
8007c3fb1b
[TSVB] [AT] TimeSeries refactor (#36987)
* move tsvb timeseries tests into new file
2019-05-29 12:10:27 +03:00
Daniil Suleiman
38b95b1cc1 [Vis: Default editor] EUIficate top_sort param editor (#36629)
* EUIficate top_sort param editor

* Set field if only one available

* Remove unused translations

* Fix functional tests

* Fix browser tests

* Rewrite functional test for combo_box field select

* Remove unused translations

* Update label
2019-05-29 11:43:47 +03:00
Dmitry Lemeshko
ddc24b8255
[visualize/_shared_item] skip test due to #37130 (#37131) 2019-05-28 22:51:07 +02:00
Dmitry Lemeshko
7c556ca337
TSVB: functional test for color picker, preview disable and series clone (#37186)
* [visualize/_tsvb_chart] test for color picker, changing  preview and cloning series
2019-05-28 14:44:46 +02:00
Vitali Haradkou
ed29276c5f
[TSVB] markdown variables(revert fix) (#34067)
* add markdown tests
2019-05-28 00:26:28 +03:00
Vitali Haradkou
3c0bc3086a
Tsfy screenshot service and comparepng internal lib (#37177) 2019-05-28 00:09:18 +03:00
Lee Drengenberg
67dc8a45aa
Split ciGroup3 and ciGroup5 (#36928)
* split large x-pack ciGroup5 into 3 groups

* split large x-pack ciGroup3 into 2 groups

* Add groups to the jenkins xpack ci group file

* Re-level some more work

* move es_search_source test to new describe block

* move es_search_source to first in ciGroup7
2019-05-24 14:20:43 -05:00
Chris Roberson
eb2ede6ca2
[Monitoring] Fix 500 error from /api/stats (#36986)
* Fix 500 and add test for it

* Return an empty object so the logic later will still execute

* Update tests
2019-05-24 09:11:05 -04:00
Vitali Haradkou
2db82c549f
[TSVB] Table tests (#36762)
* implement table tests
2019-05-24 12:09:35 +03:00
Lee Drengenberg
d21476c453
Check visualize timezone (#36416)
* check newest doc timestamp in diff timezones

* Check that data shifts with the timezone

* use retry.waitFor instead of sleep
2019-05-22 14:11:21 -05:00
Josh Dover
91b167424d
Consolidate Plugin{Setup,Start}Context and Core{Setup,Start} (#36732) 2019-05-22 13:50:31 -05:00
Vitali Haradkou
e9411f4a0c
FTR tsfy combobox service (#35493)
* migrate combobox to typescript
2019-05-21 10:54:47 +03:00
Greg Thompson
671760e924 EUI@10.4.1 (#36711)
* update eui to 10.4.1

* revert lock
2019-05-20 18:10:32 -04:00
Todd Kennedy
5f56c30ffd
[chore] upgrade wreck (#36527)
wreck has been deprecated and will receive no further security updates
in favor of @hapi/wreck
2019-05-13 15:36:22 -07:00
Lee Drengenberg
3c9dc690d0
check newest doc timestamp in diff timezones (#36322) 2019-05-09 15:58:37 -05:00
Nathan Reese
5349f673d3
Allow embeddable to specify edit label (#36296)
* Allow embeddable to specify edit label

* update test plugins

* pass getDisplayName in options parameter to ContextMenuAction constructor in plugin example

* more typescript clean-up magic

* some more typescript error fun

* change maps embeddable edit label i18n prefix

* clean-up localization
2019-05-09 14:26:49 -06:00
Spencer
2605d16083
[ftr/tsvb] retry if the legent count is off (#36375) 2019-05-09 11:04:55 -07:00
Matt Bargar
3070d25e46
Extract QueryBarInput component from QueryBar (#35827)
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 11:15:50 -05:00
Va Da
c6bfa02d2f
Better scripted field editor (#36064)
* 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 11:19:19 +02:00
Mike Côté
3efaf756d0
Allow any type of saved object to import / export (#34896)
* Modify the relationships API and UI

* Remove type validation on export

* Update relationship test snapshots

* Change relationships table titles

* Change relationships UI to share one table

* Add server side logic to inject meta data into saved objects from plugins

* Manually enable each type of saved object to support

* Use injected vars to determine what types are import / exportable

* Fix some broken tests

* Remove unused translations

* Fix relationships mocha tests

* Remove tests that ensured types are restricted, functionality removed

* Move kfetch logic into separate file

* Add inAppUrl to missing types

* Add tooltip to management table titles that aren't links

* Make relationships screen support filtering by type

* Fix failing tests

* Add refresh support for inAppUrls

* Add error notifications when export API call fails

* Add relationship direction

* Fix broken tests

* Remove graph workspace from import / export

* Use parent / child terminology for relationships

* Use direct relationship terminology

* Flip view / edit logic in saved object management app

* Make config saved object redirect to advanced settings

* Fix broken tests

* Remove unused translations

* Code cleanup

* Add tests

* Add fallback overwrite confirmation object title

* Enforce supported types on import, export and resolve import errors

* Fix broken tests

* Fix broken tests pt2

* Fix broken tests pt3

* Test cleanup

* Use server.decorate to access savedobjectschemas

* Fix some broken tests

* Fix broken tests, add new title to relationships screen

* Fix some broken tests

* Handle dynamic versions

* Fix inAppUrl structure in tests

* Re-use generic canGoInApp

* Fix broken tests

* Apply maps PR feedback

* Apply PR feedback pt1

* Apply PR feedback pt2

* Add savedObjectsManagement to uiExports

* Fix broken tests

* Fix encodeURIComponent implementation

* Merge 403 and unsupported type errors into single error

* Apply suggestion

* Remove import / exportable by default, opt-in instead

* Fix type config to show up properly in the table

* Change config type title and fix tests

* Remove isImportableAndExportable where set to false (new default)

* Remove comments referencing to authorization

* Add unit tests for spaces

* Add unit tests for security plugin

* Change can* signature to be the same as their equivalent function, apply PR feedback

* Cleanup git diff

* Revert "Change can* signature to be the same as their equivalent function, apply PR feedback"

This reverts commit b657ac8fc1.

* Revert "Add unit tests for security plugin"

This reverts commit 6287a8cecf.

* Revert "Add unit tests for spaces"

This reverts commit 2674a9d78f.

* Revert "Remove comments referencing to authorization"

This reverts commit 9618c2cc3a.

* Revert "Merge 403 and unsupported type errors into single error"

This reverts commit 99aea10c0f.

* Add CUSTOM_ELEMENT_TYPE for import / export

* Fix broken tests

* Fix broken tests pt2

* Prevent crashing app when inAppUrl is undefined
2019-05-06 14:44:43 -04:00
dave.snider@gmail.com
d1b189442c
EUI@10.4.0 (#36085)
* EUI@10.4.0

* Fix TS typing in src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
2019-05-05 21:37:07 -07:00
Dmitry Lemeshko
f5bbe82023
adjust tests to pass on Firefox (#35597)
* adjust tests to pass on Firefox

* update feature controls tests to pass on Firefox

* use xpath to search for index pattern
2019-05-03 20:12:15 +02:00
Maryia Lapata
9c8894c705 [Vis: Default editor] EUIficate time interval control (#34991)
* 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 10:44:14 +03:00
Daniil Suleiman
b96e316c18
[Vis: Default editor] EUIficate order and size controls (#35134)
* EUIficate order and size controls
2019-05-03 10:38:55 +03:00
Chandler Prall
d449ff4e3f
Update EUI 10.1.0 -> 10.3.1 (#35970) 2019-05-02 12:27:36 -06:00
Dmitry Lemeshko
609297bac4
Update services to support functional tests in Firefox (#35648)
* add Browsers enum & changes to support FF

* revert moveTo signature to Promise<void>
2019-05-02 15:02:59 +02:00
Alexey Antonov
9d2be1b730
Have TSVB signal render-complete equals true on rendering (#35215)
Fix: #16290
2019-05-02 13:41:09 +03:00
Matthew Kime
e7290e3490
implementing github checks - second attempt (#35757)
implement github checks in ci
2019-05-01 16:02:33 -05:00
Caroline Horn
6268ee7e8c
Fix some EuiFlyout and EuiModal usages (#35829)
* Fix maps layer flyout

* Fixing some flyout headers with border and size

* Using euiOverflowShadow to remove warnings

* Fixed up some regular modal usages

* Added danger colors to EuiConfirmModals where necessary
2019-05-01 15:19:55 -04:00
Daniil Suleiman
44db613285
[Vis: Default editor] EUIficate other bucket control (#34945)
* EUIficate other_bucket control

* Filter invalid string params

* Fix functional tests

* Fix browser tests
2019-04-30 12:05:26 +03:00
Brandon Kobel
5ae5e3d8c6
Feature Controls - Read only badges (#35252)
* Adding readonly badge to the discover application

* Dashboard get a badge

* Visualize gets a badge

* Timelion gets a badge

* Canvas gets a badge

* Maps gets a badge

* Infra gets a badge

* Graph gets a badge

* Dev Tools gets a badge

* Index Patterns get badges

* Advanced Settings get badges

* Infra and i18n are super chill friends

* Using proper i18n prefix for xpack

* Adding badges to the uptime application

* APM gets a badge!

* Adding functional tests for the discover read-only badge

* Functional tests for everyone!

* Removing unused import

* Fixing chrome service mock

* Switching from ChromeBadge | null to ChromeBadge | undefined

* Fixing canvas badge assertst

* Fixing Logs ui capabilities

* More ChromeBrand | null to ChromeBrand | undefined related changes

* Using named badges

* Revert "Using named badges"

This reverts commit c0e341bee1.

* i18n'ing the uptime read-only badges

* Adding ChromeService tests for badges

* Starting to add tests for the legacy badge API

* Changing capitalization of "Read Only" to "Read only"

* Adjusting styles

* Adding $setupBadgeAutoClear tests

* Changing the badge tooltip

* Fixing timelion i18n prefix

* Changing where Canvas sets the breadcrumbs

* Using a read-only badge with an icon

* Update x-pack/plugins/canvas/public/angular/controllers/canvas.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Update src/legacy/core_plugins/timelion/public/app.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Changing discover's read-only verbiage

* Removing tests for code that moved to an untested part of Kibana

* Fixing issues introduced with the rebase

* Fixing priv ileges snapshot

* Adding back dropped docs

* Fixing plugin plugin doc

* Ensuring iconType is set as well

* Updating badge api, angular components moved

* graph to Graph

* Fixing linter

* Switching from aria-label to data-test-badge-label for testing

The tabIndex allows screenreaders to work properly

* Fixing eslint error

* Fixing more issues introduced by the merge from master

* APM updates badge in React hook

* Applying changes suggested by Aleh
2019-04-29 12:48:43 -07:00
Maryia Lapata
4c3a366a1f
[Vis: Default editor] EUIficate number interval (#35478)
* 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 14:47:33 +03:00
Shaunak Kashyap
0b92436383
Exclude usage stats when exclude_usage flag is specified (#35691)
* Exclude usage stats when `exclude_usage` flag is specified

* Entirely excluding the usage key altogether

* Adding API integration test

* Fixing param name in comment + adding more info to comment

* Fix API test copy-pasta

* Fixing test assertion syntax
2019-04-26 21:52:03 -07:00
Aaron Caldwell
6daaff1021
Fix map embeddable test (#34648)
* 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 11:42:26 -06:00
Matt Bargar
539bc6f3a2
Improve KQL error messages (#34900)
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 16:40:38 -04:00
Joe Reuter
b014abdb53
Correctly apply timezone to formatted dates and ticks (#33831) 2019-04-24 09:29:54 +02:00
Marco Vettorello
57b66c6085
Fix filling x axis values for date histogram (#35247)
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 07:37:11 +02:00
spalger
76834031aa Revert "implementing github checks (#34673)"
This reverts commit 7e81413572.
2019-04-23 15:47:05 -07:00
Josh Dover
c2f4123b8c
Introduce start lifecycle event to client (#35269) 2019-04-23 11:50:08 -05:00
Vitali Haradkou
9947045f69
Ftr tsfy webelement wrapper (#35355)
* tsfy webelement wrapper
2019-04-23 19:05:46 +03:00
John Dorlus
e79959273f
Removed createIndexPattern via UI and used ES Archiver. (#35374) 2019-04-23 10:50:04 -04:00
Vitali Haradkou
9398cb4847
[FTR] tsfy TestSubject (#35412)
* migrate test_subjects service to typescript
2019-04-23 12:53:52 +03:00
Matt Bargar
03624a1c12
Add esTypes property to index pattern field (#35251)
Adds an array property to the Field object containing all of the types the field is mapped as across ES indices.
2019-04-22 19:10:08 -04:00
Chandler Prall
dc9b299903
Update EUI to v10.1.0 (#35402) 2019-04-22 09:41:51 -06:00
Matthew Kime
7e81413572
implementing github checks (#34673)
implement github checks with github-checks-reporter
2019-04-19 15:33:48 -05:00
Spencer
9122511370
[ftr] convert remaining JS to TS (#35110) 2019-04-18 12:06:24 -07:00
spalger
bb0e03e09a [interpreter] disable flaky test 2019-04-18 10:39:00 -07:00
Vitali Haradkou
25f825951f
[FTR] tsfy find & webdriver (#33494)
* migrated find and browser services to typescript
2019-04-18 10:19:11 +03:00