Dispute Penalty - Harrison individual M4 - #165
Conversation
|
Hey, I’m confused by this PR and need clarification. I don’t understand why report_output/report.html and final_report.json were added. They look like generated test artifacts and don’t belong with a backend feature. Are they meant to be committed? What are they for? The dispute feature still isn’t usable. The service relies on print() and input() for approval, which doesn’t fit an API workflow. It doesn’t save disputes or store user reasons, and there’s no proper admin review endpoint. Even though CI passes, the feature won’t actually work when used. What you should actually add: User endpoint to file a dispute: Add Dispute model with fields like dispute_id, penalty_id, user_id, reason, status, reviewer_id, reviewer_comment, created_at, reviewed_at POST /disputes/{dispute_id}/review or PUT /disputes/{dispute_id} Delete all print()/input() from service code. Decisions must come from API calls or parameters. Replace interactive tests with HTTP-driven tests: Security Please either explain why the report files are here or remove them, and update the code and tests to implement the API-driven dispute flow above. Right now this is incomplete and won’t work if implemented in our actual project. If you want, I can complete this feature, but it is meant to be your individual feature. Good luck. Let me know if you need help. Tip: if you look at the refund system that I implemented for my individual feature, the logic should be fairly similar. |
No description provided.