{"action":"closed","number":49,"pull_request":{"url":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49","id":39770442,"html_url":"https://github.com/ucla/casa-on-rails/pull/49","diff_url":"https://github.com/ucla/casa-on-rails/pull/49.diff","patch_url":"https://github.com/ucla/casa-on-rails/pull/49.patch","issue_url":"https://api.github.com/repos/ucla/casa-on-rails/issues/49","number":49,"state":"closed","locked":false,"title":"LTI Attributes Always As Object","user":{"login":"ebollens","id":761092,"avatar_url":"https://avatars.githubusercontent.com/u/761092?v=3","gravatar_id":"","url":"https://api.github.com/users/ebollens","html_url":"https://github.com/ebollens","followers_url":"https://api.github.com/users/ebollens/followers","following_url":"https://api.github.com/users/ebollens/following{/other_user}","gists_url":"https://api.github.com/users/ebollens/gists{/gist_id}","starred_url":"https://api.github.com/users/ebollens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebollens/subscriptions","organizations_url":"https://api.github.com/users/ebollens/orgs","repos_url":"https://api.github.com/users/ebollens/repos","events_url":"https://api.github.com/users/ebollens/events{/privacy}","received_events_url":"https://api.github.com/users/ebollens/received_events","type":"User","site_admin":false},"body":"Currently, CASA on Rails will set the CASA Payload for an app to have the value `true` for LTI if there are no custom definitions for the LTI launch. When some payloads have this `true` value, and others have an object value, Elasticsearch fails because [an index cannot contain data of different types](http://stackoverflow.com/questions/26930587/elasticsearch-mapping-different-data-types-in-same-field).\r\n\r\nOnce this change is pulled, you'll need to shut down CASA on Rails, delete the app's index in Elasticsearch, and then start CASA on Rails again to re-initialize the index with the right type (which should be an object for this field).\r\n\r\nThe Elasticsearch index can be deleted by issuing the following command on the CASA host (needs to be done from the host because IPTables is blocking the port to the outside):\r\n```\r\ncurl -XDELETE 'http://localhost:9200/apps'\r\n```\r\n","created_at":"2015-07-12T22:51:51Z","updated_at":"2015-07-13T01:33:58Z","closed_at":"2015-07-13T01:33:57Z","merged_at":"2015-07-13T01:33:57Z","merge_commit_sha":"9c4a1f28b7ac3ba2eb8225aaf02fcce0d6a8c841","assignee":{"login":"stevenolen","id":808870,"avatar_url":"https://avatars.githubusercontent.com/u/808870?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenolen","html_url":"https://github.com/stevenolen","followers_url":"https://api.github.com/users/stevenolen/followers","following_url":"https://api.github.com/users/stevenolen/following{/other_user}","gists_url":"https://api.github.com/users/stevenolen/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenolen/subscriptions","organizations_url":"https://api.github.com/users/stevenolen/orgs","repos_url":"https://api.github.com/users/stevenolen/repos","events_url":"https://api.github.com/users/stevenolen/events{/privacy}","received_events_url":"https://api.github.com/users/stevenolen/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49/commits","review_comments_url":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49/comments","review_comment_url":"https://api.github.com/repos/ucla/casa-on-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucla/casa-on-rails/issues/49/comments","statuses_url":"https://api.github.com/repos/ucla/casa-on-rails/statuses/13e2172e61079a8d1218abfb36dc5b2575c8d438","head":{"label":"ebollens:object_data_type_for_lti","ref":"object_data_type_for_lti","sha":"13e2172e61079a8d1218abfb36dc5b2575c8d438","user":{"login":"ebollens","id":761092,"avatar_url":"https://avatars.githubusercontent.com/u/761092?v=3","gravatar_id":"","url":"https://api.github.com/users/ebollens","html_url":"https://github.com/ebollens","followers_url":"https://api.github.com/users/ebollens/followers","following_url":"https://api.github.com/users/ebollens/following{/other_user}","gists_url":"https://api.github.com/users/ebollens/gists{/gist_id}","starred_url":"https://api.github.com/users/ebollens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebollens/subscriptions","organizations_url":"https://api.github.com/users/ebollens/orgs","repos_url":"https://api.github.com/users/ebollens/repos","events_url":"https://api.github.com/users/ebollens/events{/privacy}","received_events_url":"https://api.github.com/users/ebollens/received_events","type":"User","site_admin":false},"repo":{"id":33573196,"name":"casa-on-rails","full_name":"ebollens/casa-on-rails","owner":{"login":"ebollens","id":761092,"avatar_url":"https://avatars.githubusercontent.com/u/761092?v=3","gravatar_id":"","url":"https://api.github.com/users/ebollens","html_url":"https://github.com/ebollens","followers_url":"https://api.github.com/users/ebollens/followers","following_url":"https://api.github.com/users/ebollens/following{/other_user}","gists_url":"https://api.github.com/users/ebollens/gists{/gist_id}","starred_url":"https://api.github.com/users/ebollens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebollens/subscriptions","organizations_url":"https://api.github.com/users/ebollens/orgs","repos_url":"https://api.github.com/users/ebollens/repos","events_url":"https://api.github.com/users/ebollens/events{/privacy}","received_events_url":"https://api.github.com/users/ebollens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ebollens/casa-on-rails","description":"","fork":true,"url":"https://api.github.com/repos/ebollens/casa-on-rails","forks_url":"https://api.github.com/repos/ebollens/casa-on-rails/forks","keys_url":"https://api.github.com/repos/ebollens/casa-on-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebollens/casa-on-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebollens/casa-on-rails/teams","hooks_url":"https://api.github.com/repos/ebollens/casa-on-rails/hooks","issue_events_url":"https://api.github.com/repos/ebollens/casa-on-rails/issues/events{/number}","events_url":"https://api.github.com/repos/ebollens/casa-on-rails/events","assignees_url":"https://api.github.com/repos/ebollens/casa-on-rails/assignees{/user}","branches_url":"https://api.github.com/repos/ebollens/casa-on-rails/branches{/branch}","tags_url":"https://api.github.com/repos/ebollens/casa-on-rails/tags","blobs_url":"https://api.github.com/repos/ebollens/casa-on-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebollens/casa-on-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebollens/casa-on-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebollens/casa-on-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebollens/casa-on-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ebollens/casa-on-rails/languages","stargazers_url":"https://api.github.com/repos/ebollens/casa-on-rails/stargazers","contributors_url":"https://api.github.com/repos/ebollens/casa-on-rails/contributors","subscribers_url":"https://api.github.com/repos/ebollens/casa-on-rails/subscribers","subscription_url":"https://api.github.com/repos/ebollens/casa-on-rails/subscription","commits_url":"https://api.github.com/repos/ebollens/casa-on-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebollens/casa-on-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebollens/casa-on-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebollens/casa-on-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebollens/casa-on-rails/contents/{+path}","compare_url":"https://api.github.com/repos/ebollens/casa-on-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebollens/casa-on-rails/merges","archive_url":"https://api.github.com/repos/ebollens/casa-on-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebollens/casa-on-rails/downloads","issues_url":"https://api.github.com/repos/ebollens/casa-on-rails/issues{/number}","pulls_url":"https://api.github.com/repos/ebollens/casa-on-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ebollens/casa-on-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ebollens/casa-on-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebollens/casa-on-rails/labels{/name}","releases_url":"https://api.github.com/repos/ebollens/casa-on-rails/releases{/id}","created_at":"2015-04-07T23:15:10Z","updated_at":"2015-04-30T00:23:40Z","pushed_at":"2015-07-12T22:49:27Z","git_url":"git://github.com/ebollens/casa-on-rails.git","ssh_url":"git@github.com:ebollens/casa-on-rails.git","clone_url":"https://github.com/ebollens/casa-on-rails.git","svn_url":"https://github.com/ebollens/casa-on-rails","homepage":null,"size":511,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ucla:master","ref":"master","sha":"df11659a10a479964befd95ad1ff646b80ce8be4","user":{"login":"ucla","id":39207,"avatar_url":"https://avatars.githubusercontent.com/u/39207?v=3","gravatar_id":"","url":"https://api.github.com/users/ucla","html_url":"https://github.com/ucla","followers_url":"https://api.github.com/users/ucla/followers","following_url":"https://api.github.com/users/ucla/following{/other_user}","gists_url":"https://api.github.com/users/ucla/gists{/gist_id}","starred_url":"https://api.github.com/users/ucla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucla/subscriptions","organizations_url":"https://api.github.com/users/ucla/orgs","repos_url":"https://api.github.com/users/ucla/repos","events_url":"https://api.github.com/users/ucla/events{/privacy}","received_events_url":"https://api.github.com/users/ucla/received_events","type":"Organization","site_admin":false},"repo":{"id":33573133,"name":"casa-on-rails","full_name":"ucla/casa-on-rails","owner":{"login":"ucla","id":39207,"avatar_url":"https://avatars.githubusercontent.com/u/39207?v=3","gravatar_id":"","url":"https://api.github.com/users/ucla","html_url":"https://github.com/ucla","followers_url":"https://api.github.com/users/ucla/followers","following_url":"https://api.github.com/users/ucla/following{/other_user}","gists_url":"https://api.github.com/users/ucla/gists{/gist_id}","starred_url":"https://api.github.com/users/ucla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucla/subscriptions","organizations_url":"https://api.github.com/users/ucla/orgs","repos_url":"https://api.github.com/users/ucla/repos","events_url":"https://api.github.com/users/ucla/events{/privacy}","received_events_url":"https://api.github.com/users/ucla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucla/casa-on-rails","description":"","fork":false,"url":"https://api.github.com/repos/ucla/casa-on-rails","forks_url":"https://api.github.com/repos/ucla/casa-on-rails/forks","keys_url":"https://api.github.com/repos/ucla/casa-on-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucla/casa-on-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucla/casa-on-rails/teams","hooks_url":"https://api.github.com/repos/ucla/casa-on-rails/hooks","issue_events_url":"https://api.github.com/repos/ucla/casa-on-rails/issues/events{/number}","events_url":"https://api.github.com/repos/ucla/casa-on-rails/events","assignees_url":"https://api.github.com/repos/ucla/casa-on-rails/assignees{/user}","branches_url":"https://api.github.com/repos/ucla/casa-on-rails/branches{/branch}","tags_url":"https://api.github.com/repos/ucla/casa-on-rails/tags","blobs_url":"https://api.github.com/repos/ucla/casa-on-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucla/casa-on-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucla/casa-on-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucla/casa-on-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucla/casa-on-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/ucla/casa-on-rails/languages","stargazers_url":"https://api.github.com/repos/ucla/casa-on-rails/stargazers","contributors_url":"https://api.github.com/repos/ucla/casa-on-rails/contributors","subscribers_url":"https://api.github.com/repos/ucla/casa-on-rails/subscribers","subscription_url":"https://api.github.com/repos/ucla/casa-on-rails/subscription","commits_url":"https://api.github.com/repos/ucla/casa-on-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucla/casa-on-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucla/casa-on-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucla/casa-on-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucla/casa-on-rails/contents/{+path}","compare_url":"https://api.github.com/repos/ucla/casa-on-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucla/casa-on-rails/merges","archive_url":"https://api.github.com/repos/ucla/casa-on-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucla/casa-on-rails/downloads","issues_url":"https://api.github.com/repos/ucla/casa-on-rails/issues{/number}","pulls_url":"https://api.github.com/repos/ucla/casa-on-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/ucla/casa-on-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/ucla/casa-on-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucla/casa-on-rails/labels{/name}","releases_url":"https://api.github.com/repos/ucla/casa-on-rails/releases{/id}","created_at":"2015-04-07T23:13:04Z","updated_at":"2015-06-23T01:07:55Z","pushed_at":"2015-07-13T01:33:57Z","git_url":"git://github.com/ucla/casa-on-rails.git","ssh_url":"git@github.com:ucla/casa-on-rails.git","clone_url":"https://github.com/ucla/casa-on-rails.git","svn_url":"https://github.com/ucla/casa-on-rails","homepage":"","size":659,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":14,"forks":2,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49"},"html":{"href":"https://github.com/ucla/casa-on-rails/pull/49"},"issue":{"href":"https://api.github.com/repos/ucla/casa-on-rails/issues/49"},"comments":{"href":"https://api.github.com/repos/ucla/casa-on-rails/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/ucla/casa-on-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucla/casa-on-rails/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/ucla/casa-on-rails/statuses/13e2172e61079a8d1218abfb36dc5b2575c8d438"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stevenolen","id":808870,"avatar_url":"https://avatars.githubusercontent.com/u/808870?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenolen","html_url":"https://github.com/stevenolen","followers_url":"https://api.github.com/users/stevenolen/followers","following_url":"https://api.github.com/users/stevenolen/following{/other_user}","gists_url":"https://api.github.com/users/stevenolen/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenolen/subscriptions","organizations_url":"https://api.github.com/users/stevenolen/orgs","repos_url":"https://api.github.com/users/stevenolen/repos","events_url":"https://api.github.com/users/stevenolen/events{/privacy}","received_events_url":"https://api.github.com/users/stevenolen/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}