Skip to content

CS-261 Failed to accept policy changes during approval#2604

Merged
Marfuen merged 3 commits intomainfrom
chas/accept-policy-changes
Apr 20, 2026
Merged

CS-261 Failed to accept policy changes during approval#2604
Marfuen merged 3 commits intomainfrom
chas/accept-policy-changes

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Apr 20, 2026

This is an automated pull request to merge chas/accept-policy-changes into dev.
It was created by the [Auto Pull Request] action.


Summary by cubic

Addresses CS-261 by preventing false “pending approval” states. Alerts and publish actions are now gated by a real pending version, so publishing is allowed once the pending version is cleared.

  • Bug Fixes
    • Alerts: Show pending alert only when isPendingApproval and policy.pendingVersionId are both true.
    • Actions: Gate both “publish current” and “publish other” behind a real pending version; allow publishing when pendingVersionId is cleared.

Written for commit 1d315ab. Summary will update on new commits.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

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

Project Deployment Actions Updated (UTC)
comp-framework-editor Ready Ready Preview, Comment Apr 20, 2026 5:30pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Apr 20, 2026 5:30pm
portal Skipped Skipped Apr 20, 2026 5:30pm

Request Review

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/accept-policy-changes CS-261 Failed to accept policy changes during approval Apr 20, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Apr 20, 2026

@chasprowebdev
Copy link
Copy Markdown
Contributor

After the policy is submitted for approval, sometimes pendingVersionId is cleared for any reason.
If pendingVersionId is cleared, we need to hide the approval-banner and make "Publish" menu visible to let the users submit it again.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Auto-approved: Fixes UI logic for pending approval states. Extremely low risk change to conditional rendering logic for alerts and buttons.

@vercel vercel Bot temporarily deployed to Preview – app April 20, 2026 17:29 Inactive
@vercel vercel Bot temporarily deployed to Preview – portal April 20, 2026 17:29 Inactive
@Marfuen Marfuen merged commit a7389a1 into main Apr 20, 2026
11 checks passed
@Marfuen Marfuen deleted the chas/accept-policy-changes branch April 20, 2026 17:32
claudfuen pushed a commit that referenced this pull request Apr 20, 2026
# [3.25.0](v3.24.0...v3.25.0) (2026-04-20)

### Bug Fixes

* **app:** hide policy alerts if pending version is cleared ([#2604](#2604)) ([a7389a1](a7389a1))
* **controls:** dedupe policyIds/taskIds before validating length ([5de8a67](5de8a67))
* **controls:** scope FK inputs to caller org in create() ([2b8991f](2b8991f))
* **framework-editor:** stop auto-linking all framework requirements on control create ([#2605](#2605)) ([3f681e5](3f681e5))
* **frameworks:** address PR review feedback ([e3b58bc](e3b58bc))
* **frameworks:** address review feedback — tenant-FK hardening + custom-framework parity ([d296e2a](d296e2a))
* **frameworks:** dedupe linked requirements and scope lookups by org ([c39a7c5](c39a7c5))
* **frameworks:** remove debug log and return DB-reported link counts ([409be26](409be26))
* **onboarding:** set default value for organizationId in updatePolicy schema ([c3a50db](c3a50db))

### Features

* **controls:** add endpoints to link policies, tasks, and requirements to controls ([0380ff7](0380ff7))
* **frameworks:** add custom framework and requirement management endpoints ([a81af3e](a81af3e))
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.25.0 🎉

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.

3 participants