Skip to content

refactor(core): rename payment deadline fields to half/full - #560

Merged
vEnhance merged 1 commit into
mainfrom
claude/roster-payment-deadline-names-hf4t6n
Aug 25, 2026
Merged

refactor(core): rename payment deadline fields to half/full#560
vEnhance merged 1 commit into
mainfrom
claude/roster-payment-deadline-names-hf4t6n

Conversation

@vEnhance

Copy link
Copy Markdown
Owner

more descriptive names

The names first_payment_deadline and most_payment_deadline no longer
described what the fields do. Both already carried help_text reading
"Deadline for half payment." and "Deadline for full payment.", and the
logic in Student.payment_status agrees: the first deadline is only
consulted while more than half the cost is still owed, and the "most"
deadline governs the invoice until it is paid off entirely.

"most" was the more misleading of the two, since it reads as "most of
the payment" but actually gates the full balance. "first" was also
inaccurate in the one_semester_date branch, where an invoice created
after that date skips the half deadline and the first deadline the
student sees is the full one.

Rename them to half_payment_deadline and full_payment_deadline, and
update the payment_status docstring to match.

The migration uses RenameField for both columns, so the existing
deadline values are preserved rather than dropped and recreated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKdgZFEJqFsCRkaUcFLMm6
@vEnhance
vEnhance merged commit 3d40035 into main Aug 25, 2026
5 checks passed
vEnhance pushed a commit that referenced this pull request Aug 25, 2026
#560 landed its own core migration numbered 0072, so both branches had a
0072 depending on 0071 and the graph had two leaf nodes. Renumbered ours
to 0073 and pointed it at theirs, rather than adding a merge migration.
The two RenameFields touch different models (Semester vs UserProfile), so
linearizing them is order-independent.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012tmVNTck2f5p5pJez64MmT
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.

2 participants