-
Notifications
You must be signed in to change notification settings - Fork 126
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
MongoDB Atlas: filters #542
Conversation
class MongoDBAtlasDocumentStoreError(Exception): | ||
"""Exception for issues that occur in a MongoDBAtlas document store""" | ||
|
||
pass |
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.
it was unused
|
||
|
||
@pytest.mark.skipif( | ||
"MONGO_CONNECTION_STRING" not in os.environ, | ||
reason="No MongoDB Atlas connection string provided", | ||
) | ||
class TestDocumentStore(CountDocumentsTest, WriteDocumentsTest, DeleteDocumentsTest): | ||
@pytest.mark.integration | ||
class TestDocumentStore(DocumentStoreBaseTests): |
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.
I included all the base tests.
They also cover filters.
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.
Looks very good to me already. I have one comment on a code block that we re-use multiple times. Should become a separate method for input parameter validation. The PR can be merged right after that is fixed. 👍
integrations/mongodb_atlas/src/haystack_integrations/document_stores/mongodb_atlas/filters.py
Outdated
Show resolved
Hide resolved
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.
LGTM! 👍
part of #143