{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5408","repository_url":"https://api.github.com/repos/silverstripe/silverstripe-framework","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5408/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5408/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5408/events","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5408","id":151305555,"number":5408,"title":"API Implement basic preview behaviour","user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-27T05:59:31Z","updated_at":"2016-04-27T06:04:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/pulls/5408","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5408","diff_url":"https://github.com/silverstripe/silverstripe-framework/pull/5408.diff","patch_url":"https://github.com/silverstripe/silverstripe-framework/pull/5408.patch"},"body":"Includes a few weird bugfixes:\r\n- Issue with ViewableData::__toString not returning a string (crashes monolog during debugging)\r\n- Cleanup of CMSPreviewable interface so that it required the correct methods, and added this interface to File.\r\n\r\nKnown issues:\r\n- When you select a campaign item, if you click on the border area it doesn't quite activate that item. Probably due to the parent of the react component having a stupid margin that's then negated by the child, somehow.\r\n- Edit button is still not working, but the model layer has been implemented. We just need to update the react components to work with it.\r\n\r\nFuture improvements:\r\n- Backend has implemented multiple preview actions; We will eventually have live / draft selector when viewing preview.\r\n"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/214979795","html_url":"https://github.com/silverstripe/silverstripe-framework/pull/5408#issuecomment-214979795","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/5408","id":214979795,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T06:04:44Z","updated_at":"2016-04-27T06:04:44Z","body":"Screenshot:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/936064/14843210/73b05fe0-0ca2-11e6-9ec6-661ceb6a30cb.png)\r\n"}}