このコミットが含まれているのは:
@@ -110,6 +110,7 @@ const isRepairRow = (row: PostImportRow): boolean =>
|
||||
&& hasErrorMessages (row.validationErrors)))
|
||||
|
||||
const DUPLICATE_URL_MESSAGE = 'URL が重複しています.'
|
||||
const BULK_PROCESSING_FAILED_MESSAGE = '登録中にエラーが発生しました.'
|
||||
|
||||
const rowMetadataPending = (row: PostImportRow): boolean =>
|
||||
row.status === 'pending'
|
||||
@@ -314,14 +315,28 @@ const indexedBulkResults = (
|
||||
}
|
||||
if (result?.status === 'skipped')
|
||||
{
|
||||
const existingPostId =
|
||||
result.existingPostId
|
||||
?? result.existingPost?.id
|
||||
?? row.existingPostId
|
||||
if (existingPostId == null)
|
||||
{
|
||||
return {
|
||||
sourceRow: row.sourceRow,
|
||||
status: 'failed',
|
||||
fieldWarnings: result.fieldWarnings,
|
||||
baseWarnings: result.baseWarnings,
|
||||
errors: {
|
||||
...(errors ?? { }),
|
||||
base: [...new Set ([...(errors?.base ?? []),
|
||||
BULK_PROCESSING_FAILED_MESSAGE])],
|
||||
},
|
||||
recoverable: false }
|
||||
}
|
||||
return {
|
||||
sourceRow: row.sourceRow,
|
||||
status: 'skipped',
|
||||
existingPostId:
|
||||
result.existingPostId
|
||||
?? result.existingPost?.id
|
||||
?? row.existingPostId
|
||||
?? row.sourceRow,
|
||||
existingPostId,
|
||||
existingPost: result.existingPost,
|
||||
fieldWarnings: result.fieldWarnings,
|
||||
baseWarnings: result.baseWarnings,
|
||||
|
||||
新しい課題から参照
ユーザをブロックする