Repository navigation
fix: handle missing namespace filter - #4615
Conversation
|
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 (2)
📝 WalkthroughWalkthrough
ChangesEmpty Namespace Filter Guard
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Greptile SummaryThis PR makes gathering invoice namespace filtering optional when listing invoices.
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "fix: handle missing namespace filter" | Re-trigger Greptile |
Summary
Fix gathering invoice listing so an omitted namespace filter means "do not filter by namespace" instead of producing an empty
NamespaceIn()predicate.Details
ListGatheringInvoicesalready treats customer, currency, and ID filters as optional. This change makes namespace filtering follow the same contract by applyingNamespaceIn(...)only when namespaces are provided.The regression test creates a gathering invoice and lists it by customer without passing
Namespaces, proving callers can use non-namespace filters without accidentally excluding all rows.Validation
make lintmake test-nocacheSummary by CodeRabbit