{"action":"created","comment":{"url":"https://api.github.com/repos/pulp/pulp/pulls/comments/23108805","id":23108805,"diff_hunk":"@@ -0,0 +1,106 @@\n+from gettext import gettext as _\n+import json\n+\n+from django.core.urlresolvers import reverse\n+from django.http import HttpResponse, HttpResponseNotFound\n+from django.views.generic import View\n+\n+from pulp.server.auth import authorization\n+from pulp.server.db.model.criteria import Criteria","path":"server/pulp/server/webservices/views/content.py","position":9,"original_position":9,"commit_id":"038598e4d4354a281f5b2f7089963a302488597b","original_commit_id":"038598e4d4354a281f5b2f7089963a302488597b","user":{"login":"asmacdo","id":1028657,"avatar_url":"https://avatars.githubusercontent.com/u/1028657?v=3","gravatar_id":"","url":"https://api.github.com/users/asmacdo","html_url":"https://github.com/asmacdo","followers_url":"https://api.github.com/users/asmacdo/followers","following_url":"https://api.github.com/users/asmacdo/following{/other_user}","gists_url":"https://api.github.com/users/asmacdo/gists{/gist_id}","starred_url":"https://api.github.com/users/asmacdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmacdo/subscriptions","organizations_url":"https://api.github.com/users/asmacdo/orgs","repos_url":"https://api.github.com/users/asmacdo/repos","events_url":"https://api.github.com/users/asmacdo/events{/privacy}","received_events_url":"https://api.github.com/users/asmacdo/received_events","type":"User","site_admin":false},"body":"@bmbouter, should this be replaced by a SearchAPI based View?","created_at":"2015-01-16T20:56:47Z","updated_at":"2015-01-16T20:56:47Z","html_url":"https://github.com/pulp/pulp/pull/1421#discussion_r23108805","pull_request_url":"https://api.github.com/repos/pulp/pulp/pulls/1421","_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments/23108805"},"html":{"href":"https://github.com/pulp/pulp/pull/1421#discussion_r23108805"},"pull_request":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1421"}}},"pull_request":{"url":"https://api.github.com/repos/pulp/pulp/pulls/1421","id":25926434,"html_url":"https://github.com/pulp/pulp/pull/1421","diff_url":"https://github.com/pulp/pulp/pull/1421.diff","patch_url":"https://github.com/pulp/pulp/pull/1421.patch","issue_url":"https://api.github.com/repos/pulp/pulp/issues/1421","number":1421,"state":"open","locked":false,"title":"Content - ContentTypes ContentTypeResource and ContentUnitsCollections","user":{"login":"asmacdo","id":1028657,"avatar_url":"https://avatars.githubusercontent.com/u/1028657?v=3","gravatar_id":"","url":"https://api.github.com/users/asmacdo","html_url":"https://github.com/asmacdo","followers_url":"https://api.github.com/users/asmacdo/followers","following_url":"https://api.github.com/users/asmacdo/following{/other_user}","gists_url":"https://api.github.com/users/asmacdo/gists{/gist_id}","starred_url":"https://api.github.com/users/asmacdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmacdo/subscriptions","organizations_url":"https://api.github.com/users/asmacdo/orgs","repos_url":"https://api.github.com/users/asmacdo/repos","events_url":"https://api.github.com/users/asmacdo/events{/privacy}","received_events_url":"https://api.github.com/users/asmacdo/received_events","type":"User","site_admin":false},"body":"I thought these three would share more code than they ended up sharing so I combined them. The next one looks more complex though, so decided to make this PR now.","created_at":"2014-12-11T19:46:27Z","updated_at":"2015-01-16T20:56:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e5bfe45fe8a97d2268c143260d6896bb28f90cf","assignee":{"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},"milestone":null,"commits_url":"https://api.github.com/repos/pulp/pulp/pulls/1421/commits","review_comments_url":"https://api.github.com/repos/pulp/pulp/pulls/1421/comments","review_comment_url":"https://api.github.com/repos/pulp/pulp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/pulp/pulp/issues/1421/comments","statuses_url":"https://api.github.com/repos/pulp/pulp/statuses/038598e4d4354a281f5b2f7089963a302488597b","head":{"label":"asmacdo:djapi-content","ref":"djapi-content","sha":"038598e4d4354a281f5b2f7089963a302488597b","user":{"login":"asmacdo","id":1028657,"avatar_url":"https://avatars.githubusercontent.com/u/1028657?v=3","gravatar_id":"","url":"https://api.github.com/users/asmacdo","html_url":"https://github.com/asmacdo","followers_url":"https://api.github.com/users/asmacdo/followers","following_url":"https://api.github.com/users/asmacdo/following{/other_user}","gists_url":"https://api.github.com/users/asmacdo/gists{/gist_id}","starred_url":"https://api.github.com/users/asmacdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmacdo/subscriptions","organizations_url":"https://api.github.com/users/asmacdo/orgs","repos_url":"https://api.github.com/users/asmacdo/repos","events_url":"https://api.github.com/users/asmacdo/events{/privacy}","received_events_url":"https://api.github.com/users/asmacdo/received_events","type":"User","site_admin":false},"repo":{"id":22577579,"name":"pulp","full_name":"asmacdo/pulp","owner":{"login":"asmacdo","id":1028657,"avatar_url":"https://avatars.githubusercontent.com/u/1028657?v=3","gravatar_id":"","url":"https://api.github.com/users/asmacdo","html_url":"https://github.com/asmacdo","followers_url":"https://api.github.com/users/asmacdo/followers","following_url":"https://api.github.com/users/asmacdo/following{/other_user}","gists_url":"https://api.github.com/users/asmacdo/gists{/gist_id}","starred_url":"https://api.github.com/users/asmacdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmacdo/subscriptions","organizations_url":"https://api.github.com/users/asmacdo/orgs","repos_url":"https://api.github.com/users/asmacdo/repos","events_url":"https://api.github.com/users/asmacdo/events{/privacy}","received_events_url":"https://api.github.com/users/asmacdo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/asmacdo/pulp","description":"Repository for Pulp platform code, including the server and base admin and consumer clients","fork":true,"url":"https://api.github.com/repos/asmacdo/pulp","forks_url":"https://api.github.com/repos/asmacdo/pulp/forks","keys_url":"https://api.github.com/repos/asmacdo/pulp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asmacdo/pulp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asmacdo/pulp/teams","hooks_url":"https://api.github.com/repos/asmacdo/pulp/hooks","issue_events_url":"https://api.github.com/repos/asmacdo/pulp/issues/events{/number}","events_url":"https://api.github.com/repos/asmacdo/pulp/events","assignees_url":"https://api.github.com/repos/asmacdo/pulp/assignees{/user}","branches_url":"https://api.github.com/repos/asmacdo/pulp/branches{/branch}","tags_url":"https://api.github.com/repos/asmacdo/pulp/tags","blobs_url":"https://api.github.com/repos/asmacdo/pulp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asmacdo/pulp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asmacdo/pulp/git/refs{/sha}","trees_url":"https://api.github.com/repos/asmacdo/pulp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asmacdo/pulp/statuses/{sha}","languages_url":"https://api.github.com/repos/asmacdo/pulp/languages","stargazers_url":"https://api.github.com/repos/asmacdo/pulp/stargazers","contributors_url":"https://api.github.com/repos/asmacdo/pulp/contributors","subscribers_url":"https://api.github.com/repos/asmacdo/pulp/subscribers","subscription_url":"https://api.github.com/repos/asmacdo/pulp/subscription","commits_url":"https://api.github.com/repos/asmacdo/pulp/commits{/sha}","git_commits_url":"https://api.github.com/repos/asmacdo/pulp/git/commits{/sha}","comments_url":"https://api.github.com/repos/asmacdo/pulp/comments{/number}","issue_comment_url":"https://api.github.com/repos/asmacdo/pulp/issues/comments/{number}","contents_url":"https://api.github.com/repos/asmacdo/pulp/contents/{+path}","compare_url":"https://api.github.com/repos/asmacdo/pulp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asmacdo/pulp/merges","archive_url":"https://api.github.com/repos/asmacdo/pulp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asmacdo/pulp/downloads","issues_url":"https://api.github.com/repos/asmacdo/pulp/issues{/number}","pulls_url":"https://api.github.com/repos/asmacdo/pulp/pulls{/number}","milestones_url":"https://api.github.com/repos/asmacdo/pulp/milestones{/number}","notifications_url":"https://api.github.com/repos/asmacdo/pulp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asmacdo/pulp/labels{/name}","releases_url":"https://api.github.com/repos/asmacdo/pulp/releases{/id}","created_at":"2014-08-03T15:27:48Z","updated_at":"2014-12-03T16:03:38Z","pushed_at":"2015-01-16T20:21:41Z","git_url":"git://github.com/asmacdo/pulp.git","ssh_url":"git@github.com:asmacdo/pulp.git","clone_url":"https://github.com/asmacdo/pulp.git","svn_url":"https://github.com/asmacdo/pulp","homepage":"","size":79536,"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:introducing-django","ref":"introducing-django","sha":"3863515f61d0f5c56dcc307d3a7ea2d01f144e16","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-01-16T20:20:23Z","pushed_at":"2015-01-16T20:51:41Z","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":199507,"stargazers_count":173,"watchers_count":173,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":33,"forks":74,"open_issues":33,"watchers":173,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1421"},"html":{"href":"https://github.com/pulp/pulp/pull/1421"},"issue":{"href":"https://api.github.com/repos/pulp/pulp/issues/1421"},"comments":{"href":"https://api.github.com/repos/pulp/pulp/issues/1421/comments"},"review_comments":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1421/comments"},"review_comment":{"href":"https://api.github.com/repos/pulp/pulp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/pulp/pulp/pulls/1421/commits"},"statuses":{"href":"https://api.github.com/repos/pulp/pulp/statuses/038598e4d4354a281f5b2f7089963a302488597b"}}}}