mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
enable incremental compilation for beta users
This commit is contained in:
parent
8aa77cec5e
commit
97b129cbe3
4 changed files with 5 additions and 2 deletions
|
@ -124,7 +124,7 @@ module.exports = ClsiManager =
|
||||||
if project.compiler not in ClsiManager.VALID_COMPILERS
|
if project.compiler not in ClsiManager.VALID_COMPILERS
|
||||||
project.compiler = "pdflatex"
|
project.compiler = "pdflatex"
|
||||||
|
|
||||||
if options.syncType? # new way, either incremental or full
|
if options.incremental or options.syncType? # new way, either incremental or full
|
||||||
ClsiManager.getContentFromDocUpdaterIfMatch project_id, project, (error, projectStateHash, docUpdaterDocs) ->
|
ClsiManager.getContentFromDocUpdaterIfMatch project_id, project, (error, projectStateHash, docUpdaterDocs) ->
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
logger.log project_id: project_id, projectStateHash: projectStateHash, docs: docUpdaterDocs?, "checked project state"
|
logger.log project_id: project_id, projectStateHash: projectStateHash, docs: docUpdaterDocs?, "checked project state"
|
||||||
|
|
|
@ -30,6 +30,8 @@ module.exports = CompileController =
|
||||||
options.draft = req.body.draft
|
options.draft = req.body.draft
|
||||||
if req.body?.check in ['validate', 'error', 'silent']
|
if req.body?.check in ['validate', 'error', 'silent']
|
||||||
options.check = req.body.check
|
options.check = req.body.check
|
||||||
|
if req.body?.incremental
|
||||||
|
options.incremental = true
|
||||||
logger.log {options:options, project_id:project_id, user_id:user_id}, "got compile request"
|
logger.log {options:options, project_id:project_id, user_id:user_id}, "got compile request"
|
||||||
CompileManager.compile project_id, user_id, options, (error, status, outputFiles, clsiServerId, limits, validationProblems) ->
|
CompileManager.compile project_id, user_id, options, (error, status, outputFiles, clsiServerId, limits, validationProblems) ->
|
||||||
return next(error) if error?
|
return next(error) if error?
|
||||||
|
|
|
@ -18,7 +18,7 @@ block content
|
||||||
| #{translate("beta_program_badge_description")}
|
| #{translate("beta_program_badge_description")}
|
||||||
span.beta-feature-badge
|
span.beta-feature-badge
|
||||||
p.text-centered
|
p.text-centered
|
||||||
strong We're not currently testing anything in beta, but keep checking back!
|
strong We're currently testing lower latency compilation features in beta.
|
||||||
.row.text-centered
|
.row.text-centered
|
||||||
.col-md-12
|
.col-md-12
|
||||||
if user.betaProgram
|
if user.betaProgram
|
||||||
|
|
|
@ -105,6 +105,7 @@ define [
|
||||||
rootDoc_id: options.rootDocOverride_id or null
|
rootDoc_id: options.rootDocOverride_id or null
|
||||||
draft: $scope.draft
|
draft: $scope.draft
|
||||||
check: checkType
|
check: checkType
|
||||||
|
incremental: window.user?.betaProgram
|
||||||
_csrf: window.csrfToken
|
_csrf: window.csrfToken
|
||||||
}, {params: params}
|
}, {params: params}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue