codecombat/spec/server/functional
Scott Erickson 7bab895dee Generalize new I18N view system
Previously, when diplomats submit translations, the system
would try to figure out whether it should be a 'patch' or a 'change',
and then would either create a patch for an admin or artisan to
review and accept or reject, or would apply the changes immediately
and they would be live. This was done as a compromise between
getting translations live quickly, but also preventing already-translated
text from getting overwritten without oversight.

But having the client handle this added logical complexity. So
this makes all diplomats submit patches, no matter what. The server
is then in charge of deciding if it should auto-accept the patch or not.
Either way, a patch is created.

There was also much refactoring. This commit includes:

* Update jsondiffpatch so changes within array items are handled correctly
* Refactor posting patches to use the new auto-accepting logic, and out of Patch model
* Refactor POST /db/patch/:handle/status so that it doesn't rely on handlers
* Refactor patch stat handling to ensure auto-accepted patches are counted
* Refactor User.incrementStat to use mongodb update commands, to avoid race conditions
* Refactor Patch tests
2016-09-09 10:59:26 -07:00
..
achievement.spec.coffee Fix EarnedAchievement.upsertFor to handle achievements that had no rewards 2016-09-08 10:32:59 -07:00
admin.spec.coffee Refactor admin specs for #3469 2016-04-08 15:31:57 -07:00
article.spec.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
auth.spec.coffee Finish new CreateAccountModal 2016-07-07 15:56:41 -07:00
campaign.spec.coffee Have GET param 'project' work with [] notation 2016-08-08 09:35:42 -07:00
clan.spec.coffee Fix(ish) race conditions in server tests 2016-06-20 15:00:29 -07:00
classrooms.spec.coffee Add primer level support to classroom Ux 2016-08-16 16:52:17 -07:00
codelog.spec.coffee Implements the SPADE logger into the SpellView 2016-04-26 09:56:30 -07:00
contact.spec.coffee Clean server test logging 2016-06-17 10:35:22 -07:00
course_instance.spec.coffee Add primer level support to classroom Ux 2016-08-16 16:52:17 -07:00
courses.spec.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
db-id-version.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
discount_handler.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
file.spec.coffee Clean server test logging 2016-06-17 10:35:22 -07:00
folder.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
healthcheck.spec.coffee Refactor, spec and fix GET /healthcheck 2016-05-05 13:11:39 -07:00
languages.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
level.spec.coffee Fix POST /db/level/:names 2016-08-31 09:56:41 -07:00
level_component.spec.coffee Add Enrollment start/end dates, remove self-serve 2016-05-24 14:07:28 -07:00
level_feedback.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
level_session.spec.coffee Clean server test logging 2016-06-17 10:35:22 -07:00
level_system.spec.coffee Add game-dev level type (#3725) 2016-06-08 16:57:00 -07:00
level_thang_component.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
level_thang_type.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
mail.spec.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
patch.spec.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
payment.spec.coffee Refactor server models into /server/models, remove request and mongoose from test globals 2016-04-06 16:06:52 -07:00
prepaid.spec.coffee Only require user sessions on /db requests that are not GET 2016-06-16 16:00:45 -07:00
queue.spec.coffee Clean server test logging 2016-06-17 10:35:22 -07:00
subscription.spec.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
trial_request.spec.coffee Make delighted profiles for teachers only, instead of all users 2016-05-06 12:45:11 -07:00
user.spec.coffee More achievement tweaks 2016-09-06 09:37:02 -07:00