Commit graph

2912 commits

Author SHA1 Message Date
spalger
b74499e009 remove flaky tests (#38791) (#38849) (#39055)
(cherry picked from commit 9d82f65a2a)
2019-06-18 03:45:33 -07:00
Daniil Suleiman
96c0bfb76c
Upgarde enzyme to v3.10.0 (#38766) (#39088)
* Upgarde enzyme to v3.10.0

*update snapshots (React components which are using Memo());

*revert pending test in list_control_editor.test.js;

*replace component.html() and component.text() function calls
 which expect null to component.isEmptyRender() for consistency

# Conflicts:
#	x-pack/plugins/siem/public/components/toasters/index.test.tsx
2019-06-18 12:14:52 +03:00
Marco Vettorello
51effedb36
Upgrade @elastic/charts to 6.0.1 (#38783) (#39077)
* Upgrade @elastic/charts to 5.2.0

* Upgrade @elastic/charts to 6.0.1

* Add darkMode theme mock
2019-06-18 10:55:01 +02:00
Peter Pisljar
0063a9279a
[7.x] removing angular from indexPatterns (#34418) (#38967)
* removing angular from indexPatterns (#34418)

# Conflicts:
#	src/legacy/ui/public/index_patterns/__tests__/_index_pattern.js
#	src/legacy/ui/public/index_patterns/_index_pattern.js
#	src/legacy/ui/public/index_patterns/fields_fetcher.js
#	src/legacy/ui/public/saved_objects/__tests__/saved_object.js
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json

* i18n fix

* removing basePath from apiClient
2019-06-18 09:53:41 +02:00
WangQianliang
623783b731
fix(code/frontend): should match exactly the container name (#39046) (#39144) 2019-06-18 14:15:32 +08:00
Frank Hassanabad
1b10a02cf9
[SIEM] Enhance URL to handle ISO-8601 date times within them. (#39045) (#39128)
## Summary
* Added ISO Handler called normalizeTimeRange
* Added unit tests
* Implemented and tested with Machine Learning Jobs to ensure it works as expected
* Moved around Omit Utility to the common area
* https://xkcd.com/1179/
### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~
~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~
~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
~~- [ ] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~
2019-06-17 20:07:25 -06:00
Nathan Reese
cf0b1200ab
[Maps] use coalesce to ensure number always passed to interpolate for data driven size styling (#38427) (#39131)
* [Maps] use coalesce to ensure number always passed to interpolate for data driven size styling

* update docs with behavior when feature property is not defined

* Update docs/maps/vector-style.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/maps/vector-style.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* move first note into description paragraph

* add coalesce wrapper around icon-size extraction expression
2019-06-17 18:42:04 -06:00
Zacqary Adam Xeper
493e14ea5a
Change 'Metrics explorer' to 'Metrics Explorer' (#39101) (#39111) 2019-06-17 17:20:32 -05:00
Nathan Reese
70b0d7f825
[Maps] add functional test for tooltip filter actions (#38988) (#39106) 2019-06-17 15:40:33 -06:00
Dario Gieselaar
5163868786
[APM] Don't redirect to default sample before data has been loaded (#39069) (#39119)
Fixes an issue w/ the transaction sample redirect being too aggressive & redirecting to the default sample before the data has been fully loaded. This makes deeplinking to samples unreliable.
2019-06-17 22:44:47 +02:00
Melissa Alvarez
eb5c780e77
[ML] File Data Visualiser - Link for timestamp notation docs/guide (#39037) (#39104)
* add helpText with doc link to timestamp format

* add internationalization

* update snapshot
2019-06-17 16:07:05 -04:00
Angela Chuang
fe393cca1c
update button size (#39051) (#39081) 2019-06-18 01:42:23 +08:00
Greg Thompson
0ca094b416 [7.x] Upgrade EUI to 11.3.2 (#38262) (#39031)
* Upgrade EUI to 11.3.2 (#38262)

* eui 11.3.1

* EuiSuperSelect TS updates

* EuiColorPicker updates

* EuiBadge updates

* a11y updates

* i18n service updates

* remove unused translations

* move valueOfSelected logic to private method

* update EuiColorPicker class name

* Updated canvas storyshots

* i18n fixes; maps color selection position

* i18n snapshot updates

* update canvas storyshots

* snapshot updates

* 11.3.2

* maps colorpicker

* space avatar colorpicker

* update i18n json
2019-06-17 07:57:18 -06:00
Corey Robertson
5d441123e4
Reapply custom element telemetry (#37113) (#39070)
* Revert "Revert "[Canvas] Adds telemetry info for custom elements (#36177)" (#37100)"

This reverts commit 3f4c2c89ec.

* Cast fromExpression unknown type

* PR Feedback
2019-06-17 09:32:21 -04:00
Felix Stürmer
29fa71c889
[7.x] [Infra UI] Make queries more robust against missing indices (#38976) (#39066)
Backports the following commits to 7.x:
 - [Infra UI] Make queries more robust against missing indices  (#38976)
2019-06-17 08:33:47 -04:00
Kerry Gallagher
6ec87ea297
Add a tooltip for name (#38904) (#38977) 2019-06-17 12:33:46 +01:00
Felix Stürmer
41f0a09acb
[7.x] [Infra/Logs UI][skip ci] Add infra plugin readme with contribution notes (#38696) (#39065)
Backports the following commits to 7.x:
 - [Infra/Logs UI][skip ci] Add infra plugin readme with contribution notes  (#38696)
2019-06-17 06:43:45 -04:00
Angela Chuang
aa28b84e7f
[SIEM] add middleware for handling refetch (#38697) (#39050)
* add middleware for handling refetch

* add unit test for error links

* add unit test
2019-06-17 02:52:40 +08:00
Liza Katz
e1d73f46e8
Separate class\type definitions from plugin instance setup (#38894) (#39039)
* Separate class\type defenitions from plugin instance setup in shim plugin definition
This helps avoiding circular dependency issues that were obsereved in filter-manager branch (due to code starting to use the data plugin).

* typescript fun
2019-06-16 10:49:27 +03:00
WangQianliang
0f9374a424
fix(code/frontend): auto focus import project inpt (#38860) (#38960) 2019-06-16 11:13:41 +08:00
WangQianliang
b957a393ee
fix(code/frontend): fix style issues (#38748) (#38959) 2019-06-16 11:13:26 +08:00
WangQianliang
ced94739ca
fix(code/frontend): fix search filter duplicate items (#38858) (#38961) 2019-06-16 11:12:53 +08:00
Pengcheng Xu
90b0cabd8d
[Code] Use different connect direction for ctags langserver (#38659) (#38753) 2019-06-15 19:14:27 +08:00
Tim Roes
95bf5c067d
Improve jest mocking infrastructure (#38760) (#39033)
* Always mock metadata/chrome in OSS

* Enable jest env in jest mocks

* Exclude jest mocks in karma bundles

* Use setupFilesAfterEnv in config

* Remove chrome/metadata mock from x-pack

* Remove kuery mock

* Add missing mock to SIEM test

* Fix typo in mock import

* Remove top level capabilities x-pack mock

* Move kfetch mock to ui/public

* Move moment-timezone to mocks file

* Unmock kfetch in kfetch specific tests

* Make kfetch mock manual

* Removed unnecessary jest.mock

* Remove kfetch unmocks
2019-06-15 09:45:40 +02:00
Chris Roberson
75785e95ee
[Monitoring] Metricbeat migration flyout and instructions (#35228) (#39014)
* Initial attempt at a reactor of how this works

* Enter and exiting setup mode with migration buttons working

* Adding monitoring url step back in and some small cleanup

* Elasticsearch steps

* Add missing file

* Better organization here

* Remove this debug logic

* Clean up

* PR feedback

* Add in monospacing

* Persist monitoring url in local storage

* Rework the steps

* Change node to server, and add missing files

* Fix linting issues

* Fix api integration tests

* PR feedback

* Pass down if the product is the "primary" or not, then use that to show certain warnings in the UI (just supported for Kibana right now)

* Elasticsearch migration will work slightly differently in that all nodes must be partially migrated before we can disable internal collection

* More PR feedback

* PR feedback

* Better links

* Fix tests

* This should open in a new tab

* PR feedback

* Design and PR feedback

* Fix these tests

* PR feedback

* Remove debug

* PR feedback

* Update the import path

* Update this import path too

* PR feedback

* Fix i18n
2019-06-14 16:08:25 -04:00
Steph Milovic
ca3bad8d5a
[SIEM] Fix url state request once initial state (#38955) (#39004)
[SIEM] Fix url state request once initial state
2019-06-14 13:52:56 -06:00
CJ Cenizal
ad175294c8
Fix Search Profiler's 'Index' input's placeholder color contrast accessibility. (#38952) (#39015) 2019-06-14 12:40:31 -07:00
CJ Cenizal
7581eed692
Unsplit i18n strings in ILM's MinAgeInput component. (#38854) (#39006) 2019-06-14 12:01:10 -07:00
Aleh Zasypkin
329dff61c2
[7.x] Make Kerberos authentication provider to accept requests with Authorization: Bearer xxx header to support reporting use case. Disable Kerberos support for the Windows Chromium build. (#38998) 2019-06-14 19:58:28 +02:00
Alison Goryachev
c8b66a7da3
[IM] improve ux for permissions error (#38916) (#38984) 2019-06-14 13:32:57 -04:00
Zacqary Adam Xeper
1fe4812ccd
[Infra UI] Format arrays as ul elements in LogEntryFieldColumn (#38692) (#38989)
* [Infra UI] Format arrays as ul elements in LogEntryFieldColumn

* Add enzyme test for LogEntryFieldColumn

* Fix tests

* Swap ul's for comma separation

* Use semantic markup for inline list

* Fix tests

* Use ::after element for comma separation

* Move ::after element to :not(:last-child)

* Hoist CommaSeparatedLi

* Use EuiThemeProvider in tests instead of isEnzyme prop

* Suppress type error with issue link
2019-06-14 13:08:45 -04:00
Pete Harverson
9a943672ed
[ML] Increase max data frames in list from 100 to 1000 (#38973) (#38979) 2019-06-14 15:35:17 +01:00
Nathan Reese
6f0e6394c1
[Maps] symbolize points with maki icons (#37822) (#38975)
* [Maps] sybmolize points with maki icons

* add from for selecting symbol

* add from for selecting symbol

* get icons working for static colors

* static icon sizing

* refacto symbol_utils

* timing issue

* use SDF icons

* dynamic iconSize

* set icon-anchor

* display symbol icon in map legend

* add unit tests for VectorIcon

* set icon fill based on dark mode

* remove unused file

* fix jest tests

* set icon-opacity

* use size style to configure icon-image small or large

* fix queryRadius error by just hiding other point layer instead of removing

* remove console statement on error

* use maki icon size constants

* add retry around opening set view popover for flaky test
2019-06-14 07:09:41 -06:00
Casper Hübertz
6bbe81fd58
[APM] UI Dark theme fixes (#38840) (#38968)
* Removed hard-coded background color

* Updated x-axis ticks text color to match other charts

* Updated to match Eui border-radius

* Update snapshots
2019-06-14 14:09:09 +02:00
Sébastien Loix
21b22c5b59
[SR] Component integration tests (#36871) (#38922) 2019-06-14 06:45:16 +02:00
chongzhe
9a38f2d986
[Code] udpate links in setup guide (#38928) (#38930) 2019-06-13 13:08:35 -07:00
Clint Andrew Hall
15ddcb9992
[Canvas][Storybook] Convert Shapes to TS, Storybook (#38850) (#38918)
* Shapes stories + TS

* Merging storybook into shapes-ts-stories

* A few tweaks
2019-06-13 14:11:20 -05:00
Chris Roberson
28928e4093
Ensure we provide the cluster when toggling completed recoveries (#38543) (#38907) 2019-06-13 13:47:42 -04:00
Brandon Kobel
3362066469
Spaces - Hiding management link (#38472) (#38903)
* Changing the Spaces management section to behave like the other FC
controlled sections

* Adding those glorious tests and fixing a bug

* Fixing some test descriptions

* Making the mergeCapabilities operation emulate the old behavior

* Fixing privileges test with the addition of the new action

* Updating jest snapshot

* Adding tests, preventing additional clobbering

* Changing requireUICapability to use management.kibana.spaces
2019-06-13 10:35:26 -07:00
CJ Cenizal
fd2bba7f13
Convert Index Management from using intl.formatMessage to i18n.translate. (#38780) (#38877) 2019-06-13 08:28:31 -07:00
Chris Roberson
25d91e9c17
[Monitoring] Integrate logs source for Logs UI (#36929) (#38889)
* Define and use an internal log ui source configuration

* Fix urls in tests

* Remove unnecessary code
2019-06-13 10:50:14 -04:00
Melissa Alvarez
d41c1adc70
[ML] File datavisualizer - custom timestamp override functionality (#38727) (#38887)
* show custom input option for timestamp format

* show validation errors if custom timestamp format invalid

* Update error messages. Remove unnecessary comments

* use custom constant for delimiter override

* fix i18n errors
2019-06-13 10:45:52 -04:00
Chris Roberson
b1cd593d82
Minor changes to text on Alerting in Stack Monitoring application (#38388) (#38882)
* Minor changes to text.

* "Basic" is a proper name, so it should be capatalized.

* Cluster Alerts are plural.

* Fix tests to align with help text changes

* Missed one test file
2019-06-13 10:32:29 -04:00
Tim Roes
3ba56cc744
Rename Visual Builder to Timeseries (#38777) (#38879) 2019-06-13 15:45:44 +02:00
Maryia Lapata
2cfca17418
[7.x] [Vis: Default editor] EUIficate Sub agg control (#37979) (#38866)
* [Vis: Default editor] EUIficate Sub agg control (#37979)

* EUIficate metric agg control

* Fix translation errors

* Display agg error underneath the last bucket agg form control

* Update functional test

* Update error message

* Update parent_pipeline_agg_controller.js

* Fix validation when metricAgg is invalid

* Show error message when a filed is selected

* Delete _terms_helper.tsx

* Remove extra empty line

* Update parent_pipeline_agg_helper.js

* Update selector for test

* Remove unused translation
2019-06-13 13:42:12 +03:00
Pete Harverson
320f0f97f0
[ML] Show time range button on index data viz when on basic license (#38789) (#38800) 2019-06-13 09:18:58 +01:00
Daniil Suleiman
704d9b75cb
[Vis: Default editor] EUIficate ranges param editor (#38531) (#38798)
* EUIficate ranges control

* Remove unused translations

* Fix screenreader issue

* Add an initial case for safety

* Remove labels, add icon between ranges

* Add title for delete btn

# Conflicts:
#	x-pack/plugins/translations/translations/zh-CN.json
2019-06-13 10:49:57 +03:00
spalger
000da86fc6 disable flaky test (#38849)
(cherry picked from commit f2dd96b50a)
2019-06-12 16:41:45 -07:00
CJ Cenizal
32a5c22639
[Remote Clusters] Migrate to the New Platform with a shim (#37559) (#38843)
* Extract isEsError from router.
2019-06-12 16:22:15 -07:00
igoristic
2bb69966b6
Flooring number down to whole second (#38065) (#38828) 2019-06-12 18:52:20 -04:00