You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(import): remap nested entry-data extension UIDs for is_asset custom fields
Marketplace-app / extension references embedded in entry DATA (e.g. an
`image_presets` value's `metadata.extension_uid`) are stack-scoped and must
be remapped to the destination app's extension_uid during import. The remap
in `lookupAssets` (`findAssetIdsFromJsonCustomFields`) only walked top-level
schema fields, so any `is_asset` JSON custom field nested inside a
group / global_field / blocks was skipped.
Consequences of the miss:
- the entry kept the source app's extension_uid, leaving an orphaned
reference on the destination stack; and
- on a subsequent import the audit flagged that UID as a missing reference
and stripped the whole field (silent data loss of image-preset configs).
Replace the flat `ctSchema.map` with a recursive walk
(`remapJsonCustomFieldExtensionUids`) that follows the entry-data shape
through group / global_field / blocks and handles multiple-valued fields,
remapping `metadata.extension_uid` (and the schema field's extension_uid)
via the marketplace_apps mapping.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments