feat(packages/export): add @klicker-uzh/export package for assessment course data export#5043
Draft
rschlaefli wants to merge 7 commits intov3from
Draft
feat(packages/export): add @klicker-uzh/export package for assessment course data export#5043rschlaefli wants to merge 7 commits intov3from
rschlaefli wants to merge 7 commits intov3from
Conversation
… course data export New package for exporting assessment course data (LiveQuiz responses, participants, invitations) to CSV and XLSX formats. Includes a CLI script for manual execution and a barrel export for future backend integration.
- Move @klicker-uzh/types to devDependencies (type-only imports) - Add \r handling to CSV escaping per RFC 4180 - Add truncation indicator (...) for elementContent column
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
…t-assessment-course
…ections sheet, and column refinements - Add ReadonlyPrismaClient type + runtime $extends guard to block all write operations - Support multiple --courseId flags for batch export with combined XLSX workbook - Add CORRECTIONS sheet (AppliedPointCorrection data with point correction details) - Remove unnecessary columns: username, blockId, blockOrder, timeSpent, createdAt (responses), username/isActive/isSSOAccount/participationId (participants), participantUsername (invitations) - Rename sheets to uppercase (RESPONSES, PARTICIPANTS, INVITATIONS, CORRECTIONS) - Sanitize Excel sheet names to avoid illegal characters (e.g. /) - Add .gitignore for export-output directory (contains PII)
…t-assessment-course
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.
Summary
packages/export/package for exporting assessment course data to CSV + XLSX--courseIdflags for batch export with combined XLSX workbookexceljsfor XLSX workbooks with named sheetsReadonlyPrismaClient) with both compile-time type narrowing and runtime$extendswrite blockingOutput structure
Exported sheets
participantId→ PARTICIPANTSparticipantId(primary)participantId→ PARTICIPANTSparticipantId→ PARTICIPANTS,elementInstanceId→ RESPONSESUsage
Safety
ReadonlyPrismaClienttype excludes all write methods at compile time$extendsguard via$allOperationsinterceptor blocks any non-read operationfindMany,findUniqueOrThrow)Test plan
pnpm --filter @klicker-uzh/export checkpasses