codecombat/server/commons
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
..
auth.coffee Allow username login, tear out a bunch of related stuff in change 2016-06-08 13:55:19 -07:00
database.coffee Show wev-dev iFrame error messages like Aether's 2016-08-31 10:59:06 -07:00
deltas.coffee Add course (name, description) translations 2016-08-18 10:10:18 -07:00
errors.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
Handler.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
i18n.coffee Course translations fixes 2016-08-18 13:29:52 -07:00
LockManager.coffee Remove testing conditions 2014-07-16 19:49:48 -07:00
logging.coffee Clean server test logging 2016-06-17 10:35:22 -07:00
mail.coffee Add approved teacher trials to mail news group 2016-01-17 07:39:30 -08:00
mapping.coffee Plural 2016-07-25 16:36:49 -07:00
notify.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
parse.coffee Have GET param 'project' work with [] notation 2016-08-08 09:35:42 -07:00
perfmon.coffee Send unique users to perfmon 2015-12-02 10:58:02 -08:00
queue.coffee Add npm 'proxy' script for developing client on prod server 2016-04-07 13:59:38 -07:00
users.coffee Refactor CreateAccountModal out of AuthModal, add class code to signup 2016-03-10 10:52:11 -08:00