-
Notifications
You must be signed in to change notification settings - Fork 2
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
#114 Added path builder function #115
Conversation
@@ -119,6 +128,7 @@ def __init__( | |||
username: str, | |||
password: str, | |||
verify: bool | str = True, | |||
service_name: Optional[str] = None |
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.
why add the service name this breaks separation of the layers?
(Lower layers should not now know the upper layers)
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 apologize for bringing this up late, but it seems I have missed the presence of service_name
in Bucketlike. I assume that there were reasons for its implementation, but I would like to discuss this further as it may be problematic and could potentially break the abstraction of the layers.
We need to be able to implement the |
@@ -272,6 +287,9 @@ def parent(self) -> str: | |||
def as_uri(self) -> str: | |||
return self._path.as_uri() |
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.
@Nicoretti @ahsimb This will be a file uri of the form file:///path/to/somewhere is this the intention
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.
Yes, it will return 'file:///...'. Whether we need it or not, I don't know.
def __init__(self, url: str, account_id: str, database_id: str, pat: str) -> None: | ||
self._url = url | ||
self._account_id = account_id | ||
self.database_id = database_id |
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.
self.database_id = database_id | |
self._database_id = database_id |
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.
Will fix when I provide an implementation for this class.
raise NotImplementedError() | ||
|
||
def __str__(self): | ||
return f"SaaSBucket<{self.name} | on: {self._url}>" |
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.
maybe we should include the account_id and database_id, they are necessary to identify the bucket
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.
Both or just the database_id?
closes #114