Allow pass a default value for Event.getField#9115
Allow pass a default value for Event.getField#9115yaauie wants to merge 2 commits intoelastic:mainfrom
Conversation
andrewvc
left a comment
There was a problem hiding this comment.
Looks good mostly! Can we add a test for the ruby variant of this method?
|
@andrewvc I've added the requested ruby-api specs; mind taking one more look? |
|
@yaauie looks like there's a failing test now: |
Restructure overloaded methods on `Event` and its jruby-ext counterpart to provide a single shared implementation of get-field-or-default, which will reduce heap churn; values that are ruby-typed are no longer deep-converted to java-types and back to ruby-types, which mirrors pre-existing behaviour of event get-field before implementation of default-value fallback. Also adds tests for ruby use of `Event#get(reference, defaultValue)`
57b970e to
781d9ef
Compare
|
This pull request does not have a backport label. Could you fix it @yaauie? 🙏
|
|
|
|
This pull request is now in conflicts. Could you fix it @yaauie? 🙏 |
Supersedes: #8315