{"action":"created","issue":{"url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/238","repository_url":"https://api.github.com/repos/NRGI/ResourceProjects.org","labels_url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/238/comments","events_url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/238/events","html_url":"https://github.com/NRGI/ResourceProjects.org/issues/238","id":194043380,"number":238,"title":"Store data on #payment+entity+name","user":{"login":"davidmihalyi","id":13120783,"avatar_url":"https://avatars.githubusercontent.com/u/13120783?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmihalyi","html_url":"https://github.com/davidmihalyi","followers_url":"https://api.github.com/users/davidmihalyi/followers","following_url":"https://api.github.com/users/davidmihalyi/following{/other_user}","gists_url":"https://api.github.com/users/davidmihalyi/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmihalyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmihalyi/subscriptions","organizations_url":"https://api.github.com/users/davidmihalyi/orgs","repos_url":"https://api.github.com/users/davidmihalyi/repos","events_url":"https://api.github.com/users/davidmihalyi/events{/privacy}","received_events_url":"https://api.github.com/users/davidmihalyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"KseniyaKuprina","id":1748097,"avatar_url":"https://avatars.githubusercontent.com/u/1748097?v=3","gravatar_id":"","url":"https://api.github.com/users/KseniyaKuprina","html_url":"https://github.com/KseniyaKuprina","followers_url":"https://api.github.com/users/KseniyaKuprina/followers","following_url":"https://api.github.com/users/KseniyaKuprina/following{/other_user}","gists_url":"https://api.github.com/users/KseniyaKuprina/gists{/gist_id}","starred_url":"https://api.github.com/users/KseniyaKuprina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KseniyaKuprina/subscriptions","organizations_url":"https://api.github.com/users/KseniyaKuprina/orgs","repos_url":"https://api.github.com/users/KseniyaKuprina/repos","events_url":"https://api.github.com/users/KseniyaKuprina/events{/privacy}","received_events_url":"https://api.github.com/users/KseniyaKuprina/received_events","type":"User","site_admin":false},"assignees":[{"login":"KseniyaKuprina","id":1748097,"avatar_url":"https://avatars.githubusercontent.com/u/1748097?v=3","gravatar_id":"","url":"https://api.github.com/users/KseniyaKuprina","html_url":"https://github.com/KseniyaKuprina","followers_url":"https://api.github.com/users/KseniyaKuprina/followers","following_url":"https://api.github.com/users/KseniyaKuprina/following{/other_user}","gists_url":"https://api.github.com/users/KseniyaKuprina/gists{/gist_id}","starred_url":"https://api.github.com/users/KseniyaKuprina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KseniyaKuprina/subscriptions","organizations_url":"https://api.github.com/users/KseniyaKuprina/orgs","repos_url":"https://api.github.com/users/KseniyaKuprina/repos","events_url":"https://api.github.com/users/KseniyaKuprina/events{/privacy}","received_events_url":"https://api.github.com/users/KseniyaKuprina/received_events","type":"User","site_admin":false},{"login":"mattfullerton","id":4084428,"avatar_url":"https://avatars.githubusercontent.com/u/4084428?v=3","gravatar_id":"","url":"https://api.github.com/users/mattfullerton","html_url":"https://github.com/mattfullerton","followers_url":"https://api.github.com/users/mattfullerton/followers","following_url":"https://api.github.com/users/mattfullerton/following{/other_user}","gists_url":"https://api.github.com/users/mattfullerton/gists{/gist_id}","starred_url":"https://api.github.com/users/mattfullerton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattfullerton/subscriptions","organizations_url":"https://api.github.com/users/mattfullerton/orgs","repos_url":"https://api.github.com/users/mattfullerton/repos","events_url":"https://api.github.com/users/mattfullerton/events{/privacy}","received_events_url":"https://api.github.com/users/mattfullerton/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-07T12:59:05Z","updated_at":"2016-12-07T13:05:22Z","closed_at":null,"body":"@mattfullerton \r\nI was looking at this, and how the data is being stored: https://github.com/NRGI/ResourceProjects.org/commit/4476647a22f386f94ff34c59a943ca79fc2eebc9\r\nI suspect when #payment+entity+name is \"Company\" or \"Unknown\" or \"Country\" or \"\" than the data in #payment+entity+name is binned. \r\nCan we put it into something. (ie \"transfer_label\") a string so we can display that here:\r\nhttp://staging.resourceprojects.org/api/transfers/50/0/\r\n\"transfer_level\": \"Company\"/\"Unknown\"/\"\"...,\r\n \"transfer_label\": \"XYZ\"\r\n}\r\n\r\n@KseniyaKuprina : Can you add \"transfer_level\" and this new variable \"transfer_label\" once Matt fixed it into what comes across the API:\r\n http://staging.resourceprojects.org/api/transfers/50/0/ http://staging.resourceprojects.org/api/transfersGov/50/0/ \r\n \r\nthis should stay on staging for now."},"comment":{"url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/comments/265442194","html_url":"https://github.com/NRGI/ResourceProjects.org/issues/238#issuecomment-265442194","issue_url":"https://api.github.com/repos/NRGI/ResourceProjects.org/issues/238","id":265442194,"user":{"login":"mattfullerton","id":4084428,"avatar_url":"https://avatars.githubusercontent.com/u/4084428?v=3","gravatar_id":"","url":"https://api.github.com/users/mattfullerton","html_url":"https://github.com/mattfullerton","followers_url":"https://api.github.com/users/mattfullerton/followers","following_url":"https://api.github.com/users/mattfullerton/following{/other_user}","gists_url":"https://api.github.com/users/mattfullerton/gists{/gist_id}","starred_url":"https://api.github.com/users/mattfullerton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattfullerton/subscriptions","organizations_url":"https://api.github.com/users/mattfullerton/orgs","repos_url":"https://api.github.com/users/mattfullerton/repos","events_url":"https://api.github.com/users/mattfullerton/events{/privacy}","received_events_url":"https://api.github.com/users/mattfullerton/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T13:05:22Z","updated_at":"2016-12-07T13:05:22Z","body":"The assumption in that code is that the #payment+entity+name will be empty or can be ignored. For company or country, do you really need extra data to be stored in a label? For unknown I can understand.\r\n\r\nNote that if it is blank (\"\") and the entity name is set to something (i.e. your label), the first check will be to see if its a project. If not then we go down the same road as \"unknown\" and could handle the text freely as well."}}
{"actor":{"display_login":"mattfullerton"}}