Merge pull request #2917 from overleaf/bg-send-compile-group-parameter

send compileGroup parameter in body of clsi request

GitOrigin-RevId: 05e9b24ea15751464104e5b0f6aef17c66a448d2
This commit is contained in:
Brian Gough 2020-06-19 09:22:09 +01:00 committed by Copybot
parent 366a925903
commit 2a6f18b6a0
2 changed files with 12 additions and 5 deletions

View file

@ -827,7 +827,8 @@ const ClsiManager = {
draft: !!options.draft,
check: options.check,
syncType: options.syncType,
syncState: options.syncState
syncState: options.syncState,
compileGroup: options.compileGroup
},
rootResourcePath,
resources

View file

@ -489,7 +489,7 @@ describe('ClsiManager', function() {
beforeEach(function(done) {
this.ClsiManager._buildRequest(
this.project_id,
{ timeout: 100 },
{ timeout: 100, compileGroup: 'standard' },
(err, request) => {
if (err != null) {
return done(err)
@ -539,7 +539,8 @@ describe('ClsiManager', function() {
draft: false,
check: undefined,
syncType: undefined, // "full"
syncState: undefined
syncState: undefined,
compileGroup: 'standard'
}, // "01234567890abcdef"
rootResourcePath: 'main.tex',
resources: [
@ -583,7 +584,11 @@ describe('ClsiManager', function() {
.callsArgWith(1, null, { 'mock-doc-id-1': 'main.tex' })
this.ClsiManager._buildRequest(
this.project_id,
{ timeout: 100, incrementalCompilesEnabled: true },
{
timeout: 100,
incrementalCompilesEnabled: true,
compileGroup: 'priority'
},
(err, request) => {
if (err != null) {
return done(err)
@ -631,7 +636,8 @@ describe('ClsiManager', function() {
draft: false,
check: undefined,
syncType: 'incremental',
syncState: '01234567890abcdef'
syncState: '01234567890abcdef',
compileGroup: 'priority'
},
rootResourcePath: 'main.tex',
resources: [