[comp] Production Deploy
Merged
GI
5mo ago+555+555+012345678901234567890123456789-18-18-01234567890123456789
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Summary by cubic
Prevents org setup from failing when a published framework version points to deleted editor templates by reconciling manifest IDs with live tables and pruning dead references before inserts. Applies to both apps/api and apps/app, with tests covering stale-reference cases and the all-live path.
- Bug Fixes
- Drop missing control/policy/task/requirement IDs by checking live
frameworkEditor*tables, avoiding P2003 FK errors (e.g., Task_taskTemplateId_fkey). - Resolve task
automationStatusfrom live rows. - Remove dead requirement IDs from groupedRelations to prevent
RequirementMap_requirementId_fkeyfailures. - Log pruned IDs for visibility.
- Drop missing control/policy/task/requirement IDs by checking live