{"action":"created","comment":{"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments/40214203","id":40214203,"diff_hunk":"@@ -0,0 +1,127 @@\n+module FacetPresenter\n+  extend ActiveSupport::Concern\n+\n+  protected\n+\n+  def facet_item_url(facet, item)\n+    if facet_in_params?(facet, item)\n+      search_action_url(remove_facet_params(facet, item, params))\n+    else\n+      search_action_url(add_facet_params_and_redirect(facet, item))\n+    end\n+  end\n+\n+  def facet_display(facet, show_children = false)","path":"app/views/concerns/facet_presenter.rb","position":14,"original_position":14,"commit_id":"8b17422e182c42d71a8d2e7a08d8169746086605","original_commit_id":"8b17422e182c42d71a8d2e7a08d8169746086605","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Cyclomatic complexity for facet_display is too high. [7/6]<br>Assignment Branch Condition size for facet_display is too high. [16.19/15]<br>Method has too many lines. [12/10]<br>Perceived complexity for facet_display is too high. [9/7]","created_at":"2015-09-23T15:04:24Z","updated_at":"2015-09-23T15:04:24Z","html_url":"https://github.com/europeana/europeana-channels-blacklight/pull/167#discussion_r40214203","pull_request_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167","_links":{"self":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments/40214203"},"html":{"href":"https://github.com/europeana/europeana-channels-blacklight/pull/167#discussion_r40214203"},"pull_request":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167"}}},"pull_request":{"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167","id":45787588,"html_url":"https://github.com/europeana/europeana-channels-blacklight/pull/167","diff_url":"https://github.com/europeana/europeana-channels-blacklight/pull/167.diff","patch_url":"https://github.com/europeana/europeana-channels-blacklight/pull/167.patch","issue_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/167","number":167,"state":"open","locked":false,"title":"Implement hierarchical media facets","user":{"login":"rwd","id":218337,"avatar_url":"https://avatars.githubusercontent.com/u/218337?v=3","gravatar_id":"","url":"https://api.github.com/users/rwd","html_url":"https://github.com/rwd","followers_url":"https://api.github.com/users/rwd/followers","following_url":"https://api.github.com/users/rwd/following{/other_user}","gists_url":"https://api.github.com/users/rwd/gists{/gist_id}","starred_url":"https://api.github.com/users/rwd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwd/subscriptions","organizations_url":"https://api.github.com/users/rwd/orgs","repos_url":"https://api.github.com/users/rwd/repos","events_url":"https://api.github.com/users/rwd/events{/privacy}","received_events_url":"https://api.github.com/users/rwd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-23T14:43:51Z","updated_at":"2015-09-23T15:04:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5df9725e8c06bdff901bd28297fc90ae2c4a3bcd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167/commits","review_comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167/comments","review_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/167/comments","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/8b17422e182c42d71a8d2e7a08d8169746086605","head":{"label":"europeana:feat/34-crf-facets","ref":"feat/34-crf-facets","sha":"8b17422e182c42d71a8d2e7a08d8169746086605","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":27171162,"name":"europeana-channels-blacklight","full_name":"europeana/europeana-channels-blacklight","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/europeana-channels-blacklight","description":"Europeana Channels as a Rails + Blacklight application.","fork":false,"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight","forks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/forks","keys_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/teams","hooks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/hooks","issue_events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/events","assignees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/tags","blobs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/languages","stargazers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/stargazers","contributors_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contributors","subscribers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscribers","subscription_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscription","commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/merges","archive_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/downloads","issues_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/labels{/name}","releases_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/releases{/id}","created_at":"2014-11-26T10:14:22Z","updated_at":"2015-03-16T14:59:41Z","pushed_at":"2015-09-23T15:04:16Z","git_url":"git://github.com/europeana/europeana-channels-blacklight.git","ssh_url":"git@github.com:europeana/europeana-channels-blacklight.git","clone_url":"https://github.com/europeana/europeana-channels-blacklight.git","svn_url":"https://github.com/europeana/europeana-channels-blacklight","homepage":null,"size":4265,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"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":3,"default_branch":"develop"}},"base":{"label":"europeana:develop","ref":"develop","sha":"363219f61f008ef04c91e5554244601512650620","user":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"repo":{"id":27171162,"name":"europeana-channels-blacklight","full_name":"europeana/europeana-channels-blacklight","owner":{"login":"europeana","id":4570681,"avatar_url":"https://avatars.githubusercontent.com/u/4570681?v=3","gravatar_id":"","url":"https://api.github.com/users/europeana","html_url":"https://github.com/europeana","followers_url":"https://api.github.com/users/europeana/followers","following_url":"https://api.github.com/users/europeana/following{/other_user}","gists_url":"https://api.github.com/users/europeana/gists{/gist_id}","starred_url":"https://api.github.com/users/europeana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/europeana/subscriptions","organizations_url":"https://api.github.com/users/europeana/orgs","repos_url":"https://api.github.com/users/europeana/repos","events_url":"https://api.github.com/users/europeana/events{/privacy}","received_events_url":"https://api.github.com/users/europeana/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/europeana/europeana-channels-blacklight","description":"Europeana Channels as a Rails + Blacklight application.","fork":false,"url":"https://api.github.com/repos/europeana/europeana-channels-blacklight","forks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/forks","keys_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/teams","hooks_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/hooks","issue_events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/events{/number}","events_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/events","assignees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/assignees{/user}","branches_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/branches{/branch}","tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/tags","blobs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/refs{/sha}","trees_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/{sha}","languages_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/languages","stargazers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/stargazers","contributors_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contributors","subscribers_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscribers","subscription_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/subscription","commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/commits{/sha}","git_commits_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/git/commits{/sha}","comments_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/comments{/number}","issue_comment_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/comments{/number}","contents_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/contents/{+path}","compare_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/merges","archive_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/downloads","issues_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues{/number}","pulls_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls{/number}","milestones_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/milestones{/number}","notifications_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/labels{/name}","releases_url":"https://api.github.com/repos/europeana/europeana-channels-blacklight/releases{/id}","created_at":"2014-11-26T10:14:22Z","updated_at":"2015-03-16T14:59:41Z","pushed_at":"2015-09-23T15:04:16Z","git_url":"git://github.com/europeana/europeana-channels-blacklight.git","ssh_url":"git@github.com:europeana/europeana-channels-blacklight.git","clone_url":"https://github.com/europeana/europeana-channels-blacklight.git","svn_url":"https://github.com/europeana/europeana-channels-blacklight","homepage":null,"size":4265,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":false,"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":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167"},"html":{"href":"https://github.com/europeana/europeana-channels-blacklight/pull/167"},"issue":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/167"},"comments":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/europeana/europeana-channels-blacklight/statuses/8b17422e182c42d71a8d2e7a08d8169746086605"}}}}