Skip to content

fix(collection-seeding): seed placeholder collections to fix CI collection IDs#1277

Open
fhennig wants to merge 2 commits into
mainfrom
fix/collection-seeder-placeholder-ids
Open

fix(collection-seeding): seed placeholder collections to fix CI collection IDs#1277
fhennig wants to merge 2 commits into
mainfrom
fix/collection-seeder-placeholder-ids

Conversation

@fhennig

@fhennig fhennig commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

On fresh DBs, the IDs for the covid resistance mutations are not right, they'd be 1, 2, 3, but on staging and prod they are 4, 5, 6. This causes issues when running E2E tests in CI:

image

We can't change the staging IDs now, and we don't want to introduce yet another switch for different IDs when deploying locally to a fresh, empty DB. My idea is thus, to simply cause the same offset as we have on staging, by inserting placeholder collections.

It's a bit stupid, but it works.

Alternatively, I guess we could wipe the staging DB once, and adjust the IDs in the config accordingly. Maybe that's the better option, actually.

Summary

  • COVID resistance mutation collections are hardcoded as IDs 4, 5, 6 in wastewaterConfig.ts
  • On a fresh DB (e.g. CI), the seeder assigned them IDs 1, 2, 3 instead, causing the wrong collections to be referenced
  • Adds a PlaceholderSource that seeds 3 dummy collections first, reserving IDs 1–3 so COVID resistance mutations land on 4, 5, 6 as expected

Test plan

  • Run collection seeder against a fresh DB and verify COVID resistance mutation collections receive IDs 4, 5, 6
  • Verify CI wastewater dashboard shows correct resistance mutations

🤖 Generated with Claude Code

fhennig and others added 2 commits June 11, 2026 18:16
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…CI collection IDs

COVID resistance mutation collections are hardcoded as IDs 4, 5, 6 in
wastewaterConfig.ts, but on a fresh DB the seeder assigned them 1, 2, 3.
Seeding 3 placeholder collections first reserves those IDs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Jun 11, 2026 4:24pm

Request Review

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