fix(checkout): dispatch pending site async on FrankenPHP#1353
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 (3)
📝 WalkthroughWalkthroughThis PR refactors pending site publishing to separate HTTP response handling from async provisioning logic. The Manager now sends and finishes HTTP responses early via reusable helpers before enqueuing async work. The Membership model conditionally uses loopback based on server capabilities and falls back to immediate Action Scheduler dispatch when loopback fails or cannot be used, eliminating duplicate enqueuing. ChangesPending Site Publish Response and Loopback Fallback
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
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: |
Summary
Verification
Notes
aidevops.sh v3.20.19 plugin for OpenCode v1.16.2 with gpt-5.5 Merged via PR #1353 to main. |
Summary
litespeed_finish_request()orfastcgi_finish_request()Verification
php -l inc/models/class-membership.php && php -l inc/managers/class-membership-manager.php && php -l tests/WP_Ultimo/Managers/Membership_Manager_Test.phpgit diff --checkvendor/bin/phpunit --filter 'test_publish_pending_site_async_generates_token|test_publish_pending_site_async_can_skip_loopback_via_filter|test_publish_pending_site_async_enqueues_fallback_on_http_errors'— OK (3 tests, 7 assertions)pending_with_site=0,unfinished_publish_actions=0Notes
frankenphp_finish_request()function, so this avoids relying on it.vendor/bin/phpunit --filter 'Membership_Manager_Test|Membership_Test'currently has unrelated fixture reuse failures (User id ... has been used) in async transfer/delete tests.aidevops.sh v3.20.19 plugin for OpenCode v1.16.2 with gpt-5.5
Summary by CodeRabbit
Bug Fixes
Tests