{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/3105","labels_url":"https://api.github.com/repos/juju/juju/issues/3105/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/3105/comments","events_url":"https://api.github.com/repos/juju/juju/issues/3105/events","html_url":"https://github.com/juju/juju/pull/3105","id":103207000,"number":3105,"title":"worker/uniter: fix upgrade handling","user":{"login":"axw","id":843579,"avatar_url":"https://avatars.githubusercontent.com/u/843579?v=3","gravatar_id":"","url":"https://api.github.com/users/axw","html_url":"https://github.com/axw","followers_url":"https://api.github.com/users/axw/followers","following_url":"https://api.github.com/users/axw/following{/other_user}","gists_url":"https://api.github.com/users/axw/gists{/gist_id}","starred_url":"https://api.github.com/users/axw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axw/subscriptions","organizations_url":"https://api.github.com/users/axw/orgs","repos_url":"https://api.github.com/users/axw/repos","events_url":"https://api.github.com/users/axw/events{/privacy}","received_events_url":"https://api.github.com/users/axw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-26T08:24:12Z","updated_at":"2015-08-27T02:23:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/3105","html_url":"https://github.com/juju/juju/pull/3105","diff_url":"https://github.com/juju/juju/pull/3105.diff","patch_url":"https://github.com/juju/juju/pull/3105.patch"},"body":"This is a large branch, including moving, modifying\nand unit testing the main resolver loop. We introduce\na new operation.Factory wrapper that updates local\nstate whenever the operations it creates/wraps are\ncommitted.\n\nWhen an upgrade op is committed, we set the Upgraded\nfield of local state to true and the CharmURL updated;\nthis causes the resolver loop to restart (with\nUpgraded == false and the new charm URL), at which\npoint the upgrade-charm hook will be run, completing\nthe upgrade.\n\n(Review request: http://reviews.vapour.ws/r/2485/)"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/135253518","html_url":"https://github.com/juju/juju/pull/3105#issuecomment-135253518","issue_url":"https://api.github.com/repos/juju/juju/issues/3105","id":135253518,"user":{"login":"axw","id":843579,"avatar_url":"https://avatars.githubusercontent.com/u/843579?v=3","gravatar_id":"","url":"https://api.github.com/users/axw","html_url":"https://github.com/axw","followers_url":"https://api.github.com/users/axw/followers","following_url":"https://api.github.com/users/axw/following{/other_user}","gists_url":"https://api.github.com/users/axw/gists{/gist_id}","starred_url":"https://api.github.com/users/axw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axw/subscriptions","organizations_url":"https://api.github.com/users/axw/orgs","repos_url":"https://api.github.com/users/axw/repos","events_url":"https://api.github.com/users/axw/events{/privacy}","received_events_url":"https://api.github.com/users/axw/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T02:23:54Z","updated_at":"2015-08-27T02:23:54Z","body":"$$merge$$"}}