Lightning.Collaboration.WorkflowReconciler (Lightning v2.14.5-pre1)

View Source

Handles reconciliation of workflow changes between LiveView saves and collaborative YDoc instances. Converts Ecto changeset operations to YDoc-compatible operations and applies them to any running SharedDoc.

Summary

Functions

Takes a changeset that was used to update a workflow and reconciles it with the active SharedDocs for that workflow.

Functions

reconcile_workflow_changes(changeset, workflow)

@spec reconcile_workflow_changes(Ecto.Changeset.t(), Lightning.Workflows.Workflow.t()) ::
  :ok

Takes a changeset that was used to update a workflow and reconciles it with the active SharedDocs for that workflow.