From 994e4773cad8ceeaaa97cb5fb666b13663ebd623 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 12 Jun 2014 13:19:06 -0700 Subject: [PATCH 1/4] Reverting the objectId schema. --- app/schemas/schemas.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/schemas/schemas.coffee b/app/schemas/schemas.coffee index a1a8ed366..85e35d935 100644 --- a/app/schemas/schemas.coffee +++ b/app/schemas/schemas.coffee @@ -17,7 +17,7 @@ me.shortString = (ext) -> combine({type: 'string', maxLength: 100}, ext) me.pct = (ext) -> combine({type: 'number', maximum: 1.0, minimum: 0.0}, ext) me.date = (ext) -> combine({type: ['object', 'string'], format: 'date-time'}, ext) # should just be string (Mongo ID), but sometimes mongoose turns them into objects representing those, so we are lenient -me.objectId = (ext) -> schema = combine(['object', 'string'], ext) +me.objectId = (ext) -> schema = combine({type: ['object', 'string'] }, ext) me.url = (ext) -> combine({type: 'string', format: 'url', pattern: urlPattern}, ext) PointSchema = me.object {title: "Point", description: "An {x, y} coordinate point.", format: "point2d", required: ["x", "y"]}, From cdea4befd924d9282fecc49f54262a6f9e542368 Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 12 Jun 2014 13:35:39 -0700 Subject: [PATCH 2/4] Giving the test server more time to spin up. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e7020f786..0e998a59e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ before_script: - "mkdir mongo" - "mongod --dbpath=./mongo --fork --logpath ./mongodb.log" - "node index.js --unittest &" - - "sleep 5" # to give node a chance to start + - "sleep 10" # to give node a chance to start script: - "./node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --captureExceptions" From 152b860a235888fe7ad8c4a977f24950957366df Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Thu, 12 Jun 2014 14:44:55 -0700 Subject: [PATCH 3/4] Hotfix for the profile view. --- app/views/account/profile_view.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/account/profile_view.coffee b/app/views/account/profile_view.coffee index 0c2c95b17..ef49b583c 100644 --- a/app/views/account/profile_view.coffee +++ b/app/views/account/profile_view.coffee @@ -224,8 +224,11 @@ module.exports = class ProfileView extends View links = ($.extend(true, {}, link) for link in links) link.icon = @iconForLink link for link in links context.profileLinks = _.sortBy links, (link) -> not link.icon # icons first - context.sessions = (s.attributes for s in @sessions.models when (s.get('submitted') or s.get('level-id') is 'gridmancer')) - context.sessions.sort (a, b) -> (b.playtime ? 0) - (a.playtime ? 0) + if @sessions + context.sessions = (s.attributes for s in @sessions.models when (s.get('submitted') or s.get('level-id') is 'gridmancer')) + context.sessions.sort (a, b) -> (b.playtime ? 0) - (a.playtime ? 0) + else + context.sessions = [] context afterRender: -> From 32a041a5a7a719d788e2e55e2086685446d1595c Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Thu, 12 Jun 2014 15:48:10 -0700 Subject: [PATCH 4/4] Made max size of canvas much bigger for spectate view --- app/templates/play/spectate.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/play/spectate.jade b/app/templates/play/spectate.jade index e6a9650f9..ee9408d4c 100644 --- a/app/templates/play/spectate.jade +++ b/app/templates/play/spectate.jade @@ -3,7 +3,7 @@ .level-content #control-bar-view #canvas-wrapper - canvas(width=924, height=589)#surface + canvas(width=1848, height=1178)#surface #canvas-left-gradient.gradient #canvas-top-gradient.gradient #gold-view.secret.expanded