You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently found this gem https://github.com/adomokos/light-service and one thing I liked was the fact that you can specify what's expected from the context and what will be set on the context.
I think this would be a worthwhile addition. I've just added comments at the top of the class about what's required input and what is expected output. Defining it might clean up some of the boilerplate code I create like this:
ifcontext.location.blank? || context.calibration.blank?Rails.logger.info'AddCalibrationLocation [ SKIPPED - MISSING INFO ]'returnfalseend
Hey, take a look at Hanami::Interactor - it's simpler than collectiveidea's interactor (no Organizaer, callbacks, rollback) but thanks to its API you can clearly see the input and the output :)
Hi 👋
I recently found this gem https://github.com/adomokos/light-service and one thing I liked was the fact that you can specify what's expected from the context and what will be set on the context.
I've been doing
delegate
calls to mimic theexpects
functionality, I have nothing for the promises.Is that something you would welcome a PR for?
The text was updated successfully, but these errors were encountered: