{"action":"created","issue":{"url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27","repository_url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App","labels_url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27/comments","events_url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27/events","html_url":"https://github.com/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27","id":247266719,"number":27,"title":"Venue API is returning arrays for many genres and single variables for one","user":{"login":"ttocskcaj","id":453862,"avatar_url":"https://avatars3.githubusercontent.com/u/453862?v=4","gravatar_id":"","url":"https://api.github.com/users/ttocskcaj","html_url":"https://github.com/ttocskcaj","followers_url":"https://api.github.com/users/ttocskcaj/followers","following_url":"https://api.github.com/users/ttocskcaj/following{/other_user}","gists_url":"https://api.github.com/users/ttocskcaj/gists{/gist_id}","starred_url":"https://api.github.com/users/ttocskcaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttocskcaj/subscriptions","organizations_url":"https://api.github.com/users/ttocskcaj/orgs","repos_url":"https://api.github.com/users/ttocskcaj/repos","events_url":"https://api.github.com/users/ttocskcaj/events{/privacy}","received_events_url":"https://api.github.com/users/ttocskcaj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-02T03:59:14Z","updated_at":"2017-08-02T05:13:32Z","closed_at":null,"body":"E.G.\r\nSingle genre:\r\n```\r\n{\r\nname: \"A Pub\",\r\ncapacity: 9000,\r\nlocation: \"Timaru\",\r\ngenres: \"Classical\"\r\n}\r\n```\r\n\r\nMulti genre:\r\n```\r\n{\r\nname: \"The Grand\",\r\ncapacity: \"500\",\r\nlocation: \"Wellington\",\r\ngenres: [\r\n  \"Pop\",\r\n  \"DJ/Electronic\"\r\n]\r\n}\r\n```\r\n\r\nThis means that angular can't ng-repeat the genres if there's only one.\r\n\r\nThe API needs to return an array of genres, even if there's only one linked to a venue."},"comment":{"url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/comments/319569444","html_url":"https://github.com/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27#issuecomment-319569444","issue_url":"https://api.github.com/repos/OpenPolytechnicBITProjectGroup/Musician-Venue_App/issues/27","id":319569444,"user":{"login":"lxdnz254","id":8147138,"avatar_url":"https://avatars2.githubusercontent.com/u/8147138?v=4","gravatar_id":"","url":"https://api.github.com/users/lxdnz254","html_url":"https://github.com/lxdnz254","followers_url":"https://api.github.com/users/lxdnz254/followers","following_url":"https://api.github.com/users/lxdnz254/following{/other_user}","gists_url":"https://api.github.com/users/lxdnz254/gists{/gist_id}","starred_url":"https://api.github.com/users/lxdnz254/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxdnz254/subscriptions","organizations_url":"https://api.github.com/users/lxdnz254/orgs","repos_url":"https://api.github.com/users/lxdnz254/repos","events_url":"https://api.github.com/users/lxdnz254/events{/privacy}","received_events_url":"https://api.github.com/users/lxdnz254/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T05:13:32Z","updated_at":"2017-08-02T05:13:32Z","body":"I think the solution is to ensure genres is sent and received as an array. In venue.js on client and server side, set this.genres to this.genres[]"}}
{"actor":{"display_login":"lxdnz254"}}