Skip to content

feat: adding new operations to ValkeyDocumentStore#2910

Merged
davidsbatista merged 19 commits intomainfrom
feat/add-more-operations-valkey
Mar 6, 2026
Merged

feat: adding new operations to ValkeyDocumentStore#2910
davidsbatista merged 19 commits intomainfrom
feat/add-more-operations-valkey

Conversation

@davidsbatista
Copy link
Copy Markdown
Contributor

@davidsbatista davidsbatista commented Mar 4, 2026

Related Issues

Proposed Changes:

Adding the following new operations, both sync and async:

  • count_unique_metadata_by_filter
  • count_documents_by_filter
  • delete_by_filter
  • get_metadata_field_min_max
  • get_metadata_fields_info
  • update_by_filter

How did you test it?

  • new sync and async tests for each

Checklist

@github-actions github-actions Bot added integration:valkey type:documentation Improvements or additions to documentation labels Mar 4, 2026
@davidsbatista davidsbatista marked this pull request as ready for review March 5, 2026 10:28
@davidsbatista davidsbatista requested a review from a team as a code owner March 5, 2026 10:28
@davidsbatista davidsbatista requested review from anakin87 and removed request for a team March 5, 2026 10:28
Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work overall.

I left some comments and questions.

assert doc.meta["score"] >= 0.7

# --- delete_by_filter, update_by_filter, count_documents_by_filter ---

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here in tests, could we use the tests you added in haystack/testing/document_store.py?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@davidsbatista
Copy link
Copy Markdown
Contributor Author

There was a split to the astra integration tests file, I wrongly mixed my local branches, reverted it.

@davidsbatista davidsbatista requested a review from anakin87 March 6, 2026 13:52
Copy link
Copy Markdown
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one minor comment on test names but looks good.

Feel free to merge once fixed.

Comment thread integrations/valkey/tests/test_document_store_async.py Outdated
davidsbatista and others added 2 commits March 6, 2026 15:50
@davidsbatista davidsbatista merged commit 8390787 into main Mar 6, 2026
8 checks passed
@davidsbatista davidsbatista deleted the feat/add-more-operations-valkey branch March 6, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:astra integration:valkey type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants