Skip to content

Conversation

@pnvasanth
Copy link
Contributor

Summary

  • Add staleCursor field to FeedResponse type
  • Pass stale_cursor from feed service response through to GraphQL
  • Add staleCursor to GraphQL PageInfo type

Related PRs

Test plan

  • TypeScript compiles
  • Verify staleCursor is returned in GraphQL response when cache regenerates

🤖 Generated with Claude Code

@pulumi
Copy link

pulumi bot commented Feb 12, 2026

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

Resource Changes

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

@pnvasanth pnvasanth force-pushed the fix/feed-duplicate-posts branch 2 times, most recently from ddf7030 to 0e03b25 Compare February 12, 2026 10:59
@pnvasanth pnvasanth requested a review from capJavert February 12, 2026 12:09
pnvasanth and others added 6 commits February 12, 2026 18:12
Add staleCursor to FeedResponse type and GraphQL PageInfo to notify
clients when feed cache was regenerated and cursor became stale.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Update connectionFromNodes to extract staleCursor from FeedResponse
  and include it in PageInfo
- Add tests for FeedClient parsing staleCursor from feed service response
- Add tests for connectionFromNodes propagating staleCursor to PageInfo

Co-Authored-By: Claude Opus 4.5 <[email protected]>
The test was flaky because TypeORM In() query doesn't guarantee
order, causing the avatars array in notifications to have
inconsistent ordering.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@pnvasanth pnvasanth force-pushed the fix/feed-duplicate-posts branch from 2abdabc to 84fb955 Compare February 12, 2026 12:45
@pnvasanth pnvasanth merged commit abe3fcd into main Feb 12, 2026
9 checks passed
@pnvasanth pnvasanth deleted the fix/feed-duplicate-posts branch February 12, 2026 12:53
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.

2 participants