fix: keep usage log filters exact unless wildcard is explicit - #5097
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe PR centralizes log query filtering logic by introducing a helper function that conditionally applies exact-match or wildcard-safe filtering based on input content. The backend updates three log retrieval functions to use this helper, while the frontend enables server-side filtering in the table configuration and makes the search type parameter optional. ChangesServer-side log filtering implementation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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)
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 |
…codes * origin/main: (34 commits) fix: optimize batch update process fix: keep token log filters exact fix: keep usage log filters exact unless wildcard is explicit (QuantumNous#5097) fix(web): improve channel and usage log UI feat(theme): add simple-large preset, xl scale and clean up channel badge dots 🐛 fix(system-settings): resolve save detection and number input NaN issues 🎨 fix(logs): tune usage table typography fix: use actual user id for channel tests (QuantumNous#5109) fix: consolidate Waffo payment settings save flow (QuantumNous#5110) 🎨 fix(charts): improve dark mode chart readability 🎨 fix(logs): remove hardcoded font-mono to support global theme font inheritance 🎨 fix(logs): restore timing background badges and optimize model/token spacing feat(subscription): support balance purchases 🎨 fix(theme): default theme font preset falls back to Sans instead of Serif 🎨 refactor(badge): restore status-badge sizes and classic color scheme fix: prevent duplicate channel action toasts (QuantumNous#5015) 🎨 feat(web/default): add Anthropic theme preset and configurable serif typography ♻️ refactor(channels): rebuild channel editor UX with modular sections and Base UI multi-select ♻️ refactor(channels): rebuild channel create/edit drawer with modular sections and improved form UX fix: handle paginated API key search response (QuantumNous#5014) ... # Conflicts: # controller/misc.go # web/default/src/features/auth/sign-in/components/user-auth-form.tsx # web/default/src/features/auth/sign-in/index.tsx # web/default/src/features/auth/sign-up/components/sign-up-form.tsx # web/default/src/hooks/use-sidebar-data.ts # web/default/src/routes/__root.tsx
Important
📝 变更描述 / Description
(简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容)
使用日志默认改为精确匹配,避免自动 %keyword% 模糊查询打穿索引。
仅当用户显式输入 % 时才启用 LIKE 模糊匹配;同时恢复前端服务端过滤,避免分页结果被本地二次过滤。
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
(请在此粘贴截图、关键日志或测试报告,以证明变更生效)

Summary by CodeRabbit
Bug Fixes
Improvements