Skip to content

[comp] Production Deploy#3162

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

[comp] Production Deploy#3162
tofikwest merged 4 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 tasks getting stuck by respecting the org’s evidenceApprovalEnabled flag when gating status changes, and unblocks completing tasks when approval is off. Also tightens bulk update logic and adds tests.

  • Bug Fixes
    • Enforce approval workflow only when evidenceApprovalEnabled is true in updateTask and updateTasksStatus.
    • Auto-clear stale approverId when approval is off (unless explicitly provided).
    • Prevent status changes while in_review only when approval is on to avoid wedging tasks.
    • Added unit tests for regression, bulk updates, and edge cases (tasks.service.spec.ts).

Written for commit 9576e49. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 4 commits June 16, 2026 18:57
Tasks could become permanently un-completable. The updateTask gate that
blocks "mark as done" when a task has an approverId never consulted the
org's evidenceApprovalEnabled flag, while the UI hides the approver
dropdown and submit-for-review flow whenever approval is disabled. A task
carrying a stale approverId (e.g. approveTask leaves it set, then the
recurring task-schedule cron resets the task off "done" without clearing
it) was wedged: no UI path to clear the approver, yet the API refused a
direct "done" — surfacing the misleading "Submit for review instead".

- updateTask: load evidenceApprovalEnabled (folded into the existing task
  query), only enforce the in_review / approver locks when approval is
  enabled, and self-heal a stale approverId when approval is off (unless
  the caller explicitly sets one).
- updateTasksStatus (bulk): same blind spot — the in_review / approverId
  where-clause constraints silently dropped tasks. Gate them on the flag.
- Add tasks.service.spec.ts covering the regression, the preserved
  approval-enabled workflow, the symmetric in_review case, and edge cases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(tasks): respect evidenceApprovalEnabled when gating task completion
@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) Building Building Jun 16, 2026 8:41pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 16, 2026 8:41pm
portal (staging) Skipped Skipped Jun 16, 2026 8:41pm

Request Review

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

Copy link
Copy Markdown
Contributor

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

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit 621379b into release Jun 16, 2026
11 of 12 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.83.5 🎉

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