{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/230233916","pull_request_review_id":170926252,"id":230233916,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDIzMzkxNg==","diff_hunk":"@@ -23,6 +23,15 @@ def test_simple_union(self):\n         qs3 = Number.objects.filter(num=5)\n         self.assertNumbersEqual(qs1.union(qs2, qs3), [0, 1, 5, 8, 9], ordered=False)\n \n+    def test_union_two_evaluations(self):\n+        qs = (\n+            Number.objects.filter(pk__in=[1, 2])\n+            .union(Number.objects.filter(pk__in=[4, 5]))\n+            .order_by('num')\n+        )\n+        self.assertEqual(list(qs.order_by().values_list('pk', flat=True)), [1, 2, 4, 5])\n+        self.assertCountEqual(list(qs.values_list('pk', flat=True)), [1, 2, 4, 5])","path":"tests/queries/test_qs_combinators.py","position":11,"original_position":11,"commit_id":"caa81268c514a100b606bf84ebb913f9b99f12c6","original_commit_id":"caa81268c514a100b606bf84ebb913f9b99f12c6","user":{"login":"timgraham","id":411869,"node_id":"MDQ6VXNlcjQxMTg2OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/411869?v=4","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":"This crashes on MySQL:\r\n```\r\n\"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`id` FROM ((SELECT `queries_number`.`id`,`queries_number`.`num` FROM `queries_n' at line 1\")\r\n```","created_at":"2018-11-01T23:38:49Z","updated_at":"2018-11-01T23:43:09Z","html_url":"https://github.com/django/django/pull/10554#discussion_r230233916","pull_request_url":"https://api.github.com/repos/django/django/pulls/10554","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/230233916"},"html":{"href":"https://github.com/django/django/pull/10554#discussion_r230233916"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/10554"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/10554","id":225424901,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDI0OTAx","html_url":"https://github.com/django/django/pull/10554","diff_url":"https://github.com/django/django/pull/10554.diff","patch_url":"https://github.com/django/django/pull/10554.patch","issue_url":"https://api.github.com/repos/django/django/issues/10554","number":10554,"state":"open","locked":false,"title":"Fixed #29834 -- Changed compiler.as_sql for combined queries that don't match columns ","user":{"login":"cansarigol","id":5008696,"node_id":"MDQ6VXNlcjUwMDg2OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/5008696?v=4","gravatar_id":"","url":"https://api.github.com/users/cansarigol","html_url":"https://github.com/cansarigol","followers_url":"https://api.github.com/users/cansarigol/followers","following_url":"https://api.github.com/users/cansarigol/following{/other_user}","gists_url":"https://api.github.com/users/cansarigol/gists{/gist_id}","starred_url":"https://api.github.com/users/cansarigol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cansarigol/subscriptions","organizations_url":"https://api.github.com/users/cansarigol/orgs","repos_url":"https://api.github.com/users/cansarigol/repos","events_url":"https://api.github.com/users/cansarigol/events{/privacy}","received_events_url":"https://api.github.com/users/cansarigol/received_events","type":"User","site_admin":false},"body":"Can this be a solution?\r\nhttps://code.djangoproject.com/ticket/29834","created_at":"2018-10-24T14:24:45Z","updated_at":"2018-11-01T23:43:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a56da5850854d41905bc81fba2406f9ef708279","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/10554/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/10554/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/10554/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/caa81268c514a100b606bf84ebb913f9b99f12c6","head":{"label":"cansarigol:ticket__29834","ref":"ticket__29834","sha":"caa81268c514a100b606bf84ebb913f9b99f12c6","user":{"login":"cansarigol","id":5008696,"node_id":"MDQ6VXNlcjUwMDg2OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/5008696?v=4","gravatar_id":"","url":"https://api.github.com/users/cansarigol","html_url":"https://github.com/cansarigol","followers_url":"https://api.github.com/users/cansarigol/followers","following_url":"https://api.github.com/users/cansarigol/following{/other_user}","gists_url":"https://api.github.com/users/cansarigol/gists{/gist_id}","starred_url":"https://api.github.com/users/cansarigol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cansarigol/subscriptions","organizations_url":"https://api.github.com/users/cansarigol/orgs","repos_url":"https://api.github.com/users/cansarigol/repos","events_url":"https://api.github.com/users/cansarigol/events{/privacy}","received_events_url":"https://api.github.com/users/cansarigol/received_events","type":"User","site_admin":false},"repo":{"id":145448650,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU0NDg2NTA=","name":"django","full_name":"cansarigol/django","private":false,"owner":{"login":"cansarigol","id":5008696,"node_id":"MDQ6VXNlcjUwMDg2OTY=","avatar_url":"https://avatars2.githubusercontent.com/u/5008696?v=4","gravatar_id":"","url":"https://api.github.com/users/cansarigol","html_url":"https://github.com/cansarigol","followers_url":"https://api.github.com/users/cansarigol/followers","following_url":"https://api.github.com/users/cansarigol/following{/other_user}","gists_url":"https://api.github.com/users/cansarigol/gists{/gist_id}","starred_url":"https://api.github.com/users/cansarigol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cansarigol/subscriptions","organizations_url":"https://api.github.com/users/cansarigol/orgs","repos_url":"https://api.github.com/users/cansarigol/repos","events_url":"https://api.github.com/users/cansarigol/events{/privacy}","received_events_url":"https://api.github.com/users/cansarigol/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cansarigol/django","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/cansarigol/django","forks_url":"https://api.github.com/repos/cansarigol/django/forks","keys_url":"https://api.github.com/repos/cansarigol/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cansarigol/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cansarigol/django/teams","hooks_url":"https://api.github.com/repos/cansarigol/django/hooks","issue_events_url":"https://api.github.com/repos/cansarigol/django/issues/events{/number}","events_url":"https://api.github.com/repos/cansarigol/django/events","assignees_url":"https://api.github.com/repos/cansarigol/django/assignees{/user}","branches_url":"https://api.github.com/repos/cansarigol/django/branches{/branch}","tags_url":"https://api.github.com/repos/cansarigol/django/tags","blobs_url":"https://api.github.com/repos/cansarigol/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cansarigol/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cansarigol/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/cansarigol/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cansarigol/django/statuses/{sha}","languages_url":"https://api.github.com/repos/cansarigol/django/languages","stargazers_url":"https://api.github.com/repos/cansarigol/django/stargazers","contributors_url":"https://api.github.com/repos/cansarigol/django/contributors","subscribers_url":"https://api.github.com/repos/cansarigol/django/subscribers","subscription_url":"https://api.github.com/repos/cansarigol/django/subscription","commits_url":"https://api.github.com/repos/cansarigol/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/cansarigol/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/cansarigol/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/cansarigol/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/cansarigol/django/contents/{+path}","compare_url":"https://api.github.com/repos/cansarigol/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cansarigol/django/merges","archive_url":"https://api.github.com/repos/cansarigol/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cansarigol/django/downloads","issues_url":"https://api.github.com/repos/cansarigol/django/issues{/number}","pulls_url":"https://api.github.com/repos/cansarigol/django/pulls{/number}","milestones_url":"https://api.github.com/repos/cansarigol/django/milestones{/number}","notifications_url":"https://api.github.com/repos/cansarigol/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cansarigol/django/labels{/name}","releases_url":"https://api.github.com/repos/cansarigol/django/releases{/id}","deployments_url":"https://api.github.com/repos/cansarigol/django/deployments","created_at":"2018-08-20T17:20:06Z","updated_at":"2018-10-06T07:29:10Z","pushed_at":"2018-11-01T07:44:11Z","git_url":"git://github.com/cansarigol/django.git","ssh_url":"git@github.com:cansarigol/django.git","clone_url":"https://github.com/cansarigol/django.git","svn_url":"https://github.com/cansarigol/django","homepage":"https://www.djangoproject.com/","size":183297,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django:master","ref":"master","sha":"58d1e9aa8ab505912389e7cd019a6f21785ad4bf","user":{"login":"django","id":27804,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3ODA0","avatar_url":"https://avatars2.githubusercontent.com/u/27804?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk0MTY0NDgy","name":"django","full_name":"django/django","private":false,"owner":{"login":"django","id":27804,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3ODA0","avatar_url":"https://avatars2.githubusercontent.com/u/27804?v=4","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},"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":"2018-11-01T21:25:20Z","pushed_at":"2018-11-01T16:08:38Z","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":183496,"stargazers_count":37340,"watchers_count":37340,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16077,"mirror_url":null,"archived":false,"open_issues_count":163,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":16077,"open_issues":163,"watchers":37340,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/10554"},"html":{"href":"https://github.com/django/django/pull/10554"},"issue":{"href":"https://api.github.com/repos/django/django/issues/10554"},"comments":{"href":"https://api.github.com/repos/django/django/issues/10554/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/10554/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/10554/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/caa81268c514a100b606bf84ebb913f9b99f12c6"}},"author_association":"NONE"}}
{"actor":{"display_login":"timgraham"}}