Fix propagation of dynamic mapping parameter when applying copy_to#121109
Fix propagation of dynamic mapping parameter when applying copy_to#121109lkts merged 13 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
|
Hi @lkts, I've created a changelog YAML for you. |
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
|
|
||
| // Used to create a copy_to context. | ||
| // It is important to reset `dynamic` here since it is possible that we copy into a completely different object. | ||
| private Wrapper(RootObjectMapper root, DocumentParserContext in) { |
There was a problem hiding this comment.
Note that the call site didn't change here, this works because createCopyToContext is the only place that passes a root maper to Wrapper constructor. I think this is fragile but i don't have anything better.
There was a problem hiding this comment.
Shall we create a factory method like createWithRootDynamic and use it explicitly?
There was a problem hiding this comment.
It's an optioin but you still need this constructor to call super.
|
Closes #120384. |
|
CI failure is #121335. |
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
…lastic#121109) (cherry picked from commit 1225b07) # Conflicts: # rest-api-spec/build.gradle
Closes #113049.