Commit graph

24805 commits

Author SHA1 Message Date
Ahmad Bamieh
f7f64792f8
[7.x] [i18n] extract untracked translations and prettier logging (#35171) (#39130)
* [i18n] extract untracked translations and prettier logging (#35171)

* extract untracked translations and prettier logging

* self code review

* Update src/dev/run_i18n_check.ts

Co-Authored-By: Bamieh <ahmadbamieh@gmail.com>

* updating listR

* run new i18n_check and fix errors

* kbnEmbeddables -> embeddableApi

* remove any type

* Update src/legacy/core_plugins/embeddable_api/public/panel/panel_header/panel_actions/add_panel/add_panel_flyout.tsx

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* Update src/legacy/core_plugins/embeddable_api/public/panel/panel_header/panel_actions/add_panel/add_panel_action.tsx

Co-Authored-By: Stacey Gammon <gammon@elastic.co>

* self code review fixes

* fix extract and integrate scripts

* ts-ignore js file

* run i18n_check
2019-06-18 18:17:30 +03:00
Justin Kambic
6004459a1e
Update uptime docs screenshots. (#38896) (#39086) 2019-06-18 09:44:29 -04:00
spalger
5e11fb5ed4 disable github checks reporter until we can get better retry logic in place
(cherry picked from commit 20b9c50943)
2019-06-18 06:10:23 -07:00
Mikhail Shustov
708666a5a9
Restrict access to hapi Request in registerAuth (#38763) (#39151)
* Prevent exposing Hapi.Request to registerAuth.

Prevent exposing headers.authorization in KibanaRequest.
Introduce a mechanism to associate authorization headers with an
incoming request and retrieve its value to perform a request to
elasticsearch cluster.

* fix tests

* address @joshdover comments
2019-06-18 15:04:31 +02:00
Dario Gieselaar
d3853ee9c6
[7.x] [APM]: Inferred types for aggregations (#37360) (#39148)
* [APM]: Inferred types for aggregations

Previously, aggregations returned by the ESClient were 'any' by default, and the return type had to be explicitly defined by the consumer to get any type safety. This leads to both type duplication and errors because of wrong assumptions.

This change infers the aggregation return type from the parameters passed to ESClient.search.

* Fix idx error

* Safeguard against querying against non-existing indices in functional tests

* Improve metric typings

* Automatically infer params from function arguments

* Remove unnecessary type hints
2019-06-18 14:56:20 +02:00
Melissa Alvarez
3551d6a3f3
[ML] New Platform Migration - server (#38360) (#39122)
* wip: pull out all server dependencies

* create new platform plugin

* shim newPlatform plugin into legacy init

* update server tests for migration refactor

* cleanup interfaces

* Only add ML links for sample data sets if full license from - 38120

* update test and fix typescript errors

* Remove unused types
2019-06-18 08:49:45 -04:00
Kerry Gallagher
0237657568
Align text overflow styles for Label and Value (#39068) (#39092) 2019-06-18 13:41:41 +01:00
Spencer
a5cdac60de
[7.x] [failure-reporting] ignore a couple other failure types (#39000) (#39127) 2019-06-18 03:50:54 -07:00
spalger
b74499e009 remove flaky tests (#38791) (#38849) (#39055)
(cherry picked from commit 9d82f65a2a)
2019-06-18 03:45:33 -07:00
Peter Pisljar
54485cc7f1
more cleanup (#38970) (#39150) 2019-06-18 12:35:59 +02:00
Marco Vettorello
d5851e9aee
Add required default markdown visState (#38390) (#39075)
The markdownVis expression has the markdown string property configured as required.The current implementation of the markdown vis doesn't have a default value (actually it's undefined) and this cause the error to be thrown when creating a new markdown vis.

fix #38127
2019-06-18 11:54:08 +02: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
Joe Reuter
54f8f64f7f
add default values for filter labels (#38644) (#39108) 2019-06-18 11:02:49 +02: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
Yulong
56c8c2ef24
[Code] bump nodegit version, to fix ssl issue in centos (#39057) (#39143) 2019-06-18 12:55:05 +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
CJ Cenizal
6de6e36622
Fix field autocomplete suggestions in Console (#38948) (#39097)
* Retrieve autocomplete fields when a request has completed.
 - Updating polling logic so that dispatching a request resets the poll timer.
2019-06-17 14:43:46 -07:00
Nathan Reese
70b0d7f825
[Maps] add functional test for tooltip filter actions (#38988) (#39106) 2019-06-17 15:40:33 -06:00
Karen Metts
ee92c7e22d
Add docs for siem app 7.x (#39116) 2019-06-17 16:54:24 -04: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
Dmitry Lemeshko
bc1234a9be
[firefox] Run functional tests in dedicated CI groups (#38416) (#39089)
* 2 jobs for Firefox tests

* review fixes

* make sh files executable

* add check reporter
2019-06-17 21:30:29 +03:00
Angela Chuang
fe393cca1c
update button size (#39051) (#39081) 2019-06-18 01:42:23 +08:00
gchaps
743b2a8302
[DOCS] Updates information on class styling (#39082) 2019-06-17 08:33:16 -07: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
Matthias Wilhelm
97f4385e0f
Date nanos context typescript conversion (#38735) (#39058) 2019-06-17 10:39:55 +02: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
Mikhail Shustov
8aa6b14867
Unify base path in HttpService (#38237) (#39049)
* unify modifyUrl on client and server

* create BasePath as a separate entity on server

* use BasePath class in http server

* use BasePath a separate entity on client

* use BasePath class on Http service on the client

* switch client code to the new api

* improve setver http service mocks

* address comments #1

* address comments #2

* update docs

* add comment why we define own typings
2019-06-16 20:17:49 +02:00
Spencer
4cfdda4150 [percy] only execute percy setup when necessary (#39043)
(cherry picked from commit 9c1bdb9298)
2019-06-16 07:24:17 -07: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
chongzhe
c4b225bbf3
[Code] update enable config in doc and screenshots to reflect new UI change (#39034) (#39035) 2019-06-14 15:32:30 -07:00
gchaps
73c07a7fcf
[DOCS] Adds content for 7.2 release notes (#38947)
* [DOCS] Adds content to release notes

* [DOCS] Incorporates review comments into release notes

* [DOCS] More changes to Release Notes

* [DOCS] Adds and removes PRs based on review comments
2019-06-14 15:11:05 -07:00
Davey Holler
60eff4bef4
[Code] Updates to copy in the Code docs (#39003) (#39027) 2019-06-14 14:53:07 -07:00
CJ Cenizal
2b25f3b081
Fix Console bug caused by rapidly opening and closing the History tab. (#38950) (#39012) 2019-06-14 13:58:13 -07:00
Brandon Morelli
f40fa383b2
[APM][Docs] 7.2 documentation updates (#38577) (#39020) 2019-06-14 13:24:48 -07:00
Lisa Cawley
dfcc4d543d [DOCS] Adds data frame link (#39019) 2019-06-14 13:18:05 -07:00
Spencer
5d54189ace
[7.x] [kbn/es] auto retry snapshot download on unexpected errors (#38944) (#38992)
* [kbn/es] auto retry snapshot download on unexpected errors

* missed an await

* pass log to retry()
2019-06-14 13:10:38 -07:00