-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
PassThroughObject nests aliases within objects for fields with dotted names #105298
Conversation
Hi @kkrik-es, I've created a changelog YAML for you. |
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a yaml test that simulated what the Kibana tests were doing? Otherwise LGTM.
docs/changelog/105298.yaml
Outdated
pr: 105298 | ||
summary: Ignore duplicate `FieldAliasMappers` | ||
area: TSDB | ||
type: bug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug in unreleased code, let's mark it as non-issue and then a changelog isn't needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Let's do this in a follow-up change, to avoid delaying this one. There's coverage for this in the 150_tsdb.yml test, we do need more tests outside the passthrough object. |
## Summary Unskips tests that were skipped due to an upstream change and fixed in elastic/elasticsearch#105298 Addresses elastic#176105, elastic#176117, elastic#176270, elastic#176359, elastic#176360
## Summary Unskips tests that were skipped due to an upstream change and fixed in elastic/elasticsearch#105298 Addresses elastic#176105, elastic#176117, elastic#176270, elastic#176359, elastic#176360
As part of #103648 that introduced PassThroughObject, ObjectMapper was modified to use the full name for FieldAliasMappers, so that aliases at the root level can contain dots. This led to a regression reported in Kibana tests where aliases were wrongly reported as duplicates. The culprit is that aliases with names containing dots were directly added under the root object, instead of being nested within objects. This change restores the right behavior.
Related to #103567