Skip to content

lms_grades: --exclude-sis filters staff with a student role - #43

Merged
agiacalone merged 1 commit into
mainfrom
feat/lms-grades-exclude-staff
Oct 21, 2026
Merged

agiacalone merged 1 commit into
mainfrom
feat/lms-grades-exclude-staff

Conversation

@agiacalone

Copy link
Copy Markdown
Owner

Adds --exclude-sis to reg-lms-grades-import, and passes it through reg-canvas grades-export --import.

Why: the first live reg-canvas export (2026-10-21) included a grad student who holds a Canvas student enrolment in sections he is not registered in. reg-gradebook import then stopped with "in Canvas but not in roster".

What changes:

  • Listed SIS IDs go to grades.filtered.csv with reason staff, next to the existing Test Student and ISA filters.
  • Padding does not matter: IDs are zero-padded before matching.
  • The import summary now names every filter reason, not just "ISA accounts".

Testing: 681 passed, including a new test in tests/test_lms_grades.py. Used live to rebuild the three Fa26 gradebooks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N64GRxn3cQDJKAJLdfrso2

A grad student who helps with a section can hold a Canvas student
enrolment there without being registered, so the export lists them like
a student and reg-gradebook import stops with "in Canvas but not in
roster". Their SIS IDs now go to grades.filtered.csv with reason
"staff". reg-canvas grades-export --import passes the flag through.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N64GRxn3cQDJKAJLdfrso2
@agiacalone
agiacalone merged commit 21602b5 into main Oct 21, 2026
4 checks passed
@agiacalone
agiacalone deleted the feat/lms-grades-exclude-staff branch October 21, 2026 17:36
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