loopbackio / loopbackio/loopback-datasource-juggler
Operation hook for errors
Open
Nobody has claimed this yet.
feature
major
needs-priority
- Dominant language
- JavaScript
- Stars
- 282
- Forks
- 366
- Avg merge
- 17h 4m
- Merged PRs (30d)
- 10
Description
Based on the discussion in https://github.com/strongloop/loopback/issues/1226, it may be useful to provide an operation hook triggered when the operation failed. This will allow hooks to clean up any temporary changes made in a "before" hook.
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 reading the linked discussion in strongloop/loopback#1226, since the issue names no files, tests, or entry points. Trace how operation hooks are currently defined and failure paths are handled; done means a failed operation triggers a hook that can clean up changes made by a before hook.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100