activeinteractor icon indicating copy to clipboard operation
activeinteractor copied to clipboard

[Bug Report] before_perform invoked before context is validated

Open mjonas87 opened this issue 2 years ago • 0 comments

Current Behavior

Currently, the before_perform logic runs before the context is validated. I'm not sure if this is expected, but it seems unexpected to me.

Expected Behavior

Context should be validated before before_perform callback runs

Steps to Reproduce

  1. Create an interactor that uses a before_perform event and also has context validation
  2. Call the interactor in a way that violates the context validation
  3. Observe that before_perform is called before the context is checked for validity

mjonas87 avatar Nov 02 '23 19:11 mjonas87