Fix Browscap Flysystem namespace scoping mismatch#188
Conversation
- Update League\Flysystem imports to use SlimStat\Dependencies prefix - Fix class_exists() check for LocalFilesystemAdapter - Add stub exceptions for Flysystem 1.x compatibility Fixes #187
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR introduces two new Flysystem exception stub classes and updates namespace references in Scrapbook adapter files from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
|
One review note: this fixes the scoped Flysystem constructor mismatch from #187, but the existing E2E coverage still treats a That means CI can keep passing even if this namespace regression comes back on a future dependency refresh. I'd tighten that test and remove the stale "pre-existing Browscap/Flysystem namespace scoping bug" note so this fix is actually pinned down by automation. I spot-checked the runtime behavior locally: |
E2E QA Test Results — Issue #187 Fix ValidationEnvironment: WordPress 6.9.4 · PHP 8.5.0 · wp-slimstat 5.4.3 · wp-slimstat-pro 1.2.1 · Local (macOS) Test Summary: 10/10 PASS
Browser Tracking Verified (Playwright)Two real browser pageviews tracked successfully with Browscap detection:
Code Review (simplify)Three parallel review agents (reuse, quality, efficiency) found zero issues:
Pre-existing Issue (not related to this PR)ReferenceError: handleConsentUpgradeResult is not defined in wp-slimstat.js:1231 — this function is called but never defined. Confirmed present on development branch too. Does not block tracking (pageviews still record). Should be tracked separately. Verdict: PASS — Ready to mergeThe namespace scoping mismatch from #187 is fully resolved. The Browscap to Flysystem to Scrapbook pipeline works end-to-end without TypeError. |
Fixes #187
Describe your changes
...
Submission Review Guidelines:
CHANGELOG.md.Type of change
Summary by CodeRabbit
Bug Fixes
Refactor