Skip to content

Move test-only search response x-content-parsing code to test codebase #105308

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

Merged

Conversation

original-brownbear
Copy link
Contributor

Mostly motivated by the wish to isolate where search responses are created in prod code as much as possible so that we can confidently clean up the remaining unpooled search response uses:

Loads of code here that is only used in tests and one duplicate unused class that was only used as an indirection to parsing the AsyncSearchResponse. Moved what I could easily move via automated refactoring to SearchResponseUtils in tests and removed the duplicate now unused class from the client codebase.

Loads of code here that is only used in tests and one duplicate unused
class that was only used as an indirection to parsing the
`AsyncSearchResponse`. Moved what I could easily move via automated
refactoring to `SearchResponseUtils` in tests and removed the duplicate
now unused class from the client codebase.
@original-brownbear original-brownbear added >non-issue :Search/Search Search-related issues that do not fall into other categories labels Feb 8, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine added Team:Search Meta label for search team v8.13.0 labels Feb 8, 2024
@original-brownbear original-brownbear requested a review from a team as a code owner February 8, 2024 20:35
Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me!

@original-brownbear
Copy link
Contributor Author

Thanks both!

@original-brownbear original-brownbear merged commit 5c80064 into elastic:main Feb 9, 2024
@original-brownbear original-brownbear deleted the drop-more-response-parsing branch February 9, 2024 10:56
@joegallo
Copy link
Contributor

Related to #83423

@original-brownbear original-brownbear restored the drop-more-response-parsing branch November 30, 2024 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants