tech-debt: Clean up User model design issues #314

Open
opened 2026-05-31 14:15:02 +00:00 by jmiller · 0 comments
Owner

Summary

The User model has multiple design issues flagged by FIXMEs.

Locations

  • models/user/user.go:193 - email does not need to be lowercase
  • models/user/user.go:261 - callers can only return ErrReachLimitOfRepo
  • models/user/user.go:408 - clarify password behavior for different types
  • models/user/user.go:451 - DefaultShowFullName causes messy logic
  • models/user/user.go:928 - need cache or db to store value
  • models/user/user.go:1191 - ValidateCommitsWithEmails uses Author but ParseCommitsWithSignature uses Committer
  • models/user/user.go:1339 - empty User fields do not apply correctly

Action Required

Address each design issue, particularly the Author vs Committer inconsistency and the empty-fields bug.


Created by Claude Opus 4.6

## Summary The User model has multiple design issues flagged by FIXMEs. ## Locations - `models/user/user.go:193` - email does not need to be lowercase - `models/user/user.go:261` - callers can only return ErrReachLimitOfRepo - `models/user/user.go:408` - clarify password behavior for different types - `models/user/user.go:451` - DefaultShowFullName causes messy logic - `models/user/user.go:928` - need cache or db to store value - `models/user/user.go:1191` - ValidateCommitsWithEmails uses Author but ParseCommitsWithSignature uses Committer - `models/user/user.go:1339` - empty User fields do not apply correctly ## Action Required Address each design issue, particularly the Author vs Committer inconsistency and the empty-fields bug. --- *Created by Claude Opus 4.6*
jmiller added the tech-debtupstream labels 2026-05-31 14:15:02 +00:00
Sign in to join this conversation.
No labels tech-debt upstream
Status
Type Bug
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoGitea#314