-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Add status field to MultiSearchTemplateResponse #85496
Add status field to MultiSearchTemplateResponse #85496
Conversation
Pinging @elastic/es-search (Team:Search) |
Hi @AbeleMM, thanks for your help with this issue and apologies that it took a bit to pick up your PR. I looked at the change and it looks good. We will need some sort of test however. There are two options for this. First, there are unit test "MultiSearchTemplateRequestTests" and "MultiSearchResponseTests", both of which so far unfortunately don't test the xContent output. I would probably use a fixed response object and write the json output to a String, something like in "org.elasticsearch.index.rankeval.RankEvalResponseTests#testToXContent" maybe. |
@cbuescher Thank you for the helpful comment! I have added checks for the status of response items to the existing tests in |
Thanks @AbeleMM, that looks great. I will probably need to push a few minor changes myself to the branch if that is okay to make the test work with the backward compatibility checks of our CI, but want to spare you the details. Hope its okay if me / our bot pushes to this branch a bit. Will run the tests after merging in master. |
Sounds great! |
@elasticmachine update branch |
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.
LGTM
@elasticmachine update branch |
@elasticmachine test this please |
@elasticmachine test this please |
@elasticmachine run elasticsearch-ci/packaging-tests-windows-sample |
@AbeleMM thanks a lot for your contribution an the quick replies, much appreciated. |
Thank you for the guidance! |
Addresses #83029.
Adds
status
field toMultiSearchTemplateResponse
, as is already the case forMultiSearchResponse
. Tried to touch as little code as necessary to allow for the change, while also mimicking the structure ofMultiSearchResponse
andSearchResponse
as much as possible.