[MM-62775] Fix: Bulk export not completing (#30044)

* do not error on exportFile error

* add tests for local and s3 storage exporting with missing file

* linting

* fix attachment path validation in mmctl
Этот коммит содержится в:
Christopher Poile
2025-02-04 17:56:11 -05:00
коммит произвёл GitHub
родитель 1b29abd857
Коммит 3a73b517e2
4 изменённых файлов: 125 добавлений и 6 удалений

Просмотреть файл

@@ -815,7 +815,10 @@ func (v *Validator) validatePost(info ImportFileInfo, line imports.LineImportDat
continue
}
attachmentPath := path.Join("data", *attachment.Path)
attachmentPath := *attachment.Path
if _, ok := v.attachments[attachmentPath]; !ok {
attachmentPath = path.Join("data", *attachment.Path)
}
if _, ok := v.attachments[attachmentPath]; !ok {
helpful := ""
@@ -949,7 +952,10 @@ func (v *Validator) validateDirectPost(info ImportFileInfo, line imports.LineImp
continue
}
attachmentPath := path.Join("data", *attachment.Path)
attachmentPath := *attachment.Path
if _, ok := v.attachments[attachmentPath]; !ok {
attachmentPath = path.Join("data", *attachment.Path)
}
if _, ok := v.attachments[attachmentPath]; !ok {
helpful := ""