{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12449","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12449/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12449/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12449/events","html_url":"https://github.com/ManageIQ/manageiq/pull/12449","id":187430631,"number":12449,"title":"Clean up the endpoints for unsaved provider","user":{"login":"bdunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"labels":[{"id":382968361,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/blocker","name":"blocker","color":"000000","default":false},{"id":106615676,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929","default":true},{"id":447068054,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/euwe/yes","name":"euwe/yes","color":"000000","default":false},{"id":308366866,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/ansible_tower","name":"providers/ansible_tower","color":"5319e7","default":false},{"id":213114548,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/providers/foreman","name":"providers/foreman","color":"5319e7","default":false},{"id":182909575,"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/ui","name":"ui","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-04T20:27:37Z","updated_at":"2016-11-04T20:48:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/12449","html_url":"https://github.com/ManageIQ/manageiq/pull/12449","diff_url":"https://github.com/ManageIQ/manageiq/pull/12449.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/12449.patch"},"body":"The endpoint is created during provider credential validation, but if the\r\nprovider is unsaved, the endpoint never gets cleaned up.  Since the UI\r\nalways interacts with a different instance of the controller, the endpoint\r\nrecord can't be cached on the controller instance.  Since the validation on\r\nURL uniqueness was added, if the user enters the provider info, clicks\r\nverify then clicks save, they will get an URL uniqueness error because of\r\nthe endpoint created during credential validation.\r\n\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1388928"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/258543563","html_url":"https://github.com/ManageIQ/manageiq/pull/12449#issuecomment-258543563","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/12449","id":258543563,"user":{"login":"bdunne","id":651659,"avatar_url":"https://avatars.githubusercontent.com/u/651659?v=3","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T20:48:29Z","updated_at":"2016-11-04T20:48:29Z","body":"I'm not entirely sure when / where the save is done.  It's probably a result of saving the credentials.  I'm somewhat surprised that the provider isn't also saved.  I guess credential validation through the UI will fail when the provider is in a different zone than the UI appliance since it isn't queued?"}}
{"actor":{"display_login":"bdunne"}}