mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-06 08:52:20 +00:00
Merge branch 'master' into multicurrency
This commit is contained in:
commit
4a774981cf
5 changed files with 8 additions and 3 deletions
|
@ -60,7 +60,7 @@ module.exports = CompileManager =
|
|||
endpointName:"auto_compile"
|
||||
timeInterval:15
|
||||
subjectName:"everyone"
|
||||
throttle: 10
|
||||
throttle: 15
|
||||
rateLimiter.addCount opts, (err, canCompile)->
|
||||
if err?
|
||||
canCompile = false
|
||||
|
|
|
@ -31,6 +31,9 @@ UserSchema = new Schema
|
|||
collaborators: { type:Number, default: Settings.defaultFeatures.collaborators }
|
||||
versioning: { type:Boolean, default: Settings.defaultFeatures.versioning }
|
||||
dropbox: { type:Boolean, default: Settings.defaultFeatures.dropbox }
|
||||
github: { type:Boolean, default: Settings.defaultFeatures.github }
|
||||
compileTimeout: { type:Number, default: Settings.defaultFeatures.compileTimeout }
|
||||
compileGroup: { type:String, default: Settings.defaultFeatures.compileGroup }
|
||||
}
|
||||
featureSwitches : {
|
||||
github: {type: Boolean}
|
||||
|
|
|
@ -131,6 +131,8 @@ module.exports =
|
|||
collaborators: -1
|
||||
dropbox: true
|
||||
versioning: true
|
||||
compileTimeout: 60
|
||||
compileGroup: "standard"
|
||||
|
||||
plans: plans = [{
|
||||
planCode: "personal"
|
||||
|
|
|
@ -201,7 +201,7 @@ describe "CompileManager", ->
|
|||
@ratelimiter.addCount.callsArgWith(1, null, true)
|
||||
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
||||
args = @ratelimiter.addCount.args[0][0]
|
||||
args.throttle.should.equal 10
|
||||
args.throttle.should.equal 15
|
||||
args.subjectName.should.equal "everyone"
|
||||
args.timeInterval.should.equal 15
|
||||
args.endpointName.should.equal "auto_compile"
|
||||
|
|
Loading…
Reference in a new issue