-
Notifications
You must be signed in to change notification settings - Fork 570
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
metadata_update
: work on a copy of the upstream file, to not mess up the cache
#891
Conversation
The documentation is not available anymore as the PR was closed or merged. |
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!
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!
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.
Could you please write a test for this?
not sure what to test here TBH =) |
Isn't that what this PR enables? |
Ok, makes sense. Want to take a stab at it @adrinjalali? |
Too many things on my plat ATM. I'll leave it to your more than capable hands, or @LysandreJik if he's interested :) |
Pushed a quick test |
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 tests @LysandreJik
f"{USER}/{self.REPO_NAME}", new_metadata, token=self._token, overwrite=True | ||
) | ||
|
||
self.assertNotEqual(metadata_load(path), new_metadata) |
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.
can we also check the original file is not touched?
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.
Handled in 5fabdf8
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, thanks @LysandreJik
otherwise if you're using the same file from another script or library you'll have incorect file.
Side effect: With this change, we can probably remove the flag
force_download=True