{"action":"closed","issue":{"url":"https://api.github.com/repos/tracim/tracim/issues/552","repository_url":"https://api.github.com/repos/tracim/tracim","labels_url":"https://api.github.com/repos/tracim/tracim/issues/552/labels{/name}","comments_url":"https://api.github.com/repos/tracim/tracim/issues/552/comments","events_url":"https://api.github.com/repos/tracim/tracim/issues/552/events","html_url":"https://github.com/tracim/tracim/issues/552","id":305890457,"number":552,"title":"When copy is done, 2 new revisions are created.","user":{"login":"inkhey","id":7851652,"avatar_url":"https://avatars0.githubusercontent.com/u/7851652?v=4","gravatar_id":"","url":"https://api.github.com/users/inkhey","html_url":"https://github.com/inkhey","followers_url":"https://api.github.com/users/inkhey/followers","following_url":"https://api.github.com/users/inkhey/following{/other_user}","gists_url":"https://api.github.com/users/inkhey/gists{/gist_id}","starred_url":"https://api.github.com/users/inkhey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inkhey/subscriptions","organizations_url":"https://api.github.com/users/inkhey/orgs","repos_url":"https://api.github.com/users/inkhey/repos","events_url":"https://api.github.com/users/inkhey/events{/privacy}","received_events_url":"https://api.github.com/users/inkhey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-16T11:16:25Z","updated_at":"2018-03-19T20:09:42Z","closed_at":"2018-03-19T20:09:42Z","author_association":"COLLABORATOR","body":"Using #542 code  up to https://github.com/tracim/tracim/pull/542/commits/29f7860358a03c2afb285457c390bf701aa7dbfe commit.\r\n\r\nCurrently :\r\n\r\n-  Code use \"Content.new_revision()\" to create new revision (see 'copy' method in content api )\r\n-  When creating this revision, content.new_revision() create 2 new revision instead of one, autoflush change nothing.\r\n- Problem is related to ContentRevisionRO.new_from(content) method, when copying \"node\" attribute, a new revisions is created, which is not expected.\r\n\r\n- This bug doesn't look to affect UI, seems that UI is intelligent enough to know that those 2 revisions are only one.\r\n\r\nExpected: \r\n- Having only 1 more revision added to Content when copying content through copy method of content_api.\r\n"}}
{"actor":{"display_login":"lebouquetin"}}