View Source Lightning.Extensions.ProjectHooking behaviour (Lightning v2.10.4)

Allows handling project creation atomically without relying on async events.

Summary

Callbacks

Link to this callback

handle_create_project(attrs)

View Source
@callback handle_create_project(attrs :: map()) ::
  {:ok, Lightning.Projects.Project.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

handle_delete_project(t)

View Source
@callback handle_delete_project(Lightning.Projects.Project.t()) ::
  {:ok, Lightning.Projects.Project.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

handle_project_validation(t)

View Source