Skip to content

feat: add attachment support and sync endpoint for cohort questions#73

Merged
theanmolsharma merged 2 commits intomainfrom
feat/cohort-question-attachments
Apr 7, 2026
Merged

feat: add attachment support and sync endpoint for cohort questions#73
theanmolsharma merged 2 commits intomainfrom
feat/cohort-question-attachments

Conversation

@theanmolsharma
Copy link
Copy Markdown
Collaborator

Summary

  • Add attachment support for cohort week questions — questions and bonus questions now carry an attachments array of filenames, with files stored under assets/cohort-configs/attachments/<cohort-type>/ and served via a new streaming endpoint
  • Add POST /cohorts/:cohortId/sync-questions endpoint (TA/Admin) to re-sync all GD week questions and bonus questions from the config file

🤖 Generated with Claude Code

theanmolsharma and others added 2 commits April 7, 2026 11:11
Questions and bonus questions are now objects with text and attachments
fields instead of plain strings. Attachments are stored as files in
assets/cohort-configs/attachments/{cohort-type}/ and served via a
streaming endpoint. Config validation ensures referenced files exist
on startup.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@theanmolsharma theanmolsharma force-pushed the feat/cohort-question-attachments branch from fda5d49 to 9ef6486 Compare April 7, 2026 05:42
@theanmolsharma theanmolsharma merged commit 9ef6486 into main Apr 7, 2026
2 checks passed
@theanmolsharma theanmolsharma deleted the feat/cohort-question-attachments branch April 7, 2026 05:42
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