Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ES|QL] Introduces a new package for esql types #212754

Merged
merged 13 commits into from
Mar 3, 2025

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Feb 28, 2025

Summary

The esql types are around many packages and plugins creating problems either with the bundle size or cyclic dependencies.

This PR is moving some of them on the esql-types package. I am going to move more there in follow up PRs.

(I decided to rename it as it makes more sense to have a generic one for esql rather one only for the variables)

@stratoula stratoula added v9.1.0 v8.19.0 Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels labels Feb 28, 2025
@stratoula stratoula marked this pull request as ready for review February 28, 2025 13:55
@stratoula stratoula requested review from a team as code owners February 28, 2025 13:55
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@stratoula stratoula changed the title [ES|QL] Introduce a new package for types [ES|QL] Introduce a new package for esql types Feb 28, 2025
@stratoula stratoula changed the title [ES|QL] Introduce a new package for esql types [ES|QL] Introduces a new package for esql types Feb 28, 2025
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cloudSecurityPosture 795 706 -89
controls 459 369 -90
dashboard 744 655 -89
data 636 547 -89
dataVisualizer 853 764 -89
discover 1110 1021 -89
esql 206 207 +1
esqlDataGrid 533 444 -89
eventAnnotationListing 713 624 -89
infra 1287 1198 -89
investigateApp 346 257 -89
lens 1787 1697 -90
lists 437 438 +1
maps 1348 1259 -89
ml 2400 2333 -67
observability 1407 1318 -89
observabilityAIAssistantApp 518 429 -89
securitySolution 7110 7111 +1
slo 1008 919 -89
stackAlerts 274 185 -89
unifiedHistogram 289 200 -89
unifiedSearch 394 395 +1
total -1578

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/esql-types - 13 +13
@kbn/esql-validation-autocomplete 206 201 -5
@kbn/esql-variables-types 7 - -7
total +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 427.8KB 427.8KB +1.0B
esql 238.8KB 238.8KB +24.0B
lens 1.6MB 1.6MB -45.0B
securitySolution 8.9MB 8.9MB -1.0B
total -21.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 398.6KB 398.6KB -3.0B
kbnUiSharedDeps-srcJs 3.6MB 3.6MB -6.0B
lens 58.6KB 58.8KB +140.0B
securitySolution 86.0KB 86.0KB -1.0B
total +130.0B
Unknown metric groups

API count

id before after diff
@kbn/esql-types - 13 +13
@kbn/esql-validation-autocomplete 218 213 -5
@kbn/esql-variables-types 8 - -8
total -0

History

Copy link
Contributor

@jughosta jughosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataDiscovery changes LGTM 👍

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presentation team import changes LGTM!

Copy link
Contributor

@drewdaemon drewdaemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sensible!

…ta_loader.test.ts

Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
@stratoula stratoula enabled auto-merge (squash) March 3, 2025 09:01
@stratoula stratoula merged commit dab569b into elastic:main Mar 3, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/13629383128

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 212754

Questions ?

Please refer to the Backport tool documentation

@stratoula
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

stratoula added a commit to stratoula/kibana that referenced this pull request Mar 3, 2025
## Summary

The esql types are around many packages and plugins creating problems
either with the bundle size or cyclic dependencies.

This PR is moving some of them on the esql-types package. I am going to
move more there in follow up PRs.

(I decided to rename it as it makes more sense to have a generic one for
esql rather one only for the variables)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
(cherry picked from commit dab569b)

# Conflicts:
#	.github/CODEOWNERS
stratoula added a commit that referenced this pull request Mar 3, 2025
)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Introduces a new package for esql types
(#212754)](#212754)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2025-03-03T11:04:32Z","message":"[ES|QL]
Introduces a new package for esql types (#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
Introduces a new package for esql
types","number":212754,"url":"https://github.com/elastic/kibana/pull/212754","mergeCommit":{"message":"[ES|QL]
Introduces a new package for esql types (#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212754","number":212754,"mergeCommit":{"message":"[ES|QL]
Introduces a new package for esql types (#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Mar 4, 2025
elastic#212880)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Introduces a new package for esql types
(elastic#212754)](elastic#212754)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2025-03-03T11:04:32Z","message":"[ES|QL]
Introduces a new package for esql types (elastic#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:ES|QL","Team:ESQL","backport:version","v9.1.0","v8.19.0"],"title":"[ES|QL]
Introduces a new package for esql
types","number":212754,"url":"https://github.com/elastic/kibana/pull/212754","mergeCommit":{"message":"[ES|QL]
Introduces a new package for esql types (elastic#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212754","number":212754,"mergeCommit":{"message":"[ES|QL]
Introduces a new package for esql types (elastic#212754)\n\n## Summary\n\nThe
esql types are around many packages and plugins creating
problems\neither with the bundle size or cyclic dependencies.\n\nThis PR
is moving some of them on the esql-types package. I am going to\nmove
more there in follow up PRs.\n\n(I decided to rename it as it makes more
sense to have a generic one for\nesql rather one only for the
variables)\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Marco
Vettorello
<vettorello.marco@gmail.com>","sha":"dab569b70ac054b1b5416f086b62a54376495def"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants