Skip to content

Dev - #1151

Merged
vikrantraut-cstk merged 10 commits into
pre-stagefrom
dev
Aug 25, 2026
Merged

Dev#1151
vikrantraut-cstk merged 10 commits into
pre-stagefrom
dev

Conversation

@vikrantraut-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

aishwarya-cstk and others added 10 commits August 24, 2026 13:48
…sets

extractAssets only read formal wp:post_type=attachment items, so images
embedded in post content (no attachment item backing them) never got a row
on the Map Entry Assets screen, even though the actual migration downloads
and creates them as real Contentstack assets via wordpress.service.ts's
content:encoded scan. Extends extraction to find those images too, matching
the id scheme the real migration uses so uids still resolve, and dedupes
against formal attachment items so an overlapping URL doesn't get two rows.
Editing the file path after selecting a CMS with a single fixed allowed
format (e.g. Sitecore, always Zip) re-derived the displayed "File Format"
from the new path's extension, showing e.g. "XML" instead of staying "Zip".
Only CMS types with more than one allowed format (currently just
stack-to-stack Contentstack) should have the label follow the actual
uploaded extension; everyone else keeps their fixed format, with the
existing validation effect flagging a real mismatch instead.
- extractAssets.ts: cover a[href] image links, audio/source, and CSS
  background-image (inline + <style>), not just img src/data-src/srcset, so
  the same set of embedded assets the real migration finds also get a row.
  Also: skip relative URLs when wp:base_site_url is missing instead of
  emitting a row for an asset the run can't actually resolve.
- LoadFileFormat.tsx: lock the displayed format only when the CMS has
  exactly one allowed format. An empty allowed_file_formats (CMS not yet
  resolved, e.g. Sitecore before a version is picked) now correctly falls
  through to the extension-derived display instead of blanking the field.
Delta Migration | 1.0.0 | In Drupal Assets are not getting attached to entries
@vikrantraut-cstk
vikrantraut-cstk requested a review from a team as a code owner August 25, 2026 06:57
@snyk-io

snyk-io Bot commented Aug 25, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@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 15 378 25 ✅ Passed
🟡 Medium Severity 19 11 500 ✅ Passed
🔵 Low Severity 2 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 371 30 / 120 days ⚠️ Warning
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 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: 378
  • Medium without fixes: 11
  • Low without fixes: 0

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

Consider reviewing these vulnerabilities when fixes become available.

@vikrantraut-cstk
vikrantraut-cstk merged commit b6fd625 into pre-stage Aug 25, 2026
13 checks passed
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.

3 participants