-
Notifications
You must be signed in to change notification settings - Fork 40
feat(storage): Implement SqliteRelatedTermsIndex.serialize() method
#115
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
gvanrossum
left a comment
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.
Thanks! This looks good except for one nit.
| assert fresh_fuzzy is not None | ||
| assert await fresh_fuzzy.size() == 3 | ||
|
|
||
| # Use concrete type to access get_terms (not in interface) |
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 wonder if get_terms() should be added to the interface. (Probably not in this PR unless it's a one-liner -- which it isn't since you'd have to implement it for the memory provider too.)
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.
@gvanrossum I agree get_terms() could be useful in the interface. I'll keep it out of this PR to keep the scope small, but happy to open a follow-up issue/PR to add it to the interface and implement it for both providers if that would be helpful.
|
@iamrajiv If you're around could you address my nits? Then we can merge it. |
|
Thank you for the review, @gvanrossum. I made the changes you suggested. Could you please review it again? |
gvanrossum
left a comment
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.
Perfect! Merging now.
I noticed the NotImplementedError in the serialize methods while exploring the codebase. I implemented the missing serialize() functionality for: