Skip to content

Commit 08b53a9

Browse files
fix: update the commented msg
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 922e81a commit 08b53a9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/contentstack-import/src/import/modules/content-types.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ export default class ContentTypesImport extends BaseClass {
214214
}
215215

216216
// Global field rules were skipped during the content type update (see updateFieldRules) because
217-
// the embedded global field schema was not yet complete on the stack. By this point every global
218-
// field is complete — deferred ones via updatePendingGFs above, non-deferred ones already applied
219-
// in the global-fields module, and pre-existing ones already on the stack for module-only imports.
220-
// So re-apply the global field rules now. This runs UNCONDITIONALLY (outside the pending check):
221-
// non-deferred and module-only imports have no pending global fields but still need their rules.
217+
// the embedded global field schema was not yet complete on the stack. At this point global
218+
// fields are expected to be complete (deferred ones via updatePendingGFs above; others already
219+
// applied in the global-fields module / pre-existing on the stack for module-only imports).
220+
// Re-apply the global field rules now; if global fields are still incomplete this step may fail
221+
// and will be reported below.
222222
const failedGFFieldRuleCTs = await this.updateGFFieldRules().catch((error) => {
223223
handleAndLogError(error, { ...this.importConfig.context });
224224
return [] as string[];

0 commit comments

Comments
 (0)