View Source Lightning.Extensions.ProjectHooking behaviour (Lightning v2.10.4)
Allows handling project creation atomically without relying on async events.
Summary
Callbacks
@callback handle_create_project(attrs :: map()) :: {:ok, Lightning.Projects.Project.t()} | {:error, Ecto.Changeset.t()}
@callback handle_delete_project(Lightning.Projects.Project.t()) :: {:ok, Lightning.Projects.Project.t()} | {:error, Ecto.Changeset.t()}
@callback handle_project_validation(Ecto.Changeset.t(Lightning.Projects.Project.t())) :: Ecto.Changeset.t(Lightning.Projects.Project.t())