-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
The API package has two repository types that have significant overlap:
Repositoryininternal/api/repositories.goRepositoryFullininternal/api/repositories.go
This creates confusion about which type to use and leads to unnecessary type conversions.
Current State
Repositoryis used for list responsesRepositoryFullis used for single repository responses- Many fields are duplicated between the two types
Proposed Solution
- Use a single
Repositorytype with all fields - Document which fields are populated in different API responses
- Consider using pointers for optional fields to distinguish between "not set" and "empty"
Files Affected
internal/api/repositories.go- All code that uses these types
Labels
refactortech-debt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels