{"action":"closed","number":4313,"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/4313","id":31131443,"html_url":"https://github.com/django/django/pull/4313","diff_url":"https://github.com/django/django/pull/4313.diff","patch_url":"https://github.com/django/django/pull/4313.patch","issue_url":"https://api.github.com/repos/django/django/issues/4313","number":4313,"state":"closed","locked":false,"title":"Fixed #23746 -- Added a pre_capture_queries signal that clears query caches.","user":{"login":"timgraham","id":411869,"avatar_url":"https://avatars.githubusercontent.com/u/411869?v=3","gravatar_id":"","url":"https://api.github.com/users/timgraham","html_url":"https://github.com/timgraham","followers_url":"https://api.github.com/users/timgraham/followers","following_url":"https://api.github.com/users/timgraham/following{/other_user}","gists_url":"https://api.github.com/users/timgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/timgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgraham/subscriptions","organizations_url":"https://api.github.com/users/timgraham/orgs","repos_url":"https://api.github.com/users/timgraham/repos","events_url":"https://api.github.com/users/timgraham/events{/privacy}","received_events_url":"https://api.github.com/users/timgraham/received_events","type":"User","site_admin":false},"body":"The signal is sent before entering a capturing context (assertNumQueries /\r\nCaptureQueriesContext), letting listeners pre-clear some query caches.\r\nThanks to that the number of queries doesn't depend on execution history.\r\n\r\nDisabled the cache clearing (by disconnected the signal temporarily) for\r\ncontenttypes tests that actually test cache priming.\r\n\r\nIncreased the expected number of queries in a few prefetch_related tests\r\nas they now can't rely on having content types cached.\r\n\r\nReverted fixes from #17377, #20432 and #23746 as they are no longer needed.","created_at":"2015-03-13T14:44:37Z","updated_at":"2015-03-13T16:14:08Z","closed_at":"2015-03-13T16:14:08Z","merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/4313/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/4313/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/4313/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/e359b2ff451d0c199ad584e43763ba6ae15bf7d8","head":{"label":"wrwrwr:ticket_23746","ref":"ticket_23746","sha":"e359b2ff451d0c199ad584e43763ba6ae15bf7d8","user":{"login":"wrwrwr","id":1221991,"avatar_url":"https://avatars.githubusercontent.com/u/1221991?v=3","gravatar_id":"","url":"https://api.github.com/users/wrwrwr","html_url":"https://github.com/wrwrwr","followers_url":"https://api.github.com/users/wrwrwr/followers","following_url":"https://api.github.com/users/wrwrwr/following{/other_user}","gists_url":"https://api.github.com/users/wrwrwr/gists{/gist_id}","starred_url":"https://api.github.com/users/wrwrwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrwrwr/subscriptions","organizations_url":"https://api.github.com/users/wrwrwr/orgs","repos_url":"https://api.github.com/users/wrwrwr/repos","events_url":"https://api.github.com/users/wrwrwr/events{/privacy}","received_events_url":"https://api.github.com/users/wrwrwr/received_events","type":"User","site_admin":false},"repo":{"id":8479297,"name":"django","full_name":"wrwrwr/django","owner":{"login":"wrwrwr","id":1221991,"avatar_url":"https://avatars.githubusercontent.com/u/1221991?v=3","gravatar_id":"","url":"https://api.github.com/users/wrwrwr","html_url":"https://github.com/wrwrwr","followers_url":"https://api.github.com/users/wrwrwr/followers","following_url":"https://api.github.com/users/wrwrwr/following{/other_user}","gists_url":"https://api.github.com/users/wrwrwr/gists{/gist_id}","starred_url":"https://api.github.com/users/wrwrwr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrwrwr/subscriptions","organizations_url":"https://api.github.com/users/wrwrwr/orgs","repos_url":"https://api.github.com/users/wrwrwr/repos","events_url":"https://api.github.com/users/wrwrwr/events{/privacy}","received_events_url":"https://api.github.com/users/wrwrwr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrwrwr/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/wrwrwr/django","forks_url":"https://api.github.com/repos/wrwrwr/django/forks","keys_url":"https://api.github.com/repos/wrwrwr/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrwrwr/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrwrwr/django/teams","hooks_url":"https://api.github.com/repos/wrwrwr/django/hooks","issue_events_url":"https://api.github.com/repos/wrwrwr/django/issues/events{/number}","events_url":"https://api.github.com/repos/wrwrwr/django/events","assignees_url":"https://api.github.com/repos/wrwrwr/django/assignees{/user}","branches_url":"https://api.github.com/repos/wrwrwr/django/branches{/branch}","tags_url":"https://api.github.com/repos/wrwrwr/django/tags","blobs_url":"https://api.github.com/repos/wrwrwr/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrwrwr/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrwrwr/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrwrwr/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrwrwr/django/statuses/{sha}","languages_url":"https://api.github.com/repos/wrwrwr/django/languages","stargazers_url":"https://api.github.com/repos/wrwrwr/django/stargazers","contributors_url":"https://api.github.com/repos/wrwrwr/django/contributors","subscribers_url":"https://api.github.com/repos/wrwrwr/django/subscribers","subscription_url":"https://api.github.com/repos/wrwrwr/django/subscription","commits_url":"https://api.github.com/repos/wrwrwr/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrwrwr/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrwrwr/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrwrwr/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrwrwr/django/contents/{+path}","compare_url":"https://api.github.com/repos/wrwrwr/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrwrwr/django/merges","archive_url":"https://api.github.com/repos/wrwrwr/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrwrwr/django/downloads","issues_url":"https://api.github.com/repos/wrwrwr/django/issues{/number}","pulls_url":"https://api.github.com/repos/wrwrwr/django/pulls{/number}","milestones_url":"https://api.github.com/repos/wrwrwr/django/milestones{/number}","notifications_url":"https://api.github.com/repos/wrwrwr/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrwrwr/django/labels{/name}","releases_url":"https://api.github.com/repos/wrwrwr/django/releases{/id}","created_at":"2013-02-28T13:06:13Z","updated_at":"2014-12-01T20:14:31Z","pushed_at":"2014-12-05T18:03:21Z","git_url":"git://github.com/wrwrwr/django.git","ssh_url":"git@github.com:wrwrwr/django.git","clone_url":"https://github.com/wrwrwr/django.git","svn_url":"https://github.com/wrwrwr/django","homepage":"http://www.djangoproject.com/","size":103852,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"f6b09a7f85c3b67b2011553838b079788c413432","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}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-03-13T16:07:42Z","pushed_at":"2015-03-13T15:58:06Z","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":266505,"stargazers_count":13268,"watchers_count":13268,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5201,"mirror_url":null,"open_issues_count":95,"forks":5201,"open_issues":95,"watchers":13268,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/4313"},"html":{"href":"https://github.com/django/django/pull/4313"},"issue":{"href":"https://api.github.com/repos/django/django/issues/4313"},"comments":{"href":"https://api.github.com/repos/django/django/issues/4313/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/4313/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/4313/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/e359b2ff451d0c199ad584e43763ba6ae15bf7d8"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":78,"deletions":26,"changed_files":11}}