Commit graph

1331 commits

Author SHA1 Message Date
Greg Thompson
df1f03155c
Upgrade EUI to v30.1.1 (#81499) (#82210)
* eui to v30.0.0

* removed unused RecentLinks component

* update compressed -> display prop

* euiformrow compressed -> display

* euipopover remove withtitle

* euibuttongroup prop updates

* remove euibuttontoggle

* src snapshot updates

* tutorial euibuttongroup update

* x-pack snapshot updates

* euibuttongroup test updates

* TODO

* misc. js file updates

* remove euinavdrawer scss references

* translation removals

* more x-pack snapshot updates

* update data-test-subj lookup

* icons logoAMP -> logoObservability

* cypress selector updates

* update euibuttontoggle onchange, test interaction

* Fix auto-update toggle in Visualize

* some more change -> click test updates

* idtoselectedmap change

* Fix feature table button group

* Remove empty SASS file

* Fix feature table button group II

* Using `compressed` to also dictate dual range row

* Fix a few security labels

* An ML fix

* Apply suggestions from code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* remove unused translation

* update view_type_toggle snapshot

* more snapshot updates

* eui to 30.1.0

* undo temp ts-ignore

* more x-pack snapshot updates

* eui to 30.1.1

* update feature privilege text

* Update x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/feature_table/sub_feature_form.tsx

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* reuse i18n token

* Adapt log entry action button to new `minWidth` prop

* clean up label

* Combine auto apply strings into one

* ternary fix

* cases status useCallback

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2020-10-30 18:21:00 -06:00
igoristic
a47b38dbbf
[Monitoring] Thread pool rejections alert (#79433) (#82157)
* Thread pool rejections first draft

* Split search and write rejections to seperate alerts

* Code review feedback

* Optimized page loading and bundle size

* Increased monitoring bundle limit

* Removed server app import into the frontend

* Fixed tests and bundle size

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-30 14:02:06 -04:00
Ahmad Bamieh
e5265e9288
[7.x] [Telemetry] [Schema] remove number type and support all es number types (#81774) (#82098) 2020-10-30 09:49:57 +02:00
Joe Reuter
0ab5669046
Date column utilities (#81007) (#82037) 2020-10-29 18:53:37 +01:00
Tyler Smalley
9d5f6d353b
[browserlist] Excludes browsers not supporting es6-class (#81431) (#81968)
* Updates browserlist to exclude those not supporting es6-class

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-29 10:11:28 -07:00
Mikhail Shustov
3ffd128e57
Get rid of global types (#81739) (#81884)
* move global typings to packages/kbn-utility-types

* update all imports

* add tests

* mute error

* update docs

* ok

* rename kbn-utility-types/test --> kbn-utility-types/jest
2020-10-28 16:16:27 +03:00
Robert Austin
84d924c206
[Security Solution] reduce optimizer limits (#80997) (#81809)
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-27 17:14:25 -04:00
Nathan L Smith
53b4a3d39e
Use Storybook Controls instead of Knobs (#80705) (#81398)
* Change an example in embeddable to use controls instead of knobs
* Add controls to SyncBadge APM story
* Convert both to [CSF](https://storybook.js.org/docs/react/api/csf)
* Remove the Knobs addon from the default Storybook configuration

Do not remove the Knobs addon package, since Canvas is still using it and this does not change anything in Canvas.
2020-10-27 15:20:56 -05:00
Tyler Smalley
dd49b7ebf7
[CI] Preparation for APM tracking on CI (#80399) (#81694)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-26 22:51:06 -07:00
Spencer
dbc4904a03
[kbn/optimizer] ignore missing metrics when updating limits with --focus (#81696) (#81711)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-26 20:30:16 -07:00
Marco Liberati
f5f0234ea9
[7.x] Update dependency @elastic/charts to v24 (#80982) (#81508)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-10-26 16:13:41 +01:00
Liza Katz
e32e3aaa1e
[Search] Error Alignment 2 (#80965) (#81614)
* Improve the display of ES errors and Http errors

* fixes

* Improve text

* fix ts

* update limit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-26 16:44:15 +02:00
Ahmad Bamieh
27163f7b99
[7.x] [Plugin generator] Update readme (#81131) (#81578) 2020-10-25 15:38:50 +02:00
Alison Goryachev
c05f4bc115
Move painless lang support to @kbn/monaco (#81010) (#81473) 2020-10-22 10:06:30 -04:00
Mikhail Shustov
d1b1023552
bump elastic/elasticsearch-js version to 7.10.0-rc1 (#81288) (#81386) 2020-10-22 07:58:49 +02:00
Tiago Costa
07dd84ab70
chore(NA): add spec-to-console and plugin-helpers as devOnly dependencies (#81357) (#81413) 2020-10-22 01:50:34 +01:00
Spencer
11742512c3
[7.x] [junit] make sure that report paths are unique (#81255) (#81389)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-21 14:19:54 -07:00
Chandler Prall
b200fb916c
Upgrade EUI to v29.5.0 (#80753) (#81102)
* Upgraded eui to v29.5.0; snapshot updates

* Cleaned up some types

* addresses feedback on types change

* Update EuiIcon snapshots in jest integration tests

* Updated snapshot from rebasing on master
2020-10-20 09:41:42 -06:00
Mikhail Shustov
a4d5551e24
server logs config paths to use for runner (#52980) (#80933)
* server logs config paths to use for runner

* fix eslint issue

* do not log config path for default config

* update snapshots

* fix other tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-17 11:47:06 +02:00
Mikhail Shustov
cf9c0e1192
Add script to identify plugin dependencies for TS project references migration (#80463) (#80811)
* move kbn-dev-utils plugin helpers under a dedicated folder

* use getPluginSearchPaths in kbn-config & kbn-optimizer

* add a script to find plugin dependencies not migrated to TS project refs

* update docs

* add a script reporting all circular deps between plugins

based on kibana.json declaration, so it doesn't provide all the cases

* fix optimizer scan logic. removed by mistake

* revert changes. fails on CI

* remove prod depenedency on kbn/dev-utils

* remove last export

* only run plugin discovery once to speed up circular dep detection

* address comments

* address comments

* update fixtures

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-16 13:34:03 +02:00
Uladzislau Lasitsa
f300a417e2
[7.x] Timelion y-axis label not displayed (#80007) (#80521)
* Timelion y-axis label not displayed (#80007)

* Moved flot in ui-shared-deps and leavt only one version.

* Removed unneeded import

* use commonJS so we can execute code between loading specific modules

* prefix i18n keys with flot.

* Fix Internationalization

* remove duplicate pie plugin

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fix test.

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-16 14:12:29 +03:00
Nathan L Smith
d07839f68e
Add Storybook a11y addon (#80069) (#80778) 2020-10-15 19:43:11 -05:00
Spencer
e88ac42fb3
[kbn/optimizer] tweak split chunks options (#80444) (#80763)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-15 16:00:01 -07:00
Spencer
1122493db9
[7.x] [kbn/bootstrap] validate that certain deps don't ship in production (#80549) (#80710)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-10-15 12:00:44 -07:00
Spencer
8b18a1eb09
[7.x] [ci-stats] record async chunk count (#80606) (#80680)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-15 09:41:26 -07:00
Spencer
5b8852fef8
[7.x] [kbn/optimizer] add support for --focus option (#80436) (#80533)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-14 09:48:59 -07:00
Spencer
da5ca7dd7d
[7.x] [kbn/std] update rxjs helpers to use simple operators (#80416) (#80525)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-14 09:01:20 -07:00
Spencer
d3c106bac4
[7.x] [kbn/optimizer/node/cache] support up to 500 readers (#80354) (#80377)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-13 10:57:45 -07:00
Tyler Smalley
a69d8d8917
[CI] Correctly resolve repository root for JUnit reports (#80226) (#80234)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-12 18:43:08 -07:00
Tyler Smalley
64251e6807
Migrate Jest JUnit reporter to TS (#79919) (#80115)
* Converts Jest JUnit reporter to TS

Also moves reporter to @kbn/test package

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	packages/kbn-test/src/jest/junit_reporter.ts
2020-10-12 06:36:04 -07:00
Mikhail Shustov
f2f86b2853
store sorted bundleRefExportIds (#80011) (#80096)
* store sorted bundleRefExportIds

* sort consistently
2020-10-09 19:14:07 +02:00
Spencer
267211d34b
[kbn/std] add observable helpers to aid with rxjs 7 upgrade (#79752) (#80089)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-08 19:21:16 -07:00
Spencer
b10ff38257
[7.x] [kbn/optimizer] bump low or add missing limits when updating automatically (#80013) (#80043)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2020-10-08 14:40:44 -07:00
Ahmad Bamieh
3d6cf53753
[7.x] [Telemetry] Telemetry tools check all makeUsageCollector calls (#79840) (#79981) 2020-10-08 16:28:40 +03:00
Spencer
dbc09a5d42
[7.x] [kbn/optimizer] report limits with ci metrics (#78205) (#79950)
* [kbn/optimizer] report limits with ci metrics (#78205)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* update bundle limits for 7.x branch

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 18:09:38 -07:00
Spencer
35dbb663b3
[release notes] extract "dev docs" comment too (#79351) (#79944)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-07 16:52:23 -07:00
Spencer
8472a8673d
[7.x] share tslib across bundles (#79915) (#79929)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-07 16:22:14 -07:00
spalger
c115b52100 remove entire suite as partial skips aren't doing the trick
(cherry picked from commit 4ce3e1ce03)
2020-10-07 14:30:34 -07:00
Greg Thompson
ebe6d3a878
add --no-validate option to bypass validateYarnLock (#79878) (#79897) 2020-10-07 14:23:59 -06:00
spalger
988e4882ed remove skipped snapshots
(cherry picked from commit 37f9db4224)
2020-10-07 12:13:00 -07:00
spalger
ff36a030a0 skip flaky tests (#79891)
(cherry picked from commit 6ee48d85bf)
2020-10-07 11:52:19 -07:00
Dima Arnautov
2ba1a89637
[ML] Replace swim lane implementation with elastic-charts Heatmap (#79315) (#79744)
* [ML] replace swim lane vis

* [ML] update swimlane_container, add colors constant

* [ML] update swimlane_container, add colors constant

* [ML] update swimlane_container, add colors constant

* [ML] unfiltered label for Overall swim lane

* [ML] tooltip content

* [ML] fix styles, override legend styles

* [ML] hide timeline for overall swimlane on the Anomaly Explorer page

* [ML] remove explorer_swimlane component

* [ML] remove dragselect dependency

* [ML] fix types

* [ML] fix tooltips, change mask fill to white

* [ML] fix highlightedData

* [ML] maxLegendHeight, fix Y-axis tooltip

* [ML] clear selection

* [ML] dataTestSubj

* [ML] remove jest snapshot for explorer_swimlane

* [ML] handle empty string label, fix translation key

* [ML] better positioning for the loading indicator

* [ML] update elastic/charts version

* [ML] fix getFormattedSeverityScore and showSwimlane condition

* [ML] fix selector for functional test

* [ML] change the legend alignment

* [ML] update elastic charts
2020-10-06 22:35:32 +02:00
Alejandro Fernández Haro
c90c3361eb
[7.x] [Telemetry Tools] Merge array of constraints (#79654) (#79689) 2020-10-06 18:16:57 +01:00
Josh Dover
3c1a71f00d
[7.x] Prepare APM agent configuration for production use (#78697) (#79569)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 07:45:51 -06:00
Spencer
c0887723e5
[7.x] Update dependency @elastic/charts to v23.1.1 (#78459) (#79592)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-10-05 17:46:30 -07:00
Ahmad Bamieh
87b120d178
[7.x] remove react-intl from kibana and keep it inside only i18n package (#78956) (#79589)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-06 03:37:33 +03:00
Chandler Prall
2518873396
[7.x] Upgraded EUI to v29.3.0 (#79552)
* Upgraded EUI to v29.2.0

* Remove hacks on top of EuiHeaderLink(s)

* Actual update to eui@29.2.0

* Resolve typescript issue when omitting a key over a union

* Resolve nav menu test's expectations

* Fix lint issue

* Update to 29.3.0

* [ui-shared-deps] strip proptypes from ui-shared-deps production build

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-05 15:09:45 -06:00
Tyler Smalley
ff54de0b31
[7.x] Bumps Jest related packages (#78720) (#79524)
* Bumps Jest related packages (#78720)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
# Conflicts:
#	packages/kbn-optimizer/package.json
#	yarn.lock

* Updates kbn-pm dist

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-05 13:03:54 -07:00
Nathan L Smith
7a2e487f01
[7.x] Storybook 6 and config changes (#75357) (#78894)
Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx

* Storybook 6 and config changes (#75357)

Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-05 12:43:44 -05:00
Spencer
634cf0b252
[7.x] [kbn/optimizer] implement more efficient auto transpilation for node (#79052) (#79395) (#79408)
* [kbn/optimizer] implement more efficient auto transpilation for node (#79052)

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/package.json
#	src/dev/build/tasks/create_empty_dirs_and_files_task.ts
#	src/setup_node_env/babel_register/register.js
#	yarn.lock

* fix eslint violation

* add core-js production dependency (#79395)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit 9e1c44fcc0)

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-04 23:30:52 -07:00
Mikhail Shustov
b963d2aa20
fix lodash imports (#78456) (#79394) 2020-10-04 15:26:35 +02:00
Patryk Kopyciński
5477a1dadc
[7.x] Cleanup yarn.lock from duplicates (#66617) (#79385) 2020-10-03 14:45:23 +02:00
Spencer
d7668a03c4
[babel/register] remove from build (take 2) (#79379) (#79382)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	package.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-02 20:04:18 -07:00
Spencer
9eeff6d893
[kbn/config] don't include x-pack/examples with --oss (#79032) (#79381)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-02 19:55:25 -07:00
Alejandro Fernández Haro
00f9a3f5a4
[Usage Collection] [schema] apm (#79000) (#79355) 2020-10-02 23:34:17 +01:00
Marco Vettorello
cc0034ec86
upgrade @elastic/charts to v23.0.0 (#79226) (#79331)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 22:39:06 +02:00
Spencer
5bfb4a3d00
normalize paths before printing them into the generated plugin list (#79232) (#79322)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 11:25:47 -07:00
Tiago Costa
86f628d318
chore(NA): merge and solve conflicts with 7.x (#79237) 2020-10-02 02:40:18 +01:00
Spencer
31c7b4cd55
[optimizer] strip proptypes from plugin bundles in production (#79221) (#79236)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/worker/webpack.config.ts
2020-10-01 18:24:16 -07:00
Brittany Joiner
ca42caa809
[7.x] Adding comment about importing lodash library (#78156) (#78667)
* Adding comment about importing lodash library (#78156)
2020-10-01 17:22:26 -05:00
Spencer
51434256fd
[7.x] [babel] remove unused/unneeded babel plugins (#79173) (#79200)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2020-10-01 14:03:22 -07:00
Pierre Gayvallet
cdaa95d448
Add relative path handling to application.navigateToUrl (#78565) (#79139)
* split application utilities and associated tests to distinct files

* do not match app if path does not start with the basePath

* add relative paths support to `navigateToUrl`

* add null-check error

* update generated doc

* nits on doc
2020-10-01 19:30:16 +02:00
Candace Park
1629b2ba85
[SECURITY_SOLUTION][ENDPOINT] Improve Endpoint Host data generator to also integrate with Ingest (#74305) (#79028)
* Endpoint generator connects host with a real policy and enrolls agent

Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
Co-authored-by: kevinlog <kevin.logan@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
2020-10-01 09:38:50 -04:00
Jean-Louis Leysens
50e3b52e08
[ES UI] Reintroduce import of brace/mode/json (#78571) (#79087)
* added brace/mode/json import everywhere json mode is being used

* added brace mocks to tests

* slight refactor of imports

* remove import from es ui shared

* Reverse adding brace/mode/json import everywhere

- different approach of just adding brace/json/mode to
  es_ui_shared as before with a BIG comment

* updated @kbn/ace readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 14:47:46 +02:00
Spencer
9e19d91482
[7.x] delete target before building (#78665) (#78897)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-30 09:05:01 -07:00
Spencer
a5692c151c
[7.x] [kbn/ui-shared-deps] track asset sizes (#78718) (#78899)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 09:04:51 -07:00
Alejandro Fernández Haro
322cdb0e6b
[7.x] [Usage Collection] [schema] reporting + add MappedType support (#78591) (#78834) 2020-09-29 20:37:50 +01:00
Spencer
031b62aec6
[7.x] [dev/watching] upgrade chokidar and remove missing source dirs (#78723) (#78807)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 10:28:31 -07:00
Tyler Smalley
ce28f6944f
Aligns several module versions across the repository (#78327) (#78714)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/kbn-spec-to-console/package.json
#	x-pack/package.json
#	yarn.lock
2020-09-29 07:12:06 -07:00
Alejandro Fernández Haro
60763bdad2
[7.x] [Usage Collection] [schema] Support spreads + canvas definition (#78481) (#78757) 2020-09-29 15:03:22 +01:00
Tyler Smalley
f2c87e0465
Update dependency supports-color to v7 (#43064) (#78701)
# Conflicts:
#	packages/kbn-es-query/package.json
#	packages/kbn-i18n/package.json
#	packages/kbn-interpreter/package.json
#	yarn.lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2020-09-28 18:12:40 -07:00
Spencer
f9abd1789b
[7.x] [kbn/optimizer] only build xpack examples when building xpack plugins (#78656) (#78681)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-28 14:56:38 -07:00
Spencer
e318a3d7bc
[7.x] [kbn/optimizer] fix .json extension handling (#78524) (#78658)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:49:12 -07:00
Spencer
941fdca61a
[7.x] [kbn/es] use a basic build process (#78090) (#78659)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 12:47:05 -07:00
Pierre Gayvallet
9882afcf8b
Add the @kbn/apm-config-loader package (#77855) (#78585)
* first shot of the apm configuration loader

* revert changes to kibana config

* remove test files for now

* remove `?.` usages

* use lazy config init to avoid crashing integration test runner

* loader improvements

* add config value override via cli args

* add tests for utils package

* add prod/dev config handling + loader tests

* add tests for config

* address josh's comments

* nit on doc
2020-09-28 20:31:17 +02:00
Alejandro Fernández Haro
8dd6dcb65f
[7.x] [Usage Collection] [schema] Explicit "array" definition (#78141) (#78618)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 17:53:35 +01:00
Jean-Louis Leysens
c39243c299
[7.x] [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033) (#78427)
* [ES UI Shared] Remove 'brace' from es_ui_shared public (#78033)

* major wip

* major wip

* fix worker creation leak

* just copy the file over for now

* Remove xjson from static and from es_ui_shared entirely

- moved expand and collapse logic back to es_ui_shared. It has
  nothing to do with ace
- refactor the useXJson hook which bundled XJsonMode with it.
  This was convenient but ultimately inflates the amount of code
  Kibana needs to first load up in the client. Users will need to
  import XJsonMode and instantiate it when they want to use it.
  Updated existing usage.
- Cleaned up Monaco namespace from es_ui_shared because of how
  useXJsonMode was refactored -- no longer exporting an editor
  specific instance means this code does not know about anything
  to do with code editors so it is decoupled from ace and monaco.

* fix export of collapse and expand string literals

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	src/plugins/es_ui_shared/kibana.json

* import brace json mode in raw vis editor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-28 15:09:52 +02:00
Spencer
8a65530c61
[7.x] [shared-ui-deps] use a single global version of lodash (#78100) (#78454)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-24 11:26:21 -07:00
Mikhail Shustov
c5c112f2e9
bump query-string version to remove manual type definitions (#78143) (#78441)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* fix cypress tests

* add )
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/ml_conditional_links.spec.ts
2020-09-24 19:12:33 +02:00
Alejandro Fernández Haro
2def83024c
[7.x] [Usage Collection] Add schema to stack_management (#77897) (#78417)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 15:41:32 +01:00
Alejandro Fernández Haro
0b62537f2f
[7.x] [Usage Collection] [schema] lens (#77929) (#78401)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 14:05:08 +01:00
Christos Nasikas
a2d09757fd
[7.x] [ES-ARCHIVER] Fix bug when query flag is empty (#77983) (#78133) 2020-09-22 17:10:32 +03:00
Greg Thompson
48217e3eb2
Upgrade EUI to v29.0.0 (#77802) (#77943)
* eui to 29.0.0

* src snapshot updates

* x-pack snapshot updates

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 14:10:10 -06:00
Joe Portner
de8438d343
Upgrade and consolidate prop-types and create-react-class (#77803) (#77880) 2020-09-18 10:22:01 -04:00
Thomas Watson
3abeedfef5
[7.x] Bump node-fetch to 2.6.1 (#77445) (#77710) 2020-09-17 10:58:13 +02:00
Greg Thompson
d3999c4677
Upgrade EUI to v28.4.0 (#77098) (#77659)
* eui to 28.4.0

* euiselectableoption fixes

* src snapshot updates

* x-pack snapshot updates

* htmlidgenerator mock

* merge resolution

* clean up

* snapshot update

* prevent api changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-16 18:11:59 -06:00
Pierre Gayvallet
9984c06a01
Move core config service to kbn/config package (#76874) (#77575)
* move deprecations and raw loader to package

* move config service to package

* start to adapt the usages

* adapt yet more usages

* update generated doc

* move logging types to `@kbn/logging`

* update generated doc

* add yarn.lock symlink

* merge @kbn-logging PR

* adapt Env.createDefault

* update generated doc

* remove mock exports from the main entrypoint to avoid importing it in production code

* use dynamic require to import `REPO_ROOT` from bootstrap file

* move logger mock to kbn-logging package

* address review comments

* import PublicMethodOf from kbn/utility-types

* fix import conflict

* update generated doc

* use the @kbn/std package

* update generated doc

* adapt plugin service mock
2020-09-16 11:05:33 +02:00
Mikhail Shustov
ee8bc62637
Extract src/core in a separate TS project (#76785) (#77509)
* break dependency on data plugin TS code

* move global typings to @kbn/utility-types

* import types from @kbn/utility-types

* remove type dependency on plugins

* add intermediate js files to break dependency on outter TS code

* temp type declaration for query-string

* declare src/core project

* export types to reference in the built d.ts files

* reference core project

* move jest types out of kbn/utility-types due to a clash with mocha types

* fix wrong es_kuery path and ts project paths

* reference core from packages consuming it

* x-pack & oss should use the same lodash version

* Revert "x-pack & oss should use the same lodash version"

This reverts commit 79cec5781e.

* use the same lodash version

* fix @types/lodash TS2300: Duplicate identifier error

* fix wrong imports

* update docs

* update docs

* add a comment why file is needed
# Conflicts:
#	packages/kbn-utility-types/index.ts
#	src/core/public/application/capabilities/capabilities_service.mock.ts
#	src/core/public/chrome/chrome_service.mock.ts
2020-09-16 07:51:42 +02:00
Tyler Smalley
9da8f8aa4a
[7.x] Adds @kbn/utils package (#76518) (#77531)
Moves common utility functions to obtain the repository root,
paths (config/data), and Kibana package.json to a @kbn/utils package.
Moving these existing functions allows them to be used in production, in
other packages because of Kibana.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* [@kbn/utils] Adds missing dependency (#77536)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-09-15 14:03:19 -07:00
Michail Yasonik
1868e6ba9c
[7.x] Stacked headers and navigational search (#72331) (#77407)
Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
Co-authored-by: Ryan Keairns <contactryank@gmail.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-09-15 11:37:16 -05:00
Pierre Gayvallet
07481527c6
Create the @kbn/std package (#77329) (#77477)
* move `src/core/utils` to the @kbn/std package

* update README

* update codeowners and add yarn lock file

* remove export from src/core/public and src/core/server and use package import instead

* update generated doc

* adapt forgotten import

* update `data` plugin doc
# Conflicts:
#	.github/CODEOWNERS
#	src/core/public/application/capabilities/capabilities_service.mock.ts
#	src/core/public/index.ts
2020-09-15 17:15:39 +02:00
Ahmad Bamieh
0764fc7d92
[7.x] [telemetry] add schema guideline + schema_check new check for --path config (#75747) (#77358) 2020-09-14 19:19:13 +03:00
Ahmad Bamieh
62ee38ad82
[7.x] [Telemetry Tools] update lodash to 4.17 (#77317) (#77354) 2020-09-14 19:16:55 +03:00
Thomas Watson
abf8f6fb83
[7.x] Bump yargs-parser to v13.1.2+ (#77009) (#77301)
# Conflicts:
#	yarn.lock
2020-09-14 12:41:34 +02:00
Mikhail Shustov
384e79c905
remove unused test_utils (#76528) (#76739)
* remove unused utils

* remove unnecessary aliases
2020-09-14 10:27:33 +02:00
Nick Partridge
cf0c825b49
Upgrade elastic charts to 21.1.2 (#76939) (#77274) 2020-09-11 22:10:56 -05:00
Marta Bondyra
6a91490854
[Lens] Filters aggregation (#75635) (#77242) 2020-09-10 23:15:38 +02:00
Caroline Horn
ee7d3075a1
Using new EUI globals files and importing Charts themes via SASS (#76821) (#76965) 2020-09-08 15:51:35 -04:00
Spencer
260b887493
[7.x] [eslint] convert to @typescript-eslint/no-unused-expressions (#76471) (#76802)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-04 11:55:18 -07:00
Mikhail Shustov
19b212d6f2
Remove LP deprecations (#76536) (#76749)
* inline deprecations in kbn-test

* remove LP deprecations

* remove test

* inline log call

* remove unnecessary deprecations for the test config
2020-09-04 14:02:27 +02:00
Dario Gieselaar
7febd5a5f1
[7.x] es-archiver: Drop invalid settings, --query flag (#76522) (#76742)
* ESArchiver: Drop invalid index settings, support --query flag for saving archive

* Describe query flag
2020-09-04 10:53:03 +02:00
Mikhail Shustov
bd66fab861
Introduce TS incremental builds & move src/test_utils to TS project (#76082) (#76632)
* move test_helpers to the core

* create base tsconfig

* all tsconfigs use the base one

* use test_helpers exposed from the src/core

* move getFieldFormatsRegistry to data plugin

* add test_utils project

* compile types after checkout

* add a stub for platform tsconfig.json

* fix broken import

* fix broken path to the base config

* set tsBuildInfoFile for project without outDir

* do not commit tsbuildinfo file

* do not check output d.ts files

* fix type error

* use separate config to build types

* rollback changes to include paths

* mute import zone error

* rename files to avoid references to tsd

* do not use tsd for type tests

* include all ts files in project

* run buildRefs before type check to ensure the latest version

* store tsbuildinfo locally

* update paths to base config

* comment out core/tsconfig.json

* remove ui path

* fix wrong tsbuildinfo path
2020-09-03 23:02:05 +02:00
Luke Elmers
e934fb8b36
[data.search.SearchSource] Remove legacy ES client APIs. (#75943) (#76676) 2020-09-03 14:47:38 -06:00
Spencer
c9df4d7813
[7.x] [release notes] automatically retry on Github API 5xx errors (#76447) (#76674)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-03 12:27:47 -07:00
Thomas Watson
738370c908
[7.x] Bump end-of-stream from v1.4.1 to v1.4.4 (#76479) (#76553) 2020-09-03 08:15:36 +02:00
Spencer
d0f441ea44
[7.x] [esArchiver] stop importing stream helpers from src (#76519) (#76548)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-02 13:47:27 -07:00
Tiago Costa
b6821d08ad
chore(NA): add elastic prefix to eslint-config-kibana (#76059) (#76317)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-01 16:37:26 +01:00
Thomas Watson
802f101fa7
[7.x] Bump bl sub-dependency (#76260) (#76301)
# Conflicts:
#	yarn.lock
2020-09-01 09:25:21 +02:00
Greg Thompson
60c2737155
Upgrade EUI to v28.2.0 (#75700) (#76313)
* eui to v28.0.0

* eui to 28.2.0

* euiselectableoptions type update

* targeted nohoist

* src snapshot updates

* x-pack snapshot updates

* strong -> mark

* upgrade @elastic/charts to v21.0.1

* strong -> mark

* fix charts version merge

* maps -> add_field_tooltip_popover type update

* snapshot update

* Fix gridline visibility

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2020-08-31 13:28:43 -06:00
Spencer
c8a93b688b
[7.x] [plugin-helpers] improve 3rd party KP plugin support (#75019) (#76209)
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-27 16:43:58 -07:00
Mikhail Shustov
1c1dbe5c95
Update to TS v4 (#73924) (#76069)
* bump ts to v4

* MOAR RAM

* fix type errors for OSS

* first pass on x-pack errors

* second pass on x-pack type errors

* 3rd pass on x-pack type-errors

* mute errors if complex cases

* don't delete if spread suffices

* mute other complex cases

* make User fields optional

* fix optional types

* fix tests

* fix typings for time_range

* fix type errors in x-pack/tests

* rebuild kbn-pm

* remove leftovers from master update

* fix alert tests

* [Telemetry Checker] TS4 Fixes

* bump to 4.0.1-rc

* fix new errors in master

* bump typescript-eslint to version supporting TS v4 syntax

* fix merge commit errors

* update to the stable TS version 4.0.2

* bump ts-eslint to version supporting ts v4

* fix typo

* fix type errors after merge

* update ts in another new package.json

* TEMP: remove me

* Revert "TEMP: remove me"

This reverts commit dc0fc3bae6.

* [Telemetry] Update snapshot for new TS4 SyntaxKind

* bump prettier to support TS v4 syntax

* fix prettier rules

* last style change

* fix new type errors

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
# Conflicts:
#	packages/kbn-i18n/package.json
#	x-pack/plugins/uptime/public/components/settings/add_connector_flyout.tsx
#	x-pack/plugins/uptime/public/components/settings/alert_defaults_form.tsx
2020-08-27 12:21:43 +02:00
Alejandro Fernández Haro
02b6ceaff5
[Telemetry] Add Application Usage Schema (#75283) (#75970)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-27 08:37:25 +01:00
Luke Elmers
36d24b92e5
[@elastic/datemath] Remove build step from datemath package. (#75505) (#75944)
* Remove build step from datemath.

* Remove outdated docs reference to datemath.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-26 06:15:47 -06:00
Spencer
2d26c41772
[7.x] [remove] production deps which are only used in public code (#75838) (#75893)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-25 11:22:13 -07:00
Ahmad Bamieh
de32e9f8f2
[7.x] [Telemetry] schema check throw on missing schema (#75750) (#75767)
* [Telemetry] schema check throw on missing schema (#75750)

* update schema for 7.x
2020-08-24 21:22:36 +03:00
Stacey Gammon
d6a84a92c2
Add asciidoc support for generated plugin list (#72292) (#75778)
* add asciidoc support for generated plugin list

Try level offset "=+2" instead of "=+1" to stop the inlining of the includes.

remove +2 back to +1

* Remove asciidoc, switch to regex. Rearrange dev guide to avoid nesting limit.

* Add tests for regex

* add a description to not throw off the table. Remove the heading from the paragraph snippet.

* Fix more READMEs so table renders correctly

* Update plugin list

* Remove code-exploration file, moved to plugin-list

* fix typo

* Add link to developer examples

* Update plugin list

* fix typo
# Conflicts:
#	docs/developer/architecture/code-exploration.asciidoc
2020-08-24 14:16:59 -04:00
Greg Thompson
9f79aa6a94
[7.x] Upgrade EUI to v27.4.1 (#75240) (#75673)
* Upgrade EUI to v27.4.1 (#75240)

* eui to 27.4.1

* src snapshot updates

* x-pack snapshot updates

* remove increased default timeout

* revert date change

* delete default_timeout file

* reinstate storyshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* merge resolution

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-21 14:05:06 -06:00
Josh Dover
bd71bdbea7
Add support for reading request ID from X-Opaque-Id header (#71019) (#75502)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-21 11:23:53 -06:00
Spencer
65293aa2eb
[7.x] [kbn/plugin-generator] remove sao, modernize (#75465) (#75619)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-21 08:16:22 -07:00
Jean-Louis Leysens
8ea2bb3296
[Monaco] Refactor the way XJSON grammar checker gets registered (#75160) (#75288)
* Refactor the way XJSON grammar checker gets registered

- avoid registering multiple model add listeners
- remove regsiterGrammarChecker from public API!
- fix getWorker handler to register XJSON only for XJSON models

* remove unused import

* updateAnnos -> updateAnnotations
2020-08-18 17:07:47 +02:00
Joe Portner
d9d4e9ddc9
lodash 4.17.19 -> 4.17.20 (#75205) (#75225) 2020-08-17 23:59:43 -04:00
Greg Thompson
2e5e06bad6
Upgrade EUI to v27.4.0 (#74004) (#75064)
* eui to 27.1.0

* eui to 27.2.0

* buttoniconside type

* euiselectable type

* update onScroll callback and polyfill size references

* findTestSubject ts

* buttoncontent and collapsiblenav src snapshot updates

* update prop retrieval

* xpack snapshots

* jest updates

* type fixes

* more snapshots

* virtual list changes

* more virtualization changes

* merge

* fix functional tests

* data-test-subj for indexPatter-switcher

* storyshots

* eui to 27.3.1

* Fix unit tests

* Fix broken unit test

* Updated snapshots

* Fixed types

* search for value in euiselectable before selection

* select the correct element

* mock virtualized dep

* ts fix

* reinstate storyshot

* ts fix

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-14 17:55:16 -06:00
Brian Seeders
2ece4f12a4
[7.x] [CI] Add pipeline task queue framework and merge workers into one (#71268) (#74276) 2020-08-14 16:41:47 -04:00
Spencer
47897a2780
[7.x] Remove legacy optimizer (#73154) (#74966)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-13 12:36:25 -07:00
Spencer
e517adc529
[7.x] [bin/kibana-plugin] support KP plugins instead (#74604) (#74917)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-12 18:24:26 -07:00
Spencer
cbda7878f0
[7.x] [babel] coalese some versions to prevent breaking yarn install (#74864) (#74898)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	yarn.lock
2020-08-12 14:52:17 -07:00
Tyler Smalley
173cae0028
Bump chalk to 4.1.0 (#73397) (#74762)
https://github.com/chalk/chalk/releases

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
2020-08-11 09:09:37 -07:00
Thomas Watson
45e460e4c8
Bump angular dependency from 1.7.9 to 1.8.0 (#74482) (#74734) 2020-08-11 14:17:42 +02:00
Mikhail Shustov
d5220d1baf
[7.x] bump babel deps to support TS v4 (#74495) (#74591)
* bump babel deps to support TS v4 (#74495)

# Conflicts:
#	yarn.lock

* update yarn lock
2020-08-07 04:08:53 +02:00
Clint Andrew Hall
2df86b8709
[7.x] [kbn-storybook] Kill tsdocgen for immediate perf improvement (#74059) (#74548)
* [kbn-storybook] Kill tsdocgen for immediate perf improvement

* Addressing feedback
2020-08-06 17:50:43 -04:00
Spencer
33966df69e
[7.x] [browserslist] remove user-agent sniffing for IE support hint (#74464) (#74573)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-06 12:51:53 -07:00
Mikhail Shustov
b2040a5a1b
[7.x] Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091) (#74384)
* Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091)

* bump @typescript-eslint deps

* update rules

* fix errors in pacakges

* fix src/

* fix x-pack

* fix test

* fix typings

* fix examples

* allow _ as prefix and suffix

* roll back prefix and suffix changes

* add eslint-plugin-eslint-comments

* report unused rules

* remove unused eslint comments from tests

* remove unused eslint comments 2nd pass

* remove unused eslint comments from src/

* remove unused comments in x-pack

* use no-script-url and no-unsanitized/property for ts files

* remove unused eslint comments

* eui/href-or-on-click removed when not complained

* no import/* rules for ts files

* cleanup

* remove the unused eslint-disable

* rollback unnecessary changes

* allow underscore prefix & sufix in type name

* update docs

* fix type error in enterprise search plugin mocks

* rename platform hack __coreProvider --> _coreProvider

* rollback space removal in src/core/public/legacy/legacy_service.test.ts

* fix naming convention in APM
# Conflicts:
#	src/legacy/ui/public/new_platform/new_platform.ts
#	x-pack/plugins/index_management/public/application/components/mappings_editor/mappings_editor.tsx

* remove unnecessary comment
2020-08-05 21:45:29 +02:00
Spencer
7f27248545
[7.x] [src/dev/build] build Kibana Platform bundles from source (#73591) (#74313)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-04 17:24:06 -07:00
Spencer
ff7254683d
[7.x] [kbn/optimizer] remove unused modules (#74195) (#74278)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-04 14:30:48 -07:00
Spencer
5500891727
[7.x] [kbn/optimizer] remove unneeded DisallowSyntaxPlugin (#74178) (#74194)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-04 12:40:31 -07:00
John Dorlus
51a640e77d
The directory in the command was missing the /generated directory and would cause all definitions to be regenerated in the wrong place. (#72766) (#74019) 2020-07-31 17:43:28 -04:00
Spencer
428a021db6
[7.x] move and unify postcss config into @kbn/optimizer (#73633) (#73856)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-30 13:07:24 -07:00
Spencer
86f6af71dc
[7.x] [kbn/optimizer] restore x-pack bundle banner (#73767) (#73850)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-30 12:33:54 -07:00
Spencer
d64ff63781
[7.x] [build] rewrite source as transpiled JS later in the process (#73749) (#73765)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-29 19:33:12 -07:00
Clint Andrew Hall
04b09ef26d
[7.x] [kbn-storybook] Update Storybook to 5.3.19 (#73320) (#73671)
Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-29 21:04:37 -04:00
Spencer
60ec901f64
[7.x] Remove karma (#73126) (#73328)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-28 10:19:26 -07:00
Spencer
de61567825
[7.x] [kbn/optimizer] log info about the metrics being reported even when reporter is disabled (#73389) (#73480)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-28 10:01:11 -07:00
Spencer
64ee94c2c0
[7.x] [src/dev/build] typescript-ify and convert tests to jest (#72525) (#73108)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-23 12:41:11 -07:00
Spencer
5843bb8d7c
[7.x] [kbn/test/failed_test_reporter] handle cypress junit better (#72968) (#73083)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-23 10:41:38 -07:00
Spencer
e98ba6c705
[7.x] [kbn/es-archiver] move to a package (#72318) (#72871)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-22 11:29:11 -07:00
Liza Katz
ba3a97dc37
[Plugin Generator] Generate tsconfig and useDefaultBehaviors (#72040) (#72443)
* improve test stability

* add a tsconfig file and useDefaultBehaviors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-22 09:08:43 +03:00
Stacey Gammon
d6c9104b5f
Fix indentation level in code exploration doc (#72274) (#72693)
* fix indentation level in code exploration doc

* run the script to update the file
2020-07-21 14:54:52 -04:00
Mikhail Shustov
939f434ae0
[7.x] Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231) (#72595)
* Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231)

* bump @elastic/elasticsearch to 7.9.0-rc1

* bump other packages using @elastic/elasticsearch

* bump es client to rc2

* update code for new typings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-21 15:36:22 +02:00
Spencer
97e1bf8be2
[7.x] [kbn/dev-utils] add RunWithCommands utility (#72311) (#72342)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-17 15:39:49 -07:00
Tiago Costa
ce9176093b
chore(NA): teardown dynamic dll plugin (#72096) (#72248)
* chore(NA): teardown dynamic dll plugin

* chore(NA): remove missing ts-ignore

* chore(NA): remove last mentions to the DLL machinery

* chore(NA): update notice file

* prevent duplication and searching target/public

* remove changes to es-ui code to unblock pr

* add node internals override for legacy tests bundle

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/dev/notice/generate_notice_from_source.ts
#	src/optimize/base_optimizer.js
2020-07-17 13:51:29 +01:00
Spencer
6c2d8fed86
[7.x] Add plugin list to docs that is generated from the repo (#71731) (#72138)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/dev/ci_setup/setup.sh
2020-07-16 14:26:38 -07:00
Spencer
a887b2e9a3
[7.x] [kbn/optimizer] ignore compressed files when reporting stats (#71940) (#71968)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-15 16:10:59 -07:00
Spencer
c184115288
[7.x] [kbn/optimizer] report sizes of assets produced by optimizer (#71319) (#71878)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-15 10:09:15 -07:00
Aleh Zasypkin
2764abe4e8
[7.x] Add @elastic/safer-lodash-set as an alternative to lodash.set (#71823)
# Conflicts:
#	yarn.lock

Co-authored-by: Thomas Watson <w@tson.dk>
2020-07-15 12:18:47 +02:00
Pierre Gayvallet
d10a8cee37
use inclusive language (#71607) (#71627) 2020-07-14 16:12:36 +02:00
Spencer
08e709a321
[7.x] [ftr] don't require the --no-debug flag to disable debug logging (#71535) (#71562)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-13 16:55:16 -07:00
Spencer
ef3308fafb
[7.x] [scripts/report_failed_tests] fix report_failed_tests integration on CI (#71131) (#71524)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-13 14:11:51 -07:00
spalger
e535aa6446 Revert "Revert "[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)" (#71382)"
This reverts commit c45fa3dd58.
2020-07-10 20:13:28 -07:00
Brian Seeders
c45fa3dd58
Revert "[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)" (#71382)
This reverts commit 243a864359.
2020-07-10 23:07:01 -04:00
Spencer
243a864359
[7.x] [kbn/optimizer] implement "requiredBundles" property of KP plugins (#70911) (#71355)
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/integration_tests/__snapshots__/basic_optimization.test.ts.snap
#	src/plugins/embeddable/kibana.json
#	src/plugins/telemetry/kibana.json
#	src/plugins/ui_actions/kibana.json
#	x-pack/plugins/apm/kibana.json
#	x-pack/plugins/upgrade_assistant/kibana.json
2020-07-10 09:37:22 -07:00
Greg Thompson
275a289d76
[7.x] Upgrade EUI to v26.3.1 (#70243) (#71359)
* Upgrade EUI to v26.3.1 (#70243)

* eui to 26.1.0

* Breadcrumb -> EuiBreadcrumb

* keyCode -> key

* src snapshot updates

* update header variables file location

* keyCode -> key in tests

* x-pack simple snapshot updates

* euitooltip updates

* euioverlaymask updates

* testbed keycode -> key

* fixed header sass mixin

* euidatagrid test workaround

* euioverlapmask mock

* euipaginationbutton markup

* nav snapshot update

* eui to 26.3.0

* flyout z-index fix

* euiflyout snapshot updates

* style snapshot updates

* table actions have machine readable text

* table actions have machine readable text

* core api docs update

* table actions snapshot update

* eui to 26.3.1

* update table actions type

* mock issue links; timeout done

* breadcrumb -> euibreadcrumb

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/__jest__/client_integration/home/index_templates_tab.test.ts
#	x-pack/plugins/security_solution/public/resolver/view/panels/panel_content_utilities.tsx

* lint fix
2020-07-09 23:58:06 -07:00
Dmitry Lemeshko
1d8e67e9bf
[7.x] Remove IE support in functional tests (#71285) (#71313)
* Remove IE support in functional tests (#71285)

* [ftr] remove ie support

* remove ie integration tests config
# Conflicts:
#	test/functional/config.ie.js
#	test/functional/services/remote/remote.ts

* fix eslint errors

* [services/remote/webdriver] fix eslint error (#71346)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-10 03:01:14 +02:00
Marco Liberati
7fa252b3a6
[7.x] Improve failure reporting output for functional tests (#70954) (#71210)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-09 14:20:22 +02:00
Alejandro Fernández Haro
5b317474ba
[7.x] [Usage Collector] Fix schema types to allow arrays (#70988) (#71123)
* [Usage Collector] Fix schema types to allow arrays

* More and better tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-08 19:17:28 +01:00
Marco Vettorello
64f9176aa5
fix: remove only consecutive ticks in TSVB (#70981) (#71059)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-08 16:38:02 +02:00
Marco Vettorello
1aa9181bc5
Update dependency @elastic/charts to v19.8.0 (#70803) (#70960)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-07 17:42:25 +02:00
Spencer
5dab4bcc82
[7.x] Fix kbn/optimizer tests (#70827) (#70854)
Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	packages/kbn-optimizer/src/integration_tests/__snapshots__/basic_optimization.test.ts.snap
2020-07-06 13:16:12 -07:00
Marco Vettorello
d81687ddd8
Update dependency @elastic/charts to v19.7.0 (#69791) (#70731) 2020-07-06 11:48:30 +02:00
Pierre Gayvallet
840d60e445
remove snapshot from disabled test suite. (#70769) (#70774)
# Conflicts:
#	packages/kbn-optimizer/src/integration_tests/__snapshots__/basic_optimization.test.ts.snap
2020-07-06 10:09:18 +01:00
Tiago Costa
36c5490b01
skip flaky suite (#70764) 2020-07-06 00:58:03 +01:00
Tiago Costa
a999009bbd
skip flaky suite (#70762) 2020-07-05 23:01:32 +01:00
Tiago Costa
7759b924fc
[7.x] chore(NA): upgrade to lodash@4 (#69868) (#70683)
* chore(NA): upgrade to lodash@4 (#69868)

* chore(NA): upgrade oss to lodash4

chore(NA): migrate cli, cli_plugin, cli_keystore,  dev, test_utils and apm src script to lodash4

chore(NA): missing file for cli plugin

chore(NA): add src core

chore(NA): es archiver and fixtures

chore(NA): try to fix functional test failure

chore(NA): migrate src/legacy entirely to lodash4 except src/legacy/core_plugins

chore(NA): move legacy core plugins to lodash4

chore(NA): upgrade optimize to lodash4

chore(NA): upgrade to lodash4 on advanced_settings, charts, console and dashboard

chore(NA): migrate to lodash4 on dev_tools, discover, embeddable, es_ui)shared, expressions, home plugins

chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4

chore(NA): missing data upgrades to lodash4

Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4"

This reverts commit 137055c5fed2fc52bb26547e0bc1ad2e3d4fe309.

Revert "Revert "chore(NA): upgrade usage_collection, ui_actions, tile_map, telemtry, share, saved_objects, saved_objects_management, region_map and navigation to lodash4""

This reverts commit f7e73688782998513d9fb6d7e8f0765e9beb28d1.

Revert "chore(NA): missing data upgrades to lodash4"

This reverts commit 92b85bf947a89bfc70cc4052738a6b2128ffb076.

Revert "chore(NA): upgrade data plugin to lodash4"

This reverts commit 88fdb075ee1e26c4ac979b6681d8a2b002df74c6.

chore(NA): upgrade idx_pattern_mgt, input_control_vis, inspector, kbn_legacy, kbn_react, kbn_usage_collections, kbn_utils, management and maps_legacy to lodash4

chore(NA): map src plugin data to lodash3

chore(NA): missing lodash.clonedeep dep

chore(NA): change packages kbn-config-schema deps

chore(NA): update renovate config

chore(NA): upgrade vis_type plugins to lodash4

chore(NA): move vis_type_vislib to lodash3

chore(NA): update visualizations and visualize to lodash4

chore(NA): remove lodash 3 types from src and move test to lodash4

chore(NA): move home, usage_collection and management to lodash 3

Revert "chore(NA): move home, usage_collection and management to lodash 3"

This reverts commit f86e8585f02d21550746569af54215b076a79a3d.

chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3

chore(NA): update x-pack test to mock lodash4

Revert "chore(NA): move kibana_legacy, saved_objects saved_objects_management into lodash3"

This reverts commit 2d10fe450533e1b36db21d99cfae3ce996a244e0.

* chore(NA): move x-pack and packages to lodash 4

* chore(NA): remove mention to lodash from main package.json

* chore(NA): remove helper alias for lodash4 and make it the default lodash

* chore(NA): fix last failing types in the repo

* chore(NA): fix public api

* chore(NA): fix types for agg_row.tsx

* chore(NA): fix increment of optimizer modules in the rollup plugin

* chore(NA): migrate `src/core/public/http/fetch.ts` (#5)

* omit undefined query props

* just remove merge usage

* fix types

* chore(NA): fixes for feedback from apm team

* chore(NA): recover old behaviour on apm LoadingIndeicatorContext.tsx

* chore(NA): fixes for feedback from watson

* Platform lodash4 tweaks (#6)

* chore(NA): fix types and behaviour on src/core/server/elasticsearch/errors.ts

* Canvas fixes for lodash upgrade

* [APM] Adds unit test for APM service maps transform (#7)

* Adds a snapshot unit test for getConnections and rearranges some code to make testing easier

* reverts `ArrayList` back to `String[]` in the painless script within `fetch_service_paths_from_trace_ids.ts`

* chore(NA): update yarn.lock

* chore(NA): remove any and use a real type for alerts task runner

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* chore(NA): used named import for triggers_actions_ui file

* chore(NA): fix eslint

* chore(NA): fix types

* Delete most uptime lodash references.

* Simplify. Clean up types.

* [Uptime] Delete most uptime lodash references (#8)

* Delete most uptime lodash references.

* Simplify. Clean up types.

* chore(NA): add eslint rule to avoid using lodash3

* chore(NA): apply changes on feedback from es-ui team

* fix some types (#9)

* Clean up some expressions types.

* chore(NA): missing ts-expect-error statements

* Upgrade lodash 4 vislib (#11)

* replace lodash 3 with lodash 4 on vislib plugin

* Further changes

* further replacement of lodash3 to 4

* further work on upgrading to lodash 4

* final changes to update lodash

* chore(NA): upgrade data plugin to lodash4

chore(NA): upgrade data plugin public to lodash4

chore(NA): fix typecheck task

chore(NA): fix agg_config with hasIn

chore(NA): assign to assignIn and has to hasIn

chore(NA): upgrade data plugin server to lodash4

chore(NA): new signature for core api

fix(NA): match behaviour between lodash3 and lodash4 for set in search_source

* chore(NA): remove lodash3 completely from the repo

* chore(NA): fix x-pack/test/api_integration/apis/metrics_ui/snapshot.ts missing content

* chore(NA): fix lodash usage on apm

* chore(NA): fix typecheck for maps

* Patch lodash template (#12)

* Applying changes from https://github.com/elastic/kibana/pull/64985

* Using isIterateeCall, because it seems less brittle

* Also patching `lodash/template` and `lodash/fp/template`

* Reorganizing some files...

* Revising comment

* Ends up `_` is a function also... I hate JavaScript

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
# Conflicts:
#	renovate.json5
#	x-pack/plugins/apm/public/services/rest/observability_dashboard.ts
#	x-pack/plugins/canvas/common/lib/pivot_object_array.ts
#	x-pack/plugins/canvas/public/components/workpad_templates/workpad_templates.js
#	x-pack/plugins/canvas/server/collectors/custom_element_collector.ts
#	x-pack/plugins/canvas/server/collectors/workpad_collector.ts

* chore(NA): updated kbn-pm dist file
2020-07-03 04:40:17 +01:00
Spencer
104d4ea90a
[7.x] [kbn/optimizer] only build specified themes (#70389) (#70671)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-07-02 20:34:17 -07:00
Nick Partridge
0ffa2cb599
Fix discover, tsvb and Lens chart theming issues (#69695) (#70598) 2020-07-02 11:14:18 -05:00
Thomas Watson
e245673202
chore: improve support for mjs file extension (#70186) (#70325) 2020-07-02 09:52:38 +02:00
Spencer
f194a4ac61
[7.x] [ui-shared-deps/theme] implement auto-switching theme vars module (#70274) (#70485)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-01 12:08:06 -07:00
patrykkopycinski
7b862eef88
Fix typo in bootstrap command (#69976) (#70331) 2020-06-30 18:35:40 +02:00
Mikhail Shustov
03e721604f
Use ts-expect-error in platform code (#69883) (#70287)
* ts-ignore --> ts-expect-error

* fix error with mutable array

* fix errors in consumers code

* update SOM

* fix FeatureConfig & Feature compatibility

* do not re-export from code. it breaks built version

* update docs

* add eslint rule for platform team code

* remove test. this is covered by ts-expect-error in unit tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/core/utils/integration_tests/__fixtures__/frozen_object_mutation/tsconfig.json
2020-06-30 10:39:36 +02:00
Pierre Gayvallet
91bf50b5d4
Implement recursive plugin discovery (#68811) (#70286)
* implements recursive scanning in plugin discovery system

* update optimizer to find plugins in sub-directories

* update renovate

* update optimizer IT snapshot

* refactor processPluginSearchPaths$ and add test for inaccessible manifest

* add symlink test

* add maxDepth to the optimizer

* adapt mockFs definitions

* remove `flat` usage
# Conflicts:
#	renovate.json5
2020-06-30 09:33:43 +02:00
Spencer
1f7d38be09
[7.x] [ui-shared-deps] include styled-components (#69322) (#70252)
* [ui-shared-deps] include styled-components

* update snapshots caused by react-is upgrade

* fix jest snapshots

* declare react-is dep in x-pack too so it uses the right version

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 14:48:06 -07:00
patrykkopycinski
1868b1e9fa
Bump react-router (#69608) (#70217)
# Conflicts:
#	x-pack/plugins/uptime/public/pages/__tests__/__snapshots__/overview.test.tsx.snap
2020-06-29 19:27:06 +02:00
Ahmad Bamieh
f1fcd57ed5
[7.x] [Telemetry] Collector Schema (#64942) (#70141)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-28 20:34:33 +03:00
Jean-Louis Leysens
e9e72a8bde
[Ingest Pipelines Editor] First round of UX improvements (#69381) (#70076)
* First round of UX tweaks

- Fixed potential text overflow issue on descriptions
- Removed border around text input when editing description

* Updated the on-failure pipeline description copy

* Properly encode URI component pipeline names

* use xjson editor in flyout

* also hide the test flyout if we are editing a component

* add much stronger dimming effect when in edit mode

* also added dimming effect to moving state

* remove box shadow if dimmed

* add tooltips to dropzones

* fix CITs after master merge

* fix nested rendering of processors tree

* only show the tooltip when the dropzone is unavaiable and visible

* keep white background on dim

* hide controls when moving

* fix on blur bug

* Rename variables and prefix booleans with "is"

* Remove box shadow on all nested tree items

* use classNames as it is intended to be used

* Refactor SCSS values to variables

* Added cancel move button

- also hide the description in move mode when it is empty
- update and refactor some shared sass variables
- some number of sass changes to make labels play nice in move
  mode
- changed the logic to not render the buttons when in move mode
  instead of display: none on them. The issue is with the tooltip
  not hiding when when we change to move mode and the mouse event
  "leave" does get through the tooltip element causing tooltips
  to hang even though the mouse has left them.

* Fixes for monaco XJSON grammar parser and update form copy

- Monaco XJSON worker was not handling trailing whitespace
- Update copy in the processor configuration form

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 22:33:28 +02:00
Marco Vettorello
01a7437087
Update dependency @elastic/charts to v19.5.2 (#69126) (#69786)
Update @elastic/charts to 19.5.2

Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2020-06-24 15:25:23 +02:00
Joe Reuter
94e1b57f6d
Properly redirect legacy URLs (#68284) (#69781) 2020-06-24 13:39:02 +02:00
Lisa Cawley
c219e405ad
[7.x] [DOCS] Adds kibana-pull attribute for release docs (#69554) (#69574) 2020-06-23 09:22:30 -07:00
Spencer
e7fd974b6f
[ftr] add support for docker servers (#68173) (#69593)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-20 18:46:35 -07:00
patrykkopycinski
a352b5acf0
[7.x] Bump jest related packages (#58095) (#69631)
* Bump jest related packages (#58095)

# Conflicts:
#	package.json
#	packages/kbn-pm/dist/index.js
#	packages/kbn-test/package.json
#	x-pack/plugins/upgrade_assistant/public/application/components/tabs/checkup/__snapshots__/checkup_tab.test.tsx.snap
#	x-pack/plugins/uptime/public/components/monitor/location_map/__tests__/location_map.test.tsx
#	yarn.lock

* Update AgentMarker.test.tsx.snap
2020-06-21 01:23:51 +02:00
Mikhail Shustov
c521487b30
[7.x] Add functional test for Kibana embedded in iframe (#68544) (#69487)
* Add functional test for Kibana embedded in iframe (#68544)

* convert kbn test config into TS

* add test  for Kibana embedded in iframe

* run embedded tests in functional suite

* ignore tls errors in functional tests by default

* switch test to https

* remove env vars mutation

* allow to pass ssl config to Kibana

* pass ssl config to axios

* adopt KbnClient interfaces

* adopt KibanaServer

* use KbnRequester in security service

* set sameSiteCookies:None in test

* acceptInsecureCerts in chrome

* remove leftovers

* fix type error

* remove unnecessary field

* address comments

* refactor plugin

* refactor test

* make acceptInsecureCerts configurable

* run firefox tests on ci

* up TS version

* fix firefox.sh script

* fix path

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	test/functional/services/remote/remote.ts
#	test/functional/services/remote/webdriver.ts
#	x-pack/scripts/functional_tests.js

* create browser config. lost during conflict resolution
2020-06-18 15:23:56 +02:00
Spencer
a0e2e976f0
[7.x] [kbn/optimizer] share all plugin bundles (#68986) (#69234)
* [kbn/optimizer] share all plugin bundles (#68986)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* [BundleRefPlugin] resolve imports to files too

(cherry picked from commit 2bb6ac1a796c6b8661d9ca6c33bef9e23d7a0764)

* [kbn/optimizer] fix windows compatibility (#69304)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit db1df7bed0)

* [BundleRefPlugin] resolve imports to files too (#69241)

Co-authored-by: spalger <spalger@users.noreply.github.com>
(cherry picked from commit e03f2428b1)

* update extraPublicDirs to include latest changes

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 17:41:32 -07:00
Spencer
4bf7341385
[7.x] [kbn/pm] only count cached project (#69113) (#69338)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 15:57:00 -07:00
Spencer
632836f62f
[7.x] [kbn/es] only make one attempt in tests to avoid timeout (#69197) (#69298)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 12:13:24 -07:00
Tiago Costa
04c9b742eb
chore(NA): include hidden files when creating package with plugin helpers (#68247) (#69222)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-16 14:23:38 +01:00
Alexey Antonov
11e89cf95c
Update vega version (#68639) (#69248)
* update vega version

* a11y skip test

* a11y skip test attempt 2

* adding back all a11y tests

* fix failed karma test

* remove extra  0BSD license

* coalesce yarn.lock versions a little

* update kbn/pm dist

* fix CI

* fix Vega View for ML

Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-pm/dist/index.js
#	yarn.lock
2020-06-16 15:30:15 +03:00
Spencer
1282cb6d19
[7.x] [release-notes] add script to generate release notes from PRs (#68816) (#69225)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 18:27:25 -07:00
Joe Portner
635e46f325
[7.x] Bump webpack packages (#68716) (#69094)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-13 21:08:26 -04:00
Spencer
855f854112
[7.x] [kbn/dev-utils] expose public tooling_log module (#68868) (#69101)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-12 20:31:56 -07:00
Spencer
4f2f52afc8
[7.x] [elastic/datemath] version 5.0.3 (#68974)
(cherry picked from commit 0b74d30fee)

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-11 18:00:13 -07:00
Mikhail Shustov
c9ac203e94
Bump TypeScript to v3.9 (#67666) (#68870)
* add babel support for export type

* bump ts version to 3.9.3

* rebuild kbn-pm

* bump typescript-eslint

* fix error in security plugin UI

* check export as works

* fix app migration type

* use correct test subj attribute

* fix errors from the old PR

* embeddable is already passed in props

* explicitly define type of fetch

* add some types for viz

* fix fetch type p.2

* add null to allow spreading without type errors due to override

* add type guard to fix type error

* cast to any, since cannot assign unknown

* add timestamp to known types

* fix type error in fetch

* fix type error. id is always defined in attibutes

* declare a type

* move ts-ignore to the lines with errors

* declare tuple type explicitly

* mute type error. cannot assign unknown

* fix errors. id is always defined

* fix error type

* fix override errors. id is always defined

* fix error. extends any doesn't work anymore

* fix type error. type is always defined

* env doesn't always contain values

* fix type error

* cast to string

* add: logs is already declared in getNodeLogsUrl

* state is already  passed in props

* fix some errors in timelion

* number of fragments is always defined

* 'absolute' is not just string, but value

* TEMP: option is always defined

* always true if cast to promise manually

* both props are always defined

* explicitly define returned SO type

* workaround type

* bump tslib to be compatible with ts v3.9

* test private property

* rebuild kbn-pm

* Fix ts errors for beats management

* Fix type inference broken by the TS 3.9 upgrade

* Fix ingest manager saved object attributes typings

* Fix TS errors in cross_cluster_replication and index_management.

* Fix TS error in Watcher.

* roll back colorRange wrong type

* fix security plugin types

* TypeScript 3.9 fixes for APM

* Fix ColorRange types.

* fix actions & alerts errors. ByGidi

* fix lists error

* More APM fixes

* Remove paramaterization from `removeEmpty in agent config SettingsPage component (it's only used there and doesn't need to be parameterized.)
* Add option chain for case in registerTransactionDurationAlertType
* Cast `overallValue` in transform_metrics_chart
* Use more specific type for custom link filters
* Add more option chaining for local UI filters buckets response
* Remove unused parameters from routes
* Fix getProjection type parameter
* Use destructuring in serviceNodesLocalFiltersRoute to hide `never` error
* Revert `UnionToIntersection` change in `AggregationResponseMap`

Fixes #67804.

* fix platform type error

* Fix visualizations types.

* Fix data plugin types.

* bump TS version to 3.9.5

* Fix telemetry TS errors

* Fix dashboard code

* Adding Canvas Fixes for TS 3.9

* Fix case and security_solution types

* roll back to the old export syntax. new one might cause problems in api-extractor

* update docs

* Fix timelion code

* Fix meta

* Fix types

* fix type errors om ingest_manager

* bump babel deps

* enable private props & methods syntax

* update kbn-pm dist

* whitelist 0BSD license

* use @babel/plugin-proposal-private-methods in default set as well

* disable new babel plugins

* Revert "disable new babel plugins"

This reverts commit 04d959431d.

* cleanup security_solution types

* Fixes type error for newer TypeScript

* update docs

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-11 12:25:28 +02:00
Greg Thompson
7e7f44616e
Upgrade EUI to v24.1.0 (#68141) (#68712)
* eui to 24.1.0

* src snapshot updates

* x-pack snapshot updates

* euiPaletteColorBlind param updates

* euiPaletteColorBlind ts-ignore

* fix collapsibleNav close button click for functional testing

* await focus

* increase legacy sass build timeout value

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-09 19:49:58 -06:00
Nathan L Smith
f78e790bc3
APM Storybook fixes (#68671) (#68713)
* Resolve core legacy assets in @kbn/storybook webpack configuration
* Ignore stories in Jest coverage
* Combine effects in Cytoscape component so handlers are always added before events are triggered
* Add mock context to ErrorRateAlertTrigger stories
* Disable TransactionDurationAlertTrigger stories

Changing the Cytoscape effect behavior is necessary because the layout was not being triggered when the final set of elements is provided as props to the component. When this is used in Kibana we're always starting with empty elements and fetching them, but in the Storybook we're starting out with the full elements.
2020-06-09 18:54:07 -05:00
Tyler Smalley
8eb064c5cc
Prefer using npm_execpath when spawning Yarn (#68673) (#68696)
Prevents instances where an incorrect version of Yarn is used from a
parent directory containing node_modules.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-06-09 14:38:02 -07:00
Spencer
160c93f6dc
[7.x] [kbn/pm] log levels (#68203) (#68589)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-08 17:44:51 -07:00
Spencer
34c5445313
[7.x] upgrade npm-run-path (#68539) (#68549)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-08 13:08:37 -07:00
Dmitry Lemeshko
8e50e59a50
Report page load asset size (#66224) (#68383)
* performance_tests: draft version

* update cli runner and script

* ingest metrics

* save asset type for plugins

* Update src/dev/performance/ingest_metrics.ts

Co-authored-by: Spencer <email@spalger.com>

* follow review comments

* fix size calc, add FTR config, move src to kbn/test

* fix import, remove unused interface

* Update packages/kbn-test/src/page_load_metrics/capture_page_load_metrics.ts

Co-authored-by: Spencer <email@spalger.com>

* start chromium with no-sandbox

* add logging

* check page contains expected element, cut apps to 5

* fix locator & typo

* Update packages/kbn-test/src/page_load_metrics/navigation.ts

Co-authored-by: Spencer <email@spalger.com>

* Update navigation.ts

* Update navigation.ts

* bump puppeteer version

* fix typo

* update navigation script

* update config file

* update yarn.lock

* fix

* take screenshot on failure

* update screenshot title

* fix screenshot saving and error

* invalid locator

* Revert "invalid locator"

This reverts commit 3007539a69.

* run script in a loop 10 times

* Revert "run script in a loop 10 times"

This reverts commit 6cfa219140.

* path config value directly

* fix screenshots directory setup

* update maps locator, common for landing and new map

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mikhail Shustov <restrry@gmail.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2020-06-05 18:54:31 +02:00
Tyler Smalley
22c539f96f
[7.x] [build] Removes commonjs transforms (#66506) (#67375)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 14:44:21 -07:00
Pierre Gayvallet
2632b6c752
implements extends to ObjectSchema (#68067) (#68301)
* implements `extends` to `ObjectSchema`

* add unit tests

* use expectType for types assertions

* allow to extends options

* add comment about deep extend
2020-06-04 23:08:28 +02:00
Jean-Louis Leysens
feb91c16a1
[ES UI Shared] Monaco XJSON (#67485) (#68234)
* First iteration of xjson in monaco

* Throwaway implementation in painless lab - THIS MUST BE REVERTED

* WiP on build process for new kbn-lang package

* new @kbn/langs package and update ui-shared-deps

* Update jest config for new work files

* Update painless lab -- REVERT THIS COMMIT

* Create shared useXJson mode hook

* Final update to using the new shared useXJsonMode hook -- REVERT

* Created @kbn/monaco and share through shared deps

* always access monaco through `@kbn/monaco`

* use path.resolve to create path

* add basic readme

* remove console.log call

* remove typescript support from ui-shared-deps webpack config

* use `@kbn/babel-preset`

* include the monaco styles in the kbn-ui-shared-deps

* sort package.json

* build worker at bootstrap rather than commiting to repo

* only build worker, don't pre-bundle monaco

* fix type check errors

* remove section from readme about committed dist

* keep editor.worker.js postfix

* forgot to save update to import

* license package as apache-2.0

* Added regenerator runtime for worker bundle

* revert changes to painless lab

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-04 18:08:58 +02:00
Spencer
da1e5596ba
[7.x] upgrade elastic/numeral and complete migration away from numeral (#68035) (#68140)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-03 12:31:54 -07:00
Spencer
f338ef2348
[7.x] share core bundle with plugins (#67892) (#68023)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-02 16:00:03 -07:00
Spencer
586e174785
[7.x] [kbn/optimizer] update public path before imports (#67561) (#67807)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-01 13:51:26 -07:00
Spencer
2dbed74fcf
[7.x] [kbn/optimizer] use execa to fork workers (#67730) (#67785)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-05-29 12:15:20 -07:00
Spencer
6b22503c88
[7.x] [kbn/optimizer] exclude "cache" config from cache key, diff actually compared values (#67232) (#67542)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-27 13:49:47 -07:00
Spencer
9349f32f0e
[7.x] [ci/stats] fix merge base detection (#67030) (#67534)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-27 13:18:32 -07:00
Tiago Costa
1193af829a
Revert [7.x] [kbn/optimizer] poll parent process to avoid zombie processes (#67059) (#67262)
* chore(NA): revert changes introduced on pr 67059

* chore(NA): fix eslint problems
2020-05-26 18:12:49 +01:00
restrry
aecb3a1433 update kbn-pm 2020-05-22 10:35:02 +02:00
restrry
2fefd60e90 update code style 2020-05-22 10:35:02 +02:00
restrry
3e28b90281 bump prettier version to v2 2020-05-22 10:34:54 +02:00
Spencer
0eddeee692
[bootstrap/styles] add early support for v8 themes (#66673) (#67215)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-21 22:27:33 -07:00
Spencer
df50927123
[7.x] [kbn/optimizer] ensure build script can prime cache (#67020) (#67189) 2020-05-21 17:18:22 -07:00
Greg Thompson
ecadbf1803
Upgrade EUI to v23.3.1 (#65877) (#67207)
* eui to 23.2.0

* nav drawer ts updates

* eui to 23.3.0

* src snapshot updates

* makeId -> htmlIdGenerator mocks

* EuiCodeBlock testenv element lookup

* x-pack snapshot updates

* remove obsolete EuiCode and EuiCodeBlock mocks

* eui to 23.3.1

* patch updates

* searchbar type update

* docViewer tabs use valid DOMString id

* docViewer snapshot

* header updates

* cert_search field wrapper update
2020-05-21 18:23:39 -05:00
Spencer
69d08752e6
[7.x] [kbn/optimizer] require fsevents on macos (#67147) (#67158) 2020-05-21 13:40:42 -07:00
Spencer
3a68d0f5b9
[7.x] [kbn/optimizer] remove disconnect listener (#67161) (#67183) 2020-05-21 12:02:04 -07:00
Spencer
bfa3795778
[7.x] [kbn/optimizer] poll parent process to avoid zombie processes (#67059) (#67117) 2020-05-20 10:31:01 -07:00
patrykkopycinski
12ed9b13d7
Bump styled-component dependencies (#66611) (#67114)
# Conflicts:
#	packages/kbn-babel-preset/package.json
2020-05-20 19:05:20 +02:00
Spencer
8aa575bafb
[7.x] [kbn/plugin-helpers] typescript-ify (#66513) (#66790) 2020-05-15 16:50:03 -07:00
Mikhail Shustov
36ab9d32ba
lint import from restricted zones for export exressions (#66588) (#66754)
* line restricted zones for export exressions

* more robust rule

* fix or mute eslint errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-15 19:56:58 +02:00
Spencer
7da55b0486
[kbn/es] retry fetching native realm users (#66511) (#66618) 2020-05-14 15:07:41 -07:00
John Dorlus
948ec61ffd
Added a check to ensure that source.url.path exists before iterating through them. (#66505) (#66515) 2020-05-14 01:57:25 -04:00
Spencer
b136a20161
[7.x] [procrunner] avoid waiting for processes forever (#65909) (#66091) 2020-05-13 11:23:27 -07:00
Spencer
089688baf1
[plugin-helpers] remove outdated postinstall task (#66324) (#66337) 2020-05-13 01:52:07 -07:00
Joe Portner
ded2238fac
[7.x] Add lockfile symlinks (#66211) 2020-05-12 12:59:26 -04:00
Brian Seeders
d45b0ca6ed
Throw error in kbn-es when no reserved users found (#65911) (#66233) 2020-05-12 12:33:05 -04:00
Tiago Costa
9d7e0d929e
fix(NA): noParse regex for windows on kbn optimizer (#65755) (#65794) 2020-05-08 13:04:41 +01:00
Spencer
91b4c74d65
[7.x] [pre-commit script] refactor for speed (#65202) (#65801) 2020-05-07 23:31:23 -07:00
Spencer
e9ebeda197
[7.x] Collect more build metrics (#65408) (#65737) 2020-05-07 12:38:44 -07:00
Michail Yasonik
87494df30e
[7.x] New nav (#64018) (#65411) 2020-05-06 01:12:18 -05:00
Joe Portner
4bd2a460b7
[7.x] Bump jquery from 3.4.1 to 3.5.0 (#64884) (#65319) 2020-05-05 22:59:34 -04:00
Spencer
b19905ea08
[7.x] [interpreter] remove unused code (#65332) (#65394) 2020-05-05 19:20:21 -07:00
Marco Vettorello
754711a805
update elastic/charts to 19.2.0 (#65279) (#65308) 2020-05-05 21:14:41 +02:00
Larry Gregory
84ecd64a98
Deprecate kibana user in favor of kibana_system user (#63186) (#65285) 2020-05-05 13:24:27 -04:00
Marco Vettorello
e81ff9dcd6
Update dependency @elastic/charts to v19.1.2 (#64759) (#65235) 2020-05-05 12:56:31 +02:00
Spencer
ee7a2b38c6
[7.x] [ui-shared-deps] only compress in production build mode (#65151) (#65192) 2020-05-04 17:27:39 -07:00
Josh Dover
af89ad78bf
[7.x] Use brotli compression for some KP assets (#64367) (#65116) 2020-05-04 13:06:34 -06:00
Spencer
f06097f679
[7.x] share single data plugin bundle (#64549) (#64817) 2020-04-29 12:56:27 -07:00
Thomas Watson
8a66d061db
[7.x] Bump karma dev-dependency from 3.1.4 to 5.0.2 (#64403) (#64493) 2020-04-28 18:52:12 +02:00
Spencer
091195328a
[7.x] [kbn/pm] use mtime of untracked files in bootstrap cache key (#64293) (#64604) 2020-04-28 01:32:07 -07:00
Spencer
94ca9ca700
[7.x] Implement basic CI metric reporting (#64263) (#64580) 2020-04-27 16:28:05 -07:00
Nick Partridge
fd3f2b3dc4
update charts library to 18.4.2 (#64438) (#64467) 2020-04-25 08:42:17 -05:00
Maryia Lapata
a960dae27f
[NP] Vega migration (#63849) (#64426)
* Vega migartion

* Move mocha tests to legacy

* Fix TS

* Update .i18nrc.json

* Move mocks to vis_type_vega

* Fix issue with babel and vega deps

* Update mocha test

* Mock services

* Update vega_request_handler.ts

* don't parse vega-lib/build/vega.js

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-04-24 18:27:17 +03:00