Repository navigation
fix(api): return formula default validation errors - #9271
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis pull request fixes the Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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. 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 |
|
thanks! |
Summary
FormulaQuery::validatecollected validation errors for invaliddefaults, but returnedOk(())unconditionally after the loop.This PR returns the collected errors when present and adds focused unit coverage for:
$scoredefaults$scoreand payload defaultsTests
cargo +nightly fmt --all -- --checkI also attempted
cargo test -p api formula_query --locked, but this Windows environment is missing the MSVC linker (link.exe/ Visual C++ Build Tools), so local Rust compilation stops before the crate builds. I’m relying on CI for compile/test validation.AI disclosure
[AI-assisted] fix(api): return formula default validation errorsImplement the FormulaQuery::validate audit finding: return collected default validation errors and add focused regression tests; keep the change limited to lib/api/src/rest/validate.rs.