You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a curator
I want to bulk update in the database the checksum for the README files following bulk replacement of location
So that they match the actual README files
Acceptance criteria
Given I have a README file with format readme_DOI.txt in wasabi with associated outdated checksum metadata in DB
When I run the update process
Then the checksum in the database will be updated with the actual checksum of that README file
Given I have a README file in Wasabi with format readme_DOI.txt in wasabi but the file table entry is missing
When I run the update process
Then the checksum in the database will be updated with the actual checksum of that README file
And a new entry is added to the file table for that README file
Additional Info
Implementation
Before:
create temporary directories
For each DOI:
Gather (with rclone) checksum and filesize from Wasabi API for all the files for DOI and write them in DOI.md5 and DOI.filesizes on the filesystem in temporary location
If the readme_DOI.txt is found in DB, update database with MD5 checksum in files attributes and size in file table
If readme_DOI.txt file is not found in DB, add new row in file table, then update database with MD5 checksum in files attributes
upload the DOI.md5 and DOI.filesizes to Wasabi (overwriting existing ones if they exist)
Make sure #2116 is completed before this ticket.
User story
Acceptance criteria
Additional Info
Implementation
Before:
create temporary directories
For each DOI:
rclone
) checksum and filesize from Wasabi API for all the files for DOI and write them inDOI.md5
andDOI.filesizes
on the filesystem in temporary locationreadme_DOI.txt
is found in DB, update database with MD5 checksum in files attributes and size in file tablereadme_DOI.txt
file is not found in DB, add new row in file table, then update database with MD5 checksum in files attributesDOI.md5
andDOI.filesizes
to Wasabi (overwriting existing ones if they exist)After:
delete temporary directories
rclone checksum docs: https://rclone.org/commands/rclone_md5sum/#:~:text=By%20default%2C%20the%20hash%20is,algorithms%2C%20see%20the%20hashsum%20command
Product Backlog Item Ready Checklist
Product Backlog Item Done Checklist
The text was updated successfully, but these errors were encountered: