From a0fbdf201232d59c44ce74a853928b63ac47cce8 Mon Sep 17 00:00:00 2001 From: harshitha-cstk Date: Tue, 18 Aug 2026 11:41:11 +0530 Subject: [PATCH] fix(import): clarify global field reference-field warning message Reword the warning logged when a referenced content type is not yet imported so it no longer implies permanent data loss. The reference is deferred and restored later in the same run, so the previous "Removing the field from schema..." wording was misleading. DX-10153 Co-Authored-By: Claude Opus 4.8 --- packages/contentstack-import/src/utils/content-type-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/utils/content-type-helper.ts b/packages/contentstack-import/src/utils/content-type-helper.ts index 1599e106f..954cc0a8b 100644 --- a/packages/contentstack-import/src/utils/content-type-helper.ts +++ b/packages/contentstack-import/src/utils/content-type-helper.ts @@ -132,7 +132,7 @@ export const removeReferenceFields = async function ( } catch (error) { // Else warn and modify the schema object. isContentTypeError = true; - log.warn(`Content type ${schema[i].reference_to[j]} does not exist. Removing the field from schema...`); + log.warn(`Content type ${schema[i].reference_to[j]} is not imported yet; its reference will be restored once it is imported.`); } }