{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/gladiator/issues/321","repository_url":"https://api.github.com/repos/DoSomething/gladiator","labels_url":"https://api.github.com/repos/DoSomething/gladiator/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/gladiator/issues/321/comments","events_url":"https://api.github.com/repos/DoSomething/gladiator/issues/321/events","html_url":"https://github.com/DoSomething/gladiator/issues/321","id":160032503,"number":321,"title":"Zero-index message keys","user":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"assignees":[{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-06-13T20:02:01Z","updated_at":"2016-06-28T19:52:01Z","closed_at":null,"body":"There is [logic](https://github.com/DoSomething/gladiator/blob/master/resources/views/messages/partials/_reportback.blade.php) that depends on the different leaderboard messages being zero-indexed, but the settings messages and the default messages defined in the `Correspondence` class are one-indexed (? is that a thing? shrug ) so we need them to be zero-index so it is more inline with 💻  and the logic will work. "},"comment":{"url":"https://api.github.com/repos/DoSomething/gladiator/issues/comments/229162480","html_url":"https://github.com/DoSomething/gladiator/issues/321#issuecomment-229162480","issue_url":"https://api.github.com/repos/DoSomething/gladiator/issues/321","id":229162480,"user":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T19:52:01Z","updated_at":"2016-06-28T19:52:01Z","body":"I think I identified one issue here...we deployed the new code, which fixes the correspondence class but on prod we didn't re-seed the DB so the default messages were still indexed wrong, and therefore, all new contests get messages with the wrong ids...I just updated this in prod: \r\n\r\nbefore: \r\n<img width=\"374\" alt=\"screen shot 2016-06-28 at 3 47 37 pm\" src=\"https://cloud.githubusercontent.com/assets/1700409/16430144/285aeff2-3d48-11e6-948e-ec88e67a44cc.png\">\r\n\r\nafter\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1700409/16430148/2ca3e4d8-3d48-11e6-89fb-7c50edc2c0ab.png)\r\n"}}
{"actor":{"display_login":"sbsmith86"}}