{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/2069","labels_url":"https://api.github.com/repos/juju/juju/issues/2069/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/2069/comments","events_url":"https://api.github.com/repos/juju/juju/issues/2069/events","html_url":"https://github.com/juju/juju/pull/2069","id":68349207,"number":2069,"title":"state/service: Unit names are unique across service names lp:1174610","user":{"login":"mattyw","id":160718,"avatar_url":"https://avatars.githubusercontent.com/u/160718?v=3","gravatar_id":"","url":"https://api.github.com/users/mattyw","html_url":"https://github.com/mattyw","followers_url":"https://api.github.com/users/mattyw/followers","following_url":"https://api.github.com/users/mattyw/following{/other_user}","gists_url":"https://api.github.com/users/mattyw/gists{/gist_id}","starred_url":"https://api.github.com/users/mattyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattyw/subscriptions","organizations_url":"https://api.github.com/users/mattyw/orgs","repos_url":"https://api.github.com/users/mattyw/repos","events_url":"https://api.github.com/users/mattyw/events{/privacy}","received_events_url":"https://api.github.com/users/mattyw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-14T11:52:54Z","updated_at":"2015-05-05T16:32:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/2069","html_url":"https://github.com/juju/juju/pull/2069","diff_url":"https://github.com/juju/juju/pull/2069.diff","patch_url":"https://github.com/juju/juju/pull/2069.patch"},"body":"The latest attempt at solving: https://bugs.launchpad.net/juju-core/+bug/1174610\r\n\r\nPreviously the following sequence would take place\r\n```\r\njuju deploy foobar (one unit: foobar/0)\r\njuju destroy-service foobar\r\njuju deploy foobar (one unit: foobar/0)\r\n```\r\n\r\nThis pr makes the second deploy result in a single unit foobar/1.\r\n\r\nOr stated another way: Unit names are now unique per service name.\r\n\r\nThis was achieved by removing UnitSeq from the service collection and using the global sequences collection to store the unit number.\n\n(Review request: http://reviews.vapour.ws/r/1425/)"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/99133403","html_url":"https://github.com/juju/juju/pull/2069#issuecomment-99133403","issue_url":"https://api.github.com/repos/juju/juju/issues/2069","id":99133403,"user":{"login":"jujubot","id":7779494,"avatar_url":"https://avatars.githubusercontent.com/u/7779494?v=3","gravatar_id":"","url":"https://api.github.com/users/jujubot","html_url":"https://github.com/jujubot","followers_url":"https://api.github.com/users/jujubot/followers","following_url":"https://api.github.com/users/jujubot/following{/other_user}","gists_url":"https://api.github.com/users/jujubot/gists{/gist_id}","starred_url":"https://api.github.com/users/jujubot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jujubot/subscriptions","organizations_url":"https://api.github.com/users/jujubot/orgs","repos_url":"https://api.github.com/users/jujubot/repos","events_url":"https://api.github.com/users/jujubot/events{/privacy}","received_events_url":"https://api.github.com/users/jujubot/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T16:32:30Z","updated_at":"2015-05-05T16:32:30Z","body":"Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju"}}