Skip to content

Conversation

ds-filipknefel
Copy link
Contributor

Extend qdrant integration tests to upload the files twice to test the upsert behavior is working.

Comment on lines -1 to 3
@@ -1,4 +1,4 @@
## 0.3.12-dev3
## 0.3.12-dev4

### Enhancements
Copy link
Contributor

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.

Comment on lines -147 to +160
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)
Copy link
Contributor

@mpolomdeepsense mpolomdeepsense Jan 7, 2025

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?

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