You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add 'no_submission' repo mode for manually-graded assignments
Fifth value on assignment_repo_mode for assignments with no git repository
and no student-uploaded artifact (e.g. presentations, oral exams). The
grading flow still needs a submission row to attach reviews to, so add an
instructor-only create_manual_submission RPC that produces a stub
(repository=null, sha=null, submitted_via='manual'); idempotent per
profile/group. create_no_repo_submission keeps rejecting non-'none' modes
so students can't upload for no_submission assignments.
Handout / per-student repo creation paths treat no_submission like 'none'
(skip), branch protection is disallowed by the existing constraint
extended to cover both modes, and the prior-assignment dropdown filters
out both modes since neither has repos to fork.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@@ -82,7 +91,7 @@ alter table public.submissions alter column sha drop not null;
82
91
83
92
-- Comment on the new columns so the generated TS types carry intent.
84
93
comment on column public.assignments.repo_mode is
85
-
'How student repositories relate to the handout: none, template_only_staff, template_with_student_forks, or fork_from_prior_assignment.';
94
+
'How student repositories relate to the handout: none (no repo, upload-based submission), template_only_staff, template_with_student_forks, fork_from_prior_assignment, or no_submission (no repo and no student-uploaded artifact; instructor creates submissions for manual grading).';
86
95
comment on column public.assignments.source_assignment_id is
87
96
'When repo_mode = fork_from_prior_assignment, the assignment whose per-student/group repos are forked to create this assignment''s repos.';
88
97
comment on column public.assignments.protect_block_force_push is
@@ -92,4 +101,4 @@ comment on column public.assignments.protect_require_pull_request is
92
101
comment on column public.assignments.protect_required_reviewers is
93
102
'GitHub ruleset: minimum required approving reviews on the pull request (only enforced when protect_require_pull_request is true).';
94
103
comment on column public.assignments.submitted_via is
95
-
'Submission origin marker: null/git for repo-pushed submissions, "upload" for no-repo file uploads. Used by graders to route processing.';
104
+
'Submission origin marker: null/git for repo-pushed submissions, "upload" for no-repo file uploads, "manual" for instructor-created stubs on no_submission assignments. Used by graders to route processing.';
0 commit comments