Closed PikachuEXE closed 7 years ago
An upgrade guide is a good idea, thank you! I'll make clearer mention of the halting behavior of fail!
as well.
The change in behavior regarding "magical" context access is a better topic for the upgrade guide.
As for the run!
method, it isn't meant to be part of the public API. Interactors should be invoked using the call
class method, which I believe is explained in the readme. One of the next tasks I'd like to tackle is to comment the code using TomDoc, which should help clarify the line between public and private APIs.
Thank you for your feedback and please continue to report any issues you find with version 3!
I've started the tomdoc
branch for adding code documentation (in progress).
Milestone cleared as the only enhancement important enough to warrant a patch release would be code documentation. Opened pull request #63 under the 3.0.1
milestone.
While upgrading to v3, I was a little surprised to find that Interactor
's initializer is considered part of the internal api and also that Interactor.call
returns an instance of Interactor::Context
rather than Interactor
. In fact, there doesn't appear to be a way (that's part of the documented public api) to get an instance of an Interactor
anymore. Perhaps you could provide some insight into these implementation choices?
The public interface to an Interactor class is limited to Interactor.call
. We discuss two issues specifically related to your observations in issues #47 and #49.
thank you very much!
Instances of interactors are now throwaways as the context has (or should have) all of the information resulting from invocation of the interactor.
You're very welcome!
hey @laserlemon, As I told you in https://github.com/collectiveidea/interactor/issues/64#issuecomment-56539591 I've started working on a wiki on a fork. https://github.com/beNjiox/interactor/wiki.
I was also thinking of covering the upgrade guide as well as the halting behavior of fail!, if it's ok for you. Feel free to let me know your thoughts.
That's great, thank you! Please continue as you're able. The progress you're making is super helpful! :clap:
Hey @laserlemon,
I've been working a little bit on my fork version.
I've done some little changes to the README so that it mentions halting behavior of fail! as well as referencing the new wiki when mentionning multiple hooks.
I've also lightened the Upgrade Guide of the wiki to something simple, I realized that It doesn't need to be heavy since upgrading is not that difficult.
To conclude, I've created a simple app using interactor for people who wants to see it in action. I think it can help people to jump in and see the power of it. I'm curious to know what you think about it!
Let me know if you want some more changes, and if you want to integrate my fork to the main repo.
Thanks,
Closing because… stale. ☹️
Some changes are not well explained like:
Also
run!
is not mentioned in READMEThank you for your hard work, I like
interactor
very much :)TODO
fail!