Feat/delta aem#1092
Conversation
…nd mapping integration
# Conflicts: # ui/src/components/ContentMapper/index.tsx
- api: add unit tests for the delta Asset Mapper decision branches (isUpdate reuse vs in-place update), saveAssetMetadata/ loadPreviousAssetMetadata, ensureUpdateConfigFile/ enrichConfigWithAssetUpdates, and the entry-update-script.cjs helpers (isAssetField, resolveAssetField 3-way, mergeFlatPayloadIntoEntry, task runner). Expose the cjs helpers for testing. - api: fix stale contentMapper.routes mock (add getAssetMapping, getSingleContentTypes, getSingleGlobalField, updateAssetStatus) and uid-mapper assertion to match the current always-write behavior. - upload-api: add extractEntries/extractAssets to the migration-aem mock in aem.controller.test so createAemMapper makes both API calls.
…fix EntryMapper wiring - Extract pure logic from assetMapper.tsx and entryMapper.tsx into assetMapper.utils.ts / entryMapper.utils.ts (row mapping, selection build/apply, changed-uid diff, content-type status filtering) and add unit tests for both. - Fix two pre-existing bugs in the delta EntryMapper render in index.tsx: reference the existing isDeltaIteration flag instead of an undefined 'iteration' variable, and pass the required handleStepChange prop instead of tableHeight/selectedContentTypeId (which EntryMapper ignores).
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
Add a removeExistingAssets test that drives the entry-JSON reference rewrite path (entriesDir present -> content-type/locale/chunk walk -> replaceAssetRefsInObject). This covers the four previously-uncovered functions in asset-update.utils.ts, raising api function coverage from 79.9% to 80.82% (above the 80% CI threshold).
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
🔗 Jira Ticket
MIGRATION-XXXX
📋 PR Type
📝 Description
What changed?
Why?
🧩 Affected Areas
api— Node.js backendui— React frontendupload-api— Upload API serverdocker/docker-compose🧪 How to Test
Expected result:
📸 Screenshots / Recordings
🔗 Related PRs / Dependencies
✅ Author Checklist
feature/,bugfix/, orhotfix/+ 5–30 lowercase chars.env/example.envupdated if new environment variables were addednpm test)README.md/ docs updated if behaviour changed👀 Reviewer Notes