{"action":"created","issue":{"url":"https://api.github.com/repos/digitalocean/netbox/issues/523","repository_url":"https://api.github.com/repos/digitalocean/netbox","labels_url":"https://api.github.com/repos/digitalocean/netbox/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/digitalocean/netbox/issues/523/comments","events_url":"https://api.github.com/repos/digitalocean/netbox/issues/523/events","html_url":"https://github.com/digitalocean/netbox/issues/523","id":174553110,"number":523,"title":"Make Power Connections 'unique' (and console and management)","user":{"login":"marvnrawley","id":20862038,"avatar_url":"https://avatars.githubusercontent.com/u/20862038?v=3","gravatar_id":"","url":"https://api.github.com/users/marvnrawley","html_url":"https://github.com/marvnrawley","followers_url":"https://api.github.com/users/marvnrawley/followers","following_url":"https://api.github.com/users/marvnrawley/following{/other_user}","gists_url":"https://api.github.com/users/marvnrawley/gists{/gist_id}","starred_url":"https://api.github.com/users/marvnrawley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvnrawley/subscriptions","organizations_url":"https://api.github.com/users/marvnrawley/orgs","repos_url":"https://api.github.com/users/marvnrawley/repos","events_url":"https://api.github.com/users/marvnrawley/events{/privacy}","received_events_url":"https://api.github.com/users/marvnrawley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-01T15:24:09Z","updated_at":"2016-09-12T17:39:57Z","closed_at":null,"body":"When viewing a device, and selecting to add a new power (/console/management) connection you search for a CI or select it from a list, and then the API loads the valid ports for the device.\r\n\r\nThe API call here should instead only return all non-connected ports, or if that's not possible, it should return any current assignment in addition to the port ID; instead of just being a list of \"\" it would be \" - \" for ports with a connection.\r\n\r\nI don't know if this requires a new API call, or just requires the page to be configured to load a different API call, which would already return this data."},"comment":{"url":"https://api.github.com/repos/digitalocean/netbox/issues/comments/246428885","html_url":"https://github.com/digitalocean/netbox/issues/523#issuecomment-246428885","issue_url":"https://api.github.com/repos/digitalocean/netbox/issues/523","id":246428885,"user":{"login":"jeremystretch","id":13487278,"avatar_url":"https://avatars.githubusercontent.com/u/13487278?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremystretch","html_url":"https://github.com/jeremystretch","followers_url":"https://api.github.com/users/jeremystretch/followers","following_url":"https://api.github.com/users/jeremystretch/following{/other_user}","gists_url":"https://api.github.com/users/jeremystretch/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremystretch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremystretch/subscriptions","organizations_url":"https://api.github.com/users/jeremystretch/orgs","repos_url":"https://api.github.com/users/jeremystretch/repos","events_url":"https://api.github.com/users/jeremystretch/events{/privacy}","received_events_url":"https://api.github.com/users/jeremystretch/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T17:39:57Z","updated_at":"2016-09-12T17:39:57Z","body":"The API call returns all outlets for the given PDU as well as the connected power port for each (if any). The form field select widget is rendered so that connected outlets are disabled. NetBox does not enforce any custom styling on the widget; they are rendered the same as any other disabled select option in your browser.\r\n\r\nI'd rather not extend the API call to include the name of the connected port, because it effects a significant performance hit to make the JOIN on the database, and the information isn't particularly relevant in this instance. I'm also hesitant to implement any sort of styling on options representing connected outlets, because simply setting `disabled=\"disabled\"` is the standard way to disable an option within a select widget."}}
{"actor":{"display_login":"jeremystretch"}}