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

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

@mjonas87

Description

@mjonas87

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunverifiedThis issue has not been verified

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions