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

[#4280] improvement(PyGVFS): Refactor the getFileLocation logic in the Python GVFS #5026

Merged
merged 6 commits into from
Oct 8, 2024

Conversation

xloya
Copy link
Contributor

@xloya xloya commented Sep 26, 2024

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.

@xloya xloya self-assigned this Sep 26, 2024
@xloya xloya force-pushed the refactor-python-gvfs branch from 9d7d6d5 to a9eaf6c Compare September 26, 2024 07:48
@xloya
Copy link
Contributor Author

xloya commented Sep 26, 2024

@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.

@xloya xloya requested a review from jerryshao September 26, 2024 09:41
@xloya
Copy link
Contributor Author

xloya commented Oct 8, 2024

Gentle pin @jerryshao

@jerryshao
Copy link
Contributor

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
Copy link
Contributor Author

@xloya xloya Oct 8, 2024

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.

Copy link
Contributor

@jerryshao jerryshao left a comment

Choose a reason for hiding this comment

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

LGTM.

@jerryshao jerryshao merged commit dd1a930 into apache:main Oct 8, 2024
26 checks passed
jerryshao pushed a commit that referenced this pull request Oct 9, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] Refactor the getFileLocation logic in the Python GVFS
2 participants