Skip to content

Add featured archives GraphQL query#3788

Merged
idoshamun merged 1 commit intomainfrom
codex/archive-featured-archives-query
Apr 13, 2026
Merged

Add featured archives GraphQL query#3788
idoshamun merged 1 commit intomainfrom
codex/archive-featured-archives-query

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • add a generic featuredArchives(subjectType, subjectId) GraphQL query in the archive schema
  • validate the new query args with Zod and resolve archives by matching archive subject type plus featured subject id
  • cover post hits and future-proof empty-result cases for other subject types in archive integration tests

Verification

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

Notes

  • pnpm run build is currently failing on unrelated existing repo issues in src/common/typedPubsub.ts, src/schema/users.ts, and src/workers/cdc/primary.ts

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 13, 2026

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

✨ Neo Explanation

Standard image promotion deploying commit `25da7bd0` across all API services and cron jobs, with the expected DB and Clickhouse migration Jobs created for the new release. ✅ Low Risk

This is a routine application deployment rolling out a new image build (2948c96025da7bd0) across all services. Every deployment and cron job update is purely an image tag and version label bump — no configuration, resource limits, environment variables (beyond the version env var), or scheduling changes are involved.

The two migration Job pairs (DB and Clickhouse) follow the expected pattern for this stack: old Jobs tagged to the previous commit are deleted and new ones for the new commit are created, running typeorm migration:run and runClickhouseMigrations.js respectively against the new image. This is the standard pre-deploy migration mechanism.

🔵 Info — The GCP provider warning about missing default credentials is a pre-existing diagnostic unrelated to this change; it does not affect the Kubernetes resources being deployed.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-user-posts-analytics-refresh-cron               kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tag-materialized-views-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-expired-better-auth-sessions-cron         kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-cron                          kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-monthly-best-post-archives-cron     kubernetes:batch/v1:CronJob    update
~   vpc-native-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-channel-highlights-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-25da7bd0                       kubernetes:batch/v1:Job        create
~   vpc-native-update-current-streak-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-generate-search-invites-cron                    kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-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-clean-zombie-users-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-bg-deployment                                   kubernetes:apps/v1:Deployment  update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
-   vpc-native-api-clickhouse-migration-2948c960               kubernetes:batch/v1:Job        delete
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-yearly-best-post-archives-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-temporal-deployment                             kubernetes:apps/v1:Deployment  update
~   vpc-native-update-highlighted-views-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
-   vpc-native-api-db-migration-2948c960                       kubernetes:batch/v1:Job        delete
... and 11 other changes

@idoshamun idoshamun merged commit 989fb37 into main Apr 13, 2026
10 checks passed
@idoshamun idoshamun deleted the codex/archive-featured-archives-query branch April 13, 2026 09:05
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