fix(integrations): preserve DirectAdmin raw responses - #1671
Conversation
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe DirectAdmin response parser now preserves raw URL-encoded response bodies. A regression test verifies that an intercepted login-page response causes ChangesDirectAdmin response handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
Completion Summary
aidevops.sh v3.32.180 plugin for OpenCode v1.18.4 with gpt-5.6-terra spent 14m and 86,869 tokens on this as a headless worker. Merged via PR #1671 to main. |
🔨 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: |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@inc/integrations/providers/directadmin/class-directadmin-integration.php`:
- Around line 300-301: Update the parsing logic around the $parsed['raw']
assignment so the raw response is stored under a reserved internal key that
cannot collide with fields produced by parse_str(). Preserve all existing parsed
server values, including any raw key supplied in the response, while retaining
access to the unmodified response body.
In
`@tests/WP_Ultimo/Integrations/Providers/DirectAdmin/DirectAdmin_Integration_Test.php`:
- Around line 132-152: Update the HTTP mock setup in the test_connection test to
store the pre_http_request closure in a variable, then remove only that callback
with remove_filter('pre_http_request', $callback) in the finally block. Preserve
the existing mocked response and test flow without clearing other callbacks on
the global hook.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 2f84ebd6-716d-4691-b429-f85dd29e5247
📒 Files selected for processing (2)
inc/integrations/providers/directadmin/class-directadmin-integration.phptests/WP_Ultimo/Integrations/Providers/DirectAdmin/DirectAdmin_Integration_Test.php
|
CLAIM_RELEASED reason=worker_complete runner=superdav42 ts=2026-07-24T17:59:51Z aidevops_version=3.32.180 opencode_version=1.18.4 |
🔨 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
Testing
Resolves #1665
aidevops.sh v3.32.180 plugin for OpenCode v1.18.4 with gpt-5.6-terra spent 14m and 83,127 tokens on this as a headless worker.
Summary by CodeRabbit
Bug Fixes
Tests