-
Notifications
You must be signed in to change notification settings - Fork 55
skipFilters #780
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
base: main
Are you sure you want to change the base?
skipFilters #780
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/Database/Database.php`:
- Around line 8464-8477: Move the $skip evaluation (the line setting $skip =
$this->filter === false || isset($this->disabledFilters[$filter])) to occur
before the NotFoundException check in decodeAttribute, then call the decoder as
you already do; update every built-in filter decoder closure (json, datetime,
point, linestring, polygon, vector, object) to accept the extra parameter
signature (mixed $value, Document $document, Database $database, bool $skip =
false) and return early with if ($skip) return $value; so they won’t error on
the named parameter skip and will short-circuit when filtering is disabled.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/Database/Database.php
🧰 Additional context used
🪛 PHPMD (2.15.0)
src/Database/Database.php
8475-8475: Avoid unused local variables such as '$filters'. (undefined)
(UnusedLocalVariable)
⏰ 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). (1)
- GitHub Check: Setup & Build Docker Image
🔇 Additional comments (1)
src/Database/Database.php (1)
395-399: No breaking changes from$disabledFiltersbecoming non-nullable.The repository contains no code that assigns
nulltodisabledFilters, and all usage patterns are compatible with a non-nullable array type. The property is always initialized as[]and only ever assigned array values (either empty or populated with filter names). The existing backup/restore pattern in the codebase works correctly with this non-nullable type.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.