-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support edges to/from nested fields #149
Conversation
This allows an edge like `("a.b", "b.c")`.
@@ -113,7 +113,11 @@ def _matches(self, filter: dict[str, Any] | None, content: Content) -> bool: | |||
return True | |||
|
|||
for key, filter_value in filter.items(): | |||
content_value = content.metadata.get(key, SENTINEL) | |||
content_value = content.metadata | |||
for key_part in key.split("."): |
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.
Split keys on .
. This is questionable -- some people might put a.b
in the key.
@@ -273,6 +314,10 @@ class AdapterComplianceSuite(abc.ABC): | |||
loaded. | |||
""" | |||
|
|||
def supports_nested_metadata(self) -> bool: | |||
"""Return whether nested metadata is expected to work.""" |
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.
Add some ability to create "features" that disable respective tests. Can refine later.
@@ -25,6 +28,16 @@ def adapter( | |||
) | |||
|
|||
shredder = ShreddingTransformer() | |||
|
|||
# Chroma doesn't even support *writing* nested data currently, so we |
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.
Ugh. Chroma won't even persist things with nested data.
Pull Request Test Coverage Report for Build 13423892143Details
💛 - Coveralls |
No description provided.