{"action":"closed","issue":{"url":"https://api.github.com/repos/emfoundation/ce100-app/issues/127","repository_url":"https://api.github.com/repos/emfoundation/ce100-app","labels_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/127/comments","events_url":"https://api.github.com/repos/emfoundation/ce100-app/issues/127/events","html_url":"https://github.com/emfoundation/ce100-app/issues/127","id":176481246,"number":127,"title":"organisation_id and primary_id default set to '' but sent as -1 in tests","user":{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emfoundation/ce100-app/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/emfoundation/ce100-app/labels/technical","name":"technical","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false},"assignees":[{"login":"JMurphyWeb","id":12638261,"avatar_url":"https://avatars.githubusercontent.com/u/12638261?v=3","gravatar_id":"","url":"https://api.github.com/users/JMurphyWeb","html_url":"https://github.com/JMurphyWeb","followers_url":"https://api.github.com/users/JMurphyWeb/followers","following_url":"https://api.github.com/users/JMurphyWeb/following{/other_user}","gists_url":"https://api.github.com/users/JMurphyWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/JMurphyWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMurphyWeb/subscriptions","organizations_url":"https://api.github.com/users/JMurphyWeb/orgs","repos_url":"https://api.github.com/users/JMurphyWeb/repos","events_url":"https://api.github.com/users/JMurphyWeb/events{/privacy}","received_events_url":"https://api.github.com/users/JMurphyWeb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-09-12T20:51:16Z","updated_at":"2016-09-21T07:37:24Z","closed_at":"2016-09-21T07:37:24Z","body":"At the moment, in a user object, we store `organisation_id: ''` as the default. In the tests you wrote on Sunday, I think -1 represents a 'default' or 'no organisation currently linked'. Is that right? I don't think the handlebars represents that change.\r\n\r\nSame also applies for primary_id in an organisations data set. \r\n\r\nI like the -1, is there any disadvantage of changing the default to -1 in setup-data.js and in our handlers initialiser helper function? It seems to make sense to keep it as a number throughout. \r\n\r\nRelates to #38 .\r\n"}}
{"actor":{"display_login":"JMurphyWeb"}}