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:
Tom Moor
2026-05-25 17:03:02 -04:00
committed by GitHub
parent f9dc1a3983
commit ecafd5f32a
18 changed files with 1397 additions and 473 deletions
@@ -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 });
}