dow-prod-tracker/prisma/migrations
DJP 1de8985507 Outcome-branch routing: only one path fires per approval decision
Adds PipelineBranchKind (NONE/APPROVED/DECLINED) on stage definitions
so producers can tag the two routes downstream of a FORMAL-approval
stage. The engine then picks exactly one branch per decision:

  • Approve → APPROVED-branch children auto-open, DECLINED-branch
    siblings auto-SKIPPED (grayed out, unreachable)
  • Request Changes → DECLINED-branch children auto-stamped APPROVED
    (passive record of the decline), APPROVED-branch siblings auto-
    SKIPPED, then the existing rework edge fires as before

Also fixes a quiet bug in pipeline-template-service.addStage where
approvalType was being dropped from new stages (whitelist didn't
include it).

UI: dropdown on the stage edit sheet + branch-kind badges on the
deliverable detail page. SKIPPED rendering already grays things out.

Smoke test extended: 65/65 passing including the user's split-on-
decision case, N-way split, regression assertion that untagged
pipelines still open all children, and an idempotency check.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 21:16:22 -04:00
..
20260420000000_init Phase 1: Dow-customized Prisma schema + strip HP-only features 2026-04-20 18:35:14 -04:00
20260421000000_resource_bookings Dow-ify project form + seed placeholder roster + Resource Manager + docs 2026-04-20 22:31:19 -04:00
20260422000000_briefs Add Briefs intake + all three upstream webhooks 2026-04-21 12:05:47 -04:00
20260423000000_pipeline_stage_reworks Board drag-and-drop with forward/rework pipeline rules 2026-04-21 12:45:17 -04:00
20260424000000_deliverable_attachments Attachments panel — files + external links per deliverable 2026-04-21 15:25:48 -04:00
20260425000000_project_owner_fk Project Owner is now a User, not freeform text 2026-04-21 19:43:14 -04:00
20260512000000_restore_review_workflow L'Oréal rebuild: restore review workflow, full rename, /api/v1, Box integration 2026-05-12 17:51:53 -04:00
20260512100000_idempotency_records L'Oréal rebuild: restore review workflow, full rename, /api/v1, Box integration 2026-05-12 17:51:53 -04:00
20260512200000_box_integration L'Oréal rebuild: restore review workflow, full rename, /api/v1, Box integration 2026-05-12 17:51:53 -04:00
20260512300000_unified_versioning_single_asset Phase 5: unified versioning + single-asset-per-revision + holding pen 2026-05-12 19:37:06 -04:00
20260512400000_deliverable_omg_number OMG number moves from Project to Deliverable for inbound matching 2026-05-12 22:01:02 -04:00
20260515100000_branch_kind Outcome-branch routing: only one path fires per approval decision 2026-05-15 21:16:22 -04:00
migration_lock.toml feat: Implement automation event bus and rule engine 2026-03-12 11:20:21 -05:00