Skip to content

Commit a0fbdf2

Browse files
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 <noreply@anthropic.com>
1 parent d1aaa7e commit a0fbdf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/contentstack-import/src/utils/content-type-helper.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const removeReferenceFields = async function (
132132
} catch (error) {
133133
// Else warn and modify the schema object.
134134
isContentTypeError = true;
135-
log.warn(`Content type ${schema[i].reference_to[j]} does not exist. Removing the field from schema...`);
135+
log.warn(`Content type ${schema[i].reference_to[j]} is not imported yet; its reference will be restored once it is imported.`);
136136
}
137137
}
138138

0 commit comments

Comments
 (0)