generated from block/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
ex machinaIssues/content generated by our robotic friendsIssues/content generated by our robotic friends
Description
The Post entity uses nullable fields (id: Long?, createdAt: Instant?, updatedAt: Instant?) because pre-persistence posts lack these values. After persistence, they are always non-null, but the type system does not reflect this — leading to !! assertions scattered across action/response code.
Options
- Separate
Post(pre-persistence) from aPersistedPost(post-persistence) type - Make repository return types guarantee non-null fields
- Use a sealed type or value class wrapper
Acceptance Criteria
- No
!!on post id/timestamps in action or response code - All tests pass
- No behavioral change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ex machinaIssues/content generated by our robotic friendsIssues/content generated by our robotic friends