Default names on file and S3 imports

Erwan Rouchet
2025-12-03T09:15:18Z

https://redmine.teklia.com/issues/12496

CreateFilesProcess and CreateS3Import should assign a name to the processes they create.

On a file import, the name should use the name of the first file to be imported: Import of {file name}. When more than one file is imported, the number of other files is included: Import of {file name} and {n} more.

On an S3 import, the name should combine the bucket name and prefix: S3 import from {bucket}/{prefix}. When there is no prefix, the / is not included.

File names can reach 255 characters and S3 prefixes can reach 1024 characters, while process names are limited to 250, so when the name gets too long, it should be truncated with a … added at the end.