Introduce Controller/Helper Taxonomy to handler Errors separately #11
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#11
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/refactor-s3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I do not have a strong opinion on this PR, it is more a way to start a conversation.
The original motivation was to mutualize error handling between api and web.
After working on this patch, it seems that, if it makes sense now, in the future it will not: we answer differently to machines and humans...
I still submitted it, because I think that the renaming could add some clarity to the code: helpers and controllers are generic names in other frameworks.
I recognize that it remains subjective and that this patch add some complexity, especially through the way I chose to implement
make_infallible
(via a trait and not a simple function).I am open to discuss everything and do not hesitate to refuse the PR ;)
Pull request closed