{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin/pulls/comments/39821809","id":39821809,"diff_hunk":"@@ -94,6 +94,29 @@ angular.module('openshiftConsole')\n       return null;\n     };\n   })\n+  .filter('displayUniqueName', function(displayNameFilter, annotationFilter){\n+    function countNames(projects){\n+      var nameCount = {};\n+      for (var key in projects){\n+        var displayName = displayNameFilter(projects[key]);\n+        if (nameCount.hasOwnProperty(displayName)){\n+          nameCount[displayName].count += 1;\n+        }else{\n+          nameCount[displayName] = { count: 1 };\n+        }\n+      }\n+      return nameCount;\n+    }\n+    return function (resource, projects){\n+      var displayName = displayNameFilter(resource);\n+      var name = resource.metadata.name;\n+      if (countNames(projects)[displayName].count > 1 && displayName !== name){","path":"assets/app/scripts/filters/resources.js","position":29,"original_position":29,"commit_id":"994c3898165055138bd07d16f332ecd6b7ebc7f2","original_commit_id":"994c3898165055138bd07d16f332ecd6b7ebc7f2","user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"body":"`countNames(projects)[displayName] > 1`","created_at":"2015-09-18T03:38:08Z","updated_at":"2015-09-18T03:38:08Z","html_url":"https://github.com/openshift/origin/pull/4704#discussion_r39821809","pull_request_url":"https://api.github.com/repos/openshift/origin/pulls/4704","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments/39821809"},"html":{"href":"https://github.com/openshift/origin/pull/4704#discussion_r39821809"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin/pulls/4704"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/4704","id":45222774,"html_url":"https://github.com/openshift/origin/pull/4704","diff_url":"https://github.com/openshift/origin/pull/4704.diff","patch_url":"https://github.com/openshift/origin/pull/4704.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/4704","number":4704,"state":"open","locked":false,"title":"BZ1221441 - show unique project name in projects dropdown and project…","user":{"login":"rafabene","id":30131,"avatar_url":"https://avatars.githubusercontent.com/u/30131?v=3","gravatar_id":"","url":"https://api.github.com/users/rafabene","html_url":"https://github.com/rafabene","followers_url":"https://api.github.com/users/rafabene/followers","following_url":"https://api.github.com/users/rafabene/following{/other_user}","gists_url":"https://api.github.com/users/rafabene/gists{/gist_id}","starred_url":"https://api.github.com/users/rafabene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafabene/subscriptions","organizations_url":"https://api.github.com/users/rafabene/orgs","repos_url":"https://api.github.com/users/rafabene/repos","events_url":"https://api.github.com/users/rafabene/events{/privacy}","received_events_url":"https://api.github.com/users/rafabene/received_events","type":"User","site_admin":false},"body":"Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1221441","created_at":"2015-09-16T20:53:01Z","updated_at":"2015-09-18T03:38:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82d74b218d933bd57712afea4cb24b274341b7f2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/4704/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/4704/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/4704/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/994c3898165055138bd07d16f332ecd6b7ebc7f2","head":{"label":"rafabene:BZ1221441","ref":"BZ1221441","sha":"994c3898165055138bd07d16f332ecd6b7ebc7f2","user":{"login":"rafabene","id":30131,"avatar_url":"https://avatars.githubusercontent.com/u/30131?v=3","gravatar_id":"","url":"https://api.github.com/users/rafabene","html_url":"https://github.com/rafabene","followers_url":"https://api.github.com/users/rafabene/followers","following_url":"https://api.github.com/users/rafabene/following{/other_user}","gists_url":"https://api.github.com/users/rafabene/gists{/gist_id}","starred_url":"https://api.github.com/users/rafabene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafabene/subscriptions","organizations_url":"https://api.github.com/users/rafabene/orgs","repos_url":"https://api.github.com/users/rafabene/repos","events_url":"https://api.github.com/users/rafabene/events{/privacy}","received_events_url":"https://api.github.com/users/rafabene/received_events","type":"User","site_admin":false},"repo":{"id":40693768,"name":"origin","full_name":"rafabene/origin","owner":{"login":"rafabene","id":30131,"avatar_url":"https://avatars.githubusercontent.com/u/30131?v=3","gravatar_id":"","url":"https://api.github.com/users/rafabene","html_url":"https://github.com/rafabene","followers_url":"https://api.github.com/users/rafabene/followers","following_url":"https://api.github.com/users/rafabene/following{/other_user}","gists_url":"https://api.github.com/users/rafabene/gists{/gist_id}","starred_url":"https://api.github.com/users/rafabene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafabene/subscriptions","organizations_url":"https://api.github.com/users/rafabene/orgs","repos_url":"https://api.github.com/users/rafabene/repos","events_url":"https://api.github.com/users/rafabene/events{/privacy}","received_events_url":"https://api.github.com/users/rafabene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rafabene/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":true,"url":"https://api.github.com/repos/rafabene/origin","forks_url":"https://api.github.com/repos/rafabene/origin/forks","keys_url":"https://api.github.com/repos/rafabene/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rafabene/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rafabene/origin/teams","hooks_url":"https://api.github.com/repos/rafabene/origin/hooks","issue_events_url":"https://api.github.com/repos/rafabene/origin/issues/events{/number}","events_url":"https://api.github.com/repos/rafabene/origin/events","assignees_url":"https://api.github.com/repos/rafabene/origin/assignees{/user}","branches_url":"https://api.github.com/repos/rafabene/origin/branches{/branch}","tags_url":"https://api.github.com/repos/rafabene/origin/tags","blobs_url":"https://api.github.com/repos/rafabene/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rafabene/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rafabene/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/rafabene/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rafabene/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/rafabene/origin/languages","stargazers_url":"https://api.github.com/repos/rafabene/origin/stargazers","contributors_url":"https://api.github.com/repos/rafabene/origin/contributors","subscribers_url":"https://api.github.com/repos/rafabene/origin/subscribers","subscription_url":"https://api.github.com/repos/rafabene/origin/subscription","commits_url":"https://api.github.com/repos/rafabene/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/rafabene/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/rafabene/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/rafabene/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/rafabene/origin/contents/{+path}","compare_url":"https://api.github.com/repos/rafabene/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rafabene/origin/merges","archive_url":"https://api.github.com/repos/rafabene/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rafabene/origin/downloads","issues_url":"https://api.github.com/repos/rafabene/origin/issues{/number}","pulls_url":"https://api.github.com/repos/rafabene/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/rafabene/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/rafabene/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rafabene/origin/labels{/name}","releases_url":"https://api.github.com/repos/rafabene/origin/releases{/id}","created_at":"2015-08-14T03:23:24Z","updated_at":"2015-08-14T03:23:28Z","pushed_at":"2015-09-18T03:21:56Z","git_url":"git://github.com/rafabene/origin.git","ssh_url":"git@github.com:rafabene/origin.git","clone_url":"https://github.com/rafabene/origin.git","svn_url":"https://github.com/rafabene/origin","homepage":"http://www.openshift.org","size":138260,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"openshift:master","ref":"master","sha":"f0b8b74f73c94982d613779f589e87859f5e5386","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","created_at":"2014-07-30T20:04:05Z","updated_at":"2015-09-17T14:27:17Z","pushed_at":"2015-09-18T03:21:58Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":224826,"stargazers_count":684,"watchers_count":684,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":413,"mirror_url":null,"open_issues_count":539,"forks":413,"open_issues":539,"watchers":684,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/4704"},"html":{"href":"https://github.com/openshift/origin/pull/4704"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/4704"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/4704/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/4704/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/4704/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/994c3898165055138bd07d16f332ecd6b7ebc7f2"}}}}