[history-v1] add endpoint for downloading latest zip (#33181)

* [history-v1] add endpoint for downloading latest zip

* [web] address review feedback

* [web] tests: do not overwrite db.projects.overleaf, extend it

* [web] set includeReferer flag from downloading zip

GitOrigin-RevId: e63e549f004230086f82eccf03b43fd62bde6071
This commit is contained in:
Jakob Ackermann
2026-05-13 08:06:53 +00:00
committed by Copybot
parent b1931d0b3b
commit 7c50dc9990
13 changed files with 319 additions and 63 deletions
+20
View File
@@ -163,6 +163,26 @@ export async function provisionSplitTests(merge = false, extraSplitTests = []) {
'utf-8'
)
)
// Add WIP split test, we can update the JSON blob once this is in production
SPLIT_TESTS.push({
name: 'zip-from-history',
versions: [
{
versionNumber: 1,
createdAt: '2026-02-25T14:55:31.260Z',
active: true,
analyticsEnabled: false,
phase: 'release',
variants: [
{
name: 'enabled',
rolloutPercent: 0,
rolloutStripes: [],
},
],
},
],
})
console.log(`> Importing ${SPLIT_TESTS.length} split-tests from production.`)
if (merge) {
await SplitTestManager.mergeSplitTests(SPLIT_TESTS, false)