feat(assessment): Callback Metadata typed result files - #1214
Conversation
Replace the untyped `metadata.result_files` envelope with a typed `AssessmentResultFiles` model keyed by stage, and drop the synthetic `results`/`*_results` kind mapping in favour of the stage name itself. `errors.jsonl` is now uploaded only when there is something to report, so a clean run leaves no empty object behind. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 39 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: ProjectTech4DevAI/kaapi-backend/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
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 |
OpenAPI changes 🔴 4 breaking changesCaution Downstream consumers may need an update before merging. Breaking changes ·
|
| Method | Path | Change | |
|---|---|---|---|
| 🔴 | POST |
/api/v1/assessment/runs |
removed subschema #1, subschema #2 from the input_binding/attachments/items/type request property anyOf list |
| 🔴 | POST |
/api/v1/assessment/runs |
request property input_binding/attachments/items/type was restricted to a list of enum values |
| 🔴 | POST |
/api/v1/assessment/runs |
removed the enum value video of the request property input_binding/attachments/items/type_value_map/anyOf[subschema #1]/additionalProperties/ |
| 🔴 | POST |
/api/v1/assessment/runs |
the input_binding/attachments/items/type request property type changed from any to string |
Full changelog · 8
| Method | Path | Change | |
|---|---|---|---|
| 🔴 | POST |
/api/v1/assessment/runs |
removed subschema #1, subschema #2 from the input_binding/attachments/items/type request property anyOf list |
| 🔴 | POST |
/api/v1/assessment/runs |
request property input_binding/attachments/items/type was restricted to a list of enum values |
| 🔴 | POST |
/api/v1/assessment/runs |
removed the enum value video of the request property input_binding/attachments/items/type_value_map/anyOf[subschema #1]/additionalProperties/ |
| 🔴 | POST |
/api/v1/assessment/runs |
the input_binding/attachments/items/type request property type changed from any to string |
| 🟢 | — |
— |
a breaking change was detected but the version is still 0.5.0 |
| 🟢 | POST |
/api/v1/assessment/runs |
added the new image enum value to the request property input_binding/attachments/items/type |
| 🟢 | POST |
/api/v1/assessment/runs |
added the new mixed enum value to the request property input_binding/attachments/items/type |
| 🟢 | POST |
/api/v1/assessment/runs |
added the new pdf enum value to the request property input_binding/attachments/items/type |
main ↔ 0198d78b · generated by oasdiff
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
🎉 This PR is included in version 1.7.0-main.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Issue
Closes #1213
Summary
metadata.result_filesenvelope and included syntheticresults/*_resultskind mapping.AssessmentResultFilesmodel keyed by stage and uploadserrors.jsonlonly when necessary.Example
Checklist
Before submitting a pull request, please ensure that you mark these task.
fastapi run --reload app/main.pyordocker compose upin the repository root and test.Notes
Please add here if any other information is required for the reviewer.