Merge pull request #8644 from overleaf/bg-archive-track-changes

archive track changes zip files in project when history migration fails

GitOrigin-RevId: 67f2381b0a8f2fb1de82100752031c65808af885
This commit is contained in:
Brian Gough
2022-07-01 08:03:52 +00:00
committed by Copybot
parent 93c2168ab2
commit da02a4f2be
4 changed files with 44 additions and 1 deletions
@@ -148,6 +148,20 @@ async function generateZip(projectId, zipfile) {
Buffer.from(JSON.stringify(manifest, null, 2)),
'manifest.json'
)
zipfile.addBuffer(
Buffer.from(
`History Migration Data
This zip file contains a copy of the raw history for this project.
If this file is present in a project it means the history could not
be fully recovered or migrated.
A new history should have been created starting at the datestamp of
this file.`
),
'README.txt'
)
zipfile.end()
}