{"push_id":1955152529,"size":1,"distinct_size":1,"ref":"refs/heads/elixirschool/master","head":"1f7c3e497fd6e7cdc98c8e0b5c213f96af10a8c9","before":"0d5c0224f3b2f7b49e53776e662911dec22637a7","commits":[{"sha":"1f7c3e497fd6e7cdc98c8e0b5c213f96af10a8c9","author":{"name":"Jeff Weiss","email":"6a723cfae303654d92d6d1c66e2419ebd9659f51@gmail.com"},"message":"Internationalize Opportunity levels\n\nPrior to this commit Opportunities were storing their associated level\nas an English string in the database. This made two immediate things\ndifficult:\n\n 1. Sorting from easiest to hardest\n 2. Migrating data when level names change (beginner => starter)\n\nIn addition we have no provisions for being able to internationalize the\napplication.\n\nThis commit decides to use an integer as its internal representation for\nthe opportunity difficulty level. The first thing necessary task is to\nalter the Ecto schema and the database. Because an existing database\nmight have valid opportunities in the form of \"starter\", \"intermediate\",\n\"advanced\", these are migrated to a stringified integer before the table\nitself is modified, while explicitly casting from the stringified\ninteger to an actual integer. Next we modify the edges of our system to\nproperly modify a payload with \"Level:Beginner\" into a `1` and similarly\nwhen displaying an opportunity of difficulty level 1 showing `Starter`\nby default or `Leicht` if the process locale is German.","distinct":true,"url":"https://api.github.com/repos/dberget/extracurricular/commits/1f7c3e497fd6e7cdc98c8e0b5c213f96af10a8c9"}]}
{"actor":{"display_login":"dberget"}}