Spaces:
Runtime error
Runtime error
Commit History
-
fix(files): return 404 when file missing on disk; polish Word/PDF export
- files.service.ts: add fs.existsSync check in downloadFile so missing local files return NotFoundException (404) instead of crashing with a 400 from createReadStream - exams.service.ts: improve Word export HTML/DOCX rendering — better font stack, question number styling, math text formatting via formatExportMathText with unicode scripts, dedicated docxQuestionParagraph helper; q-marks CSS class for marks line Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e786b83
-
fix(question-bank): make batch status updates safe and efficient
- Optimize question bank batch status actions to avoid slow per-question updates - Resolve selected question ids server-side for all-matching filter batches - Add batch support for approve, submit for review, archive, reject, and restore flows - Create review events and question versions for batch-updated questions - Add expectedQuestionCount validation to prevent accidental oversized batch mutations - Refuse batch actions when the resolved server-side selection count differs from the client selection count - Extend batch status DTO with all-matching filters, excluded ids, filter fields, and expected selection count - Preserve instructor course ownership checks for all affected batch questions - Keep batch responses hydrated with question media, attachments, groups, and image URLsb0ac0e7
-
feat(assessment): implement Question Bank and Exam Generator backend
Add full backend support for instructor Question Bank and Exam Generator workflows, including question lifecycle management, media attachments, grouped questions, intent-based exam generation, draft editing, saved exam snapshots, export options, and paper templates. Question Bank: - add chapter, question, bulk question, attachment, group, group item, version, and review-event DTOs/entities/services - support question statuses: draft, under_review, approved, rejected, archived - implement review actions for submit, approve, reject, archive, and restore - reset approved questions back to draft after meaningful edits - add batch status actions and backend stats for filtered question pools - support prompt image metadata, image captions, alt text, hints, and multiple supporting attachments - add attachment upload, update, delete, reorder, and orphan cleanup behavior - add question groups with shared prompt/image metadata, link existing questions, unlink questions safely, reorder gro…ffd0171
-
feat: add exam drafts functionality with pagination and image upload support in question bank
1588205
-
fix(database): normalize FK column types for refactored schema sync
Align primary/foreign key bigint columns to unsigned across entities, fix nullable SET NULL linkage, and disable automatic migration execution to stabilize startup against the refactored database.fcab6da -
refactor: resolve circular dependencies and optimize entities for SWC builder
Implements TypeORM Relation<T> and type-only imports across all entities to support the transition to the SWC builder and resolve initialization reference errors.9f03bd9
-
feat: enhance Swagger documentation with examples and descriptions
- Add full Swagger decorators to CourseSchedulesController (@ApiTags, @ApiOperation, @ApiParam, @ApiResponse) - Add @ApiProperty with examples to CreateScheduleDto, CreateSectionDto, CreateCourseDto, CreatePrerequisiteDto, CreateFolderDto - Add example values to CreateGradeDto, CreateRubricDto, GradeSubmissionDto, SubmitAssignmentDto, AssignmentQueryDto, GradeQueryDto - Enhance CreateAssignmentDto with descriptions and examples on all optional fields - Add example values to @ApiParam in Assignments, Grades, and Rubrics controllers - Register missing Swagger tags in main.ts: Course Schedules, Assignments, Grades, Rubrics, Attendance, Quizzes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>89ee94c -
fix: align entities with DB schema - files, folders, rubrics
- Fix file.entity.ts: original_file_name→original_filename, add fileExtension/checksum/downloadCount/isPublic/status, createdAt→uploadedAt, remove courseId - Fix folder.entity.ts: userId→createdBy, remove courseId/deletedAt, add path/level/isSystemFolder - Fix file-permission.entity.ts: created_at→granted_at - Fix file-version.entity.ts: file_path type, file_size nullable - Fix files.controller.ts: move search/recent/shared routes before :fileId param route - Fix files.service.ts: remove courseId refs, fix timestamp field names - Fix folder.service.ts: userId→createdBy, softDelete→delete - Fix rubrics.service.ts: remove criteriaItems relation (table doesn't exist) - Update DTOs to match entity changes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>0d75d39
-
added swagger feature and fixed some errors in the "files" feature
e6677f0
-
Phase 3 updates before merging into enrollments
b0984a9