Skip to content

feat: render topical digest links#3914

Merged
idoshamun merged 2 commits into
mainfrom
feat/topical-digest-api
May 28, 2026
Merged

feat: render topical digest links#3914
idoshamun merged 2 commits into
mainfrom
feat/topical-digest-api

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • update @dailydotdev/schema to the generated topical digest contract
  • call Bragi's generateTopicalDigest with post IDs and previous digest markdown
  • render structured topical digest responses back to markdown with read-more links
  • validate returned item post IDs against the input posts before linking

Testing

  • NODE_ENV=test pnpm run db:migrate:latest
  • NODE_ENV=test npx jest tests/common/channelDigestGenerate.ts --testEnvironment=node --runInBand
  • pnpm run lint
  • pnpm run build

@pulumi
Copy link
Copy Markdown

pulumi Bot commented May 27, 2026

🍹 The Update (preview) for dailydotdev/api/prod (at b71ef10) was successful.

✨ Neo Explanation

Routine image rollout deploying a new digest format (Topical vs. Sentiment) with coordinated DB and Clickhouse migrations; low infrastructure risk, but requires the Bragi service to already support the new `generateTopicalDigest` RPC before the channel digests cron next fires. ✅ Low Risk

This is a standard container image rollout deploying a new build (b1ff251d) that replaces the previous one (e7309af1). The code change migrates the channel digest generation from the SentimentDigest API to the new TopicalDigest API in @dailydotdev/schema 0.3.10, which also changes the output format — digests will now render structured markdown with TLDR, main items with "Read more" links, and an "Also notable" section instead of a flat content string. The migration Jobs rotating out confirm there are schema/DB changes accompanying this release.

🔵 Info — The generateSentimentDigest Bragi RPC call is being replaced with generateTopicalDigest. If the Bragi service is not already deployed with support for generateTopicalDigest, the vpc-native-channel-digests-cron will fail at runtime. Confirm Bragi-side deployment is coordinated or already live.

Resource Changes

    Name                                                    Type                           Operation
~   vpc-native-ws-deployment                                kubernetes:apps/v1:Deployment  update
~   vpc-native-rotate-weekly-quests-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron           kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-materialized-views-cron           kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                   kubernetes:apps/v1:Deployment  update
-   vpc-native-api-db-migration-e7309af1                    kubernetes:batch/v1:Job        delete
~   vpc-native-user-profile-updated-sync-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-channel-highlights-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                          kubernetes:apps/v1:Deployment  update
+   vpc-native-api-db-migration-b1ff251d                    kubernetes:batch/v1:Job        create
~   vpc-native-clean-stale-user-transactions-cron           kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron   kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                       kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron               kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-e7309af1            kubernetes:batch/v1:Job        delete
~   vpc-native-personalized-digest-deployment               kubernetes:apps/v1:Deployment  update
~   vpc-native-update-tags-str-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-old-notifications-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-monthly-best-post-archives-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron       kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                        kubernetes:apps/v1:Deployment  update
~   vpc-native-update-source-public-threshold-cron          kubernetes:batch/v1:CronJob    update
... and 12 other changes

@idoshamun idoshamun force-pushed the feat/topical-digest-api branch from c3ba35c to b71ef10 Compare May 28, 2026 06:44
@idoshamun idoshamun merged commit e0f56c3 into main May 28, 2026
9 checks passed
@idoshamun idoshamun deleted the feat/topical-digest-api branch May 28, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant