-
Notifications
You must be signed in to change notification settings - Fork 360
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
Python Wrapper: Objects generator #7110
Conversation
17883de
to
6dffbca
Compare
042814a
to
ddb7746
Compare
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,
Not blocking on any of my comments, but do take a look
@@ -9,6 +9,9 @@ | |||
|
|||
from lakefs.namedtuple import LenientNamedTuple | |||
|
|||
_PREFIX = "common_prefix" |
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 know it's not from this PR, but I prefer common_prefix, prefix has a different meaning
_PREFIX = "common_prefix" | |
_COMMON_PREFIX = "common_prefix" |
class CommonPrefix(LenientNamedTuple): | ||
""" | ||
Represents a common prefix in lakeFS | ||
""" | ||
path: str | ||
|
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.
Not sure if it's still wanted, but on the initial PRD CommonPrefix has an exists
method
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.
For now, both ObjectInfo and CommonPrefix are data models and do not contain logic. For now it feels redundant providing them with functionality that is accessible via the branch / object level methods. Lets see if there's demand for that and add it as needed
""" | ||
Returns a ObjectManager object for this reference | ||
Returns an object generator for this reference |
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.
object/common_prefix or find a better way to phrase it (even though the name of the method is objects)
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 more doc information
Closes #7109
Change Description
Background
Implement object generator and separate ObjecStats into ObjectInfo, CommonPrefix
Testing Details
Unit and integration tests