Merge branch 'master' into multicurrency

This commit is contained in:
Henry Oswald 2014-10-14 11:52:03 +01:00
commit 4a774981cf
5 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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}

View file

@ -131,6 +131,8 @@ module.exports =
collaborators: -1
dropbox: true
versioning: true
compileTimeout: 60
compileGroup: "standard"
plans: plans = [{
planCode: "personal"

View file

@ -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"