luckyframework / luckyframework/avram
SaveOperation.has_one should still run `valid?` on nested operation if parent is invalid
Open
- Dominant language
- Crystal
- Stars
- 183
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Otherwise errors will not appear for the nested one
Contributor guide
Research direction
Start by locating SaveOperation.has_one and any existing validation tests for nested operations. Reproduce the case where the parent is invalid, then verify that the nested operation still runs valid? and exposes its errors while preserving the parent validation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- database
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100