{"action":"created","comment":{"url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/comments/118746962","pull_request_review_id":40571668,"id":118746962,"diff_hunk":"@@ -178,19 +178,38 @@ export class ItemLoadComponent implements OnInit {\n         this._loading = false;\n         this._serviceError = true;\n \n-        console.log(error);\n+        console.log('Error Status: ' + error.status);\n+        // console.log('Error Object: ' + error);\n+\n+        switch (error.status) {\n+          case 400:\n+          case 404: {\n+            this._errorMessage = this.getErrorMessages(error);\n+            break;\n+          }\n+          case 500: {\n+            this._errorMessage = 'Internal Server Error';\n+            break;\n+          }\n+          default: {\n+            this._errorMessage = 'Unknown Error';\n+          }\n+        }\n+    }","path":"src/app/item/item-load/item-load.component.ts","position":33,"original_position":33,"commit_id":"df930db184b467be65a446495bafcc65eb6b890b","original_commit_id":"df930db184b467be65a446495bafcc65eb6b890b","user":{"login":"bdrainer","id":4502845,"avatar_url":"https://avatars2.githubusercontent.com/u/4502845?v=3","gravatar_id":"","url":"https://api.github.com/users/bdrainer","html_url":"https://github.com/bdrainer","followers_url":"https://api.github.com/users/bdrainer/followers","following_url":"https://api.github.com/users/bdrainer/following{/other_user}","gists_url":"https://api.github.com/users/bdrainer/gists{/gist_id}","starred_url":"https://api.github.com/users/bdrainer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdrainer/subscriptions","organizations_url":"https://api.github.com/users/bdrainer/orgs","repos_url":"https://api.github.com/users/bdrainer/repos","events_url":"https://api.github.com/users/bdrainer/events{/privacy}","received_events_url":"https://api.github.com/users/bdrainer/received_events","type":"User","site_admin":false},"body":"This is really good.  Maybe we should minimize the number of status codes we return, maybe just 3, or keep in mind we need to update these status as IMS returns more.","created_at":"2017-05-26T17:03:19Z","updated_at":"2017-05-26T17:03:19Z","html_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25#discussion_r118746962","pull_request_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/comments/118746962"},"html":{"href":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25#discussion_r118746962"},"pull_request":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25","id":122550858,"html_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25","diff_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25.diff","patch_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25.patch","issue_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/25","number":25,"state":"open","locked":false,"title":"Fixes for IAT-419 and IAT-421; Several UI fixes","user":{"login":"alex-ponce","id":20801968,"avatar_url":"https://avatars1.githubusercontent.com/u/20801968?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-ponce","html_url":"https://github.com/alex-ponce","followers_url":"https://api.github.com/users/alex-ponce/followers","following_url":"https://api.github.com/users/alex-ponce/following{/other_user}","gists_url":"https://api.github.com/users/alex-ponce/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-ponce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-ponce/subscriptions","organizations_url":"https://api.github.com/users/alex-ponce/orgs","repos_url":"https://api.github.com/users/alex-ponce/repos","events_url":"https://api.github.com/users/alex-ponce/events{/privacy}","received_events_url":"https://api.github.com/users/alex-ponce/received_events","type":"User","site_admin":false},"body":"* Fix for IAT-419 \"unknown\" error displays to user during certain edit routes\r\n* Fix for IAT-421 \"Done\" button routes user to previous page instead of home\r\n* Changed header image click to a routerLink rather than a full page refresh (href)\r\n* Added / Spring Boot Request Mapping\r\n* Fixed issues with incorrect commands being executed from the \"Discard Changes\" and \"Cancel\" buttons on the ItemLoadComponent\r\n* Fixed Delete Exemplar Response UI functionality\r\n* Refactored one section in item-load-component.ts\r\n** Moved logic that renders buttons to a single section of the code file","created_at":"2017-05-26T00:11:15Z","updated_at":"2017-05-26T17:03:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce477970ce8992176b39b403c8f11c45bba43024","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rmitchell3","id":671860,"avatar_url":"https://avatars2.githubusercontent.com/u/671860?v=3","gravatar_id":"","url":"https://api.github.com/users/rmitchell3","html_url":"https://github.com/rmitchell3","followers_url":"https://api.github.com/users/rmitchell3/followers","following_url":"https://api.github.com/users/rmitchell3/following{/other_user}","gists_url":"https://api.github.com/users/rmitchell3/gists{/gist_id}","starred_url":"https://api.github.com/users/rmitchell3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmitchell3/subscriptions","organizations_url":"https://api.github.com/users/rmitchell3/orgs","repos_url":"https://api.github.com/users/rmitchell3/repos","events_url":"https://api.github.com/users/rmitchell3/events{/privacy}","received_events_url":"https://api.github.com/users/rmitchell3/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25/commits","review_comments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25/comments","review_comment_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/25/comments","statuses_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/statuses/df930db184b467be65a446495bafcc65eb6b890b","head":{"label":"SmarterApp:feature/IAT-419","ref":"feature/IAT-419","sha":"df930db184b467be65a446495bafcc65eb6b890b","user":{"login":"SmarterApp","id":7026395,"avatar_url":"https://avatars3.githubusercontent.com/u/7026395?v=3","gravatar_id":"","url":"https://api.github.com/users/SmarterApp","html_url":"https://github.com/SmarterApp","followers_url":"https://api.github.com/users/SmarterApp/followers","following_url":"https://api.github.com/users/SmarterApp/following{/other_user}","gists_url":"https://api.github.com/users/SmarterApp/gists{/gist_id}","starred_url":"https://api.github.com/users/SmarterApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmarterApp/subscriptions","organizations_url":"https://api.github.com/users/SmarterApp/orgs","repos_url":"https://api.github.com/users/SmarterApp/repos","events_url":"https://api.github.com/users/SmarterApp/events{/privacy}","received_events_url":"https://api.github.com/users/SmarterApp/received_events","type":"Organization","site_admin":false},"repo":{"id":81115889,"name":"AP_ItemAuthoringTool","full_name":"SmarterApp/AP_ItemAuthoringTool","owner":{"login":"SmarterApp","id":7026395,"avatar_url":"https://avatars3.githubusercontent.com/u/7026395?v=3","gravatar_id":"","url":"https://api.github.com/users/SmarterApp","html_url":"https://github.com/SmarterApp","followers_url":"https://api.github.com/users/SmarterApp/followers","following_url":"https://api.github.com/users/SmarterApp/following{/other_user}","gists_url":"https://api.github.com/users/SmarterApp/gists{/gist_id}","starred_url":"https://api.github.com/users/SmarterApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmarterApp/subscriptions","organizations_url":"https://api.github.com/users/SmarterApp/orgs","repos_url":"https://api.github.com/users/SmarterApp/repos","events_url":"https://api.github.com/users/SmarterApp/events{/privacy}","received_events_url":"https://api.github.com/users/SmarterApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool","description":"Web app for authoring and reviewing assessment items","fork":false,"url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool","forks_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/forks","keys_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/teams","hooks_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/hooks","issue_events_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/events{/number}","events_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/events","assignees_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/assignees{/user}","branches_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/branches{/branch}","tags_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/tags","blobs_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/statuses/{sha}","languages_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/languages","stargazers_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/stargazers","contributors_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/contributors","subscribers_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/subscribers","subscription_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/subscription","commits_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/contents/{+path}","compare_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/merges","archive_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/downloads","issues_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues{/number}","pulls_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls{/number}","milestones_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/milestones{/number}","notifications_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/labels{/name}","releases_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/releases{/id}","deployments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/deployments","created_at":"2017-02-06T18:03:19Z","updated_at":"2017-05-25T17:58:08Z","pushed_at":"2017-05-26T00:11:15Z","git_url":"git://github.com/SmarterApp/AP_ItemAuthoringTool.git","ssh_url":"git@github.com:SmarterApp/AP_ItemAuthoringTool.git","clone_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool.git","svn_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool","homepage":"","size":1104,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"SmarterApp:develop","ref":"develop","sha":"9df62b35748823037c80d0d3d62b0d47a114e192","user":{"login":"SmarterApp","id":7026395,"avatar_url":"https://avatars3.githubusercontent.com/u/7026395?v=3","gravatar_id":"","url":"https://api.github.com/users/SmarterApp","html_url":"https://github.com/SmarterApp","followers_url":"https://api.github.com/users/SmarterApp/followers","following_url":"https://api.github.com/users/SmarterApp/following{/other_user}","gists_url":"https://api.github.com/users/SmarterApp/gists{/gist_id}","starred_url":"https://api.github.com/users/SmarterApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmarterApp/subscriptions","organizations_url":"https://api.github.com/users/SmarterApp/orgs","repos_url":"https://api.github.com/users/SmarterApp/repos","events_url":"https://api.github.com/users/SmarterApp/events{/privacy}","received_events_url":"https://api.github.com/users/SmarterApp/received_events","type":"Organization","site_admin":false},"repo":{"id":81115889,"name":"AP_ItemAuthoringTool","full_name":"SmarterApp/AP_ItemAuthoringTool","owner":{"login":"SmarterApp","id":7026395,"avatar_url":"https://avatars3.githubusercontent.com/u/7026395?v=3","gravatar_id":"","url":"https://api.github.com/users/SmarterApp","html_url":"https://github.com/SmarterApp","followers_url":"https://api.github.com/users/SmarterApp/followers","following_url":"https://api.github.com/users/SmarterApp/following{/other_user}","gists_url":"https://api.github.com/users/SmarterApp/gists{/gist_id}","starred_url":"https://api.github.com/users/SmarterApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmarterApp/subscriptions","organizations_url":"https://api.github.com/users/SmarterApp/orgs","repos_url":"https://api.github.com/users/SmarterApp/repos","events_url":"https://api.github.com/users/SmarterApp/events{/privacy}","received_events_url":"https://api.github.com/users/SmarterApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool","description":"Web app for authoring and reviewing assessment items","fork":false,"url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool","forks_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/forks","keys_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/teams","hooks_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/hooks","issue_events_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/events{/number}","events_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/events","assignees_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/assignees{/user}","branches_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/branches{/branch}","tags_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/tags","blobs_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/statuses/{sha}","languages_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/languages","stargazers_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/stargazers","contributors_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/contributors","subscribers_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/subscribers","subscription_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/subscription","commits_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/comments{/number}","contents_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/contents/{+path}","compare_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/merges","archive_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/downloads","issues_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues{/number}","pulls_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls{/number}","milestones_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/milestones{/number}","notifications_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/labels{/name}","releases_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/releases{/id}","deployments_url":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/deployments","created_at":"2017-02-06T18:03:19Z","updated_at":"2017-05-25T17:58:08Z","pushed_at":"2017-05-26T00:11:15Z","git_url":"git://github.com/SmarterApp/AP_ItemAuthoringTool.git","ssh_url":"git@github.com:SmarterApp/AP_ItemAuthoringTool.git","clone_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool.git","svn_url":"https://github.com/SmarterApp/AP_ItemAuthoringTool","homepage":"","size":1104,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25"},"html":{"href":"https://github.com/SmarterApp/AP_ItemAuthoringTool/pull/25"},"issue":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/25"},"comments":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/SmarterApp/AP_ItemAuthoringTool/statuses/df930db184b467be65a446495bafcc65eb6b890b"}}}}
{"actor":{"display_login":"bdrainer"}}