Conversation
[dev] [Marfuen] mariano/fix-sync-requirement-map-drift
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
…ll framework controls (#2686) When CX created a new task or policy template from a framework's editor view, the create endpoint queried every control template attached to that framework and connected the new primitive to all of them. CX rarely wants the new template on every control — it forced manual cleanup after every create. Make all primitives consistent: a fresh create produces an unlinked row regardless of which framework page the user happened to be on. Linking to specific controls happens explicitly via the dedicated link endpoints (POST /:id/control-templates/:ctId), which already existed. - task-template.service.ts: drop frameworkId param + the findMany + connect logic - policy-template.service.ts: same - task-template.controller.ts, policy-template.controller.ts: drop the @query('frameworkId') from the POST handler - frontend (useTaskChangeTracking, CreatePolicyDialog): stop appending ?frameworkId=... to the POST URL Control template and requirement creates were already correct (no auto-linking) — this brings task and policy templates in line. New regression tests on TaskTemplateService and PolicyTemplateService mirror the existing CS-271 guard on ControlTemplateService: even if a stray frameworkId is passed, the service must not query for or attach controls. Verified red without the fix, green with it. Co-authored-by: Mariano <marfuen98@gmail.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 3.34.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Fixes framework sync drift by reconciling edges against the target manifest, and stops auto-linking new task/policy templates so they start unlinked. Prevents duplicates and keeps undo safe; linking is explicit via
POST /:id/control-templates/:ctId.Bug Fixes
frameworkIdfromPOST /policy-templateandPOST /task-template; services ignore strayframeworkIdand never auto-link to all controls; frontend stops appending?frameworkId=....Tests
frameworkIdis passed.Written for commit b58c4d3. Summary will update on new commits. Review in cubic