0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Revert "🐛 Fixed importer duplicate detection for posts"

refs #8717

- we decided to not changing the current importer behaviour
- no slug duplication detection means, importing posts can result in duplicates
This commit is contained in:
kirrg001 2018-01-03 13:38:06 +01:00 committed by Kevin Ansfield
parent f73e81d483
commit 428008e63d
3 changed files with 0 additions and 9 deletions

View file

@ -42,7 +42,6 @@ DataImporter = {
if (importOptions && importOptions.importPersistUser) {
modelOptions.importPersistUser = importOptions.importPersistUser;
}
this.init(importData);
return models.Base.transaction(function (transacting) {

View file

@ -774,12 +774,6 @@ ghostBookshelf.Model = ghostBookshelf.Model.extend({
if (!slug) {
slug = baseName;
}
// CASE: no slug generation on import, see https://github.com/TryGhost/Ghost/issues/8717
if (options.importing) {
return slug;
}
// Test for duplicate slugs.
return checkIfSlugExists(slug);
});

View file

@ -394,8 +394,6 @@ describe('Import', function () {
exportData = exported;
return dataImporter.doImport(exportData);
}).then(function (importedData) {
importedData.data.posts.length.should.eql(1);
importedData.problems.length.should.eql(3);
importedData.problems[0].message.should.eql('Entry was not imported and ignored. Detected duplicated entry.');
importedData.problems[0].help.should.eql('Tag');