{"action":"created","comment":{"url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/comments/104441180","pull_request_review_id":25279013,"id":104441180,"diff_hunk":"@@ -1905,16 +1905,27 @@ def send_smscentral_message(cls, channel, msg, text):\n     def send_vumi_message(cls, channel, msg, text):\n         from temba.msgs.models import WIRED, Msg\n         from temba.contacts.models import Contact\n+        from temba.ussd.models import USSDSession\n \n         is_ussd = channel.channel_type in Channel.USSD_CHANNELS\n         channel.config['transport_name'] = 'ussd_transport' if is_ussd else 'mtech_ng_smpp_transport'","path":"temba/channels/models.py","position":7,"original_position":7,"commit_id":"8e2068a48d0acb272df064833288a9053a19256d","original_commit_id":"8e2068a48d0acb272df064833288a9053a19256d","user":{"login":"nullcode","id":1941166,"avatar_url":"https://avatars1.githubusercontent.com/u/1941166?v=3","gravatar_id":"","url":"https://api.github.com/users/nullcode","html_url":"https://github.com/nullcode","followers_url":"https://api.github.com/users/nullcode/followers","following_url":"https://api.github.com/users/nullcode/following{/other_user}","gists_url":"https://api.github.com/users/nullcode/gists{/gist_id}","starred_url":"https://api.github.com/users/nullcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullcode/subscriptions","organizations_url":"https://api.github.com/users/nullcode/orgs","repos_url":"https://api.github.com/users/nullcode/repos","events_url":"https://api.github.com/users/nullcode/events{/privacy}","received_events_url":"https://api.github.com/users/nullcode/received_events","type":"User","site_admin":false},"body":"we actually have this in the claim form to customize too, I'd make a separate PR for that, because it has no relation to this feature","created_at":"2017-03-06T15:33:42Z","updated_at":"2017-03-06T15:33:42Z","html_url":"https://github.com/rapidpro/rapidpro/pull/423#discussion_r104441180","pull_request_url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423","_links":{"self":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/comments/104441180"},"html":{"href":"https://github.com/rapidpro/rapidpro/pull/423#discussion_r104441180"},"pull_request":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423"}}},"pull_request":{"url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423","id":100475935,"html_url":"https://github.com/rapidpro/rapidpro/pull/423","diff_url":"https://github.com/rapidpro/rapidpro/pull/423.diff","patch_url":"https://github.com/rapidpro/rapidpro/pull/423.patch","issue_url":"https://api.github.com/repos/rapidpro/rapidpro/issues/423","number":423,"state":"open","locked":false,"title":"USSD session - graceful termination WIP","user":{"login":"nullcode","id":1941166,"avatar_url":"https://avatars1.githubusercontent.com/u/1941166?v=3","gravatar_id":"","url":"https://api.github.com/users/nullcode","html_url":"https://github.com/nullcode","followers_url":"https://api.github.com/users/nullcode/followers","following_url":"https://api.github.com/users/nullcode/following{/other_user}","gists_url":"https://api.github.com/users/nullcode/gists{/gist_id}","starred_url":"https://api.github.com/users/nullcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullcode/subscriptions","organizations_url":"https://api.github.com/users/nullcode/orgs","repos_url":"https://api.github.com/users/nullcode/repos","events_url":"https://api.github.com/users/nullcode/events{/privacy}","received_events_url":"https://api.github.com/users/nullcode/received_events","type":"User","site_admin":false},"body":"I wrote a DFS based algorithm that checks whether a session should be closed at a certain point in a flow. The question is how should I pass that information to the SEND_FUNCTIONS. \r\n\r\nSince I don't want to mess around with new fields on Msg I leave it as an open question for you guys @ericnewcomer @nicpottier. My idea is to pass it as an extra property of the runtime created `MsgStruct` that is pushed to `task_msgs`, but you guys might know better.","created_at":"2017-01-06T15:33:35Z","updated_at":"2017-03-06T15:33:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02b9b263d0426017bbf7012b3f7e551bc6196306","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423/commits","review_comments_url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423/comments","review_comment_url":"https://api.github.com/repos/rapidpro/rapidpro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapidpro/rapidpro/issues/423/comments","statuses_url":"https://api.github.com/repos/rapidpro/rapidpro/statuses/8e2068a48d0acb272df064833288a9053a19256d","head":{"label":"pulilab:ussd_graceful_termination","ref":"ussd_graceful_termination","sha":"8e2068a48d0acb272df064833288a9053a19256d","user":{"login":"pulilab","id":1202552,"avatar_url":"https://avatars0.githubusercontent.com/u/1202552?v=3","gravatar_id":"","url":"https://api.github.com/users/pulilab","html_url":"https://github.com/pulilab","followers_url":"https://api.github.com/users/pulilab/followers","following_url":"https://api.github.com/users/pulilab/following{/other_user}","gists_url":"https://api.github.com/users/pulilab/gists{/gist_id}","starred_url":"https://api.github.com/users/pulilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulilab/subscriptions","organizations_url":"https://api.github.com/users/pulilab/orgs","repos_url":"https://api.github.com/users/pulilab/repos","events_url":"https://api.github.com/users/pulilab/events{/privacy}","received_events_url":"https://api.github.com/users/pulilab/received_events","type":"Organization","site_admin":false},"repo":{"id":47755908,"name":"rapidpro","full_name":"pulilab/rapidpro","owner":{"login":"pulilab","id":1202552,"avatar_url":"https://avatars0.githubusercontent.com/u/1202552?v=3","gravatar_id":"","url":"https://api.github.com/users/pulilab","html_url":"https://github.com/pulilab","followers_url":"https://api.github.com/users/pulilab/followers","following_url":"https://api.github.com/users/pulilab/following{/other_user}","gists_url":"https://api.github.com/users/pulilab/gists{/gist_id}","starred_url":"https://api.github.com/users/pulilab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulilab/subscriptions","organizations_url":"https://api.github.com/users/pulilab/orgs","repos_url":"https://api.github.com/users/pulilab/repos","events_url":"https://api.github.com/users/pulilab/events{/privacy}","received_events_url":"https://api.github.com/users/pulilab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulilab/rapidpro","description":"RapidPro allows organizations to visually build scalable interactive messaging applications.","fork":true,"url":"https://api.github.com/repos/pulilab/rapidpro","forks_url":"https://api.github.com/repos/pulilab/rapidpro/forks","keys_url":"https://api.github.com/repos/pulilab/rapidpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulilab/rapidpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulilab/rapidpro/teams","hooks_url":"https://api.github.com/repos/pulilab/rapidpro/hooks","issue_events_url":"https://api.github.com/repos/pulilab/rapidpro/issues/events{/number}","events_url":"https://api.github.com/repos/pulilab/rapidpro/events","assignees_url":"https://api.github.com/repos/pulilab/rapidpro/assignees{/user}","branches_url":"https://api.github.com/repos/pulilab/rapidpro/branches{/branch}","tags_url":"https://api.github.com/repos/pulilab/rapidpro/tags","blobs_url":"https://api.github.com/repos/pulilab/rapidpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulilab/rapidpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulilab/rapidpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulilab/rapidpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulilab/rapidpro/statuses/{sha}","languages_url":"https://api.github.com/repos/pulilab/rapidpro/languages","stargazers_url":"https://api.github.com/repos/pulilab/rapidpro/stargazers","contributors_url":"https://api.github.com/repos/pulilab/rapidpro/contributors","subscribers_url":"https://api.github.com/repos/pulilab/rapidpro/subscribers","subscription_url":"https://api.github.com/repos/pulilab/rapidpro/subscription","commits_url":"https://api.github.com/repos/pulilab/rapidpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulilab/rapidpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulilab/rapidpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulilab/rapidpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulilab/rapidpro/contents/{+path}","compare_url":"https://api.github.com/repos/pulilab/rapidpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulilab/rapidpro/merges","archive_url":"https://api.github.com/repos/pulilab/rapidpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulilab/rapidpro/downloads","issues_url":"https://api.github.com/repos/pulilab/rapidpro/issues{/number}","pulls_url":"https://api.github.com/repos/pulilab/rapidpro/pulls{/number}","milestones_url":"https://api.github.com/repos/pulilab/rapidpro/milestones{/number}","notifications_url":"https://api.github.com/repos/pulilab/rapidpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulilab/rapidpro/labels{/name}","releases_url":"https://api.github.com/repos/pulilab/rapidpro/releases{/id}","deployments_url":"https://api.github.com/repos/pulilab/rapidpro/deployments","created_at":"2015-12-10T10:51:53Z","updated_at":"2016-12-19T13:00:38Z","pushed_at":"2017-03-06T15:17:31Z","git_url":"git://github.com/pulilab/rapidpro.git","ssh_url":"git@github.com:pulilab/rapidpro.git","clone_url":"https://github.com/pulilab/rapidpro.git","svn_url":"https://github.com/pulilab/rapidpro","homepage":"","size":77344,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"rapidpro:master","ref":"master","sha":"2850cf1b2c4e3bc74cd0b7c1e775929fd8fc5b70","user":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars1.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"repo":{"id":27091452,"name":"rapidpro","full_name":"rapidpro/rapidpro","owner":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars1.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapidpro/rapidpro","description":"RapidPro allows organizations to visually build scalable interactive messaging applications.","fork":false,"url":"https://api.github.com/repos/rapidpro/rapidpro","forks_url":"https://api.github.com/repos/rapidpro/rapidpro/forks","keys_url":"https://api.github.com/repos/rapidpro/rapidpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapidpro/rapidpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapidpro/rapidpro/teams","hooks_url":"https://api.github.com/repos/rapidpro/rapidpro/hooks","issue_events_url":"https://api.github.com/repos/rapidpro/rapidpro/issues/events{/number}","events_url":"https://api.github.com/repos/rapidpro/rapidpro/events","assignees_url":"https://api.github.com/repos/rapidpro/rapidpro/assignees{/user}","branches_url":"https://api.github.com/repos/rapidpro/rapidpro/branches{/branch}","tags_url":"https://api.github.com/repos/rapidpro/rapidpro/tags","blobs_url":"https://api.github.com/repos/rapidpro/rapidpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapidpro/rapidpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapidpro/rapidpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapidpro/rapidpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapidpro/rapidpro/statuses/{sha}","languages_url":"https://api.github.com/repos/rapidpro/rapidpro/languages","stargazers_url":"https://api.github.com/repos/rapidpro/rapidpro/stargazers","contributors_url":"https://api.github.com/repos/rapidpro/rapidpro/contributors","subscribers_url":"https://api.github.com/repos/rapidpro/rapidpro/subscribers","subscription_url":"https://api.github.com/repos/rapidpro/rapidpro/subscription","commits_url":"https://api.github.com/repos/rapidpro/rapidpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapidpro/rapidpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapidpro/rapidpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapidpro/rapidpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapidpro/rapidpro/contents/{+path}","compare_url":"https://api.github.com/repos/rapidpro/rapidpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapidpro/rapidpro/merges","archive_url":"https://api.github.com/repos/rapidpro/rapidpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapidpro/rapidpro/downloads","issues_url":"https://api.github.com/repos/rapidpro/rapidpro/issues{/number}","pulls_url":"https://api.github.com/repos/rapidpro/rapidpro/pulls{/number}","milestones_url":"https://api.github.com/repos/rapidpro/rapidpro/milestones{/number}","notifications_url":"https://api.github.com/repos/rapidpro/rapidpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapidpro/rapidpro/labels{/name}","releases_url":"https://api.github.com/repos/rapidpro/rapidpro/releases{/id}","deployments_url":"https://api.github.com/repos/rapidpro/rapidpro/deployments","created_at":"2014-11-24T19:32:48Z","updated_at":"2017-03-06T14:34:59Z","pushed_at":"2017-03-06T15:17:32Z","git_url":"git://github.com/rapidpro/rapidpro.git","ssh_url":"git@github.com:rapidpro/rapidpro.git","clone_url":"https://github.com/rapidpro/rapidpro.git","svn_url":"https://github.com/rapidpro/rapidpro","homepage":"","size":77643,"stargazers_count":431,"watchers_count":431,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":198,"mirror_url":null,"open_issues_count":114,"forks":198,"open_issues":114,"watchers":431,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423"},"html":{"href":"https://github.com/rapidpro/rapidpro/pull/423"},"issue":{"href":"https://api.github.com/repos/rapidpro/rapidpro/issues/423"},"comments":{"href":"https://api.github.com/repos/rapidpro/rapidpro/issues/423/comments"},"review_comments":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423/comments"},"review_comment":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapidpro/rapidpro/pulls/423/commits"},"statuses":{"href":"https://api.github.com/repos/rapidpro/rapidpro/statuses/8e2068a48d0acb272df064833288a9053a19256d"}}}}
{"actor":{"display_login":"nullcode"}}