Repository navigation
Commit 6f53b4e
refactor(import): make entry-data extension_uid remap schema-independent
Address PR review on the entry-data remap:
- Replace the schema-driven walker with `remapEntryMetadataExtensionUids`, a
schema-independent deep walk of the entry data that remaps any
`metadata.extension_uid` via the marketplace_apps mapping. This is robust to
is_asset custom fields nested in group / global_field / blocks AND to
content-type schemas that carry a reference-only global_field stub (no
expanded `schema`, e.g. from query-export), which the previous schema-driven
walk would silently skip.
- Run it once, unconditionally, after `find()` (idempotent — already-mapped
UIDs are no-ops).
- Guard `find()` against a missing schema so a global_field stub no longer
throws while collecting assets.
- Keep the schema field `extension_uid` remap for parity.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 191aaa3 commit 6f53b4e
1 file changed
Lines changed: 18 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
0 commit comments