-
Notifications
You must be signed in to change notification settings - Fork 409
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
[#4279] feat(client-python): Add the getFileLocation
interface code skeleton in Python Client
#4373
[#4279] feat(client-python): Add the getFileLocation
interface code skeleton in Python Client
#4373
Conversation
6a8db00
to
ebf6ed7
Compare
getFilesetContext
interface in Python ClientgetFileLocation
interface in Python Client
getFileLocation
interface in Python ClientgetFileLocation
interface code skeleton in Python Client
39d9eea
to
b30d18b
Compare
b30d18b
to
307d776
Compare
@jerryshao @noidname01 This PR is ready for review, please take a look of this when you have time, thanks. |
"""An enum class containing fileset data operations that supported.""" | ||
|
||
CREATE = "CREATE" | ||
""" This data operation means that create a new file. |
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 think the comment can be simplified as "Creates a new file", "Options a file", that should be enough.
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.
Done
|
||
|
||
class CallerContext: | ||
"""A class defining the caller context for auditing coarse granularity operations.""" |
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.
"auditing coarse-grained operations."
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.
Done
Generally LGTM, just one comment. |
What changes were proposed in this pull request?
Added an interface code skeleton in Python Client for obtaining the file location so that the client can report some necessary information for the server to audit and simplify some check logics in Python GVFS later. Depend on #4320.
Why are the changes needed?
Fix: #4279
How was this patch tested?
Add UTs and ITs.