Skip to content

Have some kind of an outcome object to group all outcome-related information #163

@ramontayag

Description

@ramontayag

We use LightService as intended: to do pretty complex processes. Many of the actions may fail, and we would like to return more information to the thing that executed the organizer (like a Rails controller), besides the message and error code.

Take Stripe's "outcome" as an example (thanks @ace-subido). To implement this with LS, we'd need to flood the contexts with more information. If there existed an outcome object that would hold the success/failure, error_code, message, and metadata (reason, risk_level would live here), the controller could expose this as they wish to the API user.

What do you think of this? Can flesh it out more if it looks interesting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions