{"action":"created","issue":{"url":"https://api.github.com/repos/pods-framework/pods/issues/4687","repository_url":"https://api.github.com/repos/pods-framework/pods","labels_url":"https://api.github.com/repos/pods-framework/pods/issues/4687/labels{/name}","comments_url":"https://api.github.com/repos/pods-framework/pods/issues/4687/comments","events_url":"https://api.github.com/repos/pods-framework/pods/issues/4687/events","html_url":"https://github.com/pods-framework/pods/issues/4687","id":284636465,"number":4687,"title":"Bidirectional relationship data corrupted","user":{"login":"CPapadim","id":13984473,"avatar_url":"https://avatars1.githubusercontent.com/u/13984473?v=4","gravatar_id":"","url":"https://api.github.com/users/CPapadim","html_url":"https://github.com/CPapadim","followers_url":"https://api.github.com/users/CPapadim/followers","following_url":"https://api.github.com/users/CPapadim/following{/other_user}","gists_url":"https://api.github.com/users/CPapadim/gists{/gist_id}","starred_url":"https://api.github.com/users/CPapadim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPapadim/subscriptions","organizations_url":"https://api.github.com/users/CPapadim/orgs","repos_url":"https://api.github.com/users/CPapadim/repos","events_url":"https://api.github.com/users/CPapadim/events{/privacy}","received_events_url":"https://api.github.com/users/CPapadim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-27T02:34:48Z","updated_at":"2017-12-27T02:51:10Z","closed_at":null,"author_association":"NONE","body":"I'm not exactly sure how this happened.  I have a bidirectional relationship, let's say authors and books.  I added a new image field to 'authors' content type, populated that field with temporary data for all instances of that content type, and then later updated that data in that image field with yet newer (production) data.\r\n\r\nAt some point in the above process, the 'books' bidirectional relationship was corrupted.  Although the related books all showed up correctly in the admin edit view, when querying against them using select, t.ID returned back the id of the first related book.  What's interesting is that it returned the correct number of related books, but just the t.ID was all the same t.ID, that of the first 'book'.\r\n\r\nRe-saving the author content type seems to have repaired the issue and now t.ID is returning back all of the different IDs, but ONLY for those authors that have been re-saved.\r\n\r\nIt's unclear to me which of the above things I did with field creation, or something entirely unrelated, caused the issue."},"comment":{"url":"https://api.github.com/repos/pods-framework/pods/issues/comments/354041809","html_url":"https://github.com/pods-framework/pods/issues/4687#issuecomment-354041809","issue_url":"https://api.github.com/repos/pods-framework/pods/issues/4687","id":354041809,"user":{"login":"CPapadim","id":13984473,"avatar_url":"https://avatars1.githubusercontent.com/u/13984473?v=4","gravatar_id":"","url":"https://api.github.com/users/CPapadim","html_url":"https://github.com/CPapadim","followers_url":"https://api.github.com/users/CPapadim/followers","following_url":"https://api.github.com/users/CPapadim/following{/other_user}","gists_url":"https://api.github.com/users/CPapadim/gists{/gist_id}","starred_url":"https://api.github.com/users/CPapadim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPapadim/subscriptions","organizations_url":"https://api.github.com/users/CPapadim/orgs","repos_url":"https://api.github.com/users/CPapadim/repos","events_url":"https://api.github.com/users/CPapadim/events{/privacy}","received_events_url":"https://api.github.com/users/CPapadim/received_events","type":"User","site_admin":false},"created_at":"2017-12-27T02:51:10Z","updated_at":"2017-12-27T02:51:10Z","author_association":"NONE","body":"Update - After fixing it above, i updated pods to 2.71 and it caused the issue again. \r\n\r\nSo for sure the update from 2.70 beta to 2.71 is one of the ways to cause it since that's all I did this time\r\n"}}
{"actor":{"display_login":"CPapadim"}}