{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8282","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8282/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8282/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8282/events","html_url":"https://github.com/ManageIQ/manageiq/pull/8282","id":151336822,"number":8282,"title":"For Middleware/Hawkular hide non-applicable endpoints","user":{"login":"pilhuhn","id":208246,"avatar_url":"https://avatars.githubusercontent.com/u/208246?v=3","gravatar_id":"","url":"https://api.github.com/users/pilhuhn","html_url":"https://github.com/pilhuhn","followers_url":"https://api.github.com/users/pilhuhn/followers","following_url":"https://api.github.com/users/pilhuhn/following{/other_user}","gists_url":"https://api.github.com/users/pilhuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/pilhuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilhuhn/subscriptions","organizations_url":"https://api.github.com/users/pilhuhn/orgs","repos_url":"https://api.github.com/users/pilhuhn/repos","events_url":"https://api.github.com/users/pilhuhn/events{/privacy}","received_events_url":"https://api.github.com/users/pilhuhn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/darga/no","name":"darga/no","color":"000000"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/hawkular","name":"providers/hawkular","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/ui","name":"ui","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ManageIQ/manageiq/milestones/34","html_url":"https://github.com/ManageIQ/manageiq/milestones/Sprint%2040%20Ending%20May%209,%202016","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones/34/labels","id":1719424,"number":34,"title":"Sprint 40 Ending May 9, 2016","description":"","creator":{"login":"chessbyte","id":82161,"avatar_url":"https://avatars.githubusercontent.com/u/82161?v=3","gravatar_id":"","url":"https://api.github.com/users/chessbyte","html_url":"https://github.com/chessbyte","followers_url":"https://api.github.com/users/chessbyte/followers","following_url":"https://api.github.com/users/chessbyte/following{/other_user}","gists_url":"https://api.github.com/users/chessbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/chessbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chessbyte/subscriptions","organizations_url":"https://api.github.com/users/chessbyte/orgs","repos_url":"https://api.github.com/users/chessbyte/repos","events_url":"https://api.github.com/users/chessbyte/events{/privacy}","received_events_url":"https://api.github.com/users/chessbyte/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":107,"state":"open","created_at":"2016-04-19T22:48:50Z","updated_at":"2016-04-27T19:02:51Z","due_on":"2016-05-09T04:00:00Z","closed_at":null},"comments":15,"created_at":"2016-04-27T09:14:29Z","updated_at":"2016-04-27T20:25:57Z","closed_at":"2016-04-27T18:56:13Z","pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/8282","html_url":"https://github.com/ManageIQ/manageiq/pull/8282","diff_url":"https://github.com/ManageIQ/manageiq/pull/8282.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/8282.patch"},"body":"The Hawkular provider only supports login via username/password. No remote, webservices or ipmi.\r\nSo hide those.\r\n\r\nBefore:\r\n\r\n![bildschirmfoto 2016-04-27 um 09 53 57](https://cloud.githubusercontent.com/assets/208246/14847350/7468a68e-0c68-11e6-80bf-ae387a72f42a.png)\r\n\r\nAfter:\r\n\r\n![bildschirmfoto 2016-04-27 um 11 06 01](https://cloud.githubusercontent.com/assets/208246/14847357/7c5d0600-0c68-11e6-9cc2-046123ef4273.png)\r\n\r\n@miq-bot add_label ui, providers/hawkular\r\n@abonas "},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/215217237","html_url":"https://github.com/ManageIQ/manageiq/pull/8282#issuecomment-215217237","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/8282","id":215217237,"user":{"login":"blomquisg","id":14183,"avatar_url":"https://avatars.githubusercontent.com/u/14183?v=3","gravatar_id":"","url":"https://api.github.com/users/blomquisg","html_url":"https://github.com/blomquisg","followers_url":"https://api.github.com/users/blomquisg/followers","following_url":"https://api.github.com/users/blomquisg/following{/other_user}","gists_url":"https://api.github.com/users/blomquisg/gists{/gist_id}","starred_url":"https://api.github.com/users/blomquisg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blomquisg/subscriptions","organizations_url":"https://api.github.com/users/blomquisg/orgs","repos_url":"https://api.github.com/users/blomquisg/repos","events_url":"https://api.github.com/users/blomquisg/events{/privacy}","received_events_url":"https://api.github.com/users/blomquisg/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T20:25:57Z","updated_at":"2016-04-27T20:25:57Z","body":"To follow up on this discussion, there's [ExtManagementSystem#supports_authentication?](https://github.com/ManageIQ/manageiq/blob/405e52d4c1ff310f60941a33c1c6585f2b364b3e/app/models/ext_management_system.rb#L254) which has started [being used in the controller layer](https://github.com/ManageIQ/manageiq/blob/405e52d4c1ff310f60941a33c1c6585f2b364b3e/app/controllers/ems_common.rb#L794-L809), but I don't think it's made it to the view layer yet.\r\n\r\nThere's probably several places with opportunities to replace EMS Type checks with this `supports_authentication?` check."}}