luckyframework / luckyframework/avram

SaveOperation.has_one should still run `valid?` on nested operation if parent is invalid

Open
#276 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.