{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/zamboni/pulls/comments/38694074","id":38694074,"diff_hunk":"@@ -1,24 +1,23 @@\n # -*- coding: utf-8 -*-\n from nose.tools import eq_, ok_\n \n-from mkt.constants.base import STATUS_PENDING\n+from mkt.constants.base import STATUS_PENDING, STATUS_PUBLIC\n from mkt.site.tests import ESTestCase, TestCase\n from mkt.extensions.indexers import ExtensionIndexer\n-from mkt.extensions.models import Extension\n+from mkt.extensions.models import Extension, ExtensionVersion\n \n \n-class TestWebsiteIndexer(TestCase):\n+class TestExtensionIndexer(TestCase):\n \n     def setUp(self):\n         self.indexer = Extension.get_indexer()()\n \n-    def _extension_factory(self):\n-        return Extension.objects.create(**{\n-            'name': u'Test Êxtension',\n-            'slug': u'test-ëxtension',\n-            'status': STATUS_PENDING,\n-            'version': '0.42',\n-        })\n+    def _extension_factory(self, status=STATUS_PENDING):","path":"mkt/extensions/tests/test_indexers.py","position":25,"original_position":25,"commit_id":"9e4a87caa2c232413fe662bc4eaffc04d5a55d90","original_commit_id":"9e4a87caa2c232413fe662bc4eaffc04d5a55d90","user":{"login":"ngokevin","id":674727,"avatar_url":"https://avatars.githubusercontent.com/u/674727?v=3","gravatar_id":"","url":"https://api.github.com/users/ngokevin","html_url":"https://github.com/ngokevin","followers_url":"https://api.github.com/users/ngokevin/followers","following_url":"https://api.github.com/users/ngokevin/following{/other_user}","gists_url":"https://api.github.com/users/ngokevin/gists{/gist_id}","starred_url":"https://api.github.com/users/ngokevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngokevin/subscriptions","organizations_url":"https://api.github.com/users/ngokevin/orgs","repos_url":"https://api.github.com/users/ngokevin/repos","events_url":"https://api.github.com/users/ngokevin/events{/privacy}","received_events_url":"https://api.github.com/users/ngokevin/received_events","type":"User","site_admin":false},"body":"might benefit from having one of these in site.tests","created_at":"2015-09-03T20:41:49Z","updated_at":"2015-09-03T20:41:49Z","html_url":"https://github.com/mozilla/zamboni/pull/3320#discussion_r38694074","pull_request_url":"https://api.github.com/repos/mozilla/zamboni/pulls/3320","_links":{"self":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/comments/38694074"},"html":{"href":"https://github.com/mozilla/zamboni/pull/3320#discussion_r38694074"},"pull_request":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/3320"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/zamboni/pulls/3320","id":44143677,"html_url":"https://github.com/mozilla/zamboni/pull/3320","diff_url":"https://github.com/mozilla/zamboni/pull/3320.diff","patch_url":"https://github.com/mozilla/zamboni/pull/3320.patch","issue_url":"https://api.github.com/repos/mozilla/zamboni/issues/3320","number":3320,"state":"open","locked":false,"title":"Implement versions for FxOS Add-ons (bug 1201641)","user":{"login":"diox","id":187006,"avatar_url":"https://avatars.githubusercontent.com/u/187006?v=3","gravatar_id":"","url":"https://api.github.com/users/diox","html_url":"https://github.com/diox","followers_url":"https://api.github.com/users/diox/followers","following_url":"https://api.github.com/users/diox/following{/other_user}","gists_url":"https://api.github.com/users/diox/gists{/gist_id}","starred_url":"https://api.github.com/users/diox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diox/subscriptions","organizations_url":"https://api.github.com/users/diox/orgs","repos_url":"https://api.github.com/users/diox/repos","events_url":"https://api.github.com/users/diox/events{/privacy}","received_events_url":"https://api.github.com/users/diox/received_events","type":"User","site_admin":false},"body":"https://bugzilla.mozilla.org/show_bug.cgi?id=1201641\r\n\r\nSummary of the API changes:\r\n* Two new properties are available on add-ons: `latest_public_version` and `latest_version`.\r\n* Two new endpoints are available to list the versions of an add-on and to get the detail for a particular version.\r\n* `download_url` and `unsigned_download_url` move to the versions objects/endpoints\r\n* `mini_manifest_url` is unchanged, always points to the latest public version for download\r\n* You no longer publish/reject add-ons, you publish/reject versions, and add-ons status inherit the \"best\" possible status from their versions, or goes back to \"incomplete\".\r\n* The review queue is still the same, but also lists any add-on with a non-public version.","created_at":"2015-09-03T18:56:34Z","updated_at":"2015-09-03T20:41:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b938dec652a047c50a5cffb4824e9ef18546cf9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/zamboni/pulls/3320/commits","review_comments_url":"https://api.github.com/repos/mozilla/zamboni/pulls/3320/comments","review_comment_url":"https://api.github.com/repos/mozilla/zamboni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/zamboni/issues/3320/comments","statuses_url":"https://api.github.com/repos/mozilla/zamboni/statuses/9e4a87caa2c232413fe662bc4eaffc04d5a55d90","head":{"label":"diox:extensions-versions","ref":"extensions-versions","sha":"9e4a87caa2c232413fe662bc4eaffc04d5a55d90","user":{"login":"diox","id":187006,"avatar_url":"https://avatars.githubusercontent.com/u/187006?v=3","gravatar_id":"","url":"https://api.github.com/users/diox","html_url":"https://github.com/diox","followers_url":"https://api.github.com/users/diox/followers","following_url":"https://api.github.com/users/diox/following{/other_user}","gists_url":"https://api.github.com/users/diox/gists{/gist_id}","starred_url":"https://api.github.com/users/diox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diox/subscriptions","organizations_url":"https://api.github.com/users/diox/orgs","repos_url":"https://api.github.com/users/diox/repos","events_url":"https://api.github.com/users/diox/events{/privacy}","received_events_url":"https://api.github.com/users/diox/received_events","type":"User","site_admin":false},"repo":{"id":10216041,"name":"zamboni","full_name":"diox/zamboni","owner":{"login":"diox","id":187006,"avatar_url":"https://avatars.githubusercontent.com/u/187006?v=3","gravatar_id":"","url":"https://api.github.com/users/diox","html_url":"https://github.com/diox","followers_url":"https://api.github.com/users/diox/followers","following_url":"https://api.github.com/users/diox/following{/other_user}","gists_url":"https://api.github.com/users/diox/gists{/gist_id}","starred_url":"https://api.github.com/users/diox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diox/subscriptions","organizations_url":"https://api.github.com/users/diox/orgs","repos_url":"https://api.github.com/users/diox/repos","events_url":"https://api.github.com/users/diox/events{/privacy}","received_events_url":"https://api.github.com/users/diox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diox/zamboni","description":"The backend of the Firefox Marketplace","fork":true,"url":"https://api.github.com/repos/diox/zamboni","forks_url":"https://api.github.com/repos/diox/zamboni/forks","keys_url":"https://api.github.com/repos/diox/zamboni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diox/zamboni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diox/zamboni/teams","hooks_url":"https://api.github.com/repos/diox/zamboni/hooks","issue_events_url":"https://api.github.com/repos/diox/zamboni/issues/events{/number}","events_url":"https://api.github.com/repos/diox/zamboni/events","assignees_url":"https://api.github.com/repos/diox/zamboni/assignees{/user}","branches_url":"https://api.github.com/repos/diox/zamboni/branches{/branch}","tags_url":"https://api.github.com/repos/diox/zamboni/tags","blobs_url":"https://api.github.com/repos/diox/zamboni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diox/zamboni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diox/zamboni/git/refs{/sha}","trees_url":"https://api.github.com/repos/diox/zamboni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diox/zamboni/statuses/{sha}","languages_url":"https://api.github.com/repos/diox/zamboni/languages","stargazers_url":"https://api.github.com/repos/diox/zamboni/stargazers","contributors_url":"https://api.github.com/repos/diox/zamboni/contributors","subscribers_url":"https://api.github.com/repos/diox/zamboni/subscribers","subscription_url":"https://api.github.com/repos/diox/zamboni/subscription","commits_url":"https://api.github.com/repos/diox/zamboni/commits{/sha}","git_commits_url":"https://api.github.com/repos/diox/zamboni/git/commits{/sha}","comments_url":"https://api.github.com/repos/diox/zamboni/comments{/number}","issue_comment_url":"https://api.github.com/repos/diox/zamboni/issues/comments{/number}","contents_url":"https://api.github.com/repos/diox/zamboni/contents/{+path}","compare_url":"https://api.github.com/repos/diox/zamboni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diox/zamboni/merges","archive_url":"https://api.github.com/repos/diox/zamboni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diox/zamboni/downloads","issues_url":"https://api.github.com/repos/diox/zamboni/issues{/number}","pulls_url":"https://api.github.com/repos/diox/zamboni/pulls{/number}","milestones_url":"https://api.github.com/repos/diox/zamboni/milestones{/number}","notifications_url":"https://api.github.com/repos/diox/zamboni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diox/zamboni/labels{/name}","releases_url":"https://api.github.com/repos/diox/zamboni/releases{/id}","created_at":"2013-05-22T09:07:50Z","updated_at":"2015-05-07T16:20:10Z","pushed_at":"2015-09-03T19:07:06Z","git_url":"git://github.com/diox/zamboni.git","ssh_url":"git@github.com:diox/zamboni.git","clone_url":"https://github.com/diox/zamboni.git","svn_url":"https://github.com/diox/zamboni","homepage":" http://zamboni.readthedocs.org","size":394800,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"88889eb4bcc7914e2e5d15be1a05c58e7448e591","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":347655,"name":"zamboni","full_name":"mozilla/zamboni","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/zamboni","description":"Backend for the Firefox Marketplace","fork":false,"url":"https://api.github.com/repos/mozilla/zamboni","forks_url":"https://api.github.com/repos/mozilla/zamboni/forks","keys_url":"https://api.github.com/repos/mozilla/zamboni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/zamboni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/zamboni/teams","hooks_url":"https://api.github.com/repos/mozilla/zamboni/hooks","issue_events_url":"https://api.github.com/repos/mozilla/zamboni/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/zamboni/events","assignees_url":"https://api.github.com/repos/mozilla/zamboni/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/zamboni/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/zamboni/tags","blobs_url":"https://api.github.com/repos/mozilla/zamboni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/zamboni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/zamboni/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/zamboni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/zamboni/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/zamboni/languages","stargazers_url":"https://api.github.com/repos/mozilla/zamboni/stargazers","contributors_url":"https://api.github.com/repos/mozilla/zamboni/contributors","subscribers_url":"https://api.github.com/repos/mozilla/zamboni/subscribers","subscription_url":"https://api.github.com/repos/mozilla/zamboni/subscription","commits_url":"https://api.github.com/repos/mozilla/zamboni/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/zamboni/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/zamboni/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/zamboni/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/zamboni/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/zamboni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/zamboni/merges","archive_url":"https://api.github.com/repos/mozilla/zamboni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/zamboni/downloads","issues_url":"https://api.github.com/repos/mozilla/zamboni/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/zamboni/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/zamboni/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/zamboni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/zamboni/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/zamboni/releases{/id}","created_at":"2009-10-23T19:35:34Z","updated_at":"2015-08-19T13:36:06Z","pushed_at":"2015-09-03T19:07:07Z","git_url":"git://github.com/mozilla/zamboni.git","ssh_url":"git@github.com:mozilla/zamboni.git","clone_url":"https://github.com/mozilla/zamboni.git","svn_url":"https://github.com/mozilla/zamboni","homepage":"http://marketplace.readthedocs.org/en/latest/topics/backend.html","size":455438,"stargazers_count":467,"watchers_count":467,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":253,"mirror_url":null,"open_issues_count":15,"forks":253,"open_issues":15,"watchers":467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/3320"},"html":{"href":"https://github.com/mozilla/zamboni/pull/3320"},"issue":{"href":"https://api.github.com/repos/mozilla/zamboni/issues/3320"},"comments":{"href":"https://api.github.com/repos/mozilla/zamboni/issues/3320/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/3320/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/zamboni/pulls/3320/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/zamboni/statuses/9e4a87caa2c232413fe662bc4eaffc04d5a55d90"}}}}