Skip to content

[comp] Production Deploy#2589

Merged
Marfuen merged 3 commits intoreleasefrom
main
Apr 17, 2026
Merged

[comp] Production Deploy#2589
Marfuen merged 3 commits intoreleasefrom
main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot commented Apr 17, 2026

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

Adds a daily policy acknowledgment digest that emails compliance-required members about their pending policies, with batching and unsubscribe support. Also fixes publish logic to only reset signatures on a first-time publish, filters members to notify, and inlines the digest’s compliance filter to avoid a Trigger.dev bundling issue.

  • New Features

    • Scheduled task policy-acknowledgment-digest (daily at 14:00 UTC via @trigger.dev/sdk) sends one email per member per org with pending policies.
    • Uses department-aware visibility and a new PolicyAcknowledgmentDigestEmail template from @trycompai/email.
    • Sends in batches of 25 and skips users unsubscribed from policyNotifications using a new getUnsubscribedEmails batch query.
  • Bug Fixes

    • PoliciesService.updateById: only clear signedBy and set lastPublishedAt when transitioning to published (no-op if already published).
    • publishAll: clears signedBy for newly published policies and returns only compliance-obligated members for notifications.

Written for commit cee8ed4. Summary will update on new commits.

github-actions bot and others added 2 commits April 17, 2026 18:35
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

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

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Apr 17, 2026 8:16pm
comp-framework-editor Ready Ready Preview, Comment Apr 17, 2026 8:16pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal (staging) Skipped Skipped Apr 17, 2026 8:16pm

Request Review

Copy link
Copy Markdown

@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 10 files

Requires human review: This PR introduces a new feature (policy acknowledgment digest), a new scheduled task, and modifies core business logic for policy publishing and signature clearing.

…lure (#2591)

The Trigger.dev deploy pipeline cannot resolve @trycompai/auth because
its dist is not built during the CI deploy step. Remove the transitive
dependency by inlining the compliance-obligation filter directly in the
helpers file, keeping identical behaviour.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@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.

0 issues found across 4 files (changes from recent commits).

Requires human review: This PR modifies core business logic for policy signatures and introduces a new daily automated email digest task, which requires human verification of compliance impact and notification logic.

@Marfuen Marfuen merged commit 252c074 into release Apr 17, 2026
14 checks passed
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.23.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