mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02:00
Merge pull request #4237 from overleaf/jpa-pdf-caching-full
[misc] roll out pdf caching in full -- send metrics for 5% of users GitOrigin-RevId: 12ae5a61ef39d206980681b54fe9c871ca1b86b4
This commit is contained in:
@@ -1225,30 +1225,11 @@ describe('ProjectController', function () {
|
||||
.returns(false)
|
||||
})
|
||||
}
|
||||
function tagAlpha() {
|
||||
beforeEach(function () {
|
||||
this.user.alphaProgram = true
|
||||
})
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
this.settings.enablePdfCaching = true
|
||||
})
|
||||
|
||||
describe('alpha rollout', function () {
|
||||
describe('regular user', function () {
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('alpha user', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
})
|
||||
})
|
||||
|
||||
describe('during regular roll-out', function () {
|
||||
describe('disabled', function () {
|
||||
showNoVariant()
|
||||
@@ -1258,11 +1239,7 @@ describe('ProjectController', function () {
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('alpha user', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1274,11 +1251,7 @@ describe('ProjectController', function () {
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('alpha user', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1290,11 +1263,7 @@ describe('ProjectController', function () {
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('alpha user', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1306,11 +1275,7 @@ describe('ProjectController', function () {
|
||||
})
|
||||
describe('anonymous user', function () {
|
||||
tagAnonymous()
|
||||
expectToNotBeEnrolledAtAll()
|
||||
})
|
||||
describe('alpha user', function () {
|
||||
tagAlpha()
|
||||
expectToCollectMetricsAndCachePDF()
|
||||
expectToCachePDFOnly()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user