Skip to content

Conversation

@pnvasanth
Copy link
Contributor

Summary

  • Adds versionToTimeFeedGenerator function that mirrors versionToFeedGenerator but with order_by: FeedOrderBy.Date
  • Updates authenticated TIME feed resolver to use versionToTimeFeedGenerator(args.version) instead of feedGenerators['time']
  • Ensures consistent config between anonymous and authenticated TIME feeds

Context

The authenticated TIME feed was incorrectly using feedGenerators['time'] which uses FeedPreferencesConfigGenerator. It should use the same FeedLofnConfigGenerator as POPULARITY feed (versionToFeedGenerator), with only order_by: date added.

Test plan

  • Existing TIME feed tests pass
  • Verify authenticated TIME feed returns posts sorted by date

🤖 Generated with Claude Code

@pulumi
Copy link

pulumi bot commented Jan 21, 2026

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

Resource Changes

    Name                                                   Type                           Operation
~   vpc-native-update-source-tag-view-cron                 kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-6d8c1fd8                   kubernetes:batch/v1:Job        delete
~   vpc-native-update-tag-recommendations-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                  kubernetes:apps/v1:Deployment  update
~   vpc-native-update-tags-str-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron             kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-8173cbb8                   kubernetes:batch/v1:Job        create
~   vpc-native-update-trending-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-users-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-ws-deployment                               kubernetes:apps/v1:Deployment  update
~   vpc-native-update-views-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                               kubernetes:apps/v1:Deployment  update
~   vpc-native-sync-subscription-with-cio-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                      kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-8173cbb8           kubernetes:batch/v1:Job        create
~   vpc-native-user-profile-updated-sync-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                          kubernetes:apps/v1:Deployment  update
~   vpc-native-generic-referral-reminder-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                         kubernetes:apps/v1:Deployment  update
-   vpc-native-api-clickhouse-migration-6d8c1fd8           kubernetes:batch/v1:Job        delete
~   vpc-native-calculate-top-readers-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                           kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment              kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-user-companies-cron            kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                    kubernetes:batch/v1:CronJob    update

@pnvasanth pnvasanth self-assigned this Jan 21, 2026
pnvasanth and others added 2 commits January 21, 2026 16:04
The authenticated TIME feed should use exactly the same config as
POPULARITY feed (versionToFeedGenerator), with only order_by: date
added. This ensures consistent behavior between anonymous and
authenticated feeds, using the proper Lofn config generator.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds a test to verify that the authenticated feed with TIME ranking
uses versionToTimeFeedGenerator which passes order_by: 'date' to the
feed service.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pnvasanth pnvasanth force-pushed the fix_my_feed_by_date branch from ba0e5b8 to 9c7ccfd Compare January 21, 2026 10:35
@pnvasanth pnvasanth merged commit 6fe8aeb into main Jan 21, 2026
10 checks passed
@pnvasanth pnvasanth deleted the fix_my_feed_by_date branch January 21, 2026 10:47
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.

3 participants