tech-debt: Clean up User model design issues #314
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The User model has multiple design issues flagged by FIXMEs.
Locations
models/user/user.go:193- email does not need to be lowercasemodels/user/user.go:261- callers can only return ErrReachLimitOfRepomodels/user/user.go:408- clarify password behavior for different typesmodels/user/user.go:451- DefaultShowFullName causes messy logicmodels/user/user.go:928- need cache or db to store valuemodels/user/user.go:1191- ValidateCommitsWithEmails uses Author but ParseCommitsWithSignature uses Committermodels/user/user.go:1339- empty User fields do not apply correctlyAction Required
Address each design issue, particularly the Author vs Committer inconsistency and the empty-fields bug.
Created by Claude Opus 4.6