-
Notifications
You must be signed in to change notification settings - Fork 800
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
Document.update() should accept fields set to None or empty #1820
Document.update() should accept fields set to None or empty #1820
Conversation
26401a9
to
ce95ec2
Compare
while True: | ||
try: | ||
r = await Tags.search().execute() | ||
d = r.hits[0] | ||
except IndexError: | ||
continue | ||
else: | ||
break |
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.
What is this loop for? Do you need a refresh instead?
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.
Heh, I tried to find how other tests dealt with asynchronous updates and missed the refresh option. Yes, this would be handle much cleanly with a refresh, I'll update it.
ce95ec2
to
26d54fe
Compare
Fixes #1819