Anonymous View
Skip to content

feat: dynamic endpoint resolution via CDN-backed regions registry#179

Merged
OMpawar-21 merged 24 commits into
betafrom
enhc/DX-7269
Jun 20, 2026
Merged

feat: dynamic endpoint resolution via CDN-backed regions registry#179
OMpawar-21 merged 24 commits into
betafrom
enhc/DX-7269

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor
  • Added Endpoint class — resolves service URLs from regions.json with 3-tier cache (memory → disk → CDN)
  • Added ContentstackRegionMap — bridges ContentstackRegion enum to registry region IDs
  • Added GCP_EU to ContentstackRegion enum
  • Replaced hardcoded regionCode() and HostURL in Config.BaseUrl with Endpoint lookup
  • Replaced refresh-region.cs with refresh-region.py to prevent MSBuild from compiling the script as source
  • Added build/contentstack.csharp.targets to auto-deliver refresh-region.py on first consumer build
  • Added Assets/regions.json to .gitignore
  • Added EndpointTest.cs

cs-raj and others added 20 commits April 6, 2026 14:58
…upport

Add preview_timestamp/release_id support, fingerprint-based caching,
and Fork() method for isolated timeline contexts. Enables viewing
historical content states and parallel timeline comparisons.
- Implement Timeline Preview API integration tests with real preview_timestamp and release_id scenarios
- Add authentication flow tests for Management Token vs Preview Token scenarios
- Create enhanced mock infrastructure for Timeline Preview API simulation
- Fix permissive error handling in existing integration tests with specific error assertions
- Add performance and load testing for Timeline Preview operations
- Implement cache validation tests against live API responses
- Create comprehensive error scenario tests including HTTP status mapping
New test suites:
- TimelinePreviewApiTests: Core Timeline API functionality
- TimelineAuthenticationTests: Authentication flow validation
- TimelineCacheValidationTests: Cache behavior and fingerprinting
- TimelinePreviewErrorTests: Comprehensive error handling
- TimelinePreviewPerformanceTest: Performance benchmarking
- LivePreviewLoadTest: Concurrent operation testing
Test coverage includes:
- Timeline queries with preview_timestamp and release_id headers
- Fork isolation for concurrent timeline states
- Cache hit performance validation (3x+ speedup)
- Memory leak detection and prevention
- Network error handling and graceful degradation
- Authentication token validation scenarios
- HTTP status code mapping to SDK exceptions

Fixes integration test reliability by replacing broad exception catching

with specific error assertions and proper test isolation.
feat(1254): Add comprehensive Timeline Preview integration test coverage
Master to Development back merge
- Added Endpoint class — resolves service URLs from regions.json with 3-tier cache (memory → disk → CDN)
- Added ContentstackRegionMap — bridges ContentstackRegion enum to registry region IDs
- Added GCP_EU to ContentstackRegion enum
- Replaced hardcoded regionCode() and HostURL in Config.BaseUrl with Endpoint lookup
- Replaced refresh-region.cs with refresh-region.py to prevent MSBuild from compiling the script as source
- Added build/contentstack.csharp.targets to auto-deliver refresh-region.py on first consumer build
- Added Assets/regions.json to .gitignore
- Added EndpointTest.cs
@OMpawar-21 OMpawar-21 requested a review from reeshika-h June 19, 2026 10:58
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner June 19, 2026 10:58
@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 changed the base branch from beta to development June 19, 2026 14:19
@OMpawar-21 OMpawar-21 requested a review from a team as a code owner June 19, 2026 14:19
@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 closed this Jun 19, 2026
@OMpawar-21 OMpawar-21 reopened this Jun 19, 2026
@OMpawar-21 OMpawar-21 changed the base branch from development to beta June 19, 2026 14:44
@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

This reverts commit adaaf89, reversing
changes made to 9706449.
@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@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 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

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 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 merged commit 4999509 into beta Jun 20, 2026
9 of 11 checks passed
@OMpawar-21 OMpawar-21 deleted the enhc/DX-7269 branch June 20, 2026 12:51
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