{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/comments/69267970","id":69267970,"diff_hunk":"@@ -124,8 +122,26 @@ trait DeductionsController extends FeatureLock {\n   }\n \n   //################# Allowable Losses Actions #########################\n-  val allowableLosses = Action.async { implicit request =>\n-    Future.successful(Ok(views.allowableLosses()))\n+  val allowableLosses = FeatureLockForRTT.async { implicit request =>\n+    calcConnector.fetchAndGetFormData[AllowableLossesModel](KeystoreKeys.ResidentKeys.allowableLosses).map {\n+      case Some(data) => Ok(views.allowableLosses(allowableLossesForm.fill(data)))\n+      case None => Ok(views.allowableLosses(allowableLossesForm))\n+    }\n+  }\n+\n+  val submitAllowableLosses = Action.async { implicit request =>","path":"app/controllers/resident/DeductionsController.scala","position":46,"original_position":46,"commit_id":"9b49895f98a0af3e0738c7ae2433e2e347008364","original_commit_id":"9b49895f98a0af3e0738c7ae2433e2e347008364","user":{"login":"macgrewal","id":7713555,"avatar_url":"https://avatars.githubusercontent.com/u/7713555?v=3","gravatar_id":"","url":"https://api.github.com/users/macgrewal","html_url":"https://github.com/macgrewal","followers_url":"https://api.github.com/users/macgrewal/followers","following_url":"https://api.github.com/users/macgrewal/following{/other_user}","gists_url":"https://api.github.com/users/macgrewal/gists{/gist_id}","starred_url":"https://api.github.com/users/macgrewal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgrewal/subscriptions","organizations_url":"https://api.github.com/users/macgrewal/orgs","repos_url":"https://api.github.com/users/macgrewal/repos","events_url":"https://api.github.com/users/macgrewal/events{/privacy}","received_events_url":"https://api.github.com/users/macgrewal/received_events","type":"User","site_admin":false},"body":"Yes","created_at":"2016-07-01T08:45:58Z","updated_at":"2016-07-01T08:45:58Z","html_url":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317#discussion_r69267970","pull_request_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317","_links":{"self":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/comments/69267970"},"html":{"href":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317#discussion_r69267970"},"pull_request":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317"}}},"pull_request":{"url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317","id":75908554,"html_url":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317","diff_url":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317.diff","patch_url":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317.patch","issue_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/317","number":317,"state":"open","locked":false,"title":"Added content and functionality for Allowable Losses ","user":{"login":"macgrewal","id":7713555,"avatar_url":"https://avatars.githubusercontent.com/u/7713555?v=3","gravatar_id":"","url":"https://api.github.com/users/macgrewal","html_url":"https://github.com/macgrewal","followers_url":"https://api.github.com/users/macgrewal/followers","following_url":"https://api.github.com/users/macgrewal/following{/other_user}","gists_url":"https://api.github.com/users/macgrewal/gists{/gist_id}","starred_url":"https://api.github.com/users/macgrewal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgrewal/subscriptions","organizations_url":"https://api.github.com/users/macgrewal/orgs","repos_url":"https://api.github.com/users/macgrewal/repos","events_url":"https://api.github.com/users/macgrewal/events{/privacy}","received_events_url":"https://api.github.com/users/macgrewal/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-30T23:50:37Z","updated_at":"2016-07-01T08:45:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28ca64a88ce8918f8765894f5039f1baff19e5ed","assignee":{"login":"DavidWoodward37","id":16402038,"avatar_url":"https://avatars.githubusercontent.com/u/16402038?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidWoodward37","html_url":"https://github.com/DavidWoodward37","followers_url":"https://api.github.com/users/DavidWoodward37/followers","following_url":"https://api.github.com/users/DavidWoodward37/following{/other_user}","gists_url":"https://api.github.com/users/DavidWoodward37/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidWoodward37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidWoodward37/subscriptions","organizations_url":"https://api.github.com/users/DavidWoodward37/orgs","repos_url":"https://api.github.com/users/DavidWoodward37/repos","events_url":"https://api.github.com/users/DavidWoodward37/events{/privacy}","received_events_url":"https://api.github.com/users/DavidWoodward37/received_events","type":"User","site_admin":false},"assignees":[{"login":"DavidWoodward37","id":16402038,"avatar_url":"https://avatars.githubusercontent.com/u/16402038?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidWoodward37","html_url":"https://github.com/DavidWoodward37","followers_url":"https://api.github.com/users/DavidWoodward37/followers","following_url":"https://api.github.com/users/DavidWoodward37/following{/other_user}","gists_url":"https://api.github.com/users/DavidWoodward37/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidWoodward37/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidWoodward37/subscriptions","organizations_url":"https://api.github.com/users/DavidWoodward37/orgs","repos_url":"https://api.github.com/users/DavidWoodward37/repos","events_url":"https://api.github.com/users/DavidWoodward37/events{/privacy}","received_events_url":"https://api.github.com/users/DavidWoodward37/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317/commits","review_comments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317/comments","review_comment_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/317/comments","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/statuses/9b49895f98a0af3e0738c7ae2433e2e347008364","head":{"label":"hmrc:CGT-1320","ref":"CGT-1320","sha":"9b49895f98a0af3e0738c7ae2433e2e347008364","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":53857643,"name":"capital-gains-calculator-frontend","full_name":"hmrc/capital-gains-calculator-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/capital-gains-calculator-frontend","description":"","fork":false,"url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend","forks_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/deployments","created_at":"2016-03-14T13:18:41Z","updated_at":"2016-03-15T14:12:30Z","pushed_at":"2016-06-30T23:50:37Z","git_url":"git://github.com/hmrc/capital-gains-calculator-frontend.git","ssh_url":"git@github.com:hmrc/capital-gains-calculator-frontend.git","clone_url":"https://github.com/hmrc/capital-gains-calculator-frontend.git","svn_url":"https://github.com/hmrc/capital-gains-calculator-frontend","homepage":"","size":1536,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"hmrc:master","ref":"master","sha":"7765363e33c04adf1159f91db5fb4a1ecd8efbd1","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":53857643,"name":"capital-gains-calculator-frontend","full_name":"hmrc/capital-gains-calculator-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/capital-gains-calculator-frontend","description":"","fork":false,"url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend","forks_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/deployments","created_at":"2016-03-14T13:18:41Z","updated_at":"2016-03-15T14:12:30Z","pushed_at":"2016-06-30T23:50:37Z","git_url":"git://github.com/hmrc/capital-gains-calculator-frontend.git","ssh_url":"git@github.com:hmrc/capital-gains-calculator-frontend.git","clone_url":"https://github.com/hmrc/capital-gains-calculator-frontend.git","svn_url":"https://github.com/hmrc/capital-gains-calculator-frontend","homepage":"","size":1536,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317"},"html":{"href":"https://github.com/hmrc/capital-gains-calculator-frontend/pull/317"},"issue":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/317"},"comments":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/issues/317/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/pulls/317/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/capital-gains-calculator-frontend/statuses/9b49895f98a0af3e0738c7ae2433e2e347008364"}}}}
{"actor":{"display_login":"macgrewal"}}