fix: make sovereign tenant checks filterable#1274
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (20)
📝 WalkthroughWalkthroughThis PR refactors sovereign-tenant detection by introducing a filter-based helper function ChangesSovereign Tenant Filter-Based Detection
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔨 Build Complete - Ready for Testing!📦 Download Build Artifact (Recommended)Download the zip build, upload to WordPress and test:
🌐 Test in WordPress Playground (Very Experimental)Click the link below to instantly test this PR in your browser - no installation needed! Login credentials: |
|
Performance Test Results Performance test results for f2017d6 are in 🛎️! Note: the numbers in parentheses show the difference to the previous (baseline) test run. Differences below 2% or 0.5 in absolute values are not shown. URL:
|
Summary
Verification
Merged via PR #1274 to main. aidevops.sh v3.19.1 spent 36s on this as a headless bash routine. |
Summary
wu_is_sovereign_tenant()with thewu_is_sovereign_tenantfilter so addons can opt core flows into sovereign-tenant behaviour.WU_MT_SOVEREIGN_TENANTchecks across checkout, gateway, compat, and UI code with the helper.Verification
vendor/bin/phpunit --filter Sovereign_Mode_Elements_Test --no-coveragevendor/bin/phpunit --filter test_cart_constructor_sets_error_in_sovereign_context --no-coverageNote: one parallel PHPUnit attempt hit the shared WP test DB setup race (
network already exists); both targeted tests passed when run sequentially.Summary by CodeRabbit
Tests
Chores