|
|
@ -113,6 +113,7 @@ export class DuplicateProcessor { |
|
|
|
destProject: dupProject, |
|
|
|
destProject: dupProject, |
|
|
|
destBase: dupBase, |
|
|
|
destBase: dupBase, |
|
|
|
hrTime, |
|
|
|
hrTime, |
|
|
|
|
|
|
|
req, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -241,6 +242,7 @@ export class DuplicateProcessor { |
|
|
|
hrTime, |
|
|
|
hrTime, |
|
|
|
modelFieldIds: fields, |
|
|
|
modelFieldIds: fields, |
|
|
|
externalModels: relatedModels, |
|
|
|
externalModels: relatedModels, |
|
|
|
|
|
|
|
req, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
elapsedTime(hrTime, 'import model data', 'duplicateModel'); |
|
|
|
elapsedTime(hrTime, 'import model data', 'duplicateModel'); |
|
|
@ -381,6 +383,7 @@ export class DuplicateProcessor { |
|
|
|
sourceModel, |
|
|
|
sourceModel, |
|
|
|
...relatedModels.filter((m) => m.id !== sourceModel.id), |
|
|
|
...relatedModels.filter((m) => m.id !== sourceModel.id), |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
req, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
elapsedTime(hrTime, 'import model data', 'duplicateColumn'); |
|
|
|
elapsedTime(hrTime, 'import model data', 'duplicateColumn'); |
|
|
@ -420,6 +423,7 @@ export class DuplicateProcessor { |
|
|
|
hrTime: { hrTime: [number, number] }; |
|
|
|
hrTime: { hrTime: [number, number] }; |
|
|
|
modelFieldIds?: Record<string, string[]>; |
|
|
|
modelFieldIds?: Record<string, string[]>; |
|
|
|
externalModels?: Model[]; |
|
|
|
externalModels?: Model[]; |
|
|
|
|
|
|
|
req: any; |
|
|
|
}, |
|
|
|
}, |
|
|
|
) { |
|
|
|
) { |
|
|
|
const { |
|
|
|
const { |
|
|
@ -431,6 +435,7 @@ export class DuplicateProcessor { |
|
|
|
hrTime, |
|
|
|
hrTime, |
|
|
|
modelFieldIds, |
|
|
|
modelFieldIds, |
|
|
|
externalModels, |
|
|
|
externalModels, |
|
|
|
|
|
|
|
req, |
|
|
|
} = param; |
|
|
|
} = param; |
|
|
|
|
|
|
|
|
|
|
|
let handledLinks = []; |
|
|
|
let handledLinks = []; |
|
|
@ -474,6 +479,7 @@ export class DuplicateProcessor { |
|
|
|
destProject, |
|
|
|
destProject, |
|
|
|
destBase, |
|
|
|
destBase, |
|
|
|
destModel: model, |
|
|
|
destModel: model, |
|
|
|
|
|
|
|
req, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
handledLinks = await this.importService.importLinkFromCsvStream( |
|
|
|
handledLinks = await this.importService.importLinkFromCsvStream( |
|
|
|