Conversation
Implement complete assessment and assignment system with submissions, grading, and quiz attempts.
## Components Implemented
### Entities
- Assignment entity with instructions, due dates, and max scores
- Submission entity with content, files, grading, and status workflow
- Assessment entity with questions (JSON), time limits, and attempt controls
- AssessmentAttempt entity with answers (JSON), scoring, and tracking
- Enums: SubmissionStatus (DRAFT, SUBMITTED, GRADED, RETURNED)
### API Endpoints
#### Public
- GET /api/v1/assignments/lesson/{lessonId} - Get lesson assignments
- GET /api/v1/assignments/{id} - Get assignment details
- GET /api/v1/assessments/lesson/{lessonId} - Get lesson assessments
- GET /api/v1/assessments/{id} - Get assessment details
#### Authenticated (Students)
- POST /api/v1/assignments/submissions - Create/update submission
- POST /api/v1/assignments/submissions/{id}/submit - Submit assignment
- GET /api/v1/assignments/submissions/my - My submissions
- GET /api/v1/assignments/submissions/{id} - Get my submission
- POST /api/v1/assessments/attempts/start - Start assessment attempt
- POST /api/v1/assessments/attempts/{id}/submit - Submit attempt
- GET /api/v1/assessments/{assessmentId}/attempts/my - My attempts
#### Admin/Instructor
- POST /api/v1/assignments - Create assignment
- PUT /api/v1/assignments/{id} - Update assignment
- DELETE /api/v1/assignments/{id} - Delete assignment
- GET /api/v1/assignments/{assignmentId}/submissions - All submissions
- POST /api/v1/assignments/submissions/{id}/grade - Grade submission
- POST /api/v1/assessments - Create assessment
- PUT /api/v1/assessments/{id} - Update assessment
- DELETE /api/v1/assessments/{id} - Delete assessment
- GET /api/v1/assessments/{assessmentId}/attempts - All attempts
### Services
- AssignmentService with CRUD operations
- SubmissionService with draft/submit workflow and grading
- AssessmentService with quiz management and attempt validation
### Features
- Assignment creation with due dates and max scores
- Submission workflow (DRAFT → SUBMITTED → GRADED → RETURNED)
- Automatic grading tracking (grader, timestamp)
- Assessment quiz with JSON-based questions and answers
- Attempt limit validation
- Automatic attempt numbering
- Score calculation and pass/fail determination
- Time limits for assessments
- File upload support for submissions
- Feedback system for graded work
- Instructor grading interface
### Database
- Flyway migration V6 (assignments, submissions, assessments, attempts tables)
- JSON columns for flexible question/answer storage
- Foreign key relationships with lessons
- Proper indexing for performance
## Technical Details
- JSON structure for quiz questions and student answers
- Submission status workflow with state validation
- Grade tracking with instructor identification
- Attempt counting and limit enforcement
- Passing score validation
- Support for resubmission (draft mode)
- Ownership validation for student submissions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 5: Assessments & Assignments
This PR implements the complete assessment and assignment system with submissions, grading, and quiz attempts.
🎯 Components Implemented
Entities:
API Endpoints:
Public:
Authenticated (Students):
Admin/Instructor:
Features:
Database:
📊 Files Changed
24 files added:
✅ Checklist
Ready for review and merge to phase-4 ✅