-
Notifications
You must be signed in to change notification settings - Fork 22
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
test: qdrant upload twice to test upsert behavior #321
base: main
Are you sure you want to change the base?
Conversation
## 0.3.12-dev3 | ||
## 0.3.12-dev4 | ||
|
||
### Enhancements |
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.
Don't we want to update changelog with this fix/enchancement?
I mean, it all depends on whether we want to include dev updates here too, or only user-facing ones.
if uploader.is_async(): | ||
await uploader.run_async(path=staged_upload_file, file_data=file_data) | ||
else: | ||
uploader.run(path=upload_file, file_data=file_data) | ||
await uploader.run_async(path=staged_upload_file, file_data=file_data) | ||
async with qdrant_client(connection_kwargs) as client: | ||
await validate_upload(client=client, upload_file=upload_file) | ||
|
||
# NOTE: Upload the second time to validate upsert behavior | ||
await uploader.run_async(path=staged_upload_file, file_data=file_data) |
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.
Just curious, why the previous change includes both async and sync run (if not async) but here you removed that and use async only?
Extend qdrant integration tests to upload the files twice to test the upsert behavior is working.