mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
chore: Update JSON importer to use zip streaming (#12380)
* chore: Update JSON importer to use zip streaming, new importer flow * chore: Drop teamId from import urlId collision check and remove unused internal-id scaffolding urlId is globally unique on Document/Collection so the team scope was wrong. Also removes leftover internal-id generation in JSONAPIImportTask that was never used in task input/output. * Restore classes used upstream
This commit is contained in:
@@ -67,6 +67,14 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) {
|
||||
permission: permission ?? undefined,
|
||||
}
|
||||
);
|
||||
} else if (format === FileOperationFormat.JSON) {
|
||||
await imports.create(
|
||||
{ service: IntegrationService.JSON },
|
||||
{
|
||||
attachmentId: attachment.id,
|
||||
permission: permission ?? undefined,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
await collections.import(attachment.id, { format, permission });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user