Commit graph

44 commits

Author SHA1 Message Date
Spencer 4f4cf054de
[7.x] [ts] migrate root test dir to project refs (#99148) (#101416)
* [ts] migrate root test dir to project refs (#99148)

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

* include schema files in telemetry ts project

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-04 16:22:00 -04:00
Stratoula Kalafateli 10dd00f6a9
[7.x] [Pie] New implementation of the vislib pie chart with es-charts (#83929) (#101292)
* [Pie] New implementation of the vislib pie chart with es-charts (#83929)

* es lint fix

* Add formatter on the buckets labels

* Config the new plugin, toggle tooltip

* Aff filtering on slice click

* minor fixes

* fix eslint error

* use legacy palette for now

* Add color picker to legend colors

* Fix ts error

* Add legend actions

* Fix bug on Color Picker and remove local state as it is unecessary

* Fix some bugs on colorPicker

* Add setting for the user to select between the legacy palette or the eui ones

* small enhancements, treat empty labels with (empty)

* Fix color picker bugs with multiple layers

* fixes on internationalization

* Create migration script for pie chart and legacy palette

* Add unit tests (wip) and a small refactoring

* Add unit tests and move some things to utils, useMemo and useCallback where it should

* Add jest config file

* Fix jest test

* fix api integration failure

* Fix to_ast_esaggs for new pie plugin

* Close legendColorPicker popover when user clicks outside

* Fix warning

* Remove getter/setters and refactor

* Remove kibanaUtils from pie plugin as it is not needed

* Add new values to the migration script

* Fix bug on not changing color for expty string

* remove from migration script as they don't need it

* Fix editor settings for old and new implementation

* fix uistate type

* Disable split chart for the new plugin for now

* Remove temp folder

* Move translations to the pie plugin

* Fix CI failures

* Add unit test for the editor config

* Types cleanup

* Fix types vol2

* Minor improvements

* Display data on the inspector

* Cleanup translations

* Add telemetry for new editor pie options

* Fix missing translation

* Use Eui component to detect click outside the color picker popover

* Retrieve color picker from editor and syncColors on dashboard

* Lazy load palette service

* Add the new plugin to ts references, fix tests, refactor

* Fix ci failure

* Move charts library switch to vislib plugin

* Remove cyclic dependencies

* Modify license headers

* Move charts library switch to visualizations plugin

* Fix i18n on the switch moved to visualizations plugin

* Update license

* Fix tests

* Fix bugs created by new charts version

* Fix the i18n switch problem

* Update the migration script

* Identify if colorIsOverwritten or not

* Small multiples, missing the click event

* Fixes the UX for small multiples part1

* Distinct colors per slice implementation

* Fix ts references problem

* Fix some small multiples bugs

* Add unit tests

* Fix ts ref problem

* Fix TS problems caused by es-charts new version

* Update the sample pie visualizations with the new eui palette

* Allows filtering by the small multiples value

* Apply sortPredicate on partition layers

* Fix vilib test

* Enable functional tests for new plugin

* Fix some functional tests

* Minor fix

* Fix functional tests

* Fix dashboard tests

* Fix all dashboard tests

* Apply some improvements

* Explicit params instead of visConfig Json

* Fix i18n failure

* Add top level setting

* Minor fix

* Fix jest tests

* Address PR comments

* Fix i18n error

* fix functional test

* Add an icon tip on the distinct colors per slice switch

* Fix some of the PR comments

* Address more PR comments

* Small fix

* Functional test

* address some PR comments

* Add padding to the pie container

* Add a max width to the container

* Improve dashboard functional test

* Move the labels expression function to the pie plugin

* Fix i18n

* Fix functional test

* Apply PR comments

* Do not forget to also add the migration to them embeddable too :D

* Fix distinct colors for IP range layer

* Remove console errors

* Fix small mulitples colors with multiple layers

* Fix lint problem

* Fix problems created from merging with master

* Address PR comments

* Change the config in order the pie chart to not appear so huge on the editor

* Address PR comments

* Change the max percentage digits to 4

* Change the max size to 1000

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-optimizer/limits.yml
#	test/functional/apps/visualize/_pie_chart.ts

* Fix functional test

* Revert change - backport missing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-04 11:15:27 -04:00
Alejandro Fernández Gómez 8a62b29374
[Fleet] Remove beats management plugin (#99789) (#101010)
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/deprecations.mdx
#	api_docs/security.json
#	api_docs/spaces.json
2021-05-31 13:33:12 -04:00
Kibana Machine 735ab923f1
security solution and lists to TS incremental builds (#100447) (#100464)
* lists to ts incremental builds

* security_solution to ts incremental

* import ResizeObserver explicitly as it is not declared in dom types

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-05-24 12:30:40 -04:00
Kibana Machine 63f1a65495
[Security Solutions] (Phase 1) Adds an application cache called metrics entities and integrates it within Security Solutions behind a feature flag (#96446) (#98967)
## Summary

Phase 1 of a multi-phase cautious approach for adding an experimental application cache for Kibana solutions called `metric_entities` and integrates it within Security Solutions.

Phase 1 is putting experimental support into the application without breaking existing features. Lots of TODO's, conversations and a possible RFC from phase 1 to phase 2 approach. Some features are missing, but for phase 1 the general idea and code is all there.

To enable this first phase after checking out the branch add this to your `kibana.dev.yml`

```yml
xpack.metricsEntities.enabled: true
xpack.securitySolution.enableExperimental: ['metricsEntitiesEnabled']
```

Then go into Stack Management -> Advanced Settings (Under Security Solutions) and set the enabled to true like so:
<img width="1229" alt="Screen Shot 2021-04-08 at 2 21 02 PM" src="https://user-images.githubusercontent.com/1151048/114091276-b3cbb700-9875-11eb-9083-5c1d91dd20ed.png">

Next go to the security_solutions page and you will see it being activated and you will have these transforms running if you look under stack management:
<img width="1710" alt="Screen Shot 2021-04-29 at 2 00 27 PM" src="https://user-images.githubusercontent.com/1151048/116611174-4a2e4e00-a8f3-11eb-9e15-55cb504dfb2a.png">

On the hosts page, network, page, etc... You can see them being activated when you have no query/filter and you click on request:
<img width="1405" alt="Screen Shot 2021-04-29 at 2 01 28 PM" src="https://user-images.githubusercontent.com/1151048/116611274-6a5e0d00-a8f3-11eb-9998-9f5b3d1c5c63.png">

You will see in the request the index patterns all starting with `estc_xyz*`

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)

We have lots of TODO's but no concrete docs with this just yet.
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

Behind a feature flag and this isn't there yet.
- [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-04-30 16:42:47 -04:00
Steph Milovic d10e5a0070
resolve conflicts (#98833) 2021-04-29 19:00:59 -04:00
Thomas Neirynck b31ee25c46
[Maps] Enable all zoom levels for all users (#96093) (#96228)
# Conflicts:
#	.github/CODEOWNERS
2021-04-05 14:33:44 -04:00
Mike Côté 357e5f11ce
Rename alerts plugin to alerting (#92898) (#93827)
* Rename alerts plugin to alerting

* Deprecate old config values

* Few more renames

* Update plugin list

* Rename xpack.alerts -> xpack.alerting

* Fix some ESLint rules

* Fix typecheck

* Fix some test failures

* Some more renames

* Fix ESLint

* Fix some test failures

* Fix failing jest test

* Undo exclusive test

* Fix APM deps

* Fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/alerting.json
#	api_docs/triggers_actions_ui.json
#	rfcs/text/0003_handler_interface.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 21:38:33 -05:00
Kibana Machine 511febc88d
Migrate logstash, monitoring, url_drilldowns, xpack_legacy to ts projects (#91194) (#91610)
* migrate drilldowns to ts project

* monitoring to ts project

* xpack legacy to ts project

* logstash to ts projects

* missing comma

* list deep project

* export type to refer in d.ts

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-02-17 12:10:33 +00:00
Kibana Machine 59585a38ad
TS project references for monitoring plugin (#91498) (#91538)
Fixes #89293.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-02-16 21:02:49 +00:00
Dario Gieselaar 79d0956687
TypeScript project references for APM (#90049) (#91354)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 07:13:06 +01:00
Nathan Reese 51a14defcc
[7.x] [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292) (#90946)
* [Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292)

* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

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

* remove maps_file_upload from tsconfig.refs.json

* remove x-pack/tsconfig.refs.json, removed in upstream

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-10 16:44:00 -07:00
Patryk Kopyciński 9d8296ea5d
[Asset Management] Migrate Osquery plugin to TS project references (#90916) (#90989) 2021-02-10 20:54:46 +01:00
Kibana Machine c6535a8a6f
Getting rid of the x-pack tsconfig refs (#90537) (#90875)
Co-authored-by: Brandon Kobel <brandon.kobel@elastic.co>
2021-02-09 20:27:34 -05:00
Pierre Gayvallet 36ea213f7d
migrate more core-owned plugins to tsproject ref (#89975) (#90018)
* migrate more plugins to tsproject ref

* revert changes for xpack_legacy

* fix IT
# Conflicts:
#	src/dev/code_coverage/ingest_coverage/integration_tests/team_assignment.test.js
2021-02-02 19:57:38 +01:00
Christiane (Tina) Heiligers 04fcaba75b
Migrate indexPatternManagement to TS project ref (#89759) (#89914) 2021-02-01 14:45:23 -07:00
Pierre Gayvallet 43927b8707
migrate legacy_export plugin to tsproject ref (#89858) (#89872) 2021-02-01 17:51:23 +01:00
Clint Andrew Hall 80aae02a90
[7.x] [Presentation Team] Migrate to Typescript Project References (#86019) (#89824)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-31 11:14:28 -06:00
Joe Reuter 06e4a77b47
Add tsconfig ref to vis_type_vega (#89551) (#89696) 2021-01-29 13:13:00 +01:00
Nathan Reese 3f6e020005
[Maps] remove maps_oss TS project (#89502) (#89514) 2021-01-27 18:43:32 -07:00
Nathan Reese 55bfa4f648
Migrate maps_legacy, maps_oss, region_map, and tile_map plugions to TS projects (#89351) (#89429) 2021-01-27 10:40:20 -07:00
Stratoula Kalafateli ddc205821a
[7.x] Cleanup OSS code from visualizations wizard (#89092) (#89409)
* Cleanup OSS code from visualizations wizard (#89092)

* Cleanup OSS code from visualizations wizard

* Remove unecessary translations

* Remove unused translation

* Fix functional test

* Disable the functional test for OSS

* Remove from oss correctly :D

* Fix ci
# Conflicts:
#	.github/CODEOWNERS
#	docs/developer/plugin-list.asciidoc
#	packages/kbn-optimizer/limits.yml

* fix plugin list docs

* Change plugins docs list
2021-01-27 16:01:23 +02:00
Mikhail Shustov 83b3510da8
[DX] SavedObjectsManagement to TS project (#88240) (#88283)
* som to ts project

* global_search_providers to ts projecvt
2021-01-14 08:44:10 +01:00
Mikhail Shustov 4b650e9f5e
[DX] move some ES UI plugins to TS project (#88050) (#88276)
* es_ui_shared to ts project

* console to ts project

* console_extensions to ts project

* searchprofiler to ts project

* update includes
2021-01-14 08:43:10 +01:00
Joe Reuter 0247619e51
Migrate most kibana app plugins to TS projects (#87636) (#88205)
# Conflicts:
#	x-pack/tsconfig.json
2021-01-13 22:01:31 +01:00
Christiane (Tina) Heiligers 9a12f16294
[7.x] Converts Telemetry Management Section to TS project refs (#88073) (#88191) 2021-01-13 10:50:03 -07:00
Joe Reuter dfa0c67f3b
Kibana app and presentation ts projects (#87639) (#88035) 2021-01-13 11:53:40 +01:00
Joe Portner a3d5721f16
Create Spaces OSS plugin (#87585) (#88065) 2021-01-12 17:28:21 -05:00
Christiane (Tina) Heiligers d0ca49ce3f
[7.x] [DX] Management to TS projects (#87660) (#87847)
* Adds management to tsconfig refs

* removes preemptive script fix
2021-01-11 10:45:09 -07:00
Nathan L Smith f480002133
TS project references for apmOss plugin (#87676) (#87722)
References #80508. References #81003.
2021-01-07 17:31:06 -06:00
Mikhail Shustov 1d4164000a
[DX] Home & SO tagging OSS to TS projects (#87610) (#87621)
* so tagging oss to ts project

* home to ts project
2021-01-07 16:19:58 +01:00
Mikhail Shustov 838c0ef754
Migrate App services plugins to TS projects (#87294) (#87604)
* migrate expressions to ts project refs

* bfetch to ts project

* ui_actions to ts project

* move fitures to data plugins

* add data ts project

* remove outdated ts-expect-error

* add data to x-pack tsconfigs

* navigation to ts project

* cleanup licensing tsconfig

* saved_objects to ts project

* embeddable to ts project

* ui_actions_enhanced to ts project

* embeddable_enhanced to ts project

* features to ts project

* data_enhanced to ts project refs

* fix i18n check

* fix find_plugins_ready_to_migrate_to_ts_refs script

* add a comment for bug ignoring json for composite projects

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 11:57:24 +01:00
Mikhail Shustov 4efd1d9493
Cleanup tsconfig files (#84396) (#84568)
* remove unused "paths" from tsconfig

* remove unused test utils, import get-url from kbn/test

* dont pollute globals with jest when importing getUrl

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 23:30:31 +01:00
Nathan L Smith 3c7e80ed92
TS project references for securityOss plugin (#82135) (#82625) 2020-11-04 13:46:32 -06:00
CJ Cenizal 0e6caa06e7
Convert Dev Tools app to TS project. (#82197) (#82326)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-02 11:14:55 -08:00
Nathan L Smith a4982cee8d
TS project references for share plugin (#82051) (#82134) 2020-10-30 10:46:39 -05:00
Nathan L Smith 036622ca0a
Add TS project references for inspector (#81792) (#81903) 2020-10-28 10:57:12 -05:00
Nathan L Smith c9bd1a335b
Add tsconfig for url_forwarding (#81177) (#81854)
Also add missing pieces to kibana_react, as a follow-up to #80992.

References #80508
References #81003
2020-10-27 18:21:45 -05:00
Christiane (Tina) Heiligers 02ad93fe12
[7.x] Kibana usage collection to ts project refs (#81265) (#81363) 2020-10-21 12:06:44 -07:00
Christiane (Tina) Heiligers 6b6084b2dc
[7.x] Extracts newsfeed plugin to ts project refs (#81254) (#81341) 2020-10-21 10:33:10 -07:00
Christiane (Tina) Heiligers 0bdce6afc1
[7.x] Usage collection plugins to ts project refs (#81090) (#81201)
# Conflicts:
#	tsconfig.json
2020-10-20 11:15:43 -07:00
Mikhail Shustov e8a05ae57b
Add TS projects for src/plugins & x-pack/plugins (#78440) (#78946)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* add kibana_utils tsconfig

* add refs to kibana_utils tsconfig

* add kibana_utils to the project list

* add kibana_react project

* add support for x-pack/tsconfig.refs.json

* add ts project for x-pack licensing plugins

* add glob for ts projects in src/plugins & x-pack/plugins

* add refs to projects in examples

* fix ref paths in x-pack/test

* address mistic comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/kibana_utils/kibana.json
2020-09-30 17:10:04 +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
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