Skip to content

Add explicit ordering for highlight channels#3792

Merged
idoshamun merged 1 commit intomainfrom
codex/channel-config-order
Apr 13, 2026
Merged

Add explicit ordering for highlight channels#3792
idoshamun merged 1 commit intomainfrom
codex/channel-config-order

Conversation

@idoshamun
Copy link
Copy Markdown
Member

Summary

  • add an order column to channel_highlight_definition and backfill it from the current alphabetical channel order
  • order highlight-backed channel configuration reads by order ASC, channel ASC
  • update the highlights integration test to verify explicit ordering instead of alphabetical ordering

Testing

  • NODE_ENV=test pnpm run db:migrate:latest
  • NODE_ENV=test npx jest tests/highlights.ts --testEnvironment=node --runInBand
  • pnpm run build
  • pnpm run lint

@pulumi
Copy link
Copy Markdown

pulumi Bot commented Apr 13, 2026

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

✨ Neo Explanation

Routine deployment promoting commit `efa9d11d...f2c87500` to production — all services get the new image, and fresh DB/ClickHouse migration jobs will run against the new schema. ✅ Low Risk

This is a standard application deployment rolling out a new image version (624b8b63f2c87500) across all workloads. Every deployment and cron job is being updated solely to point to the new container image tag. The two migration Jobs (Postgres via TypeORM and ClickHouse) are being recycled with the new commit hash in their names — this is the normal pattern for running one-off migration jobs per release.

🔵 Info — The pulumi:providers:gcp warning about missing ADC credentials is benign in this context; it only affects GCP resource operations and does not impact the Kubernetes-only changes being applied here.

Resource Changes

    Name                                                       Type                           Operation
~   vpc-native-calculate-top-readers-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-analytics-clickhouse-cron          kubernetes:batch/v1:CronJob    update
~   vpc-native-generic-referral-reminder-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-deployment                  kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-channel-highlights-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-daily-digest-cron                               kubernetes:batch/v1:CronJob    update
~   vpc-native-personalized-digest-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-sync-subscription-with-cio-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-deployment                                      kubernetes:apps/v1:Deployment  update
~   vpc-native-check-analytics-report-cron                     kubernetes:batch/v1:CronJob    update
~   vpc-native-materialize-yearly-best-post-archives-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-zombie-opportunities-cron                 kubernetes:batch/v1:CronJob    update
~   vpc-native-update-source-public-threshold-cron             kubernetes:batch/v1:CronJob    update
~   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-clean-zombie-images-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-update-views-cron                               kubernetes:batch/v1:CronJob    update
+   vpc-native-api-db-migration-f2c87500                       kubernetes:batch/v1:Job        create
~   vpc-native-clean-stale-user-transactions-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-update-trending-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-update-tags-str-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-weekly-quests-cron                       kubernetes:batch/v1:CronJob    update
+   vpc-native-api-clickhouse-migration-f2c87500               kubernetes:batch/v1:Job        create
-   vpc-native-api-db-migration-624b8b63                       kubernetes:batch/v1:Job        delete
~   vpc-native-worker-job-deployment                           kubernetes:apps/v1:Deployment  update
~   vpc-native-clean-zombie-user-companies-cron                kubernetes:batch/v1:CronJob    update
~   vpc-native-clean-gifted-plus-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-private-deployment                              kubernetes:apps/v1:Deployment  update
~   vpc-native-validate-active-users-cron                      kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-history-day-clickhouse-cron      kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-digests-cron                            kubernetes:batch/v1:CronJob    update
~   vpc-native-channel-highlights-cron                         kubernetes:batch/v1:CronJob    update
~   vpc-native-user-profile-updated-sync-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-expire-super-agent-trial-cron                   kubernetes:batch/v1:CronJob    update
~   vpc-native-update-achievement-rarity-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-rotate-daily-quests-cron                        kubernetes:batch/v1:CronJob    update
~   vpc-native-squad-posts-analytics-refresh-cron              kubernetes:batch/v1:CronJob    update
~   vpc-native-post-analytics-clickhouse-cron                  kubernetes:batch/v1:CronJob    update
~   vpc-native-ws-deployment                                   kubernetes:apps/v1:Deployment  update
... and 11 other changes

@idoshamun idoshamun merged commit 7b4aa98 into main Apr 13, 2026
9 of 10 checks passed
@idoshamun idoshamun deleted the codex/channel-config-order branch April 13, 2026 19:40
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