{"action":"created","issue":{"url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/962","repository_url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms","labels_url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/962/labels{/name}","comments_url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/962/comments","events_url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/962/events","html_url":"https://github.com/AlchemyCMS/alchemy_cms/pull/962","id":142664061,"number":962,"title":"[WIP] Page versions","user":{"login":"tvdeyen","id":42868,"avatar_url":"https://avatars.githubusercontent.com/u/42868?v=3","gravatar_id":"","url":"https://api.github.com/users/tvdeyen","html_url":"https://github.com/tvdeyen","followers_url":"https://api.github.com/users/tvdeyen/followers","following_url":"https://api.github.com/users/tvdeyen/following{/other_user}","gists_url":"https://api.github.com/users/tvdeyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tvdeyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvdeyen/subscriptions","organizations_url":"https://api.github.com/users/tvdeyen/orgs","repos_url":"https://api.github.com/users/tvdeyen/repos","events_url":"https://api.github.com/users/tvdeyen/events{/privacy}","received_events_url":"https://api.github.com/users/tvdeyen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mamhoff","id":703401,"avatar_url":"https://avatars.githubusercontent.com/u/703401?v=3","gravatar_id":"","url":"https://api.github.com/users/mamhoff","html_url":"https://github.com/mamhoff","followers_url":"https://api.github.com/users/mamhoff/followers","following_url":"https://api.github.com/users/mamhoff/following{/other_user}","gists_url":"https://api.github.com/users/mamhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/mamhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mamhoff/subscriptions","organizations_url":"https://api.github.com/users/mamhoff/orgs","repos_url":"https://api.github.com/users/mamhoff/repos","events_url":"https://api.github.com/users/mamhoff/events{/privacy}","received_events_url":"https://api.github.com/users/mamhoff/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-22T14:18:30Z","updated_at":"2016-03-22T14:18:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/pulls/962","html_url":"https://github.com/AlchemyCMS/alchemy_cms/pull/962","diff_url":"https://github.com/AlchemyCMS/alchemy_cms/pull/962.diff","patch_url":"https://github.com/AlchemyCMS/alchemy_cms/pull/962.patch"},"body":"- [x] Add PageVersion model and associate with page\r\n- [x] Add current and public version to page\r\n- [x] Assign current version as public version on page publish\r\n- [x] Associate elements with page version\r\n- [x] Copy elements from current to new page version\r\n- [x] Destroy not trashed elements on page version destroy\r\n- [x] Destroy page versions when destroying page\r\n- [x] Creates public version from current if publishing page\r\n- [x] Move page meta data to page version\r\n- [x] `Page#public?` is true, if a public version is present\r\n- [ ] Add `public_from` and `public_until` to `PageVersion`\r\n- [ ] Page edit admin interface should load the current version"},"comment":{"url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/comments/199835439","html_url":"https://github.com/AlchemyCMS/alchemy_cms/pull/962#issuecomment-199835439","issue_url":"https://api.github.com/repos/AlchemyCMS/alchemy_cms/issues/962","id":199835439,"user":{"login":"TeatroIO","id":7524941,"avatar_url":"https://avatars.githubusercontent.com/u/7524941?v=3","gravatar_id":"","url":"https://api.github.com/users/TeatroIO","html_url":"https://github.com/TeatroIO","followers_url":"https://api.github.com/users/TeatroIO/followers","following_url":"https://api.github.com/users/TeatroIO/following{/other_user}","gists_url":"https://api.github.com/users/TeatroIO/gists{/gist_id}","starred_url":"https://api.github.com/users/TeatroIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeatroIO/subscriptions","organizations_url":"https://api.github.com/users/TeatroIO/orgs","repos_url":"https://api.github.com/users/TeatroIO/repos","events_url":"https://api.github.com/users/TeatroIO/events{/privacy}","received_events_url":"https://api.github.com/users/TeatroIO/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T14:18:33Z","updated_at":"2016-03-22T14:18:33Z","body":"I've prepared a stage to preview changes. <a href='http://page-versions.alchemycms-alchemy-cms-42e8f4fc945384e0f6b5.ttrcloud.com/admin' target='_blank'>Open stage</a> or <a href='http://page-versions.alchemycms-alchemy-cms-42e8f4fc945384e0f6b5.ttrcloud.com/admin/teatro.log' target='_blank'>view logs</a>."}}