Skip to content
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

#105 Added storage_backend configuration element #107

Merged
merged 2 commits into from
May 30, 2024

Conversation

ahsimb
Copy link
Collaborator

@ahsimb ahsimb commented May 28, 2024

closes #105
closes #106

@ahsimb ahsimb added the refactoring Code improvement without behavior change label May 28, 2024
@ahsimb ahsimb self-assigned this May 28, 2024
@@ -154,7 +83,8 @@ def get_udf_bucket_path(conf: Secrets) -> str:
Builds the path of the BucketFS bucket specified in the configuration,
as it's seen in the udf's file system.
"""
return f"/buckets/{conf.get(CKey.bfs_service)}/{conf.get(CKey.bfs_bucket)}"
bucket = open_bucketfs_connection(conf)
return bucket.udf_path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't the return type "Pathlike" would fit better for this function, instead of 'str'?
Sorry if this question is not related to the changes in the PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, but then I would break compatibility and will have to change few notebooks in the AI-Lab.

@ahsimb ahsimb merged commit ce6fb63 into main May 30, 2024
12 checks passed
@ahsimb ahsimb deleted the refactoring/105-backend-config branch May 30, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Code improvement without behavior change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the logic of the connection.get_udf_bucket_path function Add configuration element - backend
2 participants