{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2928","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2928/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2928/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2928/events","html_url":"https://github.com/ManageIQ/manageiq/pull/2928","id":76744183,"number":2928,"title":"Remove Migrate button for SCVMM VMs","user":{"login":"h-kataria","id":3450808,"avatar_url":"https://avatars.githubusercontent.com/u/3450808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-kataria","html_url":"https://github.com/h-kataria","followers_url":"https://api.github.com/users/h-kataria/followers","following_url":"https://api.github.com/users/h-kataria/following{/other_user}","gists_url":"https://api.github.com/users/h-kataria/gists{/gist_id}","starred_url":"https://api.github.com/users/h-kataria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-kataria/subscriptions","organizations_url":"https://api.github.com/users/h-kataria/orgs","repos_url":"https://api.github.com/users/h-kataria/repos","events_url":"https://api.github.com/users/h-kataria/events{/privacy}","received_events_url":"https://api.github.com/users/h-kataria/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/ui","name":"ui","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"h-kataria","id":3450808,"avatar_url":"https://avatars.githubusercontent.com/u/3450808?v=3","gravatar_id":"","url":"https://api.github.com/users/h-kataria","html_url":"https://github.com/h-kataria","followers_url":"https://api.github.com/users/h-kataria/followers","following_url":"https://api.github.com/users/h-kataria/following{/other_user}","gists_url":"https://api.github.com/users/h-kataria/gists{/gist_id}","starred_url":"https://api.github.com/users/h-kataria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-kataria/subscriptions","organizations_url":"https://api.github.com/users/h-kataria/orgs","repos_url":"https://api.github.com/users/h-kataria/repos","events_url":"https://api.github.com/users/h-kataria/events{/privacy}","received_events_url":"https://api.github.com/users/h-kataria/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2015-05-15T14:29:24Z","updated_at":"2015-07-14T14:42:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/2928","html_url":"https://github.com/ManageIQ/manageiq/pull/2928","diff_url":"https://github.com/ManageIQ/manageiq/pull/2928.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/2928.patch"},"body":"- Added code to not show Migrate button on SCVMM VM summary screen.\r\n- Added code to display flash message if VMs selected to migrate from list view includes SCVMM VMs.\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1221532\r\n\r\n@dclarizio please review/test"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/121258477","html_url":"https://github.com/ManageIQ/manageiq/pull/2928#issuecomment-121258477","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/2928","id":121258477,"user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T14:42:32Z","updated_at":"2015-07-14T14:42:32Z","body":"@chessbyte I agree with your approach about `supports_operation?`, and it was my original suggestion.  However, a majority of the UI code, especially the toolbars, already go through the `is_available?` method for operations.  \"migrate\" in my opinion is \"just another operation\", and should go through the existing pattern.\r\n\r\nNote that the `is_available?` structure has one advantage over `supports_operation?` and that is that it is not boolean.  It returns values that can show the button, hide the button (if not supported at all), or gray out the button with a message (if not available at the moment).\r\n"}}