luckyframework / luckyframework/website
Document `has_one` for saving an association
Nobody has claimed this yet.
- Dominant language
- Crystal
- Stars
- 39
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
See:
- https://github.com/luckyframework/avram/blob/60ebb71af45a9f44f8a126f91c0e3389488673f1/spec/nested_save_operation_spec.cr#L5-L6
- https://github.com/luckyframework/lucky/discussions/1209#discussioncomment-32183
From our glorious leader:
Kind of like accepts_nested_attributes_for but type safe. Unfortunately only for creating one child record at a time right now though. has_many is trickier
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Avram nested save operation spec and the Lucky discussion, then locate the website's existing association documentation. Document how has_one works when saving an association, including that it currently creates one child record at a time; done means the supported behavior and limitation are clear to readers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- crystal
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100