{"action":"created","comment":{"url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/comments/34811546","id":34811546,"diff_hunk":"@@ -49,6 +49,7 @@ def save_capabilities\n     mh = rh.message.first\n     mh.parameter = parameters.map { |var, val| IMS::LTI::Models::Parameter.new(name: val['name'], variable: var) }\n     rh.ext_placements = placements.keys","path":"app/controllers/registration_controller.rb","position":3,"original_position":3,"commit_id":"a66711ae4bfd334911a7dde2fa236a4514334813","original_commit_id":"a66711ae4bfd334911a7dde2fa236a4514334813","user":{"login":"rivernate","id":531217,"avatar_url":"https://avatars.githubusercontent.com/u/531217?v=3","gravatar_id":"","url":"https://api.github.com/users/rivernate","html_url":"https://github.com/rivernate","followers_url":"https://api.github.com/users/rivernate/followers","following_url":"https://api.github.com/users/rivernate/following{/other_user}","gists_url":"https://api.github.com/users/rivernate/gists{/gist_id}","starred_url":"https://api.github.com/users/rivernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivernate/subscriptions","organizations_url":"https://api.github.com/users/rivernate/orgs","repos_url":"https://api.github.com/users/rivernate/repos","events_url":"https://api.github.com/users/rivernate/events{/privacy}","received_events_url":"https://api.github.com/users/rivernate/received_events","type":"User","site_admin":false},"body":"Lets drop line 51 so that we are not sending them twice","created_at":"2015-07-16T17:03:27Z","updated_at":"2015-07-16T17:03:27Z","html_url":"https://github.com/rivernate/lti_tool_provider_example/pull/4#discussion_r34811546","pull_request_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/comments/34811546"},"html":{"href":"https://github.com/rivernate/lti_tool_provider_example/pull/4#discussion_r34811546"},"pull_request":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4","id":38893309,"html_url":"https://github.com/rivernate/lti_tool_provider_example/pull/4","diff_url":"https://github.com/rivernate/lti_tool_provider_example/pull/4.diff","patch_url":"https://github.com/rivernate/lti_tool_provider_example/pull/4.patch","issue_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/4","number":4,"state":"open","locked":false,"title":"Send placements in the messages enabled capability field.","user":{"login":"westonkd","id":6128215,"avatar_url":"https://avatars.githubusercontent.com/u/6128215?v=3","gravatar_id":"","url":"https://api.github.com/users/westonkd","html_url":"https://github.com/westonkd","followers_url":"https://api.github.com/users/westonkd/followers","following_url":"https://api.github.com/users/westonkd/following{/other_user}","gists_url":"https://api.github.com/users/westonkd/gists{/gist_id}","starred_url":"https://api.github.com/users/westonkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonkd/subscriptions","organizations_url":"https://api.github.com/users/westonkd/orgs","repos_url":"https://api.github.com/users/westonkd/repos","events_url":"https://api.github.com/users/westonkd/events{/privacy}","received_events_url":"https://api.github.com/users/westonkd/received_events","type":"User","site_admin":false},"body":"Placements are still sent in the resource handler as well.\r\n\r\nfixes PLAT-1156\r\n\r\nTest Plan\r\n - make sure the tool proxy json now includes a 'enabled capability' field nested in the message that contains placements.","created_at":"2015-06-30T15:50:14Z","updated_at":"2015-07-16T17:03:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4e3b51ff1259e70d65b79602519354b9895a377","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4/commits","review_comments_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4/comments","review_comment_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/4/comments","statuses_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/statuses/a66711ae4bfd334911a7dde2fa236a4514334813","head":{"label":"westonkd:placements_to_message","ref":"placements_to_message","sha":"a66711ae4bfd334911a7dde2fa236a4514334813","user":{"login":"westonkd","id":6128215,"avatar_url":"https://avatars.githubusercontent.com/u/6128215?v=3","gravatar_id":"","url":"https://api.github.com/users/westonkd","html_url":"https://github.com/westonkd","followers_url":"https://api.github.com/users/westonkd/followers","following_url":"https://api.github.com/users/westonkd/following{/other_user}","gists_url":"https://api.github.com/users/westonkd/gists{/gist_id}","starred_url":"https://api.github.com/users/westonkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonkd/subscriptions","organizations_url":"https://api.github.com/users/westonkd/orgs","repos_url":"https://api.github.com/users/westonkd/repos","events_url":"https://api.github.com/users/westonkd/events{/privacy}","received_events_url":"https://api.github.com/users/westonkd/received_events","type":"User","site_admin":false},"repo":{"id":38124593,"name":"lti_tool_provider_example","full_name":"westonkd/lti_tool_provider_example","owner":{"login":"westonkd","id":6128215,"avatar_url":"https://avatars.githubusercontent.com/u/6128215?v=3","gravatar_id":"","url":"https://api.github.com/users/westonkd","html_url":"https://github.com/westonkd","followers_url":"https://api.github.com/users/westonkd/followers","following_url":"https://api.github.com/users/westonkd/following{/other_user}","gists_url":"https://api.github.com/users/westonkd/gists{/gist_id}","starred_url":"https://api.github.com/users/westonkd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonkd/subscriptions","organizations_url":"https://api.github.com/users/westonkd/orgs","repos_url":"https://api.github.com/users/westonkd/repos","events_url":"https://api.github.com/users/westonkd/events{/privacy}","received_events_url":"https://api.github.com/users/westonkd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/westonkd/lti_tool_provider_example","description":"","fork":true,"url":"https://api.github.com/repos/westonkd/lti_tool_provider_example","forks_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/forks","keys_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/teams","hooks_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/hooks","issue_events_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/issues/events{/number}","events_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/events","assignees_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/assignees{/user}","branches_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/branches{/branch}","tags_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/tags","blobs_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/git/refs{/sha}","trees_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/statuses/{sha}","languages_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/languages","stargazers_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/stargazers","contributors_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/contributors","subscribers_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/subscribers","subscription_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/subscription","commits_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/commits{/sha}","git_commits_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/git/commits{/sha}","comments_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/comments{/number}","issue_comment_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/issues/comments{/number}","contents_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/contents/{+path}","compare_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/merges","archive_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/downloads","issues_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/issues{/number}","pulls_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/pulls{/number}","milestones_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/milestones{/number}","notifications_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/labels{/name}","releases_url":"https://api.github.com/repos/westonkd/lti_tool_provider_example/releases{/id}","created_at":"2015-06-26T17:32:27Z","updated_at":"2015-06-26T17:34:00Z","pushed_at":"2015-06-30T15:41:42Z","git_url":"git://github.com/westonkd/lti_tool_provider_example.git","ssh_url":"git@github.com:westonkd/lti_tool_provider_example.git","clone_url":"https://github.com/westonkd/lti_tool_provider_example.git","svn_url":"https://github.com/westonkd/lti_tool_provider_example","homepage":null,"size":167,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rivernate:master","ref":"master","sha":"e0ea0048cd0b076ff27dac68a3a0cd69ea0d2802","user":{"login":"rivernate","id":531217,"avatar_url":"https://avatars.githubusercontent.com/u/531217?v=3","gravatar_id":"","url":"https://api.github.com/users/rivernate","html_url":"https://github.com/rivernate","followers_url":"https://api.github.com/users/rivernate/followers","following_url":"https://api.github.com/users/rivernate/following{/other_user}","gists_url":"https://api.github.com/users/rivernate/gists{/gist_id}","starred_url":"https://api.github.com/users/rivernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivernate/subscriptions","organizations_url":"https://api.github.com/users/rivernate/orgs","repos_url":"https://api.github.com/users/rivernate/repos","events_url":"https://api.github.com/users/rivernate/events{/privacy}","received_events_url":"https://api.github.com/users/rivernate/received_events","type":"User","site_admin":false},"repo":{"id":37079550,"name":"lti_tool_provider_example","full_name":"rivernate/lti_tool_provider_example","owner":{"login":"rivernate","id":531217,"avatar_url":"https://avatars.githubusercontent.com/u/531217?v=3","gravatar_id":"","url":"https://api.github.com/users/rivernate","html_url":"https://github.com/rivernate","followers_url":"https://api.github.com/users/rivernate/followers","following_url":"https://api.github.com/users/rivernate/following{/other_user}","gists_url":"https://api.github.com/users/rivernate/gists{/gist_id}","starred_url":"https://api.github.com/users/rivernate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rivernate/subscriptions","organizations_url":"https://api.github.com/users/rivernate/orgs","repos_url":"https://api.github.com/users/rivernate/repos","events_url":"https://api.github.com/users/rivernate/events{/privacy}","received_events_url":"https://api.github.com/users/rivernate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rivernate/lti_tool_provider_example","description":"","fork":false,"url":"https://api.github.com/repos/rivernate/lti_tool_provider_example","forks_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/forks","keys_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/teams","hooks_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/hooks","issue_events_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/events{/number}","events_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/events","assignees_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/assignees{/user}","branches_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/branches{/branch}","tags_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/tags","blobs_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/git/refs{/sha}","trees_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/statuses/{sha}","languages_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/languages","stargazers_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/stargazers","contributors_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/contributors","subscribers_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/subscribers","subscription_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/subscription","commits_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/commits{/sha}","git_commits_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/git/commits{/sha}","comments_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/comments{/number}","issue_comment_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/comments{/number}","contents_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/contents/{+path}","compare_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/merges","archive_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/downloads","issues_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues{/number}","pulls_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls{/number}","milestones_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/milestones{/number}","notifications_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/labels{/name}","releases_url":"https://api.github.com/repos/rivernate/lti_tool_provider_example/releases{/id}","created_at":"2015-06-08T16:42:43Z","updated_at":"2015-06-08T16:43:00Z","pushed_at":"2015-07-15T18:36:11Z","git_url":"git://github.com/rivernate/lti_tool_provider_example.git","ssh_url":"git@github.com:rivernate/lti_tool_provider_example.git","clone_url":"https://github.com/rivernate/lti_tool_provider_example.git","svn_url":"https://github.com/rivernate/lti_tool_provider_example","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4"},"html":{"href":"https://github.com/rivernate/lti_tool_provider_example/pull/4"},"issue":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/4"},"comments":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/rivernate/lti_tool_provider_example/statuses/a66711ae4bfd334911a7dde2fa236a4514334813"}}}}