Lightning.Projects.Provisioner (Lightning v2.13.4)

View Source

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

import_document(project, user, data)

Import a project.

parse_document(project, data)

preload_dependencies(project, snapshots \\ nil)

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

Preload all dependencies for a project.

Exclude deleted workflows.

validate_extraneous_params(changeset)

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.