-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Align query parameters behavior between PSR-7 and Yii2 Request. #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis change introduces caching of merged query parameters in the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant App
participant ServerRequestAdapter
participant SiteController
Client->>App: Send GET /site/query/foo?q=1
App->>ServerRequestAdapter: resolve(request)
ServerRequestAdapter->>ServerRequestAdapter: Merge route + query params, cache in $queryParams
App->>SiteController: actionQuery(test='foo')
SiteController->>ServerRequestAdapter: getQueryParams()
ServerRequestAdapter->>SiteController: Return cached $queryParams
SiteController->>App: Return JSON response (test, q, queryParams)
App->>Client: Send JSON response
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (6)📓 Common learnings📚 Learning: in the yii2-extensions/psr-bridge project, the base testcase class already handles $_server cleanup ...Applied to files:
📚 Learning: the testcase class in yii2-extensions/psr-bridge automatically handles $_server superglobal cleanup ...Applied to files:
📚 Learning: in the yii2-extensions/psr-bridge project, the base testcase class already handles $_server cleanup ...Applied to files:
📚 Learning: in yii2-extensions/psr-bridge, the statelessapplication creates a new response instance for each req...Applied to files:
📚 Learning: in yii2-extensions/psr-bridge, the statelessapplication creates a new response instance for each req...Applied to files:
🧬 Code Graph Analysis (1)tests/support/stub/SiteController.php (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (6)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #65 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 296 297 +1
===========================================
Files 12 12
Lines 757 759 +2
===========================================
+ Hits 757 759 +2 ☔ View full report in Codecov by Sentry. |
Summary by CodeRabbit
New Features
Tests
Chores