Skip to content

Add feedV2 support for highlight items#3772

Merged
idoshamun merged 4 commits intomainfrom
codex/feed-v2-highlights
Apr 3, 2026
Merged

Add feedV2 support for highlight items#3772
idoshamun merged 4 commits intomainfrom
codex/feed-v2-highlights

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • add a new feedV2 query for the authenticated For You feed with mixed feed items
  • preserve highlight items from the feed service and resolve them to PostHighlight objects
  • batch hydrate posts/highlights in the root resolver while keeping post-side filtering aligned with the existing feed path

Verification

  • pnpm exec tsc --noEmit --pretty false
  • pnpm exec eslint src/schema/feeds.ts __tests__/feeds.ts __tests__/integrations/feed.ts src/integrations/feed/clients.ts src/integrations/feed/types.ts src/schema/common.ts src/common/personalizedDigest.ts src/graphorm/index.ts
  • NODE_ENV=test pnpm exec jest __tests__/feeds.ts __tests__/integrations/feed.ts --config jest.config.js --modulePathIgnorePatterns '<rootDir>/build' --testEnvironment=node --runInBand

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 2, 2026

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

✨ Neo Explanation

Routine deployment promoting commit `a71cb16c` to production: all services and cron jobs get the new image, and fresh database + ClickHouse migration jobs are queued to run. ✅ Low Risk

This is a standard application deployment rolling out a new image build (12cd54f4a71cb16c) across all services. Every deployment and cron job is simply picking up the new container image and version label. The two migration Jobs (Postgres via TypeORM and ClickHouse) are being replaced with new instances tagged to the new commit, which is the expected pattern — old completed jobs are deleted and new ones are created to run migrations against the new schema.

🔵 Info — The pulumi:providers:gcp warning about missing ADC credentials is cosmetic for this stack; it only affects GCP resource reads and does not impact the Kubernetes changes being applied here.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-channel-highlights-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-12cd54f4                       kubernetes:batch/v1:Job        delete
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-materialize-monthly-best-post-archives-cron     kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-12cd54f4               kubernetes:batch/v1:Job        delete
+   vpc-native-api-clickhouse-migration-a71cb16c               kubernetes:batch/v1:Job        create
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-a71cb16c                       kubernetes:batch/v1:Job        create
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-yearly-best-post-archives-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-weekly-quests-cron                       kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
... and 11 other changes

Comment thread __tests__/feeds.ts Outdated
Comment thread __tests__/integrations/feed.ts
Comment thread src/graphorm/index.ts
Comment thread src/integrations/feed/clients.ts Outdated
Comment thread src/integrations/feed/types.ts Outdated
Comment thread src/integrations/feed/types.ts Outdated
Comment thread src/schema/common.ts Outdated
Comment thread src/schema/feeds.ts Outdated
@idoshamun idoshamun marked this pull request as ready for review April 3, 2026 18:30
@idoshamun idoshamun force-pushed the codex/feed-v2-highlights branch from b0c9023 to c3509b5 Compare April 3, 2026 18:34
@idoshamun idoshamun merged commit ab03083 into main Apr 3, 2026
10 checks passed
@idoshamun idoshamun deleted the codex/feed-v2-highlights branch April 3, 2026 18:48
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