include check option when compiling

This commit is contained in:
Brian Gough 2016-07-26 16:25:19 +01:00
parent 29d333ae51
commit e0d5075fdb
3 changed files with 4 additions and 0 deletions

View file

@ -147,6 +147,7 @@ module.exports = ClsiManager =
timeout: options.timeout
imageName: project.imageName
draft: !!options.draft
check: options.check
rootResourcePath: rootResourcePath
resources: resources
}

View file

@ -29,6 +29,8 @@ module.exports = CompileController =
options.compiler = req.body.compiler
if req.body?.draft
options.draft = req.body.draft
if req.body?.check
options.check = if req.body.check is "error" then "error" else "warn"
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) ->
return next(error) if error?

View file

@ -86,6 +86,7 @@ define [
return $http.post url, {
rootDoc_id: options.rootDocOverride_id or null
draft: $scope.draft
check: if options.check then "error" else "warn"
_csrf: window.csrfToken
}, {params: params}