{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/pulp/pulls/comments/43178962","id":43178962,"diff_hunk":"@@ -700,3 +700,30 @@ class LazyCatalogEntry(Document):\n     checksum = StringField()\n     checksum_algorithm = StringField(regex=ALG_REGEX)\n     data = DictField()\n+\n+\n+class DeferredDownload(Document):","path":"server/pulp/server/db/model/__init__.py","position":6,"original_position":6,"commit_id":"edc2dc029af12cd6c658c27f91de55951ade220d","original_commit_id":"edc2dc029af12cd6c658c27f91de55951ade220d","user":{"login":"bmbouter","id":180319,"avatar_url":"https://avatars.githubusercontent.com/u/180319?v=3","gravatar_id":"","url":"https://api.github.com/users/bmbouter","html_url":"https://github.com/bmbouter","followers_url":"https://api.github.com/users/bmbouter/followers","following_url":"https://api.github.com/users/bmbouter/following{/other_user}","gists_url":"https://api.github.com/users/bmbouter/gists{/gist_id}","starred_url":"https://api.github.com/users/bmbouter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmbouter/subscriptions","organizations_url":"https://api.github.com/users/bmbouter/orgs","repos_url":"https://api.github.com/users/bmbouter/repos","events_url":"https://api.github.com/users/bmbouter/events{/privacy}","received_events_url":"https://api.github.com/users/bmbouter/received_events","type":"User","site_admin":false},"body":"Also every new model introduced that lives in platform must have ensure_indexes called in [`ensure_database_indexes()`](https://github.com/bmbouter/pulp/blob/e022f247f841800b0be18f7fcd0bdd5bb2f4ab3a/server/pulp/server/db/manage.py#L120)","created_at":"2015-10-27T20:09:34Z","updated_at":"2015-10-27T20:09:34Z","html_url":"https://github.com/pulp/pulp/pull/2140#discussion_r43178962","pull_request_url":"https://api.github.com/repos/pulp/pulp/pulls/2140","_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments/43178962"},"html":{"href":"https://github.com/pulp/pulp/pull/2140#discussion_r43178962"},"pull_request":{"href":"https://api.github.com/repos/pulp/pulp/pulls/2140"}}},"pull_request":{"url":"https://api.github.com/repos/pulp/pulp/pulls/2140","id":48794197,"html_url":"https://github.com/pulp/pulp/pull/2140","diff_url":"https://github.com/pulp/pulp/pull/2140.diff","patch_url":"https://github.com/pulp/pulp/pull/2140.patch","issue_url":"https://api.github.com/repos/pulp/pulp/issues/2140","number":2140,"state":"closed","locked":false,"title":"Adds a new MongoEngine model for deferred downloads.","user":{"login":"jeremycline","id":1977525,"avatar_url":"https://avatars.githubusercontent.com/u/1977525?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremycline","html_url":"https://github.com/jeremycline","followers_url":"https://api.github.com/users/jeremycline/followers","following_url":"https://api.github.com/users/jeremycline/following{/other_user}","gists_url":"https://api.github.com/users/jeremycline/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremycline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremycline/subscriptions","organizations_url":"https://api.github.com/users/jeremycline/orgs","repos_url":"https://api.github.com/users/jeremycline/repos","events_url":"https://api.github.com/users/jeremycline/events{/privacy}","received_events_url":"https://api.github.com/users/jeremycline/received_events","type":"User","site_admin":false},"body":"Deferred downloads is used by the passive lazy workflow to queue up\r\ndownloads processed by the streamer. A celerybeat task will use this\r\nqueue to download the units later.","created_at":"2015-10-26T20:41:44Z","updated_at":"2015-10-27T20:09:34Z","closed_at":"2015-10-27T15:23:41Z","merged_at":"2015-10-27T15:23:41Z","merge_commit_sha":"e2199cc495f013f21c31abcaac60fa3a682d9d28","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pulp/pulp/pulls/2140/commits","review_comments_url":"https://api.github.com/repos/pulp/pulp/pulls/2140/comments","review_comment_url":"https://api.github.com/repos/pulp/pulp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulp/pulp/issues/2140/comments","statuses_url":"https://api.github.com/repos/pulp/pulp/statuses/edc2dc029af12cd6c658c27f91de55951ade220d","head":{"label":"jeremycline:deferred-downloads-model","ref":"deferred-downloads-model","sha":"edc2dc029af12cd6c658c27f91de55951ade220d","user":{"login":"jeremycline","id":1977525,"avatar_url":"https://avatars.githubusercontent.com/u/1977525?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremycline","html_url":"https://github.com/jeremycline","followers_url":"https://api.github.com/users/jeremycline/followers","following_url":"https://api.github.com/users/jeremycline/following{/other_user}","gists_url":"https://api.github.com/users/jeremycline/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremycline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremycline/subscriptions","organizations_url":"https://api.github.com/users/jeremycline/orgs","repos_url":"https://api.github.com/users/jeremycline/repos","events_url":"https://api.github.com/users/jeremycline/events{/privacy}","received_events_url":"https://api.github.com/users/jeremycline/received_events","type":"User","site_admin":false},"repo":{"id":24958984,"name":"pulp","full_name":"jeremycline/pulp","owner":{"login":"jeremycline","id":1977525,"avatar_url":"https://avatars.githubusercontent.com/u/1977525?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremycline","html_url":"https://github.com/jeremycline","followers_url":"https://api.github.com/users/jeremycline/followers","following_url":"https://api.github.com/users/jeremycline/following{/other_user}","gists_url":"https://api.github.com/users/jeremycline/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremycline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremycline/subscriptions","organizations_url":"https://api.github.com/users/jeremycline/orgs","repos_url":"https://api.github.com/users/jeremycline/repos","events_url":"https://api.github.com/users/jeremycline/events{/privacy}","received_events_url":"https://api.github.com/users/jeremycline/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeremycline/pulp","description":"Repository for Pulp platform code, including the server and base admin and consumer clients","fork":true,"url":"https://api.github.com/repos/jeremycline/pulp","forks_url":"https://api.github.com/repos/jeremycline/pulp/forks","keys_url":"https://api.github.com/repos/jeremycline/pulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeremycline/pulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeremycline/pulp/teams","hooks_url":"https://api.github.com/repos/jeremycline/pulp/hooks","issue_events_url":"https://api.github.com/repos/jeremycline/pulp/issues/events{/number}","events_url":"https://api.github.com/repos/jeremycline/pulp/events","assignees_url":"https://api.github.com/repos/jeremycline/pulp/assignees{/user}","branches_url":"https://api.github.com/repos/jeremycline/pulp/branches{/branch}","tags_url":"https://api.github.com/repos/jeremycline/pulp/tags","blobs_url":"https://api.github.com/repos/jeremycline/pulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeremycline/pulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeremycline/pulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeremycline/pulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeremycline/pulp/statuses/{sha}","languages_url":"https://api.github.com/repos/jeremycline/pulp/languages","stargazers_url":"https://api.github.com/repos/jeremycline/pulp/stargazers","contributors_url":"https://api.github.com/repos/jeremycline/pulp/contributors","subscribers_url":"https://api.github.com/repos/jeremycline/pulp/subscribers","subscription_url":"https://api.github.com/repos/jeremycline/pulp/subscription","commits_url":"https://api.github.com/repos/jeremycline/pulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeremycline/pulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeremycline/pulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeremycline/pulp/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeremycline/pulp/contents/{+path}","compare_url":"https://api.github.com/repos/jeremycline/pulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeremycline/pulp/merges","archive_url":"https://api.github.com/repos/jeremycline/pulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeremycline/pulp/downloads","issues_url":"https://api.github.com/repos/jeremycline/pulp/issues{/number}","pulls_url":"https://api.github.com/repos/jeremycline/pulp/pulls{/number}","milestones_url":"https://api.github.com/repos/jeremycline/pulp/milestones{/number}","notifications_url":"https://api.github.com/repos/jeremycline/pulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeremycline/pulp/labels{/name}","releases_url":"https://api.github.com/repos/jeremycline/pulp/releases{/id}","created_at":"2014-10-08T20:18:50Z","updated_at":"2015-01-15T14:25:50Z","pushed_at":"2015-10-27T15:26:29Z","git_url":"git://github.com/jeremycline/pulp.git","ssh_url":"git@github.com:jeremycline/pulp.git","clone_url":"https://github.com/jeremycline/pulp.git","svn_url":"https://github.com/jeremycline/pulp","homepage":"","size":87384,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"pulp:lazy-content","ref":"lazy-content","sha":"0e9867e9fd5460bc689a994344225c07438daf62","user":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"repo":{"id":5314652,"name":"pulp","full_name":"pulp/pulp","owner":{"login":"pulp","id":2103606,"avatar_url":"https://avatars.githubusercontent.com/u/2103606?v=3","gravatar_id":"","url":"https://api.github.com/users/pulp","html_url":"https://github.com/pulp","followers_url":"https://api.github.com/users/pulp/followers","following_url":"https://api.github.com/users/pulp/following{/other_user}","gists_url":"https://api.github.com/users/pulp/gists{/gist_id}","starred_url":"https://api.github.com/users/pulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulp/subscriptions","organizations_url":"https://api.github.com/users/pulp/orgs","repos_url":"https://api.github.com/users/pulp/repos","events_url":"https://api.github.com/users/pulp/events{/privacy}","received_events_url":"https://api.github.com/users/pulp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulp/pulp","description":"Repository for Pulp platform code, including the server and base admin and consumer clients","fork":false,"url":"https://api.github.com/repos/pulp/pulp","forks_url":"https://api.github.com/repos/pulp/pulp/forks","keys_url":"https://api.github.com/repos/pulp/pulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulp/pulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulp/pulp/teams","hooks_url":"https://api.github.com/repos/pulp/pulp/hooks","issue_events_url":"https://api.github.com/repos/pulp/pulp/issues/events{/number}","events_url":"https://api.github.com/repos/pulp/pulp/events","assignees_url":"https://api.github.com/repos/pulp/pulp/assignees{/user}","branches_url":"https://api.github.com/repos/pulp/pulp/branches{/branch}","tags_url":"https://api.github.com/repos/pulp/pulp/tags","blobs_url":"https://api.github.com/repos/pulp/pulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulp/pulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulp/pulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulp/pulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulp/pulp/statuses/{sha}","languages_url":"https://api.github.com/repos/pulp/pulp/languages","stargazers_url":"https://api.github.com/repos/pulp/pulp/stargazers","contributors_url":"https://api.github.com/repos/pulp/pulp/contributors","subscribers_url":"https://api.github.com/repos/pulp/pulp/subscribers","subscription_url":"https://api.github.com/repos/pulp/pulp/subscription","commits_url":"https://api.github.com/repos/pulp/pulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulp/pulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulp/pulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulp/pulp/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulp/pulp/contents/{+path}","compare_url":"https://api.github.com/repos/pulp/pulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulp/pulp/merges","archive_url":"https://api.github.com/repos/pulp/pulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulp/pulp/downloads","issues_url":"https://api.github.com/repos/pulp/pulp/issues{/number}","pulls_url":"https://api.github.com/repos/pulp/pulp/pulls{/number}","milestones_url":"https://api.github.com/repos/pulp/pulp/milestones{/number}","notifications_url":"https://api.github.com/repos/pulp/pulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulp/pulp/labels{/name}","releases_url":"https://api.github.com/repos/pulp/pulp/releases{/id}","created_at":"2012-08-06T13:49:20Z","updated_at":"2015-10-26T03:13:03Z","pushed_at":"2015-10-27T17:48:21Z","git_url":"git://github.com/pulp/pulp.git","ssh_url":"git@github.com:pulp/pulp.git","clone_url":"https://github.com/pulp/pulp.git","svn_url":"https://github.com/pulp/pulp","homepage":"","size":210339,"stargazers_count":229,"watchers_count":229,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":11,"forks":93,"open_issues":11,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/2140"},"html":{"href":"https://github.com/pulp/pulp/pull/2140"},"issue":{"href":"https://api.github.com/repos/pulp/pulp/issues/2140"},"comments":{"href":"https://api.github.com/repos/pulp/pulp/issues/2140/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/pulp/pulls/2140/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulp/pulp/pulls/2140/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/pulp/statuses/edc2dc029af12cd6c658c27f91de55951ade220d"}}}}