{"action":"created","comment":{"url":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments/40590534","id":40590534,"diff_hunk":"@@ -2,51 +2,61 @@\n   'use strict';\n \n   function SessionQuestion($filter, $http) {\n+    this.SESSION_CONTENT_PATH = 'content/SessionContent.json';\n     this.rawContent = null;\n     this.currentSessionNumber = null;\n     this.content = null;\n     this.showConclusion = false;\n     this.currentIndex = 0;\n+    this.startPosition = null;\n+    this.endPosition = null;\n+\n+    var self = this;\n \n     this.setSessionContent = function(sessionNumber) {\n-      var self = this;\n       this.currentSessionNumber = sessionNumber;\n-      $http.get('content/SessionContent.json').success(function(data) {\n-        var sessionFormKey = 'session_' + sessionNumber;\n-        self.rawContent = $filter('filter')(data.sessionContent,\n-          {form: sessionFormKey});\n-        if(self.rawContent) {\n-          self.content = self.parseRedCap(self.rawContent);\n-        }\n-      });\n+      $http.get(this.SESSION_CONTENT_PATH).success(this.populateContentForSession);\n+    };\n+\n+    this.populateContentForSession = function(data) {\n+      var sessionFormKey = 'session_' + self.currentSessionNumber;\n+      self.rawContent = $filter('filter')(data.sessionContent,","path":"src/js/services/SessionQuestion.js","position":31,"original_position":31,"commit_id":"5c09a9acfab077a27cbb6158bc16343311c6b62b","original_commit_id":"5c09a9acfab077a27cbb6158bc16343311c6b62b","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"You don't need to use the `self` pattern here. `this` will work because it's not being used within a closure.","created_at":"2015-09-28T18:54:59Z","updated_at":"2015-09-28T18:54:59Z","html_url":"https://github.com/cbitstech/sis_app/pull/68#discussion_r40590534","pull_request_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments/40590534"},"html":{"href":"https://github.com/cbitstech/sis_app/pull/68#discussion_r40590534"},"pull_request":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/cbitstech/sis_app/pulls/68","id":46192230,"html_url":"https://github.com/cbitstech/sis_app/pull/68","diff_url":"https://github.com/cbitstech/sis_app/pull/68.diff","patch_url":"https://github.com/cbitstech/sis_app/pull/68.patch","issue_url":"https://api.github.com/repos/cbitstech/sis_app/issues/68","number":68,"state":"open","locked":false,"title":"Session content update","user":{"login":"eschlange","id":4666065,"avatar_url":"https://avatars.githubusercontent.com/u/4666065?v=3","gravatar_id":"","url":"https://api.github.com/users/eschlange","html_url":"https://github.com/eschlange","followers_url":"https://api.github.com/users/eschlange/followers","following_url":"https://api.github.com/users/eschlange/following{/other_user}","gists_url":"https://api.github.com/users/eschlange/gists{/gist_id}","starred_url":"https://api.github.com/users/eschlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschlange/subscriptions","organizations_url":"https://api.github.com/users/eschlange/orgs","repos_url":"https://api.github.com/users/eschlange/repos","events_url":"https://api.github.com/users/eschlange/events{/privacy}","received_events_url":"https://api.github.com/users/eschlange/received_events","type":"User","site_admin":false},"body":"* Cleaned up the new sub session view and controller.\r\n* Added logic to the session question service to handle sub sessions.\r\n* Added logic to the session controller to display an ending for sub sessions.\r\n* Updated the session content by removing an unnecessary integration point.\r\n* Moved cache specs to their own folder.\r\n* Added specs for the session controller.\r\n* Fixed issues with mocks in several controller specs.\r\n* Added spec files for cessation reason cache and service.\r\n* Added spec files for risky times cache and service.\r\n* Added spec files for social support cache and service.\r\n* Added coverage for session question service methods.\r\n* Added spec file for cessation date service.\r\n* Added configuration to run new spec files.\r\n\r\n[#104150782]","created_at":"2015-09-28T18:41:41Z","updated_at":"2015-09-28T18:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"787578ee5b7651971513e58f23d6dac714233827","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/68/commits","review_comments_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/68/comments","review_comment_url":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/issues/68/comments","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/5c09a9acfab077a27cbb6158bc16343311c6b62b","head":{"label":"cbitstech:session-content-update","ref":"session-content-update","sha":"5c09a9acfab077a27cbb6158bc16343311c6b62b","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":36821218,"name":"sis_app","full_name":"cbitstech/sis_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/sis_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/sis_app","forks_url":"https://api.github.com/repos/cbitstech/sis_app/forks","keys_url":"https://api.github.com/repos/cbitstech/sis_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/sis_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/sis_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/sis_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/sis_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/sis_app/events","assignees_url":"https://api.github.com/repos/cbitstech/sis_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/sis_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/sis_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/sis_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/sis_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/sis_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/sis_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/sis_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/sis_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/sis_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/sis_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/sis_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/sis_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/sis_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/sis_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/sis_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/sis_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/sis_app/merges","archive_url":"https://api.github.com/repos/cbitstech/sis_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/sis_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/sis_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/sis_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/sis_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/sis_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/sis_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/sis_app/releases{/id}","created_at":"2015-06-03T18:05:45Z","updated_at":"2015-06-17T18:28:40Z","pushed_at":"2015-09-28T18:41:41Z","git_url":"git://github.com/cbitstech/sis_app.git","ssh_url":"git@github.com:cbitstech/sis_app.git","clone_url":"https://github.com/cbitstech/sis_app.git","svn_url":"https://github.com/cbitstech/sis_app","homepage":null,"size":1964,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cbitstech:master","ref":"master","sha":"29cca3280930e826ef1cc7609ac93abc2d30d7ae","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":36821218,"name":"sis_app","full_name":"cbitstech/sis_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/sis_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/sis_app","forks_url":"https://api.github.com/repos/cbitstech/sis_app/forks","keys_url":"https://api.github.com/repos/cbitstech/sis_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/sis_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/sis_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/sis_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/sis_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/sis_app/events","assignees_url":"https://api.github.com/repos/cbitstech/sis_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/sis_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/sis_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/sis_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/sis_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/sis_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/sis_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/sis_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/sis_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/sis_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/sis_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/sis_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/sis_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/sis_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/sis_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/sis_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/sis_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/sis_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/sis_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/sis_app/merges","archive_url":"https://api.github.com/repos/cbitstech/sis_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/sis_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/sis_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/sis_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/sis_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/sis_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/sis_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/sis_app/releases{/id}","created_at":"2015-06-03T18:05:45Z","updated_at":"2015-06-17T18:28:40Z","pushed_at":"2015-09-28T18:41:41Z","git_url":"git://github.com/cbitstech/sis_app.git","ssh_url":"git@github.com:cbitstech/sis_app.git","clone_url":"https://github.com/cbitstech/sis_app.git","svn_url":"https://github.com/cbitstech/sis_app","homepage":null,"size":1964,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/68"},"html":{"href":"https://github.com/cbitstech/sis_app/pull/68"},"issue":{"href":"https://api.github.com/repos/cbitstech/sis_app/issues/68"},"comments":{"href":"https://api.github.com/repos/cbitstech/sis_app/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbitstech/sis_app/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/cbitstech/sis_app/statuses/5c09a9acfab077a27cbb6158bc16343311c6b62b"}}}}