You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop session crash on malformed or stale workflow references
Harden the collaborative save path against two crash modes that killed
the session GenServer and its channel:
- Stale cron_cursor_job_id reference: a cron trigger could point at a job
that no longer exists in the workflow. The trigger changeset lacked a
foreign_key_constraint, so the FK violation raised Ecto.ConstraintError
instead of a changeset error. Declare foreign_key_constraint and clear
the reference client-side in removeJob.
- Malformed UUIDs in workflow changesets: :binary_id fields are not
format-checked by cast/3, so an unsubstituted import placeholder only
raised Ecto.ChangeError on insert/update. Add a reusable validate_uuid/2
helper to Lightning.Validators and apply it in the Job, Edge and Trigger
changesets.
Plus changelog entries for the collaborative save crash fixes.
0 commit comments