Skip to content

[8.x] [ES|QL] Restructure validation code, remove command settings (#215056)#215491

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-215056
Mar 21, 2025
Merged

[8.x] [ES|QL] Restructure validation code, remove command settings (#215056)#215491
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-215056

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…#215056)

## Summary

Follow on to several recent efforts including
elastic#195418 and
elastic#213325

This PR
- reorganizes validation code to make dependencies clearer and make it
less overwhelming... it's not perfect but it's better
- removes the deprecated notion of a command "setting" which only ever
applied to `ENRICH`.

No regression in `ENRICH` mode validation:
<img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM"
src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c"
/>

Or hover
<img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM"
src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b"
/>

### Checklist

- [x] [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: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 9073b19)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Mar 21, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) March 21, 2025 13:09
@kibanamachine kibanamachine merged commit 7b1eefd into elastic:8.x Mar 21, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
esql 208 187 -21
lists 441 420 -21
securitySolution 7143 7141 -2
unifiedSearch 369 348 -21
total -65

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-validation-autocomplete 188 174 -14

Page load bundle

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

id before after diff
kbnUiSharedDeps-srcJs 3.6MB 3.6MB -4.5KB
Unknown metric groups

API count

id before after diff
@kbn/esql-validation-autocomplete 200 187 -13

References to deprecated APIs

id before after diff
@kbn/monaco 5 2 -3

cc @drewdaemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants