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 |
||
---|---|---|
app | ||
bin | ||
headless_client | ||
scripts | ||
server | ||
spec | ||
test | ||
vendor | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
bower.json | ||
config.coffee | ||
CONTRIBUTING.md | ||
headless_client.coffee | ||
index.js | ||
karma.conf.js | ||
LICENSE | ||
multicore.coffee | ||
nodemon.json | ||
package.json | ||
README.md | ||
server.coffee | ||
server_config.coffee | ||
server_setup.coffee | ||
sublime-project.json | ||
Vagrantfile | ||
verifier.coffee |
CodeCombat
[](https://travis-ci.org/codecombat/codecombat)CodeCombat is a multiplayer programming game for learning how to code. See the Archmage (coder) developer wiki for a dev setup guide, extensive documentation, and much more to get started hacking!
It's both a startup and a community project, completely open source under the MIT and Creative Commons licenses. It's the largest open source CoffeeScript project by lines of code, and since it's a game (with really cool tech), it's really fun to hack on. Join us in teaching the world to code! Your contribution will go on to show millions of players how cool programming can be.
Getting Started
We've made it easy to fork the project, run a simple script that'll install all the dependencies, and get a local copy of CodeCombat running right away on Mac, Linux, Windows, or Vagrant. See the docs for details.
Getting In Touch
Whether you're novice or pro, the CodeCombat team is ready to help you implement your ideas. Reach out on our forum, our issue tracker, or our developer chat room on Slack, or see the docs for more on how to contribute.
License
MIT for the code, and CC-BY for the art and music. Please also sign the CodeCombat contributor license agreement so we can accept your pull requests. It is easy.