Skip to content

DX | 22-06-2026 | Release#81

Merged
OMpawar-21 merged 16 commits into
masterfrom
development
Jun 22, 2026
Merged

DX | 22-06-2026 | Release#81
OMpawar-21 merged 16 commits into
masterfrom
development

Conversation

@harshitha-cstk

Copy link
Copy Markdown
Contributor

No description provided.

cs-raj and others added 16 commits April 28, 2026 11:36
Back Merge master to development
chore: standardize python release flow and migrate changelog to markdown
Introduce contentstack_utils.Endpoint — a region-aware endpoint resolver
backed by a bundled regions.json registry, bringing the Python SDK to
feature parity with the PHP and JS implementations.

New files:
- contentstack_utils/endpoint.py: Endpoint class with in-process cache,
  two-pass region lookup (id → alias), case-insensitive matching with
  - / _ interchangeability, omit_https flag, and a CDN fallback download
  when regions.json is absent
- contentstack_utils/assets/regions.json: bundled registry of 7 regions
  (AWS NA/EU/AU, Azure NA/EU, GCP NA/EU) and 18 service endpoint keys;
  gitignored so it is not tracked as source — refreshed via refresh script
- tests/test_endpoint.py: 53 tests covering all 7 regions, 8 NA aliases,
  omit_https, error cases, Utils proxy, camelCase alias, and cache isolation
- scripts/refresh_regions.py: pulls latest regions.json from
  artifacts.contentstack.com (equivalent of composer refresh-regions)

Modified files:
- contentstack_utils/utils.py: add get_contentstack_endpoint() proxy and
  getContentstackEndpoint camelCase alias on Utils for cross-SDK parity
- contentstack_utils/__init__.py: export Endpoint in __all__;
  bump __version__ to 1.6.0
- setup.py: bump version to 1.6.0
- CHANGELOG.md: add v1.6.0 entry
- .gitignore: exclude contentstack_utils/assets/regions.json
feat: add multi-region URL resolver and bump version to 1.6.0
…ld time

- Add `contentstack_utils/region_refresh.py` exposing a `refresh_regions()`
  function that downloads the latest regions manifest from the Contentstack CDN
  and overwrites the bundled `assets/regions.json`.
- Export `refresh_regions` at the package level so CI pipelines and tooling can
  call it programmatically (`from contentstack_utils import refresh_regions`).
- Hook `setup.py` with a custom `BuildPyWithRegions` command so `regions.json`
  is refreshed automatically on every `pip install`; network failures warn but
  never block the build.
- Include `assets/regions.json` in `package_data` so the bundled file is
  correctly shipped in the sdist/wheel.
fix: add refresh_regions utility and auto-refresh regions.json at build time
@harshitha-cstk harshitha-cstk requested a review from a team as a code owner June 19, 2026 13:27
@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 3 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

ℹ️ 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: 3
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@OMpawar-21 OMpawar-21 self-requested a review June 19, 2026 15:34
@OMpawar-21 OMpawar-21 merged commit 787be5a into master Jun 22, 2026
9 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