-
Notifications
You must be signed in to change notification settings - Fork 749
Rollback search fields to list
and dynamically compute md5 hash in tests
#311
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
Conversation
@@ -81,12 +81,11 @@ def read_from_string(self, data: str | bytes) -> BaseModel | SupportsPickle: | |||
|
|||
|
|||
class SearchIndex: | |||
|
|||
REQUIRED_FIELDS: ClassVar[set[str]] = {"file_location", "body"} | |||
REQUIRED_FIELDS: ClassVar[list[str]] = ["file_location", "body"] |
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.
set
is still a Sequence
, let's keep this as a set
to enforce uniqueness
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 see what you're saying but set isn't a Sequence, it's a Collection, right?
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 think a Collection
is a subset of Sequence
, unless I am missing something
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.
Other way around I think: https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes
… and keep consistent hashes; aded env vars to test.yaml
… a log level failure
@sidnarayanan found a couple of issues while testing: