LightningWeb.ProjectLive.Collaborators (Lightning v2.13.5)

View Source

This schema is used for building the changeset for adding new collaborators to a project. It is mirroring the Project -> ProjectUser relationship.

Summary

Functions

changeset(schema, attrs)

prepare_for_insertion(schema, attrs, current_project_users)

@spec prepare_for_insertion(
  %LightningWeb.ProjectLive.Collaborators{collaborators: term(), id: term()},
  map(),
  [map(), ...]
) :: {:ok, [map(), ...]} | {:error, Ecto.Changeset.t()}