Skip to content
This repository has been archived by the owner on Dec 29, 2024. It is now read-only.

[Bug Report] before_perform invoked before context is validated #372

Open
mjonas87 opened this issue Nov 2, 2023 · 0 comments
Open

[Bug Report] before_perform invoked before context is validated #372

mjonas87 opened this issue Nov 2, 2023 · 0 comments
Labels
bug Something isn't working unverified This issue has not been verified

Comments

@mjonas87
Copy link
Contributor

mjonas87 commented Nov 2, 2023

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 mjonas87 added bug Something isn't working unverified This issue has not been verified labels Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working unverified This issue has not been verified
Projects
None yet
Development

No branches or pull requests

1 participant