payload: {"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/10837","repository_url":"https://api.github.com/repos/juju/juju","labels_url":"https://api.github.com/repos/juju/juju/issues/10837/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/10837/comments","events_url":"https://api.github.com/repos/juju/juju/issues/10837/events","html_url":"https://github.com/juju/juju/pull/10837","id":515375985,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM0ODQ2NTA2","number":10837,"title":"Use model config default-space to configure default endpoint binding space","user":{"login":"hmlanigan","id":18268820,"node_id":"MDQ6VXNlcjE4MjY4ODIw","avatar_url":"https://avatars0.githubusercontent.com/u/18268820?v=4","gravatar_id":"","url":"https://api.github.com/users/hmlanigan","html_url":"https://github.com/hmlanigan","followers_url":"https://api.github.com/users/hmlanigan/followers","following_url":"https://api.github.com/users/hmlanigan/following{/other_user}","gists_url":"https://api.github.com/users/hmlanigan/gists{/gist_id}","starred_url":"https://api.github.com/users/hmlanigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmlanigan/subscriptions","organizations_url":"https://api.github.com/users/hmlanigan/orgs","repos_url":"https://api.github.com/users/hmlanigan/repos","events_url":"https://api.github.com/users/hmlanigan/events{/privacy}","received_events_url":"https://api.github.com/users/hmlanigan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2019-10-31T12:02:30Z","updated_at":"2019-11-01T20:50:24Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/10837","html_url":"https://github.com/juju/juju/pull/10837","diff_url":"https://github.com/juju/juju/pull/10837.diff","patch_url":"https://github.com/juju/juju/pull/10837.patch"},"body":"## Description of change\r\n\r\nUse the model config default-space value to determine the default endpoint binding to use.  If it's an empty string, use the AlphaSpaceName.  \r\n\r\n## QA steps\r\n\r\nTest with AWS, maas, and no space aware configs.\r\n1. juju deploy mysql --bind db:<space>\r\n2. juju show-application mysql   <-- binding show assigned to alpha, except db\r\n3. juju remove-application mysql\r\n3. juju model-config default-space <space>\r\n2. juju show-application mysql --bind db:<space2>  <-- binding show assigned to <space>, except db\r\n3. test with the bindings command\r\n3. test with upgrade charm getting new bindings.\r\n\r\n## Documentation changes\r\n\r\nMaybe, this is adding on top of the new default-space model-config option.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/548946025","html_url":"https://github.com/juju/juju/pull/10837#issuecomment-548946025","issue_url":"https://api.github.com/repos/juju/juju/issues/10837","id":548946025,"node_id":"MDEyOklzc3VlQ29tbWVudDU0ODk0NjAyNQ==","user":{"login":"hmlanigan","id":18268820,"node_id":"MDQ6VXNlcjE4MjY4ODIw","avatar_url":"https://avatars0.githubusercontent.com/u/18268820?v=4","gravatar_id":"","url":"https://api.github.com/users/hmlanigan","html_url":"https://github.com/hmlanigan","followers_url":"https://api.github.com/users/hmlanigan/followers","following_url":"https://api.github.com/users/hmlanigan/following{/other_user}","gists_url":"https://api.github.com/users/hmlanigan/gists{/gist_id}","starred_url":"https://api.github.com/users/hmlanigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmlanigan/subscriptions","organizations_url":"https://api.github.com/users/hmlanigan/orgs","repos_url":"https://api.github.com/users/hmlanigan/repos","events_url":"https://api.github.com/users/hmlanigan/events{/privacy}","received_events_url":"https://api.github.com/users/hmlanigan/received_events","type":"User","site_admin":false},"created_at":"2019-11-01T20:50:24Z","updated_at":"2019-11-01T20:50:24Z","author_association":"MEMBER","body":"$$merge$$"}}
other: {"actor":{"display_login":"hmlanigan"}}