Skip to content

Add legacy fallback for feed V2#3803

Merged
idoshamun merged 2 commits intomainfrom
codex/feed-v2-local-fallback
Apr 16, 2026
Merged

Add legacy fallback for feed V2#3803
idoshamun merged 2 commits intomainfrom
codex/feed-v2-local-fallback

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • add a local legacy fallback for feedV2 when the request should use the DB-backed feed path
  • reuse the same configured feed query/filter helpers across feed and the feedV2 local adapter
  • add coverage to verify legacy feedV2 matches feed for version 1

Verification

  • pnpm run lint
  • NODE_ENV=test npx jest __tests__/feeds.ts --testEnvironment=node --runInBand

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 16, 2026

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

✨ Neo Explanation

Routine deployment of a new application version (`ea1c225e`) across all API services and cron jobs, with accompanying database and ClickHouse migration jobs. ✅ Low Risk

This is a standard application deployment rolling out commit ea1c225e to replace 3358b668. All deployments and cron jobs are being updated solely to point at the new container image tag. The two migration Jobs (Postgres via TypeORM and ClickHouse) are being cycled with new commit-suffixed names, which is the expected pattern — the old jobs from the previous release are deleted and new ones for this release are created to run schema migrations before the new pods serve traffic.

🔵 Info — The GCP provider warning about missing default credentials is cosmetic and unrelated to this Kubernetes-only deployment; no GCP resources are being changed.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-materialized-views-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-ea1c225e                       kubernetes:batch/v1:Job        create
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-materialize-monthly-best-post-archives-cron     kubernetes:batch/v1:CronJob    update
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-3358b668                       kubernetes:batch/v1:Job        delete
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-ea1c225e               kubernetes:batch/v1:Job        create
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-yearly-best-post-archives-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-3358b668               kubernetes:batch/v1:Job        delete
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
... and 11 other changes

@idoshamun idoshamun merged commit b4ddf47 into main Apr 16, 2026
10 checks passed
@idoshamun idoshamun deleted the codex/feed-v2-local-fallback branch April 16, 2026 11:00
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