{"action":"opened","number":7319,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/7319","id":87356655,"html_url":"https://github.com/django/django/pull/7319","diff_url":"https://github.com/django/django/pull/7319.diff","patch_url":"https://github.com/django/django/pull/7319.patch","issue_url":"https://api.github.com/repos/django/django/issues/7319","number":7319,"state":"open","locked":false,"title":"#27193 -- Preserve ordering in subqueries containing select_for_update","user":{"login":"francoisfreitag","id":2758243,"avatar_url":"https://avatars.githubusercontent.com/u/2758243?v=3","gravatar_id":"","url":"https://api.github.com/users/francoisfreitag","html_url":"https://github.com/francoisfreitag","followers_url":"https://api.github.com/users/francoisfreitag/followers","following_url":"https://api.github.com/users/francoisfreitag/following{/other_user}","gists_url":"https://api.github.com/users/francoisfreitag/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisfreitag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisfreitag/subscriptions","organizations_url":"https://api.github.com/users/francoisfreitag/orgs","repos_url":"https://api.github.com/users/francoisfreitag/repos","events_url":"https://api.github.com/users/francoisfreitag/events{/privacy}","received_events_url":"https://api.github.com/users/francoisfreitag/received_events","type":"User","site_admin":false},"body":"A user should be able to control the rows' locking order on the DB when using select_for_update in a sub-query. One possible goal would be to prevent deadlocks.\r\n\r\nTrac ticket: https://code.djangoproject.com/ticket/27193.","created_at":"2016-09-29T17:22:50Z","updated_at":"2016-09-29T17:22:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/7319/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/7319/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/7319/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/445fb901b43bc4632030327e6a8f3ccefdb58d9a","head":{"label":"francoisfreitag:27193/order_by_in_select_for_update_subqueries","ref":"27193/order_by_in_select_for_update_subqueries","sha":"445fb901b43bc4632030327e6a8f3ccefdb58d9a","user":{"login":"francoisfreitag","id":2758243,"avatar_url":"https://avatars.githubusercontent.com/u/2758243?v=3","gravatar_id":"","url":"https://api.github.com/users/francoisfreitag","html_url":"https://github.com/francoisfreitag","followers_url":"https://api.github.com/users/francoisfreitag/followers","following_url":"https://api.github.com/users/francoisfreitag/following{/other_user}","gists_url":"https://api.github.com/users/francoisfreitag/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisfreitag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisfreitag/subscriptions","organizations_url":"https://api.github.com/users/francoisfreitag/orgs","repos_url":"https://api.github.com/users/francoisfreitag/repos","events_url":"https://api.github.com/users/francoisfreitag/events{/privacy}","received_events_url":"https://api.github.com/users/francoisfreitag/received_events","type":"User","site_admin":false},"repo":{"id":48332638,"name":"django","full_name":"francoisfreitag/django","owner":{"login":"francoisfreitag","id":2758243,"avatar_url":"https://avatars.githubusercontent.com/u/2758243?v=3","gravatar_id":"","url":"https://api.github.com/users/francoisfreitag","html_url":"https://github.com/francoisfreitag","followers_url":"https://api.github.com/users/francoisfreitag/followers","following_url":"https://api.github.com/users/francoisfreitag/following{/other_user}","gists_url":"https://api.github.com/users/francoisfreitag/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisfreitag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisfreitag/subscriptions","organizations_url":"https://api.github.com/users/francoisfreitag/orgs","repos_url":"https://api.github.com/users/francoisfreitag/repos","events_url":"https://api.github.com/users/francoisfreitag/events{/privacy}","received_events_url":"https://api.github.com/users/francoisfreitag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/francoisfreitag/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/francoisfreitag/django","forks_url":"https://api.github.com/repos/francoisfreitag/django/forks","keys_url":"https://api.github.com/repos/francoisfreitag/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/francoisfreitag/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/francoisfreitag/django/teams","hooks_url":"https://api.github.com/repos/francoisfreitag/django/hooks","issue_events_url":"https://api.github.com/repos/francoisfreitag/django/issues/events{/number}","events_url":"https://api.github.com/repos/francoisfreitag/django/events","assignees_url":"https://api.github.com/repos/francoisfreitag/django/assignees{/user}","branches_url":"https://api.github.com/repos/francoisfreitag/django/branches{/branch}","tags_url":"https://api.github.com/repos/francoisfreitag/django/tags","blobs_url":"https://api.github.com/repos/francoisfreitag/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/francoisfreitag/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/francoisfreitag/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/francoisfreitag/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/francoisfreitag/django/statuses/{sha}","languages_url":"https://api.github.com/repos/francoisfreitag/django/languages","stargazers_url":"https://api.github.com/repos/francoisfreitag/django/stargazers","contributors_url":"https://api.github.com/repos/francoisfreitag/django/contributors","subscribers_url":"https://api.github.com/repos/francoisfreitag/django/subscribers","subscription_url":"https://api.github.com/repos/francoisfreitag/django/subscription","commits_url":"https://api.github.com/repos/francoisfreitag/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/francoisfreitag/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/francoisfreitag/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/francoisfreitag/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/francoisfreitag/django/contents/{+path}","compare_url":"https://api.github.com/repos/francoisfreitag/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/francoisfreitag/django/merges","archive_url":"https://api.github.com/repos/francoisfreitag/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/francoisfreitag/django/downloads","issues_url":"https://api.github.com/repos/francoisfreitag/django/issues{/number}","pulls_url":"https://api.github.com/repos/francoisfreitag/django/pulls{/number}","milestones_url":"https://api.github.com/repos/francoisfreitag/django/milestones{/number}","notifications_url":"https://api.github.com/repos/francoisfreitag/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/francoisfreitag/django/labels{/name}","releases_url":"https://api.github.com/repos/francoisfreitag/django/releases{/id}","deployments_url":"https://api.github.com/repos/francoisfreitag/django/deployments","created_at":"2015-12-20T18:37:20Z","updated_at":"2016-09-07T01:04:46Z","pushed_at":"2016-09-29T17:22:14Z","git_url":"git://github.com/francoisfreitag/django.git","ssh_url":"git@github.com:francoisfreitag/django.git","clone_url":"https://github.com/francoisfreitag/django.git","svn_url":"https://github.com/francoisfreitag/django","homepage":"https://www.djangoproject.com/","size":140691,"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":"django:master","ref":"master","sha":"a09c058918f85949fd4c003e7ae62869f4559bd3","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","deployments_url":"https://api.github.com/repos/django/django/deployments","created_at":"2012-04-28T02:47:18Z","updated_at":"2016-09-29T16:36:29Z","pushed_at":"2016-09-29T16:12:46Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":201291,"stargazers_count":21422,"watchers_count":21422,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8605,"mirror_url":null,"open_issues_count":74,"forks":8605,"open_issues":74,"watchers":21422,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/7319"},"html":{"href":"https://github.com/django/django/pull/7319"},"issue":{"href":"https://api.github.com/repos/django/django/issues/7319"},"comments":{"href":"https://api.github.com/repos/django/django/issues/7319/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/7319/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/7319/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/445fb901b43bc4632030327e6a8f3ccefdb58d9a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"francoisfreitag"}}