Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Instructors and TAs need a way to test an assignment before releasing it to students

オープン
#363 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

Start by reading code_editor.py's run_code and _verify_student, then compare submission.py's upload_submission behavior. Decide how staff testing should work for upload-only assignments, and inspect reviewGrades and manageSubmissions for roster handling. Done means staff can test before release without test data appearing as student submissions or affecting grades and counts.

索引モデルが issue の本文から書いたものです。

説明

Currently, both the code editor (run_code/submit_code in code_editor.py) and file-upload submission (upload_submission in submission.py) block non-student callers — _verify_student has no staff bypass, and upload_submission has an explicit comment: "Instructors/TAs should not upload submissions on behalf of students." There's no way for staff to verify an assignment's autograder works before publishing it to students.

run_code is already ephemeral (no Submission row is written — "Run code without creating a submission" per its own docstring), which makes it the natural place to allow staff through for code-editor assignments. Two things stand in the way even there:

  1. _verify_student in code_editor.py has no staff bypass.
  2. run_code explicitly rejects unpublished assignments (if not assignment.published: raise BadRequestError(...)) — but testing before publishing is the entire point of this request, so that gate needs a staff exception too.

Upload-only assignments (enable_code_editor=False) have no ephemeral equivalent — upload_submission always persists a Submission row, and there's currently no flag on Submission to distinguish a staff test run from a real one. Supporting staff testing there means either adding a Submission flag (schema migration) or a separate non-persisted "dry run" execution path, and either way, reviewGrades/manageSubmissions' rosters and any grade-count/dashboard logic would need to exclude staff test data — which they don't do today for any role (see the linked roster-filtering issue).

Reported by Cecilia (yczhangcc) during review of PR #355.

主要言語
Python
スター
13
フォーク
0
平均マージ
2時間 4分
マージ済み PR(30日)
1

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

kiat/codeAssist のほかの issue

kiat/codeAssist の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。