Added Branches support in entry variants#199
Conversation
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ BUILD PASSED - All security checks passed |
1cc2bb3
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ BUILD PASSED - All security checks passed |
…h support - Added integration tests (41e, 41f) in test_entry.py for branch as keyword arg and branch combined with query params on content_type.variants().find() - Moved fetch-raises-without-entry-uid assertion to test_variants.py as a unit test (mocked, no network) where it logically belongs Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ 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:
✅ BUILD PASSED - All security checks passed |
Summary
Adds optional
branchsupport toEntry.variants()andContentType.variants(), allowing variant requests to be scoped to a specific branch without modifying the stack's global branch header.Changes
branch: strparameter to:Entry.variants()ContentType.variants()_prepare_variant_headers()_apply_variant_headers()_cleanup_variant_headers()Usage
Co-authored-by: Om Pawar [email protected]
Co-authored-by: Claude Sonnet 4.6 [email protected]