{"action":"created","comment":{"url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/comments/87282310","pull_request_review_id":7901381,"id":87282310,"diff_hunk":"@@ -0,0 +1,29 @@\n+'use strict';\n+\n+var angular = require('angular');\n+var _ = require('lodash');\n+\n+angular.module('calcentral.services').factory('linkService', function() {\n+  /**\n+   * Add the back to text for external link objects\n+   */\n+  var addBackToTextToLink = function(link, backToText) {\n+    link.backToText = backToText;\n+    return link;\n+  };\n+\n+  /**\n+   * Adds the back to text to each object in a resource collection\n+   */\n+  var addBackToTextToResources = function(resources, backToText) {\n+    var addBackToTextLinkWrapper = function(resource) {","path":"src/assets/javascripts/angular/services/linkService.js","position":19,"original_position":19,"commit_id":"7924f487ade2a50e66ce3d490670ab31d7c0f03c","original_commit_id":"7924f487ade2a50e66ce3d490670ab31d7c0f03c","user":{"login":"lyttam","id":12432859,"avatar_url":"https://avatars.githubusercontent.com/u/12432859?v=3","gravatar_id":"","url":"https://api.github.com/users/lyttam","html_url":"https://github.com/lyttam","followers_url":"https://api.github.com/users/lyttam/followers","following_url":"https://api.github.com/users/lyttam/following{/other_user}","gists_url":"https://api.github.com/users/lyttam/gists{/gist_id}","starred_url":"https://api.github.com/users/lyttam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyttam/subscriptions","organizations_url":"https://api.github.com/users/lyttam/orgs","repos_url":"https://api.github.com/users/lyttam/repos","events_url":"https://api.github.com/users/lyttam/events{/privacy}","received_events_url":"https://api.github.com/users/lyttam/received_events","type":"User","site_admin":false},"body":"@redconfetti would it be more efficient to move this function def outside of `addBackToTextToResources` so that it doesn't get redefined every time `addBackToTextToResources` is called?","created_at":"2016-11-09T21:37:20Z","updated_at":"2016-11-09T21:37:20Z","html_url":"https://github.com/ets-berkeley-edu/calcentral/pull/6165#discussion_r87282310","pull_request_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165","_links":{"self":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/comments/87282310"},"html":{"href":"https://github.com/ets-berkeley-edu/calcentral/pull/6165#discussion_r87282310"},"pull_request":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165"}}},"pull_request":{"url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165","id":93042568,"html_url":"https://github.com/ets-berkeley-edu/calcentral/pull/6165","diff_url":"https://github.com/ets-berkeley-edu/calcentral/pull/6165.diff","patch_url":"https://github.com/ets-berkeley-edu/calcentral/pull/6165.patch","issue_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/6165","number":6165,"state":"open","locked":false,"title":"SISRP-28013 - 7.3: Refactor front-end to support backToText for new CS Link API","user":{"login":"redconfetti","id":746759,"avatar_url":"https://avatars.githubusercontent.com/u/746759?v=3","gravatar_id":"","url":"https://api.github.com/users/redconfetti","html_url":"https://github.com/redconfetti","followers_url":"https://api.github.com/users/redconfetti/followers","following_url":"https://api.github.com/users/redconfetti/following{/other_user}","gists_url":"https://api.github.com/users/redconfetti/gists{/gist_id}","starred_url":"https://api.github.com/users/redconfetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redconfetti/subscriptions","organizations_url":"https://api.github.com/users/redconfetti/orgs","repos_url":"https://api.github.com/users/redconfetti/repos","events_url":"https://api.github.com/users/redconfetti/events{/privacy}","received_events_url":"https://api.github.com/users/redconfetti/received_events","type":"User","site_admin":false},"body":"https://jira.berkeley.edu/browse/SISRP-28013","created_at":"2016-11-09T21:31:40Z","updated_at":"2016-11-09T21:37:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6666a168f54fccfd3b7b66852f2f5ba496b4072d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165/commits","review_comments_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165/comments","review_comment_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/6165/comments","statuses_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/statuses/7924f487ade2a50e66ce3d490670ab31d7c0f03c","head":{"label":"redconfetti:SISRP-28013","ref":"SISRP-28013","sha":"7924f487ade2a50e66ce3d490670ab31d7c0f03c","user":{"login":"redconfetti","id":746759,"avatar_url":"https://avatars.githubusercontent.com/u/746759?v=3","gravatar_id":"","url":"https://api.github.com/users/redconfetti","html_url":"https://github.com/redconfetti","followers_url":"https://api.github.com/users/redconfetti/followers","following_url":"https://api.github.com/users/redconfetti/following{/other_user}","gists_url":"https://api.github.com/users/redconfetti/gists{/gist_id}","starred_url":"https://api.github.com/users/redconfetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redconfetti/subscriptions","organizations_url":"https://api.github.com/users/redconfetti/orgs","repos_url":"https://api.github.com/users/redconfetti/repos","events_url":"https://api.github.com/users/redconfetti/events{/privacy}","received_events_url":"https://api.github.com/users/redconfetti/received_events","type":"User","site_admin":false},"repo":{"id":13281926,"name":"calcentral","full_name":"redconfetti/calcentral","owner":{"login":"redconfetti","id":746759,"avatar_url":"https://avatars.githubusercontent.com/u/746759?v=3","gravatar_id":"","url":"https://api.github.com/users/redconfetti","html_url":"https://github.com/redconfetti","followers_url":"https://api.github.com/users/redconfetti/followers","following_url":"https://api.github.com/users/redconfetti/following{/other_user}","gists_url":"https://api.github.com/users/redconfetti/gists{/gist_id}","starred_url":"https://api.github.com/users/redconfetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redconfetti/subscriptions","organizations_url":"https://api.github.com/users/redconfetti/orgs","repos_url":"https://api.github.com/users/redconfetti/repos","events_url":"https://api.github.com/users/redconfetti/events{/privacy}","received_events_url":"https://api.github.com/users/redconfetti/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/redconfetti/calcentral","description":null,"fork":true,"url":"https://api.github.com/repos/redconfetti/calcentral","forks_url":"https://api.github.com/repos/redconfetti/calcentral/forks","keys_url":"https://api.github.com/repos/redconfetti/calcentral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redconfetti/calcentral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redconfetti/calcentral/teams","hooks_url":"https://api.github.com/repos/redconfetti/calcentral/hooks","issue_events_url":"https://api.github.com/repos/redconfetti/calcentral/issues/events{/number}","events_url":"https://api.github.com/repos/redconfetti/calcentral/events","assignees_url":"https://api.github.com/repos/redconfetti/calcentral/assignees{/user}","branches_url":"https://api.github.com/repos/redconfetti/calcentral/branches{/branch}","tags_url":"https://api.github.com/repos/redconfetti/calcentral/tags","blobs_url":"https://api.github.com/repos/redconfetti/calcentral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redconfetti/calcentral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redconfetti/calcentral/git/refs{/sha}","trees_url":"https://api.github.com/repos/redconfetti/calcentral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redconfetti/calcentral/statuses/{sha}","languages_url":"https://api.github.com/repos/redconfetti/calcentral/languages","stargazers_url":"https://api.github.com/repos/redconfetti/calcentral/stargazers","contributors_url":"https://api.github.com/repos/redconfetti/calcentral/contributors","subscribers_url":"https://api.github.com/repos/redconfetti/calcentral/subscribers","subscription_url":"https://api.github.com/repos/redconfetti/calcentral/subscription","commits_url":"https://api.github.com/repos/redconfetti/calcentral/commits{/sha}","git_commits_url":"https://api.github.com/repos/redconfetti/calcentral/git/commits{/sha}","comments_url":"https://api.github.com/repos/redconfetti/calcentral/comments{/number}","issue_comment_url":"https://api.github.com/repos/redconfetti/calcentral/issues/comments{/number}","contents_url":"https://api.github.com/repos/redconfetti/calcentral/contents/{+path}","compare_url":"https://api.github.com/repos/redconfetti/calcentral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redconfetti/calcentral/merges","archive_url":"https://api.github.com/repos/redconfetti/calcentral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redconfetti/calcentral/downloads","issues_url":"https://api.github.com/repos/redconfetti/calcentral/issues{/number}","pulls_url":"https://api.github.com/repos/redconfetti/calcentral/pulls{/number}","milestones_url":"https://api.github.com/repos/redconfetti/calcentral/milestones{/number}","notifications_url":"https://api.github.com/repos/redconfetti/calcentral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redconfetti/calcentral/labels{/name}","releases_url":"https://api.github.com/repos/redconfetti/calcentral/releases{/id}","deployments_url":"https://api.github.com/repos/redconfetti/calcentral/deployments","created_at":"2013-10-02T20:26:39Z","updated_at":"2015-05-08T17:56:58Z","pushed_at":"2016-11-09T21:31:12Z","git_url":"git://github.com/redconfetti/calcentral.git","ssh_url":"git@github.com:redconfetti/calcentral.git","clone_url":"https://github.com/redconfetti/calcentral.git","svn_url":"https://github.com/redconfetti/calcentral","homepage":null,"size":24140,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ets-berkeley-edu:master","ref":"master","sha":"4aee35da48f65f9cc7e881241bff6d4e26106ebe","user":{"login":"ets-berkeley-edu","id":283538,"avatar_url":"https://avatars.githubusercontent.com/u/283538?v=3","gravatar_id":"","url":"https://api.github.com/users/ets-berkeley-edu","html_url":"https://github.com/ets-berkeley-edu","followers_url":"https://api.github.com/users/ets-berkeley-edu/followers","following_url":"https://api.github.com/users/ets-berkeley-edu/following{/other_user}","gists_url":"https://api.github.com/users/ets-berkeley-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/ets-berkeley-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ets-berkeley-edu/subscriptions","organizations_url":"https://api.github.com/users/ets-berkeley-edu/orgs","repos_url":"https://api.github.com/users/ets-berkeley-edu/repos","events_url":"https://api.github.com/users/ets-berkeley-edu/events{/privacy}","received_events_url":"https://api.github.com/users/ets-berkeley-edu/received_events","type":"Organization","site_admin":false},"repo":{"id":5483921,"name":"calcentral","full_name":"ets-berkeley-edu/calcentral","owner":{"login":"ets-berkeley-edu","id":283538,"avatar_url":"https://avatars.githubusercontent.com/u/283538?v=3","gravatar_id":"","url":"https://api.github.com/users/ets-berkeley-edu","html_url":"https://github.com/ets-berkeley-edu","followers_url":"https://api.github.com/users/ets-berkeley-edu/followers","following_url":"https://api.github.com/users/ets-berkeley-edu/following{/other_user}","gists_url":"https://api.github.com/users/ets-berkeley-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/ets-berkeley-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ets-berkeley-edu/subscriptions","organizations_url":"https://api.github.com/users/ets-berkeley-edu/orgs","repos_url":"https://api.github.com/users/ets-berkeley-edu/repos","events_url":"https://api.github.com/users/ets-berkeley-edu/events{/privacy}","received_events_url":"https://api.github.com/users/ets-berkeley-edu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ets-berkeley-edu/calcentral","description":null,"fork":false,"url":"https://api.github.com/repos/ets-berkeley-edu/calcentral","forks_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/forks","keys_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/teams","hooks_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/hooks","issue_events_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/events{/number}","events_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/events","assignees_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/assignees{/user}","branches_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/branches{/branch}","tags_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/tags","blobs_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/git/refs{/sha}","trees_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/statuses/{sha}","languages_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/languages","stargazers_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/stargazers","contributors_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/contributors","subscribers_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/subscribers","subscription_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/subscription","commits_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/commits{/sha}","git_commits_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/git/commits{/sha}","comments_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/comments{/number}","issue_comment_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/comments{/number}","contents_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/contents/{+path}","compare_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/merges","archive_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/downloads","issues_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues{/number}","pulls_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls{/number}","milestones_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/milestones{/number}","notifications_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/labels{/name}","releases_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/releases{/id}","deployments_url":"https://api.github.com/repos/ets-berkeley-edu/calcentral/deployments","created_at":"2012-08-20T16:45:39Z","updated_at":"2016-10-26T13:03:06Z","pushed_at":"2016-11-09T21:31:40Z","git_url":"git://github.com/ets-berkeley-edu/calcentral.git","ssh_url":"git@github.com:ets-berkeley-edu/calcentral.git","clone_url":"https://github.com/ets-berkeley-edu/calcentral.git","svn_url":"https://github.com/ets-berkeley-edu/calcentral","homepage":"https://calcentral.berkeley.edu","size":31042,"stargazers_count":67,"watchers_count":67,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":2,"forks":65,"open_issues":2,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165"},"html":{"href":"https://github.com/ets-berkeley-edu/calcentral/pull/6165"},"issue":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/6165"},"comments":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/issues/6165/comments"},"review_comments":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165/comments"},"review_comment":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/pulls/6165/commits"},"statuses":{"href":"https://api.github.com/repos/ets-berkeley-edu/calcentral/statuses/7924f487ade2a50e66ce3d490670ab31d7c0f03c"}}}}
{"actor":{"display_login":"lyttam"}}