-
Notifications
You must be signed in to change notification settings - Fork 802
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
Fix importing collapse from dict #1689
Conversation
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.
Thank you! Looks great. One minor change left.
@@ -294,7 +294,6 @@ def _clone(self): | |||
s = self.__class__( | |||
using=self._using, index=self._index, doc_type=self._doc_type | |||
) | |||
s._collapse = self._collapse.copy() |
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.
Great catch, thanks! Can you please move self._collapse = {}
to Search.__init__
too?
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.
the Search
class already initializes self._collapse
. The one in Request
should not be there, I'm removing it.
4cb2a24
to
0fd40f9
Compare
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.
Thanks! LGTM.
(cherry picked from commit f0c5045)
Two minor bugs in the
collapse
implementation:collapse
key was inRequest
instead ofSearch
collapse
key was not importing from dict