{"action":"created","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/8717","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8717/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8717/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8717/events","html_url":"https://github.com/TryGhost/Ghost/issues/8717","id":244377583,"number":8717,"title":"No importer duplicate detection for posts","user":{"login":"JohnONolan","id":120485,"avatar_url":"https://avatars1.githubusercontent.com/u/120485?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnONolan","html_url":"https://github.com/JohnONolan","followers_url":"https://api.github.com/users/JohnONolan/followers","following_url":"https://api.github.com/users/JohnONolan/following{/other_user}","gists_url":"https://api.github.com/users/JohnONolan/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnONolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnONolan/subscriptions","organizations_url":"https://api.github.com/users/JohnONolan/orgs","repos_url":"https://api.github.com/users/JohnONolan/repos","events_url":"https://api.github.com/users/JohnONolan/events{/privacy}","received_events_url":"https://api.github.com/users/JohnONolan/received_events","type":"User","site_admin":false},"labels":[{"id":38409089,"url":"https://api.github.com/repos/TryGhost/Ghost/labels/bug","name":"bug","color":"EB2C00","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-20T14:13:19Z","updated_at":"2017-07-20T14:24:05Z","closed_at":null,"body":"When importing, Ghost detects and ignores duplicate authors, but doesn't do the same for posts:\r\n\r\nIt would be great if we could ignore any posts with a slug which already exists?\r\n\r\n![image](https://user-images.githubusercontent.com/120485/28421705-03b268b4-6d77-11e7-8e6e-540c72e195c6.png)\r\n\r\nGhost 1.0-rc1"},"comment":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/comments/316719644","html_url":"https://github.com/TryGhost/Ghost/issues/8717#issuecomment-316719644","issue_url":"https://api.github.com/repos/TryGhost/Ghost/issues/8717","id":316719644,"user":{"login":"kirrg001","id":1160712,"avatar_url":"https://avatars0.githubusercontent.com/u/1160712?v=4","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T14:24:04Z","updated_at":"2017-07-20T14:24:04Z","body":"We detect duplicated posts **within** the file to import, but we don't compare e.g. post slugs or uuid's with the existing posts in the database. Slugs are regenerated if a duplicate is detected. \r\n\r\nSo the common use case for a migration is having an empty 1.0 blog and importing the LTS export, which does not result in any duplicated posts. \r\n\r\nWe can definitely add a protection to ignore a post when either slug or the uuid exists in the database - but after the the 1.0 release."}}
{"actor":{"display_login":"kirrg001"}}