Lightning.Collaboration.WorkflowReconciler (Lightning v2.15.0-pre5)
View SourceHandles 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
@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.
Note: This always reconciles to the latest (unversioned) document only. Versioned snapshots (e.g., "workflow:123:v22") are read-only historical views and should never receive live updates from saves.