Commit graph

291 commits

Author SHA1 Message Date
Spencer
0f6d770b4f
[plugin-discovery] move logic to a package (#128684) (#128817)
(cherry picked from commit 92d65484a5)

# Conflicts:
#	.github/CODEOWNERS
#	package.json
#	packages/kbn-type-summarizer/src/lib/bazel_cli_config.ts
2022-03-29 14:09:53 -07:00
Kibana Machine
c0d74f71e5
[optimizer] harden cache to bazel output changing mtime (#127609) (#127834)
(cherry picked from commit 1133c3f6eb)

Co-authored-by: Spencer <spencer@elastic.co>
2022-03-15 17:08:31 -07:00
Kibana Machine
8e34004edb
[kbn/optimizer] extract string diffing logic (#127394) (#127409)
(cherry picked from commit e378c0d890)

Co-authored-by: Spencer <spencer@elastic.co>
2022-03-09 18:02:10 -07:00
Spencer
b6055b60ef
[eslint] automatically determine dev packages (#127089) (#127147)
* [eslint] automatically determine dev packages

* remove old eslint overrides that are not needed anymore

(cherry picked from commit 1f514d7c00)

# Conflicts:
#	.eslintrc.js
#	packages/kbn-type-summarizer/package.json
2022-03-08 08:25:12 -07:00
Kibana Machine
aadb4d9792
[ToolingLog] remove some manual indent management (#126636) (#126794)
* [ToolingLog] remove some manual indent management

* improve log message

* [dev/build] write the newline after a failed step

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 4f2321d34c)

Co-authored-by: Spencer <spencer@elastic.co>
2022-03-03 09:53:57 -07:00
Spencer
8b87d4ba30
[bazel] avoid a little boilerplate in packages (#126309) (#126380)
* [bazel] avoid a little boilerplate for @types packages

* [bazel/ts] stop building sourcemaps since they're ignored

(cherry picked from commit 614139b8e5)

# Conflicts:
#	packages/kbn-logging-mocks/BUILD.bazel
#	packages/kbn-logging-mocks/tsconfig.json
#	packages/kbn-logging/BUILD.bazel
#	packages/kbn-test-jest-helpers/BUILD.bazel
#	packages/kbn-test-jest-helpers/tsconfig.json
#	packages/kbn-test/BUILD.bazel
#	packages/kbn-typed-react-router-config/BUILD.bazel
2022-02-24 21:15:20 +00:00
Kibana Machine
c96f32e146
[jest] add *_node presets (#126192) (#126260)
(cherry picked from commit 1a1a191eb7)

Co-authored-by: Spencer <spencer@elastic.co>
2022-02-23 10:15:47 -07:00
Kibana Machine
654a63cbf9
[ci] Splits Jest integration tests (#125454) (#125531)
(cherry picked from commit 435b772786)

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2022-02-14 10:49:54 -07:00
Matthew Kime
934302d5b1
[data views] Reduce deprecated api usage (#124059)
* address deprecated apis

* lint fixes

* remove iindexpattern usage

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-01 07:44:55 -06:00
Tiago Costa
356861d23b
chore(NA): splits types from code on @kbn/ui-shared-deps-src (#123313)
* chore(NA): splits types from code on @kbn/ui-shared-deps-src

* chore(NA): break flot-charts into another package

* chore(NA): skip failing tests

* chore(NA): remove skip and add correct value

* chore(NA): fix new ui-theme import

* chore(NA): adding fleet cloned test

* chore(NA): remove cloned test

* chore(NA): remove added typo
2022-01-20 22:04:19 +00:00
Tiago Costa
a6d21cc715
chore(NA): splits types from code on @kbn/ui-shared-deps-npm (#122788) 2022-01-13 02:23:18 +00:00
Diana Derevyankina
a9ec1be357
Combine visualizations and visualize plugins (#121550)
* [WIP] Combine visualizations and visualize plugins

* Revert some changes and do some refactoring

* Refactor some code

* Fix some tests

* Fix functional tests and some jest test cases

* Update telemetry

* Fix get_visualization_instance.test and plugin-list.asciidoc

* Refactor some code

* fix CI

* Add visualizations to vis_default_editor tsconfig

* Revert changes related to telemetry and permissions

* Add dashboard to timeseries tsconfig.json

* Update limits file

* Update translation keys

* Add capabilitiesProvider back to server and replace visEditorsRegistry getter and setter with service

* Update mocks.ts

* Revert changes related to visEditorsRegistry

* Get rid of visEditorsRegistry getter and setter

* Remove dashboard from timeseries/tsconfig.json

* Return back dashboard dependency to timeseries/tsconfig.json, rename applicaion folder to visualize_app and APP_NAME to VISUALIZE_APP_NAME, revert types.ts

* Remove comma in .i18nrc.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2022-01-12 16:49:22 +03:00
Clint Andrew Hall
83621d6100
[shared-ux] Create Shared UX Plugin (#122373)
* [shared-ux] Create Shared UX Plugin

* Rename nav-shared-ux.docnav.json to nav_shared_ux.docnav.json

* Fix a few issues

* fix limits.yml
2022-01-06 14:28:20 -07:00
Devon Thomson
825ea5b919
[Controls] Move Controls To Their Own Plugin (#121668)
* Moved controls out of Presentation Util and into their own plugin
2022-01-06 13:33:52 -05:00
Yaroslav Kuznietsov
6046f4633b
[PieVis] Chart expressions pie. (#121612)
* Moved pie_vis to the other.

* Removed not used types.

* Changed docs.

* Fixed labels.

* Fixed more translation labels.

* Changed types of buildExpressionFunction.

* Added limits and extraPublicDir.

* Fixed i18n checks.

* Fixed translations checks.

* Added codeowners to expression_pie.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-04 18:01:04 +02:00
Tiago Costa
64468b7a3e
chore(NA): splits types from code on @kbn/utils (#121924) 2021-12-23 03:18:10 +00:00
Tiago Costa
e1a86bac32
chore(NA): splits types from code on @kbn/std (#121815) 2021-12-22 09:45:10 +01:00
Tiago Costa
ecf2265d56
chore(NA): splits types from code on @kbn/optimizer (#121426) 2021-12-16 20:04:20 +00:00
Marta Bondyra
4dc3643ee3
[Lens] move gauge to chart expression plugin (#120623)
* gauge_expression

* fix

* CI fix

* make plugin required to use its methods

* move non-types from types

* share icon

* bundle, plugin

* load gaugeComponent async

* fix types

* async heatmap

* don't use d3

* optimizations

* feedback

* types

* adjusting the tests to the new max

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-15 09:15:41 +01:00
Tiago Costa
de5dd787b1
chore(NA): splits types from code on @kbn/dev-utils (#120531)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 20:12:18 +00:00
Michael Dokolin
903e75ee03
[Reporting] Decouple screenshotting plugin from the reporting (#120110)
* Add screenshotting plugin
* Move screenshotting plugin configuration options
* Remove unused browser type configuration option
2021-12-06 22:00:57 +01:00
Tiago Costa
9d6955ce35
chore(NA): splits types from code on @kbn/config-schema (#120385)
* chore(NA): splits types from code on @kbn/config-schema

* chore(NA): expose needed type

* chore(NA): fix api changes

* chore(NA): expose needed type
2021-12-03 21:30:26 +00:00
Tiago Costa
1b38b8ea15
chore(NA): splits types from code on @kbn/config (#120267) 2021-12-03 02:48:51 +00:00
Tyler Smalley
92a8636f0f
Upgrade Typescript to 4.3.5 (#104470)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: spalger <spencer@elastic.co>
2021-12-02 16:27:41 -08:00
Stratoula Kalafateli
fea4d2acfb
[Visualize] New heatmap implementation with elastic-charts (#118338)
* [WIP][Heatmap] Creates implementation with elastic-charts

* Fix types and connection with vislib

* Add coloring options

* Brush, click events, coloring etc

* Cleaning up the expression function

* Add legend picker, fix sorting and other fixes

* Further fixes

* Use the shared expression to Lens and cleanup

* PrepareLogTables for new expression function

* Use common renderer and expression function with lens

* Fix i18n

* Small tweaks

* Add unit tests

* Adds a unit test to the heatmap component

* update plugin list

* Fix types

* Fix types

* update limits

* Change to the expression function

* Cleanup translations

* Refactor to use vis

* Fix types

* further cleanup of the translations

* register new setting

* Fix sorting for histogram

* Adds functional tests for the new nisualize heatmap

* Cleanup

* Fix

* Apply PR comments

* Address PR comments

* Fix i18n

* Fix i18n

* Makes the <Heatmap /> id dynamic

* reverse

* fix translation file

* Apply design PR comments

* Fix package

* More fixes

* Fix brush problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-30 19:40:02 +02:00
Spencer
b2f54829d8
[babel] ensure TS preset runs before anything else (#119107)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 11:29:45 -07:00
Spencer
ac23dce29f
[storybook] upgrade to 6.3.x (#119498)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 20:46:32 +01:00
Stratoula Kalafateli
cccc54fd6d
Removes the kibana_legacy plugin (#118672)
* Removes kibana_legacy plugin

* Update translations

* Move functions to canvas and monitpring plugins

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 10:33:04 +02:00
Matthew Kime
67ebc5df26
rename index pattern editor to data view editor (#119264)
* rename index pattern editor to data view editor
2021-11-23 07:10:23 -06:00
Spencer
03afedefe8
[optimizer] pretty-print jest snapshots to help reviews (#119404) 2021-11-22 17:40:33 -07:00
Matthew Kime
25ddd37cba
rename index pattern management to data view management (#119260)
* rename index pattern management to data view management
2021-11-22 10:56:32 -06:00
Matthew Kime
124a3d9db7
IndexPatternFieldEditor => DataViewFieldEditor (#119261)
* rename indexPatternFieldEditor
2021-11-22 09:12:33 -06:00
Spencer
2c4e795e18
[eslint] prevent using constructor property params in initializers (#119130) 2021-11-19 20:11:22 +01:00
Anton Dosov
bc56e60d58
[kibana_react] Extract <FieldButton /> and <FieldIcon/> to a package (#115377) 2021-11-08 17:33:14 +01:00
Spencer
4385ac4d83
[eslint] enable type-specific lint rules (#114184)
* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-03 16:56:17 -06:00
Spencer
2797fab000
[kbn/optimizer] dll @babel/runtime modules used by entry bundles (#113453)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-29 18:08:20 -05:00
Spencer
30872e9063
remove all references to v7 theme (#113570)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 12:28:42 -05:00
Devon Thomson
dc2bea778c
Lowered bundle size limits for dashboard and presentationUtil (#116478) 2021-10-27 16:43:00 -04:00
Xavier Mouligneau
436c74a9ce
[SECURITY SOLUTION] [CASES] Allow cases to be there when security solutions privileges is none (#113573)
* allow case to itself when security solutions privileges is none

* bring back the right owner for cases

* bring no privilege msg when needed it

* fix types

* fix test

* adding test

* review

* deepLinks generation fixed

* register home solution with old app id

* fix get deep links

* fix home link

* fix unit test

* add test

* fix telemetry

Co-authored-by: semd <sergi.massaneda@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-25 15:16:52 -07:00
Jonathan Budzenski
65f3a8458a
Remove Angular (#115464)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-19 10:08:53 -07:00
Anton Dosov
c6be6c019c
[kibanaUtils] Don't import full semver client side (#114986) 2021-10-18 13:20:44 +02:00
Anton Dosov
21760d4832
Improve CodeEditor wrapper (#114500) 2021-10-15 12:47:18 +02:00
Anton Dosov
f598cf1ffd
Update app services bundle limits (#114789) 2021-10-14 13:46:16 +02:00
Spencer
5de36a8229
[kbn/optimizer] fix --update-limit docs (#114840)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-13 18:50:35 +01:00
Oliver Gupte
3d75154368
[APM] Removes the apm_oss plugin and deprecates related configs (#113364)
* [APM] Removes the apm_oss plugin and deprecates related configs (#108160)

* removes commented lines

* fixes typescript errors

* performs start up migration on the saved objects mapping for apm-indices

* removes all references to the deprecated apm_oss.* config paths in APM

* fixes missing bundle error

* fixes type error

* fixes eslint error with disabled rules

* fixes saved object mappings for es_archvices for tests

* fixes eslint error

* Updates default index values to include the more general apm-*. Fixes broken tests.

* removing unused configs from the config path migration: apm_oss.indexPattern and apm_oss.fleetMode

* - replaces full index configuration paths with references in the `xpack.apm.indices` namespace
- removes mergeConfig function and test

* fixes proxy mock object in unit test

* fixes linting issues

* PR feedback and failed test

* changes the configs at `xpack.apm.indices.*` from plural to singular to match `processor.event` values
2021-10-13 03:16:21 -04:00
Spencer
b06e6db2f5
[kbn/optimizer] log about high-level optimizer progress (#103354)
* [kbn/optimizer] log about high-level optimizer progress

* restore logOptimizerProgress helper to fix tests

* fix lint error

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-08 16:27:33 -04:00
Yaroslav Kuznietsov
2498b6212c
[MetricVis] Move the expression function and renderer to a separate plugin. (#113427)
* Added expressionMetricVis plugin.

* splitted metric vis_type and expression.

* Fixed check errors.

* Fixed plugin docs.

* updated snapshots.

* Added code owner to expressionMetricVis.

* updated chart docs.

* Changed the `Metric` type export.

* Added storybook.

* Added bucket story.

* Added without label story.

* Added "with custom font size" story.

* Added other stories.

* Added DatatableColumn accessors.

* Replaced Metric with MetricOptions.

* Fixed MetricOptions.any

* updated the check of min/max existence.

* Updated function/renderer names.

metricRenderer -> metricVisRenderer
metricFunction -> metricVisFunction

* updated snapshot.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-08 08:42:44 +03:00
Joe Portner
64f37e7414
Remove securityOss plugin (#113946) 2021-10-07 17:57:37 +02:00
Matthew Kime
bbb2e96dd5
[data views] Move data views api from data plugin and into its own (#113497)
* initial pass at moving data views into own plugin

* require expressions plugin, fix META_FIELDS reference

* bundle limits and localization

* fix integration test

* update plugin list and jest config

* type fixes

* search fixes

* fix localization

* fix mocks

* fix mocks

* fix stub

* type fixes

* fix import on test file

* path fixes

* remove shorted dotted from data plugin

* more todo removal

* eslint fixes

* eslint fix

* simplify data views server plugin

* simplify data views server plugin

* simplify data views server plugin

* fix imports on api routes

* fix imports on api routes

* update plugin list

* ts fixes

* ts fixes

* add deprecation notice

* fix circular dependency and api integration test

* fix circular dependency and api integration test

* rename types for better clarity

* path fixes

* jest.config and tsconfig cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-04 12:05:22 -05:00
Tyler Smalley
284732f058
[ci-stats] Local metrics fixes (#113492)
* Rename `{ group: 'yarn start', id: 'started' }` to `{ group: 'scripts/kibana', id: 'dev server started' }` for consistency
* Rename `{ group: '@kbn/optimizer' }` to `{ group: 'scripts/build_kibana_platform_plugins' }` for consistency
* Include email for Elastic employees
* Standardize on Unix paths
* Set `subProcess: true` if the timing is already captured by a parent.
* Move nestedTiming to global and use normalize-path
2021-10-03 11:43:45 -05:00