Disable esper, LevelSession.state.dateFirstCompleted schema restriction

This commit is contained in:
Scott Erickson 2016-05-09 09:32:51 -07:00
parent 2faca0419b
commit c707129b5e
2 changed files with 9 additions and 9 deletions

View file

@ -8,12 +8,12 @@ module.exports.createAetherOptions = (options) ->
throw new Error 'Specify a code language to create an Aether instance' unless options.codeLanguage
useInterpreter = options.useInterpreter
defaultToEsper = switch options.codeLanguage
when 'python' then me.level() < 15 # Esper currently works well until using range()
when 'javascript' then me.level() < 22 # Esper currently works well until using hero.myFn = function() pattern
when 'lua' then me.level() < 10 # Functions don't work in Esper yet, can't play forest function levels
when 'coffeescript' then false # CoffeeScript has a toNative error if it ever finishes plan(), and also @fn = -> pattern doesn't work
when 'clojure' then false # No Clojure support
defaultToEsper = false #switch options.codeLanguage
# when 'python' then me.level() < 15 # Esper currently works well until using range()
# when 'javascript' then me.level() < 22 # Esper currently works well until using hero.myFn = function() pattern
# when 'lua' then me.level() < 10 # Functions don't work in Esper yet, can't play forest function levels
# when 'coffeescript' then false # CoffeeScript has a toNative error if it ever finishes plan(), and also @fn = -> pattern doesn't work
# when 'clojure' then false # No Clojure support
useInterpreter ?= !!utils.getQueryVariable 'esper', defaultToEsper
aetherOptions =
functionName: options.functionName

View file

@ -55,9 +55,9 @@ _.extend LevelSessionSchema.properties,
title: 'Changed'
readOnly: true
dateFirstCompleted: c.stringDate
title: 'Completed'
readOnly: true
dateFirstCompleted: {} # c.stringDate
# title: 'Completed'
# readOnly: true
team: c.shortString()
level: LevelSessionLevelSchema