codecombat/server/handlers
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
..
analytics_log_event_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
analytics_perday_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
analytics_string_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
analytics_stripe_invoice_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
analytics_users_active_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
article_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
clan_handler.coffee 🐛Fix clan page loads for a really long time 2016-05-31 14:54:40 -07:00
classroom_handler.coffee Strip spaces in classCode on fetch and join 2016-06-06 11:30:20 -07:00
course_instance_handler.coffee 🐛Fix course victory dialog level progress counts 2016-07-11 13:28:52 -07:00
discount_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
earned_achievement_handler.coffee Refactor POST /db/earned_achievement 2016-08-29 14:53:36 -07:00
level_component_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
level_feedback_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
level_handler.coffee Refactor post new level version handler, add failed save handling 2016-08-25 10:28:46 -07:00
level_session_handler.coffee Fix sending too much and not enough data on arena sessions 2016-08-23 16:02:03 -07:00
level_system_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
mail_sent_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
patch_handler.coffee Generalize new I18N view system 2016-09-09 10:59:26 -07:00
payment_handler.coffee Add checks to keep User purchased.gems from becoming NaN 2016-06-20 16:44:07 -07:00
poll_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
prepaid_handler.coffee Add Enrollment start/end dates, remove self-serve 2016-05-24 14:07:28 -07:00
purchase_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
subscription_handler.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
thang_type_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
user_code_problem_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
user_handler.coffee Allow username-only signup for classroom users 2016-07-18 10:41:17 -07:00
user_polls_record_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00
user_remark_handler.coffee Refactor handlers to /server/handlers 2016-04-07 09:40:53 -07:00