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

[#4279] feat(client-python): Add the getFileLocation interface code skeleton in Python Client #4373

Merged
merged 5 commits into from
Sep 24, 2024

Conversation

xloya
Copy link
Contributor

@xloya xloya commented Aug 5, 2024

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.

@xloya xloya force-pushed the add-get-fileset-context-api-in-python branch 4 times, most recently from 6a8db00 to ebf6ed7 Compare August 5, 2024 11:49
@xloya xloya changed the title [#4279] feat(client-python): Add the getFilesetContext interface in Python Client [#4279] feat(client-python): Add the getFileLocation interface in Python Client Aug 9, 2024
@xloya xloya self-assigned this Sep 12, 2024
@xloya xloya changed the title [#4279] feat(client-python): Add the getFileLocation interface in Python Client [#4279] feat(client-python): Add the getFileLocation interface code skeleton in Python Client Sep 23, 2024
@xloya xloya force-pushed the add-get-fileset-context-api-in-python branch 2 times, most recently from 39d9eea to b30d18b Compare September 23, 2024 08:27
@xloya xloya force-pushed the add-get-fileset-context-api-in-python branch from b30d18b to 307d776 Compare September 23, 2024 08:29
@xloya
Copy link
Contributor Author

xloya commented Sep 23, 2024

@jerryshao @noidname01 This PR is ready for review, please take a look of this when you have time, thanks.

@xloya xloya closed this Sep 23, 2024
@xloya xloya reopened this Sep 23, 2024
"""An enum class containing fileset data operations that supported."""

CREATE = "CREATE"
""" This data operation means that create a new file.
Copy link
Contributor

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.

Copy link
Contributor Author

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."""
Copy link
Contributor

Choose a reason for hiding this comment

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

"auditing coarse-grained operations."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@jerryshao
Copy link
Contributor

Generally LGTM, just one comment.

@jerryshao jerryshao merged commit 39f3ca5 into apache:main Sep 24, 2024
26 checks passed
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] Add a getFileLocation interface code skeleton in the Python Client
2 participants