Skip to content

Add report exercise issue feature (backend)#484

Merged
mircealungu merged 1 commit intomasterfrom
feature/report-exercise-issue
Feb 14, 2026
Merged

Add report exercise issue feature (backend)#484
mircealungu merged 1 commit intomasterfrom
feature/report-exercise-issue

Conversation

@mircealungu
Copy link
Member

Summary

  • Add exercise_report table migration with FK to exercise_source
  • Create ExerciseReport model with reason enum
  • Add POST /report_exercise_issue API endpoint
  • Unique constraint prevents duplicate reports per user/bookmark/source

Reason categories

  • word_not_shown - cloze exercise shows no gap
  • context_confusing - context sentence is unclear
  • wrong_translation - translation appears incorrect
  • context_wrong - context doesn't match the word
  • other - free text comment

Test plan

  • Run migration on database
  • Test endpoint with curl/Postman
  • Verify duplicate prevention works

🤖 Generated with Claude Code

- Add exercise_report table migration with FK to exercise_source
- Create ExerciseReport model with reason enum (word_not_shown,
  context_confusing, wrong_translation, context_wrong, other)
- Add POST /report_exercise_issue API endpoint
- Unique constraint prevents duplicate reports per user/bookmark/source

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions
Copy link

ArchLens detected architectural changes in the following views:
diff

@mircealungu mircealungu merged commit 763f9b6 into master Feb 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant