{"action":"created","issue":{"url":"https://api.github.com/repos/drupal-graphql/graphql/issues/493","repository_url":"https://api.github.com/repos/drupal-graphql/graphql","labels_url":"https://api.github.com/repos/drupal-graphql/graphql/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/drupal-graphql/graphql/issues/493/comments","events_url":"https://api.github.com/repos/drupal-graphql/graphql/issues/493/events","html_url":"https://github.com/drupal-graphql/graphql/issues/493","id":293736916,"number":493,"title":"reverseUidNode seems to be returning incorrect results","user":{"login":"justinlevi","id":1117989,"avatar_url":"https://avatars0.githubusercontent.com/u/1117989?v=4","gravatar_id":"","url":"https://api.github.com/users/justinlevi","html_url":"https://github.com/justinlevi","followers_url":"https://api.github.com/users/justinlevi/followers","following_url":"https://api.github.com/users/justinlevi/following{/other_user}","gists_url":"https://api.github.com/users/justinlevi/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlevi/subscriptions","organizations_url":"https://api.github.com/users/justinlevi/orgs","repos_url":"https://api.github.com/users/justinlevi/repos","events_url":"https://api.github.com/users/justinlevi/events{/privacy}","received_events_url":"https://api.github.com/users/justinlevi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-02T00:53:04Z","updated_at":"2018-02-02T12:58:37Z","closed_at":"2018-02-02T10:20:39Z","author_association":"NONE","body":"Note the results below are displaying a node owned/created by user 1(admin) even though I'm requesting the userById(id:\"2\"). \r\n\r\nquery: \r\n```\r\nquery {\r\n    user:userById(id:\"2\"){\r\n      ...on User{\r\n        uid\r\n        \r\n        reverseUidNode{\r\n          entities{\r\n            ...on NodePage{\r\n              title,\r\n              nid,\r\n              entityOwner{\r\n                entityLabel\r\n                entityId\r\n              }\r\n            }\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n```\r\n\r\nresults:\r\n\r\n```\r\n{\r\n  \"data\": {\r\n    \"user\": {\r\n      \"uid\": 2,\r\n      \"reverseUidNode\": {\r\n        \"entities\": [\r\n          {\r\n            \"title\": \"Hey\",\r\n            \"nid\": 1,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"admin\",\r\n              \"entityId\": \"1\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"asdfasdf\",\r\n            \"nid\": 4,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"asdfadsfads\",\r\n            \"nid\": 5,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"I wish Khang were a better programmer\",\r\n            \"nid\": 6,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"justin 1:45\",\r\n            \"nid\": 7,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"154 test\",\r\n            \"nid\": 8,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"test 156\",\r\n            \"nid\": 9,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"Test 159 Sucka\",\r\n            \"nid\": 10,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"Test 2:39 \",\r\n            \"nid\": 11,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          },\r\n          {\r\n            \"title\": \"adfadfasdfas\",\r\n            \"nid\": 12,\r\n            \"entityOwner\": {\r\n              \"entityLabel\": \"test\",\r\n              \"entityId\": \"2\"\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nNote: Query using uid 1 seems to return correct results though."},"comment":{"url":"https://api.github.com/repos/drupal-graphql/graphql/issues/comments/362579534","html_url":"https://github.com/drupal-graphql/graphql/issues/493#issuecomment-362579534","issue_url":"https://api.github.com/repos/drupal-graphql/graphql/issues/493","id":362579534,"user":{"login":"justinlevi","id":1117989,"avatar_url":"https://avatars0.githubusercontent.com/u/1117989?v=4","gravatar_id":"","url":"https://api.github.com/users/justinlevi","html_url":"https://github.com/justinlevi","followers_url":"https://api.github.com/users/justinlevi/followers","following_url":"https://api.github.com/users/justinlevi/following{/other_user}","gists_url":"https://api.github.com/users/justinlevi/gists{/gist_id}","starred_url":"https://api.github.com/users/justinlevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinlevi/subscriptions","organizations_url":"https://api.github.com/users/justinlevi/orgs","repos_url":"https://api.github.com/users/justinlevi/repos","events_url":"https://api.github.com/users/justinlevi/events{/privacy}","received_events_url":"https://api.github.com/users/justinlevi/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T12:58:37Z","updated_at":"2018-02-02T12:58:37Z","author_association":"NONE","body":"The issue seemed to be with that node for some reason. The author was set to \"admin\" when I went to the edit screen, but if I was on the content screen, it was listed with the author as \"test\". I have no idea how that node would have gotten corrupted, but perhaps it was something I did during one of my other mutation tests. \r\n\r\nsuper bizarre. "}}
{"actor":{"display_login":"justinlevi"}}