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:
parent
f73e81d483
commit
428008e63d
3 changed files with 0 additions and 9 deletions
|
@ -42,7 +42,6 @@ DataImporter = {
|
|||
if (importOptions && importOptions.importPersistUser) {
|
||||
modelOptions.importPersistUser = importOptions.importPersistUser;
|
||||
}
|
||||
|
||||
this.init(importData);
|
||||
|
||||
return models.Base.transaction(function (transacting) {
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue