{"action":"created","issue":{"url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/34","repository_url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0","labels_url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/34/comments","events_url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/34/events","html_url":"https://github.com/PublicDesignWorkshop/FoodParent2.0/issues/34","id":162768835,"number":34,"title":"adding a first donation place error","user":{"login":"durkie","id":3200608,"avatar_url":"https://avatars.githubusercontent.com/u/3200608?v=3","gravatar_id":"","url":"https://api.github.com/users/durkie","html_url":"https://github.com/durkie","followers_url":"https://api.github.com/users/durkie/followers","following_url":"https://api.github.com/users/durkie/following{/other_user}","gists_url":"https://api.github.com/users/durkie/gists{/gist_id}","starred_url":"https://api.github.com/users/durkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durkie/subscriptions","organizations_url":"https://api.github.com/users/durkie/orgs","repos_url":"https://api.github.com/users/durkie/repos","events_url":"https://api.github.com/users/durkie/events{/privacy}","received_events_url":"https://api.github.com/users/durkie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-28T19:40:33Z","updated_at":"2016-06-29T02:13:49Z","closed_at":null,"body":"seems like when you try to add a new donation place you get an error because the app tries to set the id of the new place:\r\n\r\n```json\r\n{\"id\":0,\"name\":\"Atlanta Community Food Bank\",\"lat\":33.77431827809214,\"lng\":-84.41875755786896,\"description\":\"\",\"address\":\"732 Joseph E Lowery Blvd NW, Atlanta, GA 30318, USA\"}\r\n```\r\n\r\nthis violates the `NOT NULL` constraint on the `id` column of the location table"},"comment":{"url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/comments/229238126","html_url":"https://github.com/PublicDesignWorkshop/FoodParent2.0/issues/34#issuecomment-229238126","issue_url":"https://api.github.com/repos/PublicDesignWorkshop/FoodParent2.0/issues/34","id":229238126,"user":{"login":"captainwhale52","id":10521601,"avatar_url":"https://avatars.githubusercontent.com/u/10521601?v=3","gravatar_id":"","url":"https://api.github.com/users/captainwhale52","html_url":"https://github.com/captainwhale52","followers_url":"https://api.github.com/users/captainwhale52/followers","following_url":"https://api.github.com/users/captainwhale52/following{/other_user}","gists_url":"https://api.github.com/users/captainwhale52/gists{/gist_id}","starred_url":"https://api.github.com/users/captainwhale52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/captainwhale52/subscriptions","organizations_url":"https://api.github.com/users/captainwhale52/orgs","repos_url":"https://api.github.com/users/captainwhale52/repos","events_url":"https://api.github.com/users/captainwhale52/events{/privacy}","received_events_url":"https://api.github.com/users/captainwhale52/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T02:13:49Z","updated_at":"2016-06-29T02:13:49Z","body":"I send id from the client to server, but I don't use it. So it shouldn't be a matter. I attached a snapshot of the location table. Adding a new donation place working fine for me. I will check the log of CJ site and let you know what the problem is.\r\n![foodparent - location table](https://cloud.githubusercontent.com/assets/10521601/16438407/797be5e6-3d7d-11e6-896f-73f547c93324.PNG)\r\n"}}
{"actor":{"display_login":"captainwhale52"}}