Skip to content

DX | 13-07-2026 | Release Beta#283

Open
naman-contentstack wants to merge 22 commits into
v2-betafrom
v2-dev
Open

DX | 13-07-2026 | Release Beta#283
naman-contentstack wants to merge 22 commits into
v2-betafrom
v2-dev

Conversation

@naman-contentstack

Copy link
Copy Markdown
Contributor

No description provided.

naman-contentstack and others added 22 commits June 27, 2026 13:53
back merge DX | 06-07-2026 | Beta Release
DX - 9364 - docs: comprehensive README audit, package.json standardization, and source fixes
fix: enhance error logging in ImportAssetTypes and ImportAssets
fix: resolve Snyk hardcoded secret false positives in message constants
…ces [DX-9469]

pendingVariantAndVariantGrpForExperience was populated with ALL created
experience UIDs regardless of whether valid variants were submitted to the
API. Experiences with variants:[] never get variant groups from the
Personalize backend, so the validation loop timed out and set
importData=false, skipping attachCTsInExperience for every experience
including valid ones.

Fixed by:
1. Adding a versionMap guard in importExperienceVersions (returns boolean)
   so only experiences that actually submitted variants return true
2. Only adding UIDs to the pending set when importExperienceVersions
   returns true
3. Adding a null guard in attachCTsInExperience before accessing
   variantGroup to prevent a silent crash inside Promise.allSettled

Note: Bug 2 (missing data-for-variant-entry.json) is not present in v2
— processCleanup always calls createEntryDataForVariantEntry regardless
of environments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 11 test cases covering importExperienceVersions returning false
  for missing file, Lytics-only audiences, and unmapped CS audiences
- Add tests verifying Set-based pending list only includes experiences
  with valid variants submitted to Personalize
- Add tests for validateVariantGroupAndVariantsCreated resolving
  immediately when pending list is empty
- Add tests for attachCTsInExperience null guard skipping gracefully
  when variantGroup is missing
- Fix mocha-root-hooks.js to guard loadChalk as optional (not exported
  in current cli-utilities version)
- Fix importExperienceVersions to return false (not undefined) when
  versions file does not exist, for consistent boolean API

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Message was blaming Lytics audiences specifically but the branch fires
for any mapping failure (CS or Lytics). Broadened to "after
audience/event mapping".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…orts [DX-9469]

Both were made redundant by the Set-based pending list introduced in the
DX-9469 fix. Leaving them risks build failures under noUnusedLocals or
ESLint unused-import rules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(personalize): fix CT linking failure from empty-audience experiences
@naman-contentstack naman-contentstack requested a review from a team as a code owner July 10, 2026 11:25
@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 0 0 25 ✅ Passed
🟡 Medium Severity 1 1 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 1 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: 0
  • Medium without fixes: 1
  • 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.

4 participants