-
Notifications
You must be signed in to change notification settings - Fork 1
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
Publish(): media files must not exist #216
Conversation
Codecov Report
|
3392f45
to
80e1af4
Compare
Cool, that idea is even better then I thought, because you are not adding an argument to |
One great advantage is that now we only have to have the media in the build folder that is actually added / altered in that version, which makes it easier to spot the changes. I would even argue it makes sense now to have a build folder for every version rather than a shared one as we had so far. |
There is one part where I'm wondering if this still works with your proposal: deleting of files. Before you downloaded all files with |
Yes, it was always handled this way. You can have as many media files as you want, as long as they are not referenced in at least one table they were never uploaded. |
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.
Very cool, this will indeed a big relief for updating databases, as you nearly never change all media files.
97bb571
to
c601076
Compare
Co-authored-by: Hagen Wierstorf <hwierstorf@audeering.com>
Co-authored-by: Hagen Wierstorf <hwierstorf@audeering.com>
Co-authored-by: Hagen Wierstorf <hwierstorf@audeering.com>
Co-authored-by: Hagen Wierstorf <hwierstorf@audeering.com>
I'm already excited to use this new feature :o) |
Closes #56
Allows it to publish a new version of a database without downloading all media files first. For media files referenced in a table it is sufficient that they exist in dependencies of the previous version. In that case it is assumed they remain unchanged.
This should significantly speed up publishing, since we
Only for media files that exist in the build folder, the checksum is calculated to check if they were altered. When a media file is altered that shares the archive with other files, missing files are automatically downloaded to the build folder so that the archive can be created.
To download only the metadata to the build folder, the argument
only_metadata
was added toaudb.load_to()
.The usage section was updated accordingly: