File tree Expand file tree Collapse file tree
packages/contentstack-import/src/import/modules Expand file tree Collapse file tree Original file line number Diff line number Diff 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 [ ] ;
You can’t perform that action at this time.
0 commit comments