{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/91689090","pull_request_review_id":12199385,"id":91689090,"diff_hunk":"@@ -1,35 +1,21 @@\n class TreeNodeBuilderBelongsToHac < TreeNodeBuilder\n-  def ext_management_system_node\n-    super\n-    @node[:select] = options[:selected].include?(\"#{object.class.name}_#{object[:id]}\")\n-  end\n-\n-  def host_node(object)\n-    super\n-    @node[:hideCheckbox] = true\n-  end\n-\n-  def cluster_node\n-    super\n-    @node[:select] = options.key?(:selected) && options[:selected].include?(\"EmsCluster_#{object[:id]}\")\n-  end\n \n-  def ems_folder_node\n+  def generic_node(text, image, tip = nil)\n     super\n-    if object.kind_of?(Datacenter)\n+    case","path":"app/presenters/tree_node_builder_belongs_to_hac.rb","position":null,"original_position":21,"commit_id":"131035df68982ee56df2262258961fa219735087","original_commit_id":"131035df68982ee56df2262258961fa219735087","user":{"login":"skateman","id":649130,"avatar_url":"https://avatars.githubusercontent.com/u/649130?v=3","gravatar_id":"","url":"https://api.github.com/users/skateman","html_url":"https://github.com/skateman","followers_url":"https://api.github.com/users/skateman/followers","following_url":"https://api.github.com/users/skateman/following{/other_user}","gists_url":"https://api.github.com/users/skateman/gists{/gist_id}","starred_url":"https://api.github.com/users/skateman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skateman/subscriptions","organizations_url":"https://api.github.com/users/skateman/orgs","repos_url":"https://api.github.com/users/skateman/repos","events_url":"https://api.github.com/users/skateman/events{/privacy}","received_events_url":"https://api.github.com/users/skateman/received_events","type":"User","site_admin":false},"body":"```\r\ncase object\r\nwhen ExtManagementSystem\r\n...\r\nwhen Host\r\n...\r\n```","created_at":"2016-12-09T10:10:06Z","updated_at":"2016-12-09T10:10:06Z","html_url":"https://github.com/ManageIQ/manageiq/pull/11271#discussion_r91689090","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/91689090"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/11271#discussion_r91689090"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271","id":85385324,"html_url":"https://github.com/ManageIQ/manageiq/pull/11271","diff_url":"https://github.com/ManageIQ/manageiq/pull/11271.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/11271.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/11271","number":11271,"state":"open","locked":false,"title":"Convert belongsto_tree to use TreeBuilder","user":{"login":"ZitaNemeckova","id":9210860,"avatar_url":"https://avatars.githubusercontent.com/u/9210860?v=3","gravatar_id":"","url":"https://api.github.com/users/ZitaNemeckova","html_url":"https://github.com/ZitaNemeckova","followers_url":"https://api.github.com/users/ZitaNemeckova/followers","following_url":"https://api.github.com/users/ZitaNemeckova/following{/other_user}","gists_url":"https://api.github.com/users/ZitaNemeckova/gists{/gist_id}","starred_url":"https://api.github.com/users/ZitaNemeckova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZitaNemeckova/subscriptions","organizations_url":"https://api.github.com/users/ZitaNemeckova/orgs","repos_url":"https://api.github.com/users/ZitaNemeckova/repos","events_url":"https://api.github.com/users/ZitaNemeckova/events{/privacy}","received_events_url":"https://api.github.com/users/ZitaNemeckova/received_events","type":"User","site_admin":false},"body":"Convert `belongsto_tree` to use TreeBuilder.\r\n\r\nRead only:\r\nConfiguration -> Access Control -> Choose a group -> Hosts/Nodes & Clusters/ Deployment Roles\r\nConfiguration -> Access Control -> Choose a group -> VMs & Templates \r\nEdit:\r\nConfiguration -> Access Control -> Choose a group -> Configuration -> Edit this Group\r\n\r\nBefore/After: Should be same\r\n\r\n@miq-bot add_label technical debt, ui, wip\r\n\r\nTODO:\r\n- [x] Save/ Reset\r\n- [x] Selected\r\n- [x] Edit/ Read only\r\n- [x] tree in `alert_profiles`\r\n","created_at":"2016-09-15T11:14:44Z","updated_at":"2016-12-09T10:10:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"931019c63f08fca90cc2f87ff0b11f414615509c","assignee":{"login":"martinpovolny","id":51095,"avatar_url":"https://avatars.githubusercontent.com/u/51095?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpovolny","html_url":"https://github.com/martinpovolny","followers_url":"https://api.github.com/users/martinpovolny/followers","following_url":"https://api.github.com/users/martinpovolny/following{/other_user}","gists_url":"https://api.github.com/users/martinpovolny/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpovolny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpovolny/subscriptions","organizations_url":"https://api.github.com/users/martinpovolny/orgs","repos_url":"https://api.github.com/users/martinpovolny/repos","events_url":"https://api.github.com/users/martinpovolny/events{/privacy}","received_events_url":"https://api.github.com/users/martinpovolny/received_events","type":"User","site_admin":false},"assignees":[{"login":"martinpovolny","id":51095,"avatar_url":"https://avatars.githubusercontent.com/u/51095?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpovolny","html_url":"https://github.com/martinpovolny","followers_url":"https://api.github.com/users/martinpovolny/followers","following_url":"https://api.github.com/users/martinpovolny/following{/other_user}","gists_url":"https://api.github.com/users/martinpovolny/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpovolny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpovolny/subscriptions","organizations_url":"https://api.github.com/users/martinpovolny/orgs","repos_url":"https://api.github.com/users/martinpovolny/repos","events_url":"https://api.github.com/users/martinpovolny/events{/privacy}","received_events_url":"https://api.github.com/users/martinpovolny/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/11271/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/131035df68982ee56df2262258961fa219735087","head":{"label":"ZitaNemeckova:belongsto_tree","ref":"belongsto_tree","sha":"131035df68982ee56df2262258961fa219735087","user":{"login":"ZitaNemeckova","id":9210860,"avatar_url":"https://avatars.githubusercontent.com/u/9210860?v=3","gravatar_id":"","url":"https://api.github.com/users/ZitaNemeckova","html_url":"https://github.com/ZitaNemeckova","followers_url":"https://api.github.com/users/ZitaNemeckova/followers","following_url":"https://api.github.com/users/ZitaNemeckova/following{/other_user}","gists_url":"https://api.github.com/users/ZitaNemeckova/gists{/gist_id}","starred_url":"https://api.github.com/users/ZitaNemeckova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZitaNemeckova/subscriptions","organizations_url":"https://api.github.com/users/ZitaNemeckova/orgs","repos_url":"https://api.github.com/users/ZitaNemeckova/repos","events_url":"https://api.github.com/users/ZitaNemeckova/events{/privacy}","received_events_url":"https://api.github.com/users/ZitaNemeckova/received_events","type":"User","site_admin":false},"repo":{"id":51763143,"name":"manageiq","full_name":"ZitaNemeckova/manageiq","owner":{"login":"ZitaNemeckova","id":9210860,"avatar_url":"https://avatars.githubusercontent.com/u/9210860?v=3","gravatar_id":"","url":"https://api.github.com/users/ZitaNemeckova","html_url":"https://github.com/ZitaNemeckova","followers_url":"https://api.github.com/users/ZitaNemeckova/followers","following_url":"https://api.github.com/users/ZitaNemeckova/following{/other_user}","gists_url":"https://api.github.com/users/ZitaNemeckova/gists{/gist_id}","starred_url":"https://api.github.com/users/ZitaNemeckova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZitaNemeckova/subscriptions","organizations_url":"https://api.github.com/users/ZitaNemeckova/orgs","repos_url":"https://api.github.com/users/ZitaNemeckova/repos","events_url":"https://api.github.com/users/ZitaNemeckova/events{/privacy}","received_events_url":"https://api.github.com/users/ZitaNemeckova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZitaNemeckova/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/ZitaNemeckova/manageiq","forks_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/forks","keys_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/teams","hooks_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/events","assignees_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/tags","blobs_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/languages","stargazers_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/subscription","commits_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/merges","archive_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/downloads","issues_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ZitaNemeckova/manageiq/deployments","created_at":"2016-02-15T15:02:51Z","updated_at":"2016-02-15T15:03:09Z","pushed_at":"2016-12-09T09:56:56Z","git_url":"git://github.com/ZitaNemeckova/manageiq.git","ssh_url":"git@github.com:ZitaNemeckova/manageiq.git","clone_url":"https://github.com/ZitaNemeckova/manageiq.git","svn_url":"https://github.com/ZitaNemeckova/manageiq","homepage":"manageiq.org","size":180033,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ManageIQ:master","ref":"master","sha":"1eafadd79813e7472d12fca8842fa12ac60bd6ee","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-12-06T23:28:57Z","pushed_at":"2016-12-09T10:08:31Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":231338,"stargazers_count":362,"watchers_count":362,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":393,"mirror_url":null,"open_issues_count":889,"forks":393,"open_issues":889,"watchers":362,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/11271"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/11271"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/11271/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/11271/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/131035df68982ee56df2262258961fa219735087"}}}}
{"actor":{"display_login":"skateman"}}