-
Notifications
You must be signed in to change notification settings - Fork 387
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
[#4280] improvement(PyGVFS): Refactor the getFileLocation
logic in the Python GVFS
#5026
Conversation
9d7d6d5
to
a9eaf6c
Compare
@jerryshao This PR is ready for review, please take a look when you have time, thanks. This is the last PR for unifying Fileset metadata operations and data operations audits into the server. The remaining data operation caller context reported to the external system for audit will be provided after the feature is completed at #4887. |
Gentle pin @jerryshao |
Sure, I will take a look at this today. |
context.get_storage_type(), context.get_actual_path() | ||
), | ||
if mode in ("w", "wb"): | ||
data_operation = FilesetDataOperation.OPEN_AND_WRITE |
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.
@jerqi I'm adding two new operations: OPEN_AND_WRITE
/ OPEN_AND_APPEND
, so it can be more clear to define the data operation here.
common/src/main/java/org/apache/gravitino/audit/FilesetDataOperation.java
Show resolved
Hide resolved
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.
LGTM.
…GVFS (#5030) ### What changes were proposed in this pull request? Support OAuth2 authentication in PyGVFS so that it can interact with the Gravitino server. This is supported in Java GVFS and we should also support it in PyGVFS. This is depended on #5026 which refactor the Python GVFS. ### Why are the changes needed? Fix: #3758 ### How was this patch tested? Add some UTs.
What changes were proposed in this pull request?
Refactor the logic of getting the file location in Python GVFS.
Why are the changes needed?
Fix: #4280
How was this patch tested?
Refactor the UTs and reserved ITs works well.