Document how to return data/terminate the request in a before block
Open
Nobody has claimed this yet.
chore
- Dominant language
- Ruby
- Stars
- 10k
- Forks
- 1.2k
- Avg merge
- 14h 38m
- Merged PRs (30d)
- 92
Description
I believe is by calling error!, but I realize that's not documented, at least clearly. Also it's not clear whether the after block would be called anyway in this case. Needs tests for all these cases.
Contributor guide
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 by locating the documentation and tests for before and after blocks and the error! entry point. Verify how a before block returns data or terminates the request, including whether the after block runs, then document the behavior and add tests covering each case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100