Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Update draft status of existing attachment assets #3769
This is based on the changes in #3768 which keeps the draft status of assets for attachments up-to-date on an on-going basis, including new ones. This PR adds a Rake task to allow us to update the draft status of assets for all existing attachments.
Only the last two commits are unique to this branch - I plan to rebase this branch against the branch in #3768 before merging this PR.
Like some of the other asset migration Rake tasks, this new Rake task allows a range of attachment IDs to be specified so we can process the attachments in manageable batches.
We're probably going to need to do something similar for the following issues:
I wonder what the rate-limiting step was when we migrated the attachment files, because if running the new Rake task for all attachments is going to take a similar amount of time, we might want to consider either (a) combining the work from all the above issues into a single migration job; or (b) investigating increasing the throughput of the Whitehall/Asset Manager queueing mechanism.