{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/pontoon/pulls/comments/87428550","pull_request_review_id":8041179,"id":87428550,"diff_hunk":"@@ -172,6 +175,21 @@ def projects(request):\n     })\n \n \n+@login_required(redirect_field_name='', login_url='/403')\n+@require_AJAX\n+def manually_sync_project(request, slug):\n+    if not request.user.has_perm('base.can_manage'):","path":"pontoon/base/views.py","position":17,"original_position":17,"commit_id":"6e0313f35d4a000829ad4b8965bec26c08471818","original_commit_id":"6e0313f35d4a000829ad4b8965bec26c08471818","user":{"login":"jotes","id":8784972,"avatar_url":"https://avatars.githubusercontent.com/u/8784972?v=3","gravatar_id":"","url":"https://api.github.com/users/jotes","html_url":"https://github.com/jotes","followers_url":"https://api.github.com/users/jotes/followers","following_url":"https://api.github.com/users/jotes/following{/other_user}","gists_url":"https://api.github.com/users/jotes/gists{/gist_id}","starred_url":"https://api.github.com/users/jotes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotes/subscriptions","organizations_url":"https://api.github.com/users/jotes/orgs","repos_url":"https://api.github.com/users/jotes/repos","events_url":"https://api.github.com/users/jotes/events{/privacy}","received_events_url":"https://api.github.com/users/jotes/received_events","type":"User","site_admin":false},"body":"I think we could add `and settings.MANUAL_SYNC` here.","created_at":"2016-11-10T16:17:58Z","updated_at":"2016-11-10T16:42:44Z","html_url":"https://github.com/mozilla/pontoon/pull/497#discussion_r87428550","pull_request_url":"https://api.github.com/repos/mozilla/pontoon/pulls/497","_links":{"self":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/comments/87428550"},"html":{"href":"https://github.com/mozilla/pontoon/pull/497#discussion_r87428550"},"pull_request":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/497"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/pontoon/pulls/497","id":93180229,"html_url":"https://github.com/mozilla/pontoon/pull/497","diff_url":"https://github.com/mozilla/pontoon/pull/497.diff","patch_url":"https://github.com/mozilla/pontoon/pull/497.patch","issue_url":"https://api.github.com/repos/mozilla/pontoon/issues/497","number":497,"state":"open","locked":false,"title":"Manually trigger sync from project administration","user":{"login":"mathjazz","id":626716,"avatar_url":"https://avatars.githubusercontent.com/u/626716?v=3","gravatar_id":"","url":"https://api.github.com/users/mathjazz","html_url":"https://github.com/mathjazz","followers_url":"https://api.github.com/users/mathjazz/followers","following_url":"https://api.github.com/users/mathjazz/following{/other_user}","gists_url":"https://api.github.com/users/mathjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjazz/subscriptions","organizations_url":"https://api.github.com/users/mathjazz/orgs","repos_url":"https://api.github.com/users/mathjazz/repos","events_url":"https://api.github.com/users/mathjazz/events{/privacy}","received_events_url":"https://api.github.com/users/mathjazz/received_events","type":"User","site_admin":false},"body":"@jotes r?\r\n\r\nThis functionality allows admins to e.g. set projects up on staging server and see if they sync.","created_at":"2016-11-10T16:11:13Z","updated_at":"2016-11-10T16:42:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3f4f8fe74b769bb1467e6577e3330d5ce50648a2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/pontoon/pulls/497/commits","review_comments_url":"https://api.github.com/repos/mozilla/pontoon/pulls/497/comments","review_comment_url":"https://api.github.com/repos/mozilla/pontoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/pontoon/issues/497/comments","statuses_url":"https://api.github.com/repos/mozilla/pontoon/statuses/6e0313f35d4a000829ad4b8965bec26c08471818","head":{"label":"mathjazz:manual-sync","ref":"manual-sync","sha":"6e0313f35d4a000829ad4b8965bec26c08471818","user":{"login":"mathjazz","id":626716,"avatar_url":"https://avatars.githubusercontent.com/u/626716?v=3","gravatar_id":"","url":"https://api.github.com/users/mathjazz","html_url":"https://github.com/mathjazz","followers_url":"https://api.github.com/users/mathjazz/followers","following_url":"https://api.github.com/users/mathjazz/following{/other_user}","gists_url":"https://api.github.com/users/mathjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjazz/subscriptions","organizations_url":"https://api.github.com/users/mathjazz/orgs","repos_url":"https://api.github.com/users/mathjazz/repos","events_url":"https://api.github.com/users/mathjazz/events{/privacy}","received_events_url":"https://api.github.com/users/mathjazz/received_events","type":"User","site_admin":false},"repo":{"id":35116849,"name":"pontoon","full_name":"mathjazz/pontoon","owner":{"login":"mathjazz","id":626716,"avatar_url":"https://avatars.githubusercontent.com/u/626716?v=3","gravatar_id":"","url":"https://api.github.com/users/mathjazz","html_url":"https://github.com/mathjazz","followers_url":"https://api.github.com/users/mathjazz/followers","following_url":"https://api.github.com/users/mathjazz/following{/other_user}","gists_url":"https://api.github.com/users/mathjazz/gists{/gist_id}","starred_url":"https://api.github.com/users/mathjazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathjazz/subscriptions","organizations_url":"https://api.github.com/users/mathjazz/orgs","repos_url":"https://api.github.com/users/mathjazz/repos","events_url":"https://api.github.com/users/mathjazz/events{/privacy}","received_events_url":"https://api.github.com/users/mathjazz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mathjazz/pontoon","description":"In-place localization tool","fork":true,"url":"https://api.github.com/repos/mathjazz/pontoon","forks_url":"https://api.github.com/repos/mathjazz/pontoon/forks","keys_url":"https://api.github.com/repos/mathjazz/pontoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mathjazz/pontoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mathjazz/pontoon/teams","hooks_url":"https://api.github.com/repos/mathjazz/pontoon/hooks","issue_events_url":"https://api.github.com/repos/mathjazz/pontoon/issues/events{/number}","events_url":"https://api.github.com/repos/mathjazz/pontoon/events","assignees_url":"https://api.github.com/repos/mathjazz/pontoon/assignees{/user}","branches_url":"https://api.github.com/repos/mathjazz/pontoon/branches{/branch}","tags_url":"https://api.github.com/repos/mathjazz/pontoon/tags","blobs_url":"https://api.github.com/repos/mathjazz/pontoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mathjazz/pontoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mathjazz/pontoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mathjazz/pontoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mathjazz/pontoon/statuses/{sha}","languages_url":"https://api.github.com/repos/mathjazz/pontoon/languages","stargazers_url":"https://api.github.com/repos/mathjazz/pontoon/stargazers","contributors_url":"https://api.github.com/repos/mathjazz/pontoon/contributors","subscribers_url":"https://api.github.com/repos/mathjazz/pontoon/subscribers","subscription_url":"https://api.github.com/repos/mathjazz/pontoon/subscription","commits_url":"https://api.github.com/repos/mathjazz/pontoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mathjazz/pontoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mathjazz/pontoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mathjazz/pontoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/mathjazz/pontoon/contents/{+path}","compare_url":"https://api.github.com/repos/mathjazz/pontoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mathjazz/pontoon/merges","archive_url":"https://api.github.com/repos/mathjazz/pontoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mathjazz/pontoon/downloads","issues_url":"https://api.github.com/repos/mathjazz/pontoon/issues{/number}","pulls_url":"https://api.github.com/repos/mathjazz/pontoon/pulls{/number}","milestones_url":"https://api.github.com/repos/mathjazz/pontoon/milestones{/number}","notifications_url":"https://api.github.com/repos/mathjazz/pontoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mathjazz/pontoon/labels{/name}","releases_url":"https://api.github.com/repos/mathjazz/pontoon/releases{/id}","deployments_url":"https://api.github.com/repos/mathjazz/pontoon/deployments","created_at":"2015-05-05T18:28:58Z","updated_at":"2016-10-25T09:24:45Z","pushed_at":"2016-11-10T16:09:25Z","git_url":"git://github.com/mathjazz/pontoon.git","ssh_url":"git@github.com:mathjazz/pontoon.git","clone_url":"https://github.com/mathjazz/pontoon.git","svn_url":"https://github.com/mathjazz/pontoon","homepage":"https://pontoon.mozilla.org/","size":20330,"stargazers_count":1,"watchers_count":1,"language":"Python","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":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"12bf17f0483185a331fe6d5392223819b4aa58d5","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":1385890,"name":"pontoon","full_name":"mozilla/pontoon","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/pontoon","description":"In-place localization tool","fork":false,"url":"https://api.github.com/repos/mozilla/pontoon","forks_url":"https://api.github.com/repos/mozilla/pontoon/forks","keys_url":"https://api.github.com/repos/mozilla/pontoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/pontoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/pontoon/teams","hooks_url":"https://api.github.com/repos/mozilla/pontoon/hooks","issue_events_url":"https://api.github.com/repos/mozilla/pontoon/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/pontoon/events","assignees_url":"https://api.github.com/repos/mozilla/pontoon/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/pontoon/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/pontoon/tags","blobs_url":"https://api.github.com/repos/mozilla/pontoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/pontoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/pontoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/pontoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/pontoon/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/pontoon/languages","stargazers_url":"https://api.github.com/repos/mozilla/pontoon/stargazers","contributors_url":"https://api.github.com/repos/mozilla/pontoon/contributors","subscribers_url":"https://api.github.com/repos/mozilla/pontoon/subscribers","subscription_url":"https://api.github.com/repos/mozilla/pontoon/subscription","commits_url":"https://api.github.com/repos/mozilla/pontoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/pontoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/pontoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/pontoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/pontoon/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/pontoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/pontoon/merges","archive_url":"https://api.github.com/repos/mozilla/pontoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/pontoon/downloads","issues_url":"https://api.github.com/repos/mozilla/pontoon/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/pontoon/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/pontoon/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/pontoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/pontoon/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/pontoon/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/pontoon/deployments","created_at":"2011-02-19T11:25:51Z","updated_at":"2016-11-02T14:48:37Z","pushed_at":"2016-11-10T16:11:13Z","git_url":"git://github.com/mozilla/pontoon.git","ssh_url":"git@github.com:mozilla/pontoon.git","clone_url":"https://github.com/mozilla/pontoon.git","svn_url":"https://github.com/mozilla/pontoon","homepage":"https://pontoon.mozilla.org/","size":20649,"stargazers_count":138,"watchers_count":138,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":5,"forks":54,"open_issues":5,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/497"},"html":{"href":"https://github.com/mozilla/pontoon/pull/497"},"issue":{"href":"https://api.github.com/repos/mozilla/pontoon/issues/497"},"comments":{"href":"https://api.github.com/repos/mozilla/pontoon/issues/497/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/497/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/pontoon/pulls/497/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/pontoon/statuses/6e0313f35d4a000829ad4b8965bec26c08471818"}}}}
{"actor":{"display_login":"jotes"}}