{"action":"created","comment":{"url":"https://api.github.com/repos/ucsdlib/damspas/pulls/comments/184715523","pull_request_review_id":115971798,"id":184715523,"diff_hunk":"@@ -882,5 +882,15 @@ def referrer_controller( request )\n         end\n       end\n     end\n+\n+  def metadata_display?(data)\n+    result = false\n+    unless data.nil?","path":"lib/dams/controller_helper.rb","position":7,"original_position":7,"commit_id":"096ba5ae6fbfdfc9d15bd7324f8f0f50f91fb361","original_commit_id":"096ba5ae6fbfdfc9d15bd7324f8f0f50f91fb361","user":{"login":"mcritchlow","id":67506,"avatar_url":"https://avatars2.githubusercontent.com/u/67506?v=4","gravatar_id":"","url":"https://api.github.com/users/mcritchlow","html_url":"https://github.com/mcritchlow","followers_url":"https://api.github.com/users/mcritchlow/followers","following_url":"https://api.github.com/users/mcritchlow/following{/other_user}","gists_url":"https://api.github.com/users/mcritchlow/gists{/gist_id}","starred_url":"https://api.github.com/users/mcritchlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcritchlow/subscriptions","organizations_url":"https://api.github.com/users/mcritchlow/orgs","repos_url":"https://api.github.com/users/mcritchlow/repos","events_url":"https://api.github.com/users/mcritchlow/events{/privacy}","received_events_url":"https://api.github.com/users/mcritchlow/received_events","type":"User","site_admin":false},"body":"I think this could be `if data` or you could drop the conditional and do a `return unless data`","created_at":"2018-04-27T15:04:29Z","updated_at":"2018-04-27T15:11:25Z","html_url":"https://github.com/ucsdlib/damspas/pull/440#discussion_r184715523","pull_request_url":"https://api.github.com/repos/ucsdlib/damspas/pulls/440","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/comments/184715523"},"html":{"href":"https://github.com/ucsdlib/damspas/pull/440#discussion_r184715523"},"pull_request":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/440"}}},"pull_request":{"url":"https://api.github.com/repos/ucsdlib/damspas/pulls/440","id":184477867,"html_url":"https://github.com/ucsdlib/damspas/pull/440","diff_url":"https://github.com/ucsdlib/damspas/pull/440.diff","patch_url":"https://github.com/ucsdlib/damspas/pull/440.patch","issue_url":"https://api.github.com/repos/ucsdlib/damspas/issues/440","number":440,"state":"open","locked":false,"title":"Feature/metadata only object","user":{"login":"VivianChu","id":1864660,"avatar_url":"https://avatars0.githubusercontent.com/u/1864660?v=4","gravatar_id":"","url":"https://api.github.com/users/VivianChu","html_url":"https://github.com/VivianChu","followers_url":"https://api.github.com/users/VivianChu/followers","following_url":"https://api.github.com/users/VivianChu/following{/other_user}","gists_url":"https://api.github.com/users/VivianChu/gists{/gist_id}","starred_url":"https://api.github.com/users/VivianChu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VivianChu/subscriptions","organizations_url":"https://api.github.com/users/VivianChu/orgs","repos_url":"https://api.github.com/users/VivianChu/repos","events_url":"https://api.github.com/users/VivianChu/events{/privacy}","received_events_url":"https://api.github.com/users/VivianChu/received_events","type":"User","site_admin":false},"body":"Fixes #413 ; refs #413\r\n\r\nAdd restricted view banner note for metadata-only object view.\r\n\r\n@ucsdlib/developers - please review\r\n","created_at":"2018-04-26T22:11:51Z","updated_at":"2018-04-27T15:11:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b787d630b557767e47dde054574e3b9b0de31d3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ucsdlib/damspas/pulls/440/commits","review_comments_url":"https://api.github.com/repos/ucsdlib/damspas/pulls/440/comments","review_comment_url":"https://api.github.com/repos/ucsdlib/damspas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ucsdlib/damspas/issues/440/comments","statuses_url":"https://api.github.com/repos/ucsdlib/damspas/statuses/096ba5ae6fbfdfc9d15bd7324f8f0f50f91fb361","head":{"label":"ucsdlib:feature/metadata_only_object","ref":"feature/metadata_only_object","sha":"096ba5ae6fbfdfc9d15bd7324f8f0f50f91fb361","user":{"login":"ucsdlib","id":2387725,"avatar_url":"https://avatars1.githubusercontent.com/u/2387725?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsdlib","html_url":"https://github.com/ucsdlib","followers_url":"https://api.github.com/users/ucsdlib/followers","following_url":"https://api.github.com/users/ucsdlib/following{/other_user}","gists_url":"https://api.github.com/users/ucsdlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsdlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsdlib/subscriptions","organizations_url":"https://api.github.com/users/ucsdlib/orgs","repos_url":"https://api.github.com/users/ucsdlib/repos","events_url":"https://api.github.com/users/ucsdlib/events{/privacy}","received_events_url":"https://api.github.com/users/ucsdlib/received_events","type":"Organization","site_admin":false},"repo":{"id":17287926,"name":"damspas","full_name":"ucsdlib/damspas","owner":{"login":"ucsdlib","id":2387725,"avatar_url":"https://avatars1.githubusercontent.com/u/2387725?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsdlib","html_url":"https://github.com/ucsdlib","followers_url":"https://api.github.com/users/ucsdlib/followers","following_url":"https://api.github.com/users/ucsdlib/following{/other_user}","gists_url":"https://api.github.com/users/ucsdlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsdlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsdlib/subscriptions","organizations_url":"https://api.github.com/users/ucsdlib/orgs","repos_url":"https://api.github.com/users/ucsdlib/repos","events_url":"https://api.github.com/users/ucsdlib/events{/privacy}","received_events_url":"https://api.github.com/users/ucsdlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsdlib/damspas","description":"UC San Diego DAMS Hydra Head","fork":false,"url":"https://api.github.com/repos/ucsdlib/damspas","forks_url":"https://api.github.com/repos/ucsdlib/damspas/forks","keys_url":"https://api.github.com/repos/ucsdlib/damspas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsdlib/damspas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsdlib/damspas/teams","hooks_url":"https://api.github.com/repos/ucsdlib/damspas/hooks","issue_events_url":"https://api.github.com/repos/ucsdlib/damspas/issues/events{/number}","events_url":"https://api.github.com/repos/ucsdlib/damspas/events","assignees_url":"https://api.github.com/repos/ucsdlib/damspas/assignees{/user}","branches_url":"https://api.github.com/repos/ucsdlib/damspas/branches{/branch}","tags_url":"https://api.github.com/repos/ucsdlib/damspas/tags","blobs_url":"https://api.github.com/repos/ucsdlib/damspas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsdlib/damspas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsdlib/damspas/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsdlib/damspas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsdlib/damspas/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsdlib/damspas/languages","stargazers_url":"https://api.github.com/repos/ucsdlib/damspas/stargazers","contributors_url":"https://api.github.com/repos/ucsdlib/damspas/contributors","subscribers_url":"https://api.github.com/repos/ucsdlib/damspas/subscribers","subscription_url":"https://api.github.com/repos/ucsdlib/damspas/subscription","commits_url":"https://api.github.com/repos/ucsdlib/damspas/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsdlib/damspas/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsdlib/damspas/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsdlib/damspas/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsdlib/damspas/contents/{+path}","compare_url":"https://api.github.com/repos/ucsdlib/damspas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsdlib/damspas/merges","archive_url":"https://api.github.com/repos/ucsdlib/damspas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsdlib/damspas/downloads","issues_url":"https://api.github.com/repos/ucsdlib/damspas/issues{/number}","pulls_url":"https://api.github.com/repos/ucsdlib/damspas/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsdlib/damspas/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsdlib/damspas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsdlib/damspas/labels{/name}","releases_url":"https://api.github.com/repos/ucsdlib/damspas/releases{/id}","deployments_url":"https://api.github.com/repos/ucsdlib/damspas/deployments","created_at":"2014-02-28T14:07:19Z","updated_at":"2018-04-26T22:40:54Z","pushed_at":"2018-04-26T22:40:54Z","git_url":"git://github.com/ucsdlib/damspas.git","ssh_url":"git@github.com:ucsdlib/damspas.git","clone_url":"https://github.com/ucsdlib/damspas.git","svn_url":"https://github.com/ucsdlib/damspas","homepage":null,"size":36111,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":4,"open_issues":39,"watchers":5,"default_branch":"develop"}},"base":{"label":"ucsdlib:develop","ref":"develop","sha":"84da5817389f23b968b1073145bed2ef06deaf71","user":{"login":"ucsdlib","id":2387725,"avatar_url":"https://avatars1.githubusercontent.com/u/2387725?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsdlib","html_url":"https://github.com/ucsdlib","followers_url":"https://api.github.com/users/ucsdlib/followers","following_url":"https://api.github.com/users/ucsdlib/following{/other_user}","gists_url":"https://api.github.com/users/ucsdlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsdlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsdlib/subscriptions","organizations_url":"https://api.github.com/users/ucsdlib/orgs","repos_url":"https://api.github.com/users/ucsdlib/repos","events_url":"https://api.github.com/users/ucsdlib/events{/privacy}","received_events_url":"https://api.github.com/users/ucsdlib/received_events","type":"Organization","site_admin":false},"repo":{"id":17287926,"name":"damspas","full_name":"ucsdlib/damspas","owner":{"login":"ucsdlib","id":2387725,"avatar_url":"https://avatars1.githubusercontent.com/u/2387725?v=4","gravatar_id":"","url":"https://api.github.com/users/ucsdlib","html_url":"https://github.com/ucsdlib","followers_url":"https://api.github.com/users/ucsdlib/followers","following_url":"https://api.github.com/users/ucsdlib/following{/other_user}","gists_url":"https://api.github.com/users/ucsdlib/gists{/gist_id}","starred_url":"https://api.github.com/users/ucsdlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucsdlib/subscriptions","organizations_url":"https://api.github.com/users/ucsdlib/orgs","repos_url":"https://api.github.com/users/ucsdlib/repos","events_url":"https://api.github.com/users/ucsdlib/events{/privacy}","received_events_url":"https://api.github.com/users/ucsdlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ucsdlib/damspas","description":"UC San Diego DAMS Hydra Head","fork":false,"url":"https://api.github.com/repos/ucsdlib/damspas","forks_url":"https://api.github.com/repos/ucsdlib/damspas/forks","keys_url":"https://api.github.com/repos/ucsdlib/damspas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ucsdlib/damspas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ucsdlib/damspas/teams","hooks_url":"https://api.github.com/repos/ucsdlib/damspas/hooks","issue_events_url":"https://api.github.com/repos/ucsdlib/damspas/issues/events{/number}","events_url":"https://api.github.com/repos/ucsdlib/damspas/events","assignees_url":"https://api.github.com/repos/ucsdlib/damspas/assignees{/user}","branches_url":"https://api.github.com/repos/ucsdlib/damspas/branches{/branch}","tags_url":"https://api.github.com/repos/ucsdlib/damspas/tags","blobs_url":"https://api.github.com/repos/ucsdlib/damspas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ucsdlib/damspas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ucsdlib/damspas/git/refs{/sha}","trees_url":"https://api.github.com/repos/ucsdlib/damspas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ucsdlib/damspas/statuses/{sha}","languages_url":"https://api.github.com/repos/ucsdlib/damspas/languages","stargazers_url":"https://api.github.com/repos/ucsdlib/damspas/stargazers","contributors_url":"https://api.github.com/repos/ucsdlib/damspas/contributors","subscribers_url":"https://api.github.com/repos/ucsdlib/damspas/subscribers","subscription_url":"https://api.github.com/repos/ucsdlib/damspas/subscription","commits_url":"https://api.github.com/repos/ucsdlib/damspas/commits{/sha}","git_commits_url":"https://api.github.com/repos/ucsdlib/damspas/git/commits{/sha}","comments_url":"https://api.github.com/repos/ucsdlib/damspas/comments{/number}","issue_comment_url":"https://api.github.com/repos/ucsdlib/damspas/issues/comments{/number}","contents_url":"https://api.github.com/repos/ucsdlib/damspas/contents/{+path}","compare_url":"https://api.github.com/repos/ucsdlib/damspas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ucsdlib/damspas/merges","archive_url":"https://api.github.com/repos/ucsdlib/damspas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ucsdlib/damspas/downloads","issues_url":"https://api.github.com/repos/ucsdlib/damspas/issues{/number}","pulls_url":"https://api.github.com/repos/ucsdlib/damspas/pulls{/number}","milestones_url":"https://api.github.com/repos/ucsdlib/damspas/milestones{/number}","notifications_url":"https://api.github.com/repos/ucsdlib/damspas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ucsdlib/damspas/labels{/name}","releases_url":"https://api.github.com/repos/ucsdlib/damspas/releases{/id}","deployments_url":"https://api.github.com/repos/ucsdlib/damspas/deployments","created_at":"2014-02-28T14:07:19Z","updated_at":"2018-04-26T22:40:54Z","pushed_at":"2018-04-26T22:40:54Z","git_url":"git://github.com/ucsdlib/damspas.git","ssh_url":"git@github.com:ucsdlib/damspas.git","clone_url":"https://github.com/ucsdlib/damspas.git","svn_url":"https://github.com/ucsdlib/damspas","homepage":null,"size":36111,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":4,"open_issues":39,"watchers":5,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/440"},"html":{"href":"https://github.com/ucsdlib/damspas/pull/440"},"issue":{"href":"https://api.github.com/repos/ucsdlib/damspas/issues/440"},"comments":{"href":"https://api.github.com/repos/ucsdlib/damspas/issues/440/comments"},"review_comments":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/440/comments"},"review_comment":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ucsdlib/damspas/pulls/440/commits"},"statuses":{"href":"https://api.github.com/repos/ucsdlib/damspas/statuses/096ba5ae6fbfdfc9d15bd7324f8f0f50f91fb361"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mcritchlow"}}