View Source LightningWeb.ProjectLive.Collaborators (Lightning v2.10.4)

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

Summary

Functions

Link to this function

changeset(schema, attrs)

View Source
Link to this function

prepare_for_insertion(schema, attrs, current_project_users)

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