Open thibpoullain opened 5 years ago
hey @thibpoullain,
Can you provide links that helped you? I'm sure it'll help other people!
Also, what kind of example do you think might help others?
Hi @nicolas-besnard,
Sure, I gather the links and I'll post them here !
👍 Would appreciate some documentation around how to upgrade from 0.12.1 to 0.13.0 Changes did not seem to be backward compatible.
e.g. this minimal example worked in 0.12.1
###
class MyOp include Dry::Transaction::Operation
def call(input)
Success(input)
rescue
Failure('Failure in my_op')
end
end
###
module MyContainer
class << self
def container
{ my_op: MyOp.new }
end
end
end
###
class MyTransaction
include Dry::Transaction(container: MyContainer.container)
step :my_op
end
In 0.13.0, we get: Dry::Transaction::MissingStepError (Definition for step +my_op
+ is missing)
Hi guys,
Thanks for your work ! Could it be possible to write a little bit more documentation (exemples, etc.), because it's very very light. Hard and almost impossible to get in without exemples on google.
Thx again ! :)