{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/2384","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/2384/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/2384/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/2384/events","html_url":"https://github.com/medic/medic-webapp/issues/2384","id":159656467,"number":2384,"title":"Some projects will need a renaming migration for CHW areas","user":{"login":"estellecomment","id":911434,"avatar_url":"https://avatars.githubusercontent.com/u/911434?v=3","gravatar_id":"","url":"https://api.github.com/users/estellecomment","html_url":"https://github.com/estellecomment","followers_url":"https://api.github.com/users/estellecomment/followers","following_url":"https://api.github.com/users/estellecomment/following{/other_user}","gists_url":"https://api.github.com/users/estellecomment/gists{/gist_id}","starred_url":"https://api.github.com/users/estellecomment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estellecomment/subscriptions","organizations_url":"https://api.github.com/users/estellecomment/orgs","repos_url":"https://api.github.com/users/estellecomment/repos","events_url":"https://api.github.com/users/estellecomment/events{/privacy}","received_events_url":"https://api.github.com/users/estellecomment/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/2%20-%20Active%20Work","name":"2 - Active Work","color":"bfd4f2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/v0.4%20Compatibility","name":"v0.4 Compatibility","color":"bfd4f2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/v0.4%20upgrading","name":"v0.4 upgrading","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"assignees":[{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/58","html_url":"https://github.com/medic/medic-webapp/milestones/August%208th%20-%20August%2022nd","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/58/labels","id":1924356,"number":58,"title":"August 8th - August 22nd","description":"","creator":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":41,"state":"open","created_at":"2016-08-04T21:13:03Z","updated_at":"2016-08-19T08:36:07Z","due_on":"2016-08-21T12:00:00Z","closed_at":null},"comments":5,"created_at":"2016-06-10T15:07:39Z","updated_at":"2016-08-19T12:41:59Z","closed_at":null,"body":"In .4, the CHW areas (`clinic`) are named by the \"town\" field in the Facilities table : \r\n![image](https://cloud.githubusercontent.com/assets/789512/15970167/5675963a-2f01-11e6-9843-d8219bf4380e.png)\r\n\r\n\r\nBut some projects like ChristianAid2 don't use that field, i.e. the CHWs don't have a specific town/village that they are assigned to, they are assigned to the bigger health_center. So they chose to reuse the name of the health_center for that field.\r\n\r\nThe result after upgrading is a list of CHW areas all called with the name of the parent health_center, which is not what we want. \r\n![screen shot 2016-06-10 at 17 04 07](https://cloud.githubusercontent.com/assets/911434/15968845/bd008cc6-2f2d-11e6-81f3-a927894d2eff.png)\r\n\r\n\r\nWe should rename CHW areas to i.e. \"CHW 2's Area\". That would be done by a custom migration for ChristianAid2 (lucky them!)"},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/241007930","html_url":"https://github.com/medic/medic-webapp/issues/2384#issuecomment-241007930","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/2384","id":241007930,"user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T12:41:59Z","updated_at":"2016-08-19T12:41:59Z","body":"Done on branch; not clear if this should be in `master`."}}
{"actor":{"display_login":"alxndrsn"}}