mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
Merge pull request #4210 from overleaf/jpa-pdf-caching-5-percent
[misc] pdf caching out of beta with 5%/5% control/treatment split test GitOrigin-RevId: 06a741f56510b866be3380a99304d8ee67f849dd
This commit is contained in:
@@ -1230,11 +1230,6 @@ describe('ProjectController', function () {
|
||||
this.user.alphaProgram = true
|
||||
})
|
||||
}
|
||||
function tagBeta() {
|
||||
beforeEach(function () {
|
||||
this.user.betaProgram = true
|
||||
})
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
this.settings.enablePdfCaching = true
|
||||
@@ -1252,13 +1247,9 @@ describe('ProjectController', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('beta user', function () {
|
||||
tagBeta()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
})
|
||||
|
||||
describe('during beta roll-out', function () {
|
||||
describe('during regular roll-out', function () {
|
||||
describe('disabled', function () {
|
||||
showNoVariant()
|
||||
|
||||
@@ -1273,17 +1264,13 @@ describe('ProjectController', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('beta user', function () {
|
||||
tagBeta()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
})
|
||||
|
||||
describe('variant=collect-metrics', function () {
|
||||
showVariant('collect-metrics')
|
||||
|
||||
describe('regular user', function () {
|
||||
expectToNotBeEnrolledAtAll()
|
||||
expectToCollectMetricsOnly()
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
@@ -1293,17 +1280,13 @@ describe('ProjectController', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('beta user', function () {
|
||||
tagBeta()
|
||||
expectToCollectMetricsOnly()
|
||||
})
|
||||
})
|
||||
|
||||
describe('variant=collect-metrics-and-enable-caching', function () {
|
||||
showVariant('collect-metrics-and-enable-caching')
|
||||
|
||||
describe('regular user', function () {
|
||||
expectToNotBeEnrolledAtAll()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
@@ -1313,17 +1296,13 @@ describe('ProjectController', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('beta user', function () {
|
||||
tagBeta()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
})
|
||||
|
||||
describe('variant=enable-caching-only', function () {
|
||||
showVariant('enable-caching-only')
|
||||
|
||||
describe('regular user', function () {
|
||||
expectToNotBeEnrolledAtAll()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
@@ -1333,10 +1312,6 @@ describe('ProjectController', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
describe('beta user', function () {
|
||||
tagBeta()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user