fix(lab): reject CL-04 invalid management read filters - #1712
Conversation
📝 WalkthroughWalkthroughThe management API now rejects invalid ChangesManagement API read-filter validation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🟡 Moderate · up to GET /api/lab/artifacts still accepts an empty or whitespace-only artifactClass and returns an unfiltered result instead of a 400 response, so the PR is not merge-ready until this invalid-input case is handled. Possibly related PRs
🚥 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 |
|
✅ Deterministic PR hygiene checks passed. |
Summary
excludedvalues onGET /api/lab/eventsinstead of silently dropping the filter and returning an unfiltered result.artifactClassvalues onGET /api/lab/artifactsinstead of accepting arbitrary strings as anArtifactClass.This is a focused follow-up to the CL-04 read surfaces from #1378. The broader post-merge review findings were re-checked against current
dev; only these two issues remained real, unfixed, and worth changing.Verification
agent/cl04-read-filter-validationagainst currentdev: 2 commits, 2 changed files, branch is 0 commits behinddevat creation.tests/lab-read-filter-validation.test.tscovering both 400 responses and error codes.Checklist
Summary by CodeRabbit
Bug Fixes
Tests