{"action":"opened","number":1009,"pull_request":{"url":"https://api.github.com/repos/SEED-platform/seed/pulls/1009","id":77193451,"html_url":"https://github.com/SEED-platform/seed/pull/1009","diff_url":"https://github.com/SEED-platform/seed/pull/1009.diff","patch_url":"https://github.com/SEED-platform/seed/pull/1009.patch","issue_url":"https://api.github.com/repos/SEED-platform/seed/issues/1009","number":1009,"state":"open","locked":false,"title":"return json when invalid organization, catch the error nicely","user":{"login":"nllong","id":1907354,"avatar_url":"https://avatars.githubusercontent.com/u/1907354?v=3","gravatar_id":"","url":"https://api.github.com/users/nllong","html_url":"https://github.com/nllong","followers_url":"https://api.github.com/users/nllong/followers","following_url":"https://api.github.com/users/nllong/following{/other_user}","gists_url":"https://api.github.com/users/nllong/gists{/gist_id}","starred_url":"https://api.github.com/users/nllong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nllong/subscriptions","organizations_url":"https://api.github.com/users/nllong/orgs","repos_url":"https://api.github.com/users/nllong/repos","events_url":"https://api.github.com/users/nllong/events{/privacy}","received_events_url":"https://api.github.com/users/nllong/received_events","type":"User","site_admin":false},"body":"#### Any background context you want to provide?\r\nSee #1008.\r\n\r\nThere were many errors on sentry related to this bug. I have not determined what action on the front end is causing this, but this PR will allow for the app to continue.\r\n\r\n#### What's this PR do?\r\nMakes the error of org id not existing explicit and a JSON. Before it was a string result.\r\n\r\n#### How should this be manually tested?\r\nNormal monkey testing.\r\n\r\n#### What are the relevant tickets?\r\n#1008 \r\n\r\n#### Definition of Done:\r\n- [X] Is there appropriate test coverage? (e.g. ChefSpec, Mocha/Chai, Python, etc.). Tests were added\r\n- [X] Does this PR require a Selenium test? (e.g. Browser-specific bugs or complicated UI bugs). No\r\n- [X] Does this PR require a regression test? All fixes require a regression test. No\r\n- [X] Does this add new dependencies? If so, does PIP, npm, bower requirements need to be updated? Yeah, I updated django-nose\r\n","created_at":"2016-07-12T21:18:51Z","updated_at":"2016-07-12T21:18:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SEED-platform/seed/pulls/1009/commits","review_comments_url":"https://api.github.com/repos/SEED-platform/seed/pulls/1009/comments","review_comment_url":"https://api.github.com/repos/SEED-platform/seed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SEED-platform/seed/issues/1009/comments","statuses_url":"https://api.github.com/repos/SEED-platform/seed/statuses/fdf3db3cc2dbfd7249eb5b7b69a5b5b74cb21c66","head":{"label":"SEED-platform:1008-catch-invalid-org","ref":"1008-catch-invalid-org","sha":"fdf3db3cc2dbfd7249eb5b7b69a5b5b74cb21c66","user":{"login":"SEED-platform","id":7445100,"avatar_url":"https://avatars.githubusercontent.com/u/7445100?v=3","gravatar_id":"","url":"https://api.github.com/users/SEED-platform","html_url":"https://github.com/SEED-platform","followers_url":"https://api.github.com/users/SEED-platform/followers","following_url":"https://api.github.com/users/SEED-platform/following{/other_user}","gists_url":"https://api.github.com/users/SEED-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/SEED-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEED-platform/subscriptions","organizations_url":"https://api.github.com/users/SEED-platform/orgs","repos_url":"https://api.github.com/users/SEED-platform/repos","events_url":"https://api.github.com/users/SEED-platform/events{/privacy}","received_events_url":"https://api.github.com/users/SEED-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":25450714,"name":"seed","full_name":"SEED-platform/seed","owner":{"login":"SEED-platform","id":7445100,"avatar_url":"https://avatars.githubusercontent.com/u/7445100?v=3","gravatar_id":"","url":"https://api.github.com/users/SEED-platform","html_url":"https://github.com/SEED-platform","followers_url":"https://api.github.com/users/SEED-platform/followers","following_url":"https://api.github.com/users/SEED-platform/following{/other_user}","gists_url":"https://api.github.com/users/SEED-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/SEED-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEED-platform/subscriptions","organizations_url":"https://api.github.com/users/SEED-platform/orgs","repos_url":"https://api.github.com/users/SEED-platform/repos","events_url":"https://api.github.com/users/SEED-platform/events{/privacy}","received_events_url":"https://api.github.com/users/SEED-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SEED-platform/seed","description":"Standard Energy Efficiency Data (SEED) Platform™","fork":false,"url":"https://api.github.com/repos/SEED-platform/seed","forks_url":"https://api.github.com/repos/SEED-platform/seed/forks","keys_url":"https://api.github.com/repos/SEED-platform/seed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SEED-platform/seed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SEED-platform/seed/teams","hooks_url":"https://api.github.com/repos/SEED-platform/seed/hooks","issue_events_url":"https://api.github.com/repos/SEED-platform/seed/issues/events{/number}","events_url":"https://api.github.com/repos/SEED-platform/seed/events","assignees_url":"https://api.github.com/repos/SEED-platform/seed/assignees{/user}","branches_url":"https://api.github.com/repos/SEED-platform/seed/branches{/branch}","tags_url":"https://api.github.com/repos/SEED-platform/seed/tags","blobs_url":"https://api.github.com/repos/SEED-platform/seed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SEED-platform/seed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SEED-platform/seed/git/refs{/sha}","trees_url":"https://api.github.com/repos/SEED-platform/seed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SEED-platform/seed/statuses/{sha}","languages_url":"https://api.github.com/repos/SEED-platform/seed/languages","stargazers_url":"https://api.github.com/repos/SEED-platform/seed/stargazers","contributors_url":"https://api.github.com/repos/SEED-platform/seed/contributors","subscribers_url":"https://api.github.com/repos/SEED-platform/seed/subscribers","subscription_url":"https://api.github.com/repos/SEED-platform/seed/subscription","commits_url":"https://api.github.com/repos/SEED-platform/seed/commits{/sha}","git_commits_url":"https://api.github.com/repos/SEED-platform/seed/git/commits{/sha}","comments_url":"https://api.github.com/repos/SEED-platform/seed/comments{/number}","issue_comment_url":"https://api.github.com/repos/SEED-platform/seed/issues/comments{/number}","contents_url":"https://api.github.com/repos/SEED-platform/seed/contents/{+path}","compare_url":"https://api.github.com/repos/SEED-platform/seed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SEED-platform/seed/merges","archive_url":"https://api.github.com/repos/SEED-platform/seed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SEED-platform/seed/downloads","issues_url":"https://api.github.com/repos/SEED-platform/seed/issues{/number}","pulls_url":"https://api.github.com/repos/SEED-platform/seed/pulls{/number}","milestones_url":"https://api.github.com/repos/SEED-platform/seed/milestones{/number}","notifications_url":"https://api.github.com/repos/SEED-platform/seed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SEED-platform/seed/labels{/name}","releases_url":"https://api.github.com/repos/SEED-platform/seed/releases{/id}","deployments_url":"https://api.github.com/repos/SEED-platform/seed/deployments","created_at":"2014-10-20T04:26:53Z","updated_at":"2016-06-19T00:11:58Z","pushed_at":"2016-07-12T21:18:51Z","git_url":"git://github.com/SEED-platform/seed.git","ssh_url":"git@github.com:SEED-platform/seed.git","clone_url":"https://github.com/SEED-platform/seed.git","svn_url":"https://github.com/SEED-platform/seed","homepage":"","size":27300,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":294,"forks":22,"open_issues":294,"watchers":29,"default_branch":"develop"}},"base":{"label":"SEED-platform:release-1.5.0","ref":"release-1.5.0","sha":"c99a3fb4cafb530b12731a43adc49f11a5d15bf1","user":{"login":"SEED-platform","id":7445100,"avatar_url":"https://avatars.githubusercontent.com/u/7445100?v=3","gravatar_id":"","url":"https://api.github.com/users/SEED-platform","html_url":"https://github.com/SEED-platform","followers_url":"https://api.github.com/users/SEED-platform/followers","following_url":"https://api.github.com/users/SEED-platform/following{/other_user}","gists_url":"https://api.github.com/users/SEED-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/SEED-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEED-platform/subscriptions","organizations_url":"https://api.github.com/users/SEED-platform/orgs","repos_url":"https://api.github.com/users/SEED-platform/repos","events_url":"https://api.github.com/users/SEED-platform/events{/privacy}","received_events_url":"https://api.github.com/users/SEED-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":25450714,"name":"seed","full_name":"SEED-platform/seed","owner":{"login":"SEED-platform","id":7445100,"avatar_url":"https://avatars.githubusercontent.com/u/7445100?v=3","gravatar_id":"","url":"https://api.github.com/users/SEED-platform","html_url":"https://github.com/SEED-platform","followers_url":"https://api.github.com/users/SEED-platform/followers","following_url":"https://api.github.com/users/SEED-platform/following{/other_user}","gists_url":"https://api.github.com/users/SEED-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/SEED-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEED-platform/subscriptions","organizations_url":"https://api.github.com/users/SEED-platform/orgs","repos_url":"https://api.github.com/users/SEED-platform/repos","events_url":"https://api.github.com/users/SEED-platform/events{/privacy}","received_events_url":"https://api.github.com/users/SEED-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SEED-platform/seed","description":"Standard Energy Efficiency Data (SEED) Platform™","fork":false,"url":"https://api.github.com/repos/SEED-platform/seed","forks_url":"https://api.github.com/repos/SEED-platform/seed/forks","keys_url":"https://api.github.com/repos/SEED-platform/seed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SEED-platform/seed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SEED-platform/seed/teams","hooks_url":"https://api.github.com/repos/SEED-platform/seed/hooks","issue_events_url":"https://api.github.com/repos/SEED-platform/seed/issues/events{/number}","events_url":"https://api.github.com/repos/SEED-platform/seed/events","assignees_url":"https://api.github.com/repos/SEED-platform/seed/assignees{/user}","branches_url":"https://api.github.com/repos/SEED-platform/seed/branches{/branch}","tags_url":"https://api.github.com/repos/SEED-platform/seed/tags","blobs_url":"https://api.github.com/repos/SEED-platform/seed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SEED-platform/seed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SEED-platform/seed/git/refs{/sha}","trees_url":"https://api.github.com/repos/SEED-platform/seed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SEED-platform/seed/statuses/{sha}","languages_url":"https://api.github.com/repos/SEED-platform/seed/languages","stargazers_url":"https://api.github.com/repos/SEED-platform/seed/stargazers","contributors_url":"https://api.github.com/repos/SEED-platform/seed/contributors","subscribers_url":"https://api.github.com/repos/SEED-platform/seed/subscribers","subscription_url":"https://api.github.com/repos/SEED-platform/seed/subscription","commits_url":"https://api.github.com/repos/SEED-platform/seed/commits{/sha}","git_commits_url":"https://api.github.com/repos/SEED-platform/seed/git/commits{/sha}","comments_url":"https://api.github.com/repos/SEED-platform/seed/comments{/number}","issue_comment_url":"https://api.github.com/repos/SEED-platform/seed/issues/comments{/number}","contents_url":"https://api.github.com/repos/SEED-platform/seed/contents/{+path}","compare_url":"https://api.github.com/repos/SEED-platform/seed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SEED-platform/seed/merges","archive_url":"https://api.github.com/repos/SEED-platform/seed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SEED-platform/seed/downloads","issues_url":"https://api.github.com/repos/SEED-platform/seed/issues{/number}","pulls_url":"https://api.github.com/repos/SEED-platform/seed/pulls{/number}","milestones_url":"https://api.github.com/repos/SEED-platform/seed/milestones{/number}","notifications_url":"https://api.github.com/repos/SEED-platform/seed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SEED-platform/seed/labels{/name}","releases_url":"https://api.github.com/repos/SEED-platform/seed/releases{/id}","deployments_url":"https://api.github.com/repos/SEED-platform/seed/deployments","created_at":"2014-10-20T04:26:53Z","updated_at":"2016-06-19T00:11:58Z","pushed_at":"2016-07-12T21:18:51Z","git_url":"git://github.com/SEED-platform/seed.git","ssh_url":"git@github.com:SEED-platform/seed.git","clone_url":"https://github.com/SEED-platform/seed.git","svn_url":"https://github.com/SEED-platform/seed","homepage":"","size":27300,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":294,"forks":22,"open_issues":294,"watchers":29,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/SEED-platform/seed/pulls/1009"},"html":{"href":"https://github.com/SEED-platform/seed/pull/1009"},"issue":{"href":"https://api.github.com/repos/SEED-platform/seed/issues/1009"},"comments":{"href":"https://api.github.com/repos/SEED-platform/seed/issues/1009/comments"},"review_comments":{"href":"https://api.github.com/repos/SEED-platform/seed/pulls/1009/comments"},"review_comment":{"href":"https://api.github.com/repos/SEED-platform/seed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SEED-platform/seed/pulls/1009/commits"},"statuses":{"href":"https://api.github.com/repos/SEED-platform/seed/statuses/fdf3db3cc2dbfd7249eb5b7b69a5b5b74cb21c66"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":75,"deletions":16,"changed_files":5}}
{"actor":{"display_login":"nllong"}}