Skip to content

Feat/delta aem#1092

Open
umesh-more-cstk wants to merge 6 commits into
devfrom
feat/delta-aem
Open

Feat/delta aem#1092
umesh-more-cstk wants to merge 6 commits into
devfrom
feat/delta-aem

Conversation

@umesh-more-cstk

Copy link
Copy Markdown
Contributor

🔗 Jira Ticket

Replace with your ticket link — required before requesting review.

MIGRATION-XXXX


📋 PR Type

  • ✨ Feature
  • 🐛 Bug Fix
  • 🔥 Hotfix
  • ♻️ Refactor
  • 🧹 Chore / Dependency Update
  • 📝 Documentation

📝 Description

What changed?

Why?


🧩 Affected Areas

  • api — Node.js backend
  • ui — React frontend
  • upload-api — Upload API server
  • docker / docker-compose
  • CI / GitHub Actions workflows
  • Environment variables / config
  • Other:

🧪 How to Test

Expected result:


📸 Screenshots / Recordings

Before After

🔗 Related PRs / Dependencies


✅ Author Checklist

Complete this before moving the PR out of Draft.

  • Branch follows naming convention: feature/, bugfix/, or hotfix/ + 5–30 lowercase chars
  • Jira ticket linked above
  • Self-reviewed the diff — no debug logs, commented-out code, or TODOs left in
  • .env / example.env updated if new environment variables were added
  • No sensitive credentials or secrets committed
  • Existing tests pass locally (npm test)
  • New tests written (or not applicable — explain why)
  • README.md / docs updated if behaviour changed
  • Talisman pre-push scan passes (no secrets flagged)

👀 Reviewer Notes


Migration v2 · Docs · Issues

@umesh-more-cstk umesh-more-cstk requested a review from a team as a code owner June 15, 2026 12:22
- 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).
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 10 338 25 ✅ Passed
🟡 Medium Severity 26 2 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 2 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 338
  • Medium without fixes: 2
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

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).
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 10 338 25 ✅ Passed
🟡 Medium Severity 26 2 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 2 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ 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:

  • Critical without fixes: 0
  • High without fixes: 338
  • Medium without fixes: 2
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant