Skip to content
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

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

imvtsl
Copy link
Contributor

@imvtsl imvtsl commented Jul 9, 2024

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.

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>
@imvtsl
Copy link
Contributor Author

imvtsl commented Jul 9, 2024

@saimedhi
Please review.

saimedhi
saimedhi previously approved these changes Jul 9, 2024
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))
Copy link
Collaborator

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.

Copy link
Contributor Author

@imvtsl imvtsl Jul 9, 2024

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>
@saimedhi saimedhi merged commit f0bce7c into opensearch-project:main Jul 9, 2024
61 checks passed
dblock pushed a commit to dblock/opensearch-py that referenced this pull request Aug 15, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants