Add checks on reserved names#2632
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughA normalized helper is added to match reserved pool names with exact and ChangesReserved Pool Name Validation Enhancement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 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 unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@emhttp/plugins/dynamix/DeviceInfo.page`:
- Around line 203-210: The reserved-name check is incorrectly treating
non-wildcard entries as prefix matches; inside the reserved.some(...) anonymous
function (variables reservedName and name) change the non-wildcard branch to
require an exact match only (return name === reservedName) while preserving the
current wildcard branch (reservedName.endsWith('*') ->
name.startsWith(reservedName.slice(0, -1))). Ensure you still normalize case via
(entry || '').toLowerCase() and keep the early return for empty reservedName.
🪄 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: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: fc7affa6-0e02-40df-99de-5731549d3916
📒 Files selected for processing (2)
emhttp/plugins/dynamix/CacheDevices.pageemhttp/plugins/dynamix/DeviceInfo.page
Summary by CodeRabbit
Bug Fixes
foo*blocksfoo,foobar, etc.), including common reserved prefixes like mirror/raidz/spare.New Features