View Source Lightning.Projects.Provisioner (Lightning v2.10.4)

Provides functions for importing projects. This module is used by the provisioning HTTP API.

When providing a project to import, all records must have an id field. It's up to the caller to ensure that the id is unique and generated ahead of time in the case of new records.

Summary

Functions

Preload all dependencies for a project.

Validate that there are no extraneous parameters in the changeset.

Functions

Link to this function

import_document(project, user, data)

View Source

Import a project.

Link to this function

parse_document(project, data)

View Source
Link to this function

preload_dependencies(project, snapshots \\ nil)

View Source
@spec preload_dependencies(Lightning.Projects.Project.t(), nil | [Ecto.UUID.t(), ...]) ::
  Lightning.Projects.Project.t()

Preload all dependencies for a project.

Exclude deleted workflows.

Link to this function

validate_extraneous_params(changeset)

View Source

Validate that there are no extraneous parameters in the changeset.

For all params in the changeset, ensure that the param is in the list of known fields in the schema.