{"action":"opened","number":4784,"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/4784","id":63354501,"html_url":"https://github.com/juju/juju/pull/4784","diff_url":"https://github.com/juju/juju/pull/4784.diff","patch_url":"https://github.com/juju/juju/pull/4784.patch","issue_url":"https://api.github.com/repos/juju/juju/issues/4784","number":4784,"state":"open","locked":false,"title":"Model agent integration","user":{"login":"fwereade","id":372078,"avatar_url":"https://avatars.githubusercontent.com/u/372078?v=3","gravatar_id":"","url":"https://api.github.com/users/fwereade","html_url":"https://github.com/fwereade","followers_url":"https://api.github.com/users/fwereade/followers","following_url":"https://api.github.com/users/fwereade/following{/other_user}","gists_url":"https://api.github.com/users/fwereade/gists{/gist_id}","starred_url":"https://api.github.com/users/fwereade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwereade/subscriptions","organizations_url":"https://api.github.com/users/fwereade/orgs","repos_url":"https://api.github.com/users/fwereade/repos","events_url":"https://api.github.com/users/fwereade/events{/privacy}","received_events_url":"https://api.github.com/users/fwereade/received_events","type":"User","site_admin":false},"body":"This branch:\r\n\r\n  * introduces the `cmd/jujud/agent/model package`, which defines the set of workers needed to manage a given model, including handling for the responsibilities once handled by:\r\n          * a `singular.Runner` (see `is-responsible-flag`)\r\n          * parts removed from `worker/modelworkermanager` (see `not-dead-flag`, `not-alive-flag`)\r\n          * parts removed from `worker/undertaker` (see `environ-tracker`, whose use we should expand later)\r\n  * replaces a significant `chunk of cmd/jujud/agent/machine.go` with an invocation of a `dependency.Engine` using `model.Manifolds`\r\n  * drastically simplifies `worker/modelworkermanager` (which now only needs a `func(uuid string) ...` to start a model worker) ...and tests\r\n  * slightly simplifies `worker/undertaker` (which no longer needs to watch its own environ) ...and tests\r\n  * drops unwanted functionality from `api/undertaker`\r\n\r\nIt replaces PR4671, reviewed at length in RB4110.","created_at":"2016-03-18T10:32:16Z","updated_at":"2016-03-18T10:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/juju/juju/pulls/4784/commits","review_comments_url":"https://api.github.com/repos/juju/juju/pulls/4784/comments","review_comment_url":"https://api.github.com/repos/juju/juju/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/juju/issues/4784/comments","statuses_url":"https://api.github.com/repos/juju/juju/statuses/65e49da3ad946cacab7162e88c6d49ca5117012d","head":{"label":"fwereade:model-integration-flat","ref":"model-integration-flat","sha":"65e49da3ad946cacab7162e88c6d49ca5117012d","user":{"login":"fwereade","id":372078,"avatar_url":"https://avatars.githubusercontent.com/u/372078?v=3","gravatar_id":"","url":"https://api.github.com/users/fwereade","html_url":"https://github.com/fwereade","followers_url":"https://api.github.com/users/fwereade/followers","following_url":"https://api.github.com/users/fwereade/following{/other_user}","gists_url":"https://api.github.com/users/fwereade/gists{/gist_id}","starred_url":"https://api.github.com/users/fwereade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwereade/subscriptions","organizations_url":"https://api.github.com/users/fwereade/orgs","repos_url":"https://api.github.com/users/fwereade/repos","events_url":"https://api.github.com/users/fwereade/events{/privacy}","received_events_url":"https://api.github.com/users/fwereade/received_events","type":"User","site_admin":false},"repo":{"id":22044674,"name":"juju","full_name":"fwereade/juju","owner":{"login":"fwereade","id":372078,"avatar_url":"https://avatars.githubusercontent.com/u/372078?v=3","gravatar_id":"","url":"https://api.github.com/users/fwereade","html_url":"https://github.com/fwereade","followers_url":"https://api.github.com/users/fwereade/followers","following_url":"https://api.github.com/users/fwereade/following{/other_user}","gists_url":"https://api.github.com/users/fwereade/gists{/gist_id}","starred_url":"https://api.github.com/users/fwereade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwereade/subscriptions","organizations_url":"https://api.github.com/users/fwereade/orgs","repos_url":"https://api.github.com/users/fwereade/repos","events_url":"https://api.github.com/users/fwereade/events{/privacy}","received_events_url":"https://api.github.com/users/fwereade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fwereade/juju","description":"juju is devops distilled","fork":true,"url":"https://api.github.com/repos/fwereade/juju","forks_url":"https://api.github.com/repos/fwereade/juju/forks","keys_url":"https://api.github.com/repos/fwereade/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fwereade/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fwereade/juju/teams","hooks_url":"https://api.github.com/repos/fwereade/juju/hooks","issue_events_url":"https://api.github.com/repos/fwereade/juju/issues/events{/number}","events_url":"https://api.github.com/repos/fwereade/juju/events","assignees_url":"https://api.github.com/repos/fwereade/juju/assignees{/user}","branches_url":"https://api.github.com/repos/fwereade/juju/branches{/branch}","tags_url":"https://api.github.com/repos/fwereade/juju/tags","blobs_url":"https://api.github.com/repos/fwereade/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fwereade/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fwereade/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/fwereade/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fwereade/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/fwereade/juju/languages","stargazers_url":"https://api.github.com/repos/fwereade/juju/stargazers","contributors_url":"https://api.github.com/repos/fwereade/juju/contributors","subscribers_url":"https://api.github.com/repos/fwereade/juju/subscribers","subscription_url":"https://api.github.com/repos/fwereade/juju/subscription","commits_url":"https://api.github.com/repos/fwereade/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/fwereade/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/fwereade/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/fwereade/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/fwereade/juju/contents/{+path}","compare_url":"https://api.github.com/repos/fwereade/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fwereade/juju/merges","archive_url":"https://api.github.com/repos/fwereade/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fwereade/juju/downloads","issues_url":"https://api.github.com/repos/fwereade/juju/issues{/number}","pulls_url":"https://api.github.com/repos/fwereade/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/fwereade/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/fwereade/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fwereade/juju/labels{/name}","releases_url":"https://api.github.com/repos/fwereade/juju/releases{/id}","deployments_url":"https://api.github.com/repos/fwereade/juju/deployments","created_at":"2014-07-20T22:14:05Z","updated_at":"2016-01-12T11:17:54Z","pushed_at":"2016-03-18T10:28:04Z","git_url":"git://github.com/fwereade/juju.git","ssh_url":"git@github.com:fwereade/juju.git","clone_url":"https://github.com/fwereade/juju.git","svn_url":"https://github.com/fwereade/juju","homepage":"juju.ubuntu.com","size":70645,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"juju:MADE-model-workers","ref":"MADE-model-workers","sha":"8dabba5a9218ab23e9fc75f4b4c46c94bdac2001","user":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":20445947,"name":"juju","full_name":"juju/juju","owner":{"login":"juju","id":4604548,"avatar_url":"https://avatars.githubusercontent.com/u/4604548?v=3","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/juju/juju","description":"juju is devops distilled","fork":false,"url":"https://api.github.com/repos/juju/juju","forks_url":"https://api.github.com/repos/juju/juju/forks","keys_url":"https://api.github.com/repos/juju/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/juju/teams","hooks_url":"https://api.github.com/repos/juju/juju/hooks","issue_events_url":"https://api.github.com/repos/juju/juju/issues/events{/number}","events_url":"https://api.github.com/repos/juju/juju/events","assignees_url":"https://api.github.com/repos/juju/juju/assignees{/user}","branches_url":"https://api.github.com/repos/juju/juju/branches{/branch}","tags_url":"https://api.github.com/repos/juju/juju/tags","blobs_url":"https://api.github.com/repos/juju/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/juju/languages","stargazers_url":"https://api.github.com/repos/juju/juju/stargazers","contributors_url":"https://api.github.com/repos/juju/juju/contributors","subscribers_url":"https://api.github.com/repos/juju/juju/subscribers","subscription_url":"https://api.github.com/repos/juju/juju/subscription","commits_url":"https://api.github.com/repos/juju/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/juju/contents/{+path}","compare_url":"https://api.github.com/repos/juju/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/juju/merges","archive_url":"https://api.github.com/repos/juju/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/juju/downloads","issues_url":"https://api.github.com/repos/juju/juju/issues{/number}","pulls_url":"https://api.github.com/repos/juju/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/juju/labels{/name}","releases_url":"https://api.github.com/repos/juju/juju/releases{/id}","deployments_url":"https://api.github.com/repos/juju/juju/deployments","created_at":"2014-06-03T14:28:10Z","updated_at":"2016-03-18T02:05:50Z","pushed_at":"2016-03-18T09:40:29Z","git_url":"git://github.com/juju/juju.git","ssh_url":"git@github.com:juju/juju.git","clone_url":"https://github.com/juju/juju.git","svn_url":"https://github.com/juju/juju","homepage":"juju.ubuntu.com","size":95709,"stargazers_count":398,"watchers_count":398,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":127,"mirror_url":null,"open_issues_count":73,"forks":127,"open_issues":73,"watchers":398,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/juju/pulls/4784"},"html":{"href":"https://github.com/juju/juju/pull/4784"},"issue":{"href":"https://api.github.com/repos/juju/juju/issues/4784"},"comments":{"href":"https://api.github.com/repos/juju/juju/issues/4784/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/juju/pulls/4784/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/juju/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/juju/pulls/4784/commits"},"statuses":{"href":"https://api.github.com/repos/juju/juju/statuses/65e49da3ad946cacab7162e88c6d49ca5117012d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1921,"deletions":1733,"changed_files":80}}