{"action":"created","issue":{"url":"https://api.github.com/repos/etewiah/property_web_builder/issues/76","repository_url":"https://api.github.com/repos/etewiah/property_web_builder","labels_url":"https://api.github.com/repos/etewiah/property_web_builder/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/etewiah/property_web_builder/issues/76/comments","events_url":"https://api.github.com/repos/etewiah/property_web_builder/issues/76/events","html_url":"https://github.com/etewiah/property_web_builder/issues/76","id":332729984,"node_id":"MDU6SXNzdWUzMzI3Mjk5ODQ=","number":76,"title":"pwb:db:seed error","user":{"login":"nuno84","id":5565536,"node_id":"MDQ6VXNlcjU1NjU1MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5565536?v=4","gravatar_id":"","url":"https://api.github.com/users/nuno84","html_url":"https://github.com/nuno84","followers_url":"https://api.github.com/users/nuno84/followers","following_url":"https://api.github.com/users/nuno84/following{/other_user}","gists_url":"https://api.github.com/users/nuno84/gists{/gist_id}","starred_url":"https://api.github.com/users/nuno84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuno84/subscriptions","organizations_url":"https://api.github.com/users/nuno84/orgs","repos_url":"https://api.github.com/users/nuno84/repos","events_url":"https://api.github.com/users/nuno84/events{/privacy}","received_events_url":"https://api.github.com/users/nuno84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-15T10:50:56Z","updated_at":"2018-06-21T08:17:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\nI am trying to install the demo using the seeds but it fails:\r\n\r\nrails pwb:db:seed\r\n\r\nContents seed for ar not found\r\nContents seed for ca not found\r\nContents seed for de not found\r\nrails aborted!\r\nActiveRecord::RecordNotSaved: You cannot call create unless the parent is saved\r\n\r\nWhat can I do?\r\nThank you\r\n"},"comment":{"url":"https://api.github.com/repos/etewiah/property_web_builder/issues/comments/399016703","html_url":"https://github.com/etewiah/property_web_builder/issues/76#issuecomment-399016703","issue_url":"https://api.github.com/repos/etewiah/property_web_builder/issues/76","id":399016703,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTAxNjcwMw==","user":{"login":"nuno84","id":5565536,"node_id":"MDQ6VXNlcjU1NjU1MzY=","avatar_url":"https://avatars2.githubusercontent.com/u/5565536?v=4","gravatar_id":"","url":"https://api.github.com/users/nuno84","html_url":"https://github.com/nuno84","followers_url":"https://api.github.com/users/nuno84/followers","following_url":"https://api.github.com/users/nuno84/following{/other_user}","gists_url":"https://api.github.com/users/nuno84/gists{/gist_id}","starred_url":"https://api.github.com/users/nuno84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuno84/subscriptions","organizations_url":"https://api.github.com/users/nuno84/orgs","repos_url":"https://api.github.com/users/nuno84/repos","events_url":"https://api.github.com/users/nuno84/events{/privacy}","received_events_url":"https://api.github.com/users/nuno84/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T08:17:11Z","updated_at":"2018-06-21T08:17:11Z","author_association":"CONTRIBUTOR","body":"Hi etewiah,\r\nThe database is clean but that is not necessary per se.\r\nThe problem is both with seeding as well as when we want to edit some html through the backoffice.\r\nI used debug to see where it fails and the problem is essentially this: \"You cannot call create unless the parent is saved\".\r\nYou have a function to create a join model in app/services/pwb/find_or_create_join_model.rb \r\nThe problem is that the code is trying to save a property when it's parent is not saved yet.\r\nI guess you can you figure it out faster than me and doing less mess than me...\r\nThank you"}}
{"actor":{"display_login":"nuno84"}}