-
Notifications
You must be signed in to change notification settings - Fork 7
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
Implement FileStatus.uri property #1648
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1648 +/- ##
==========================================
+ Coverage 76.48% 76.50% +0.02%
==========================================
Files 57 57
Lines 8657 8666 +9
Branches 1426 1427 +1
==========================================
+ Hits 6621 6630 +9
Misses 1836 1836
Partials 200 200
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Update docs/storage_reference.rst
.
neuromation/api/storage.py
Outdated
base_uri: Optional[URL], values: Dict[str, Any] | ||
) -> FileStatus: | ||
if base_uri is None: | ||
uri = URL("storage://" + values["path"].lstrip("/")) |
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.
What if the path contains characters %
, ?
or #
?
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.
Do you mean %?#
in cluster or user name?
Is it allowed at all?
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.
Currently they are not allowed in cluster name and user name. But user can create files with arbitrary names.
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.
Got you.
@serhiy-storchaka please review the updated version
Co-authored-by: Serhiy Storchaka <[email protected]>
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 @serhiy-storchaka for the very careful review! |
No description provided.