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

[Discover] Make _index and _id optional in EsHitRecord to support ES|QL records #184975

Merged
merged 2 commits into from
Jun 11, 2024

Conversation

davismcphee
Copy link
Contributor

Summary

This PR updates the EsHitRecord type to make _index and _id optional in order to avoid dangerously casting ES|QL records (which may not have _index or _id) to EsHitRecord.

Checklist

For maintainers

@davismcphee davismcphee added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Jun 7, 2024
@davismcphee davismcphee self-assigned this Jun 7, 2024
@davismcphee
Copy link
Contributor Author

/ci

@davismcphee
Copy link
Contributor Author

/ci

@davismcphee davismcphee force-pushed the es-hit-record-type-cleanup branch from 8a9ce23 to 1f22e67 Compare June 10, 2024 22:37
@davismcphee
Copy link
Contributor Author

/ci

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

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/discover-utils 84 86 +2

Async chunks

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

id before after diff
discover 809.1KB 809.2KB +52.0B

Page load bundle

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

id before after diff
unifiedDocViewer 11.5KB 11.5KB +13.0B
Unknown metric groups

API count

id before after diff
@kbn/discover-utils 112 114 +2

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @davismcphee

@davismcphee davismcphee marked this pull request as ready for review June 11, 2024 00:19
@davismcphee davismcphee requested review from a team as code owners June 11, 2024 00:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@stratoula
Copy link
Contributor

Thanx Davis!

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.

LGTM 👍

@davismcphee davismcphee merged commit dac2108 into elastic:main Jun 11, 2024
17 checks passed
@davismcphee davismcphee deleted the es-hit-record-type-cleanup branch June 11, 2024 18:30
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants