-
Notifications
You must be signed in to change notification settings - Fork 67
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
[SYNPY-448] allow changing Synapse name in changeFileMetaData #1065
Conversation
Hello @danlu1! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-02-12 17:39:17 UTC |
synapseutils/copy_functions.py
Outdated
@@ -239,6 +239,7 @@ def _copy_cached_file_handles(cache: Cache, copiedFileHandles: dict) -> None: | |||
def changeFileMetaData( | |||
syn: synapseclient.Synapse, | |||
entity: typing.Union[str, Entity], | |||
name: str = None, |
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 am going to make 1 change here to put name at the end of the parameters being passed in - This is because if someone were using this function without explicit kwarguments then this would break their code.
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.
Good catch! Thanks @BryanFauble
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 for the changed Dan!
Quality Gate passedIssues Measures |
Problem:
Python client doesn't allow changing Synapse name for file metadata
Solution:
Add a name argument to change_metadata in file.py and changeFileMetaData function in synapseutils
Testing:
Integration and unit testing are included in this PR