Skip to content

[comp] Production Deploy#3156

Merged
tofikwest merged 7 commits into
releasefrom
main
Jun 16, 2026
Merged

[comp] Production Deploy#3156
tofikwest merged 7 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

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 deletion of frameworks that have published versions or org instances (FRAME-13) and decouples publishing from committing requirement edits (FRAME-14). Deletion now runs in a safe order in one transaction, and editing shows a single Commit Changes button with no publish prompt.

  • Bug Fixes
    • Delete order: instances → versions → requirements → framework (prevents Restrict on currentVersionId).
    • Run in one db.$transaction; map Prisma P2003 to ConflictException; update delete dialog copy.
    • Restore a single "Commit Changes" button; remove publish-on-commit flow (FRAME-14).
    • Tests: cover delete order/FK mapping; remove toolbar tests and PublishVersionDialog wiring.

Written for commit 51f2ca3. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 6 commits June 16, 2026 16:55
…nstances

Deleting a framework that had published versions and/or org instances failed
with a 409 ("referenced by existing framework instances"). The delete only
removed requirements + the framework, so the FrameworkVersion / FrameworkInstance
FK references remained — and cascading versions + instances together trips the
Restrict FK on FrameworkInstance.currentVersionId (P2003).

Delete the dependency graph in explicit order inside the transaction: instances
(cascades their org controls/maps/links/sync-operations and frees the
currentVersion FK) -> versions -> requirements -> the framework (cascades the
editor-side control/policy/task/document links + ISMS docs).

Also makes the editor delete confirmation honest about the blast radius (it now
removes published versions and any org instances too). The controller is
PlatformAdminGuard-only, so this stays an internal-admin operation.

Closes FRAME-13

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ersion

Reverts the FRAME-4 "Save and Commit" flow: committing changes immediately
prompted to publish a new version. Per Joe (FRAME-14), publishing is a separate,
deliberate activity — editors commit in batches of 5-10 and do a full pass
before publishing a meaningful version.

This restores the single "Commit Changes" button (save edits to the live
templates, no publish prompt). Publishing remains available as its own action on
the framework's Versions tab. Reverts commit bb7064b.

Closes FRAME-14

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ramework

fix(framework-editor): allow deleting a framework with versions/instances (FRAME-13)
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 16, 2026 5:33pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 16, 2026 5:33pm
portal (staging) Skipped Skipped Jun 16, 2026 5:33pm

Request Review

…t-from-publish

fix(framework-editor): commit changes independently of publishing (FRAME-14)
@vercel vercel Bot temporarily deployed to staging – app June 16, 2026 17:32 Inactive
@vercel vercel Bot temporarily deployed to staging – portal June 16, 2026 17:32 Inactive
@tofikwest tofikwest merged commit fb3af62 into release Jun 16, 2026
14 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.83.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants