Skip to content

feat(api): include award data in companion boot#3831

Open
rebelchris wants to merge 1 commit intomainfrom
eng-1319-feedback-ux-issue-user-reports-missing-awards-option-on-the
Open

feat(api): include award data in companion boot#3831
rebelchris wants to merge 1 commit intomainfrom
eng-1319-feedback-ux-issue-user-reports-missing-awards-option-on-the

Conversation

@rebelchris
Copy link
Copy Markdown
Contributor

Summary

  • extend the companion boot query with the award fields needed by the extension companion
  • include award state on userState and featured award metadata for the companion award button/modal flow
  • expand the companion author payload with the fields required for award eligibility and receiver display

Key decisions

  • kept the change additive and limited to the existing companion boot query
  • returned only the author and award fields required by the extension award flow
  • avoided new endpoints or schema changes by reusing the existing post boot path

Closes ENG-1319


Created by Huginn 🐦‍⬛

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 29, 2026

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

✨ Neo Explanation

Standard application release deploying new image `c4bc4e74` with awards-related fields added to the companion GraphQL query, accompanied by DB and Clickhouse migration jobs for the new schema. ✅ Low Risk

This is a routine application deployment rolling out a new image build (c806c2edc4bc4e74) across all deployments and cron jobs. The code change adds awards-related fields (numAwards, featuredAward, author profile details, and userState.awarded) to the browser companion GraphQL query, enriching post data returned to the companion extension.

The migration Jobs (both DB and Clickhouse) are being cycled to the new commit hash — the old Jobs from the previous release are deleted and new ones for this release are created, which is the standard pattern for this deploy pipeline.

🔵 Info — Both vpc-native-api-db-migration-c4bc4e74 and vpc-native-api-clickhouse-migration-c4bc4e74 will run as part of this deployment. The new fields being queried (numAwards, featuredAward, userState.awarded) suggest schema additions that these migrations likely support — confirm migrations complete successfully before traffic fully shifts.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-user-profile-analytics-history-clickhouse-cron  kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
-   vpc-native-api-clickhouse-migration-c806c2ed               kubernetes:batch/v1:Job        delete
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
-   vpc-native-api-db-migration-c806c2ed                       kubernetes:batch/v1:Job        delete
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-c4bc4e74               kubernetes:batch/v1:Job        create
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-channel-highlights-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-hourly-notification-cron                        kubernetes:batch/v1:CronJob    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-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-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-api-db-migration-c4bc4e74                       kubernetes:batch/v1:Job        create
~   vpc-native-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
... and 11 other changes

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