{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/85346378","pull_request_review_id":6067888,"id":85346378,"diff_hunk":"@@ -0,0 +1,38 @@\n+describe ApplicationHelper::Button::MiqAeClassCopy do\n+  let(:session) { Hash.new }\n+  let(:view_context) { setup_view_context_with_sandbox({}) }\n+\n+  before do\n+    Tenant.seed","path":"spec/helpers/application_helper/buttons/miq_ae_class_copy_spec.rb","position":6,"original_position":6,"commit_id":"2f91ef63878085a3de38d409ffd56c30592b854e","original_commit_id":"2f91ef63878085a3de38d409ffd56c30592b854e","user":{"login":"vecerek","id":5737996,"avatar_url":"https://avatars.githubusercontent.com/u/5737996?v=3","gravatar_id":"","url":"https://api.github.com/users/vecerek","html_url":"https://github.com/vecerek","followers_url":"https://api.github.com/users/vecerek/followers","following_url":"https://api.github.com/users/vecerek/following{/other_user}","gists_url":"https://api.github.com/users/vecerek/gists{/gist_id}","starred_url":"https://api.github.com/users/vecerek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vecerek/subscriptions","organizations_url":"https://api.github.com/users/vecerek/orgs","repos_url":"https://api.github.com/users/vecerek/repos","events_url":"https://api.github.com/users/vecerek/events{/privacy}","received_events_url":"https://api.github.com/users/vecerek/received_events","type":"User","site_admin":false},"body":"You're right, there's no need to seed Tenant.","created_at":"2016-10-27T14:18:57Z","updated_at":"2016-10-27T14:18:57Z","html_url":"https://github.com/ManageIQ/manageiq/pull/12208#discussion_r85346378","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/85346378"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/12208#discussion_r85346378"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208","id":91029340,"html_url":"https://github.com/ManageIQ/manageiq/pull/12208","diff_url":"https://github.com/ManageIQ/manageiq/pull/12208.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/12208.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12208","number":12208,"state":"open","locked":false,"title":"Toolbar refactoring  Miq Automate buttons","user":{"login":"vecerek","id":5737996,"avatar_url":"https://avatars.githubusercontent.com/u/5737996?v=3","gravatar_id":"","url":"https://api.github.com/users/vecerek","html_url":"https://github.com/vecerek","followers_url":"https://api.github.com/users/vecerek/followers","following_url":"https://api.github.com/users/vecerek/following{/other_user}","gists_url":"https://api.github.com/users/vecerek/gists{/gist_id}","starred_url":"https://api.github.com/users/vecerek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vecerek/subscriptions","organizations_url":"https://api.github.com/users/vecerek/orgs","repos_url":"https://api.github.com/users/vecerek/repos","events_url":"https://api.github.com/users/vecerek/events{/privacy}","received_events_url":"https://api.github.com/users/vecerek/received_events","type":"User","site_admin":false},"body":"@romanblanco @PanSpagetka @martinpovolny  \r\nRefactored MiqAe buttons. Removed their occurrences from hide and disable methods of toolbar_builder. Further, specs have been added for thorough testing and the AuthHelper has been included to be able to log in various users during tests. I also deleted the mentions of ``` miq_ae_namespace_copy ```, since there is not button with such name in any of the toolbars.\r\n\r\n| Toolbar buttons id  | Toolbar button class created |\r\n| ------------- | ------------- |\r\n| ------- | MiqAe < Basic |\r\n| ------- | MiqAeDomain < MiqAe |\r\n| miq_ae_domain_lock  | MiqAeDomainLock < MiqAeDomain |\r\n| miq_ae_domain_unlock  | MiqAeDomainUnLock < MiqAeDomain |\r\n| miq_ae_domain_edit  | MiqAeDomainEdit < MiqAeDomain |\r\n| miq_ae_domain_delete  | MiqAeDomainDelete < MiqAeDomainEdit |\r\n| miq_ae_namespace_edit  | MiqAeNamespaceEdit < MiqAeDomainLock |\r\n| miq_ae_class_copy  | MiqAeClassCopy < MiqAe |\r\n| miq_ae_instance_copy, miq_ae_method_copy  | MiqAeInstanceCopy < MiqAe |\r\n| miq_ae_git_refresh  | MiqAeGitRefresh < MiqAeDomain |\r\n| miq_ae_class_new, miq_ae_class_edit, miq_ae_class_delete, miq_ae_namespace_new, miq_ae_domain_new, miq_ae_field_edit, miq_ae_field_seq, miq_ae_instance_new, miq_ae_instance_edit, miq_ae_method_new, miq_ae_method_edit,   | MiqAeDomainDefault < MiqAeDomain |\r\n\r\n\r\nLinks\r\n====\r\nParent issue: #6259\r\nRelated issue: #6554\r\nPivotal Tracker: https://www.pivotaltracker.com/story/show/126783649","created_at":"2016-10-26T15:31:26Z","updated_at":"2016-10-27T14:18:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e40ec99002f9e1cb505bfc44c69a34ef8b937aa","assignee":{"login":"romanblanco","id":1187051,"avatar_url":"https://avatars.githubusercontent.com/u/1187051?v=3","gravatar_id":"","url":"https://api.github.com/users/romanblanco","html_url":"https://github.com/romanblanco","followers_url":"https://api.github.com/users/romanblanco/followers","following_url":"https://api.github.com/users/romanblanco/following{/other_user}","gists_url":"https://api.github.com/users/romanblanco/gists{/gist_id}","starred_url":"https://api.github.com/users/romanblanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanblanco/subscriptions","organizations_url":"https://api.github.com/users/romanblanco/orgs","repos_url":"https://api.github.com/users/romanblanco/repos","events_url":"https://api.github.com/users/romanblanco/events{/privacy}","received_events_url":"https://api.github.com/users/romanblanco/received_events","type":"User","site_admin":false},"assignees":[{"login":"romanblanco","id":1187051,"avatar_url":"https://avatars.githubusercontent.com/u/1187051?v=3","gravatar_id":"","url":"https://api.github.com/users/romanblanco","html_url":"https://github.com/romanblanco","followers_url":"https://api.github.com/users/romanblanco/followers","following_url":"https://api.github.com/users/romanblanco/following{/other_user}","gists_url":"https://api.github.com/users/romanblanco/gists{/gist_id}","starred_url":"https://api.github.com/users/romanblanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanblanco/subscriptions","organizations_url":"https://api.github.com/users/romanblanco/orgs","repos_url":"https://api.github.com/users/romanblanco/repos","events_url":"https://api.github.com/users/romanblanco/events{/privacy}","received_events_url":"https://api.github.com/users/romanblanco/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12208/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/2f91ef63878085a3de38d409ffd56c30592b854e","head":{"label":"vecerek:toolbar_refactoring__automate","ref":"toolbar_refactoring__automate","sha":"2f91ef63878085a3de38d409ffd56c30592b854e","user":{"login":"vecerek","id":5737996,"avatar_url":"https://avatars.githubusercontent.com/u/5737996?v=3","gravatar_id":"","url":"https://api.github.com/users/vecerek","html_url":"https://github.com/vecerek","followers_url":"https://api.github.com/users/vecerek/followers","following_url":"https://api.github.com/users/vecerek/following{/other_user}","gists_url":"https://api.github.com/users/vecerek/gists{/gist_id}","starred_url":"https://api.github.com/users/vecerek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vecerek/subscriptions","organizations_url":"https://api.github.com/users/vecerek/orgs","repos_url":"https://api.github.com/users/vecerek/repos","events_url":"https://api.github.com/users/vecerek/events{/privacy}","received_events_url":"https://api.github.com/users/vecerek/received_events","type":"User","site_admin":false},"repo":{"id":69867019,"name":"manageiq","full_name":"vecerek/manageiq","owner":{"login":"vecerek","id":5737996,"avatar_url":"https://avatars.githubusercontent.com/u/5737996?v=3","gravatar_id":"","url":"https://api.github.com/users/vecerek","html_url":"https://github.com/vecerek","followers_url":"https://api.github.com/users/vecerek/followers","following_url":"https://api.github.com/users/vecerek/following{/other_user}","gists_url":"https://api.github.com/users/vecerek/gists{/gist_id}","starred_url":"https://api.github.com/users/vecerek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vecerek/subscriptions","organizations_url":"https://api.github.com/users/vecerek/orgs","repos_url":"https://api.github.com/users/vecerek/repos","events_url":"https://api.github.com/users/vecerek/events{/privacy}","received_events_url":"https://api.github.com/users/vecerek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vecerek/manageiq","description":"ManageIQ Open-Source Management Platform","fork":true,"url":"https://api.github.com/repos/vecerek/manageiq","forks_url":"https://api.github.com/repos/vecerek/manageiq/forks","keys_url":"https://api.github.com/repos/vecerek/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vecerek/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vecerek/manageiq/teams","hooks_url":"https://api.github.com/repos/vecerek/manageiq/hooks","issue_events_url":"https://api.github.com/repos/vecerek/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/vecerek/manageiq/events","assignees_url":"https://api.github.com/repos/vecerek/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/vecerek/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/vecerek/manageiq/tags","blobs_url":"https://api.github.com/repos/vecerek/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vecerek/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vecerek/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/vecerek/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vecerek/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/vecerek/manageiq/languages","stargazers_url":"https://api.github.com/repos/vecerek/manageiq/stargazers","contributors_url":"https://api.github.com/repos/vecerek/manageiq/contributors","subscribers_url":"https://api.github.com/repos/vecerek/manageiq/subscribers","subscription_url":"https://api.github.com/repos/vecerek/manageiq/subscription","commits_url":"https://api.github.com/repos/vecerek/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/vecerek/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/vecerek/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/vecerek/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/vecerek/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/vecerek/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vecerek/manageiq/merges","archive_url":"https://api.github.com/repos/vecerek/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vecerek/manageiq/downloads","issues_url":"https://api.github.com/repos/vecerek/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/vecerek/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/vecerek/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/vecerek/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vecerek/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/vecerek/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/vecerek/manageiq/deployments","created_at":"2016-10-03T12:06:51Z","updated_at":"2016-10-03T12:07:14Z","pushed_at":"2016-10-27T14:12:13Z","git_url":"git://github.com/vecerek/manageiq.git","ssh_url":"git@github.com:vecerek/manageiq.git","clone_url":"https://github.com/vecerek/manageiq.git","svn_url":"https://github.com/vecerek/manageiq","homepage":"manageiq.org","size":170159,"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":"809ab09495e30db774f2d2784567314d571ec3c6","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-10-22T19:11:09Z","pushed_at":"2016-10-27T14:16:23Z","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":217379,"stargazers_count":340,"watchers_count":340,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":372,"mirror_url":null,"open_issues_count":830,"forks":372,"open_issues":830,"watchers":340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/12208"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/12208"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/12208/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12208/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/2f91ef63878085a3de38d409ffd56c30592b854e"}}}}
{"actor":{"display_login":"vecerek"}}