ES|QL static metadata (#183890)

## Summary

Cleanups the implementation of the metadata logic. There is no reason at
this point (and maybe not even in the future) to have this metadata list
be dynamic. This PR is removing this logic and cleans it up
This commit is contained in:
Stratoula Kalafateli 2024-05-23 23:10:07 +02:00 committed by GitHub
parent 96b195b76c
commit c7ae3c6f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 107 additions and 155 deletions

View file

@ -35,11 +35,6 @@ function getCallbacksCode(callbacks: CodeSnippetProps['callbacks']) {
],`
: ''
}
${
callbacks.metaFields
? `getMetaFields: async () => ['_version', '_id', '_index', '_source'],`
: ''
}
${
callbacks.policies
? `getPolicies: async () => [