View Source Lightning.Services.ProjectHook (Lightning v2.10.4)

Allows handling project creation atomically without relying on async events.

Summary

Functions

Link to this function

handle_create_project(attrs)

View Source
@spec handle_create_project(map()) ::
  {:ok, Lightning.Projects.Project.t()} | {:error, Ecto.Changeset.t()}

Callback implementation for Lightning.Extensions.ProjectHooking.handle_create_project/1.

Link to this function

handle_delete_project(project)

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

Callback implementation for Lightning.Extensions.ProjectHooking.handle_delete_project/1.

Link to this function

handle_project_validation(changeset)

View Source

Callback implementation for Lightning.Extensions.ProjectHooking.handle_project_validation/1.