codecombat/app/models
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.coffee Added a new 'artisan' permission, which can edit most of the things admins can, but with less uncomfortable ultimate power. 2015-02-25 18:41:39 -08:00
AnalyticsLogEvent.coffee
AnalyticsStripeInvoice.coffee Subs dashboard perf 2015-07-31 16:19:40 -07:00
Article.coffee Added a new 'artisan' permission, which can edit most of the things admins can, but with less uncomfortable ultimate power. 2015-02-25 18:41:39 -08:00
Campaign.coffee Practice levels Ux and next level algorithm 2016-06-27 14:05:42 -07:00
Clan.coffee Create and list clans 2015-04-01 11:56:48 -07:00
Classroom.coffee Sort courses in teacher ux 2016-08-22 11:18:26 -07:00
CocoModel.coffee Fix updateI18NCoverage, handles i18n objects with nothing to translate, fix #2630 2016-08-30 14:17:40 -07:00
CodeLog.coffee Implements the SPADE logger into the SpellView 2016-04-26 09:56:30 -07:00
Course.coffee Have CourseVictoryModal used for course-ladder levels 2016-07-15 15:54:22 -07:00
CourseInstance.coffee Simplify applying licenses 2016-08-23 10:43:31 -07:00
EarnedAchievement.coffee
File.coffee
GameUIState.coffee Add realTimeInputEvents to world and gameUIState, with just mousedown events 2016-07-08 14:17:07 -07:00
Level.coffee Add View Project buttons to /courses 2016-08-11 16:38:14 -07:00
LevelComponent.coffee Added a new 'artisan' permission, which can edit most of the things admins can, but with less uncomfortable ultimate power. 2015-02-25 18:41:39 -08:00
LevelFeedback.coffee
LevelSession.coffee Play game-dev levels without API restrictions. Show game button in CourseDetailsView only when appropriate. 2016-07-15 20:47:09 -07:00
LevelSystem.coffee Added a new 'artisan' permission, which can edit most of the things admins can, but with less uncomfortable ultimate power. 2015-02-25 18:41:39 -08:00
Mandate.coffee Add Mandate for modifying simulation throughput on the fly, other things later 2015-12-16 16:39:45 -08:00
Patch.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
Payment.coffee
Poll.coffee Added admin/pending-patches view. Fixed accepting several kinds of patches. Added keyboard shortcuts for accepting (a) and rejecting (r) patches. Fixed #2490. Fixed #2515. Fixed #2304. 2015-03-28 13:54:44 -07:00
Prepaid.coffee Simplify applying licenses 2016-08-23 10:43:31 -07:00
Product.coffee Move product information to the db 2015-12-14 11:10:50 -08:00
Purchase.coffee
State.coffee Refactor and update teacher-dashboard 2016-05-06 13:13:11 -07:00
StripeCoupon.coffee Add Enrollment start/end dates, remove self-serve 2016-05-24 14:07:28 -07:00
SuperModel.coffee Disable SuperModel retrying 2016-08-11 09:44:36 -07:00
ThangType.coffee Add a couple animations to defaultActions while game-dev lazy rendering isn't working 2016-08-03 13:32:49 -07:00
TrialRequest.coffee Replace TeachersFreeTrialView with RequestQuoteView 2016-01-28 17:21:36 -08:00
User.coffee A/b test default language in home product 2016-09-02 15:33:29 -07:00
UserCodeProblem.coffee
UserPollsRecord.coffee Polls! 2015-03-08 16:36:17 -07:00