codecombat/app/core
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
..
services Add extra information when a school is autocompleted. 2016-04-18 22:54:43 -07:00
social-handlers Update FB API to v2.7 2016-07-25 13:56:05 -07:00
application.coffee Add function to properties that trigger achievement updates 2016-09-06 10:32:54 -07:00
auth.coffee Allow username login, tear out a bunch of related stuff in change 2016-06-08 13:55:19 -07:00
CocoClass.coffee Simplify applying licenses 2016-08-23 10:43:31 -07:00
contact.coffee Finish new CreateAccountModal 2016-07-07 15:56:41 -07:00
d3_utils.coffee Dashboard monthly revenue counts, and tabs 2016-02-20 17:27:45 -08:00
deltas.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
errors.coffee Fix and improve new errors system 2016-03-03 13:59:17 -08:00
forms.coffee Add required district field to teacher trial request forms 2016-08-05 13:25:19 -07:00
initialize.coffee Show wev-dev iFrame error messages like Aether's 2016-08-31 10:59:06 -07:00
ModuleLoader.coffee Tweak ModuleLoader handling of index files, fix #3783 2016-07-08 13:13:28 -07:00
NameLoader.coffee Update /courses UI 2016-08-17 14:15:52 -07:00
ParticleMan.coffee Fix #3843 2016-08-18 14:39:14 -07:00
Router.coffee Change NewHomeView to HomeView 2016-09-01 10:41:43 -07:00
storage.coffee Fixed #343. Fixed #2565. localStorage cache now only lasting a week for most items, using lscache (bower install, y'all). 2015-04-18 17:25:40 -07:00
SystemNameLoader.coffee Wabam. Refactored a bunch of stuff into 'core' folders so that it's clearer which files are being loaded first thing, and which are not. Also reworked a bunch of the anymatch things in config.coffee, cause there were better ways. 2014-11-28 17:49:41 -08:00
Tracker.coffee Allow admins to become teachers 2016-07-28 15:28:31 -07:00
treema-ext.coffee Stub WebSurface showing for web-dev levels 2016-07-14 12:34:22 -07:00
urls.coffee bug:Fix /courses using outdated level slugs 2016-09-02 11:50:14 -07:00
utils.coffee Sort courses in teacher ux 2016-08-22 11:18:26 -07:00