Scott Erickson
1fb7996f6c
Fix EarnedAchievement.upsertFor to handle achievements that had no rewards
2016-09-08 10:32:59 -07:00
Scott Erickson
9088f98eae
Add function to properties that trigger achievement updates
2016-09-06 10:32:54 -07:00
Scott Erickson
2fe28852b4
More achievement tweaks
...
* Clients check updated achievements as well as new ones
* Clients do not wait to keep checking
* Update achievement points along with everything else in EarnedAchievement.upsertFor
* Fix various bugs
2016-09-06 09:37:02 -07:00
Scott Erickson
273845ce2e
Fix POST /db/earned_achievement to be accessible to anonymous users
2016-08-31 10:07:19 -07:00
Scott Erickson
956ff3300b
Fix POST /db/level/:names
2016-08-31 09:56:41 -07:00
Scott Erickson
cf9d082ffa
Have client check for achievement updates
2016-08-29 16:32:42 -07:00
Scott Erickson
139efe4cf7
Implement POST /db/user/:handle/check-for-new-achievement, couple tweaks
...
* Enforce being logged in for POST /db/earned_achievement
* Extend timeout for race condition user tests
2016-08-29 14:53:51 -07:00
Scott Erickson
f509c95a4b
Refactor POST /db/earned_achievement
2016-08-29 14:53:36 -07:00
Scott Erickson
5c8b8832b3
Refactor and better test EarnedAchievement.createForAchievement
2016-08-29 14:52:50 -07:00
Scott Erickson
ae82875c57
Refactor post new level version handler, add failed save handling
...
When a new version is created, the latest version is updated, then
the new one is made. If making a new one fails (most commonly due to
a name conflict), the latest version is left in a broken state. Set up
the new middleware to revert changes to latest version in this case,
and update the level handler to use the middleware. Also added
warning logs if models do not have editableProperties or postEditableProperties
set.
2016-08-25 10:28:46 -07:00
Scott Erickson
b175c02714
Fix article test to handle patches endpoint change
2016-08-23 16:19:25 -07:00
Scott Erickson
300c81e72b
Course translations fixes
...
* Restrict patch handling properly
* Fix #3860 , CS 2 description
* i18nCoverage is updated when new translations are auto-accepted
* Course patches are listed on PendingPatchesView properly
* 'Artisan' permission allows editing course translations
2016-08-18 13:29:52 -07:00
Scott Erickson
d4af931e05
Add course (name, description) translations
2016-08-18 10:10:18 -07:00
Matt Lott
84e3ee270a
Add primer level support to classroom Ux
...
Exclude levels if classroom.aceConfig.language == level.primerLanguage
Closes #3856
2016-08-16 16:52:17 -07:00
Scott Erickson
a5f18f88be
Add script that migrates users with email-formatted usernames
2016-08-12 14:34:08 -07:00
Phoenix Eliot
31a3f9dff8
Clean up console.log in server tests
2016-08-12 13:25:11 -07:00
Matt Lott
f96c3ab00e
🐛 Fix course instance server test day range bugs
2016-08-11 22:46:15 -07:00
Matt Lott
5a6bed96b2
🐛 Fix course solutions level ordering
2016-08-11 22:26:47 -07:00
Matt Lott
a7e290fffe
Replace course guide PDFs with solutions pages
2016-08-11 15:29:56 -07:00
Scott Erickson
c89ee139ed
Have GET param 'project' work with [] notation
...
Otherwise queries like $.ajax('/db/campaign', {data: {project:['name','slug']}})
cause 500 errors.
2016-08-08 09:35:42 -07:00
Scott Erickson
34310642c7
Add destudent and deteacher buttons to AdministerUserModal
2016-07-25 16:09:24 -07:00
phoenixeliot
f1f020a50d
Use course.releasePhase instead of .adminOnly
...
Remove old comment
2016-07-25 11:29:30 -07:00
Scott Erickson
b1c69b686c
Add admin button to update course content for classrooms
2016-07-21 15:16:17 -07:00
phoenixeliot
b1277dc95f
Merge branch 'game-dev-levels'
2016-07-21 10:14:22 -07:00
phoenixeliot
4e449fea3b
Fix gplus/fb signin and tests
2016-07-18 11:41:18 -07:00
phoenixeliot
d7209d784e
Add option to print current spec name to jasmine
2016-07-18 10:56:25 -07:00
phoenixeliot
bb6262483f
Allow username-only signup for classroom users
...
Address some code review feedback
Correct error code in test
Don't try to send emails to empty addresses
Add tests for subscriptions
Add tests for Next Steps email
Fix specs
Add reason for disabled test
2016-07-18 10:41:17 -07:00
Scott Erickson
10ca59d10f
Have CourseVictoryModal used for course-ladder levels
2016-07-15 15:54:22 -07:00
Scott Erickson
2aa647fa29
Guard against trial-requests and signups being done on the same computer but by different people
2016-07-08 15:33:12 -07:00
Scott Erickson
af9f7201d0
Finish new CreateAccountModal
2016-07-07 15:56:41 -07:00
Matt Lott
d72e4eb750
Practice levels Ux and next level algorithm
...
Update classroom and gameplay Ux to surface practice levels as 3a, 3b,
etc.
Update next level logic to leverage practice levels based on per level
completion playtime thresholds.
Patrol buster and patrol buster A are live for testing.
Fix a few classroom Ux progress hover bubble info bugs.
Closes #3767
2016-06-27 14:05:42 -07:00
Matt Lott
425115ad37
Remove level type 'hero-practice', use level.practice
2016-06-25 08:38:59 -07:00
Scott Erickson
d829d15528
Fix(ish) race conditions in server tests
2016-06-20 15:00:29 -07:00
Matt Lott
e0170d0339
Add hero-practice level type and threshold to schema
...
Filtering out hero-practice levels from classrooms until the Ux
supports them.
2016-06-19 20:23:32 -07:00
Scott Erickson
0581ffde82
Clean server test logging
2016-06-17 10:35:22 -07:00
Scott Erickson
ca83ed05e4
Only require user sessions on /db requests that are not GET
2016-06-16 16:00:45 -07:00
Nick Winter
b0fcddac68
Add game-dev level type ( #3725 )
...
* Initial pass adding new game-dev level type.
* Fix a failing test with updated LevelSystem required properties
* Bring back normal Angel worker timeout times
* Fix another failing LevelSystem test since removing propertyDocumentation
2016-06-08 16:57:00 -07:00
Scott Erickson
69f3ee3a5b
Allow username login, tear out a bunch of related stuff in change
...
* Switch from auth.loginUser to User.loginPasswordUser with Promise
* Remove a cascade of unused views that were using auth.loginUser: StudentLogInModal, StudentSignupModal, HourOfCodeView
* Also remove auth.createUser
2016-06-08 13:55:19 -07:00
phoenixeliot
c191f63c15
Revert all of my sendwithus changes
...
Revert "Fix more sendwithus things"
This reverts commit 9d4215d99d
.
Revert "Fix some missed sendwithus changes"
This reverts commit 08bc32e005
.
Revert "Fix email tests"
This reverts commit fcb2ce8504
.
Revert "Use SendWithUs versioning"
This reverts commit 81d9e19221
.
2016-06-06 16:54:15 -07:00
phoenixeliot
fcb2ce8504
Fix email tests
2016-06-06 16:00:46 -07:00
phoenixeliot
0d4a88a957
Strip spaces in classCode on fetch and join
2016-06-06 11:30:20 -07:00
Scott Erickson
5e8b402c3d
Switch POST /db/classroom/:id/invite-members to refactored version
2016-06-02 10:27:20 -07:00
Scott Erickson
6e48d700bc
Merge branch 'update-invite-to-classroom'
...
Work was duplicated. Merging in changes from branch, but leaving
the master version as is in this commit.
2016-06-02 10:20:19 -07:00
Scott Erickson
1f3eed9a4e
Remove focus
2016-06-01 10:01:41 -07:00
Scott Erickson
b143d552ce
Write test, verifying removeFromClassrooms handles sessionless requests
2016-06-01 10:01:05 -07:00
Scott Erickson
ee0195ab21
Require req.user in all /db routes
2016-06-01 09:53:28 -07:00
phoenixeliot
77ba873da9
Add tests for teacher password reset endpoint
2016-05-26 16:07:55 -07:00
Scott Erickson
b255b02854
Add POST /db/level/:handle test
...
It's erroring in my dev console, complaining of duplicate keys, and not sure why.
Adding a test to make sure creating a new level version doesn't break.
2016-05-26 14:46:54 -07:00
Matt Lott
de9761073d
Temporarily disable /contact server test
2016-05-25 16:54:14 -07:00
Scott Erickson
106057b99d
Make jasmine server test timeout longer
...
A production travis test failed because of a timeout:
https://travis-ci.org/codecombat/codecombat/builds/132905284
Timeout used to be two minutes for Stripe tests, was removed after those were nocked,
now turning back on somewhere to somewhere in between.
2016-05-25 14:48:54 -07:00