-
Notifications
You must be signed in to change notification settings - Fork 186
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
Fixed issue 769:Collapse not preserved when chaining a search instance #771
Conversation
Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
@saimedhi |
CHANGELOG.md
Outdated
@@ -8,6 +8,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
### Deprecated | |||
### Removed | |||
### Fixed | |||
- Fixed issue 769: Collapse not preserved when chaining a search instance ([#771](https://github.com/opensearch-project/opensearch-py/pull/771)) |
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.
@imvtsl, thank you for the contribution. Please change the changelog entry to something like: 'Fixed Search helper to ensure proper retention of the _collapse attribute in chained operations.' No need to mention the issue number.
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.
I made the change. Thank you!
I believe you will have to approve again. It dismissed review automatically as soon as I pushed the change.
Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
opensearch-project#771) * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <vatsal.v.anand@gmail.com> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <vatsal.v.anand@gmail.com> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <vatsal.v.anand@gmail.com> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <vatsal.v.anand@gmail.com> * Fixed issue 769:Collapse not preserved when chaining a search instance Signed-off-by: vatsal <vatsal.v.anand@gmail.com> --------- Signed-off-by: vatsal <vatsal.v.anand@gmail.com>
Description
When clone method is called for search.filter(), collapse attribute was not copied. Therefore, collapse attribute wasn't getting chained to the search object. This fix adds copying the collapse attribute to the search object in the clone method.
Issues Resolved
Resolves #[769]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.