Skip to content

reg-canvas discussions: term report by week; safe retries - #45

Merged
agiacalone merged 1 commit into
mainfrom
feat/discussions-refresh
Oct 21, 2026
Merged

agiacalone merged 1 commit into
mainfrom
feat/discussions-refresh

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Summary

  • Term report by week. reg-canvas discussions review with no --week writes classes/semesters/<term>-discussions-grading.md, with one section per "Week N" discussion. Run it whenever you like. A rerun adds new posts and keeps ticked denials. A ticked student stays listed even after posting more.
  • apply --week is required, so a blanket apply can't overwrite weeks that were graded by hand.
  • Safe network retries. The first live run hit TLS handshake timeouts partway through about 600 like requests. GETs, and writes marked idempotent, now retry with backoff. Announcements and other writes do not.

Testing

  • pytest: 696 passed, 1 skipped.
  • Live: finished the Weeks 5–6 likes and posting with --week "Week 6" after the retry fix, and built the Fa26 term report (Weeks 1–7) read-only.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N64GRxn3cQDJKAJLdfrso2

discussions review with no --week covers every "Week N" discussion and
writes one running report per term, a section per week. A rerun keeps
every ticked deny, and a student with a ticked post stays listed. apply
now requires --week, since the report includes hand-graded weeks.

canvas_api retries a dropped connection for GETs and for writes the
caller marks idempotent (grades, likes, posting). Other writes are not
retried, so a timeout can never post an announcement twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N64GRxn3cQDJKAJLdfrso2
@agiacalone
agiacalone merged commit 8ba1edb into main Oct 21, 2026
4 checks passed
@agiacalone
agiacalone deleted the feat/discussions-refresh branch October 21, 2026 19:57
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