DataHub fixes session (20–21 Nov 2026)

Goal: fix the DataHub problems that get in the way of publishing data stories and datasets, as PRs to staging in datopian/datahub-next.

Outcome

ItemState
Header leak (P0, datahub-next-i2i)Already fixed by #959 on 9 Oct; checked in production; bead closed
Front-matter publish date (#966, datahub-next-a8x)Rebased onto the public-site redesign; also covers the redesigned post cards and homepage previews; Codex-reviewed; unit tests and lint pass; awaiting review
Story link previews and SEO (#989, factory-but.3.1)New PR: preview image (front-matter image, else site thumbnail), og:type=article, per-page canonical URL. Publication metadata (datahub-next-c8l) was already done; bead closed
E2E never runs (#990, datahub-next-nkf)E2E hasn't passed since 2026-03-19: previews sit behind Vercel SSO and the wait step times out. PR adds the Vercel automation bypass; needs a secret set by a human
CLI/API permissions (datahub-next-cyz.1)Done by Ola's #978; bead closed
Scheduled publishing (factory-but.3.14)Not started; needs Rufus's choice (below)

Incident

From about 20:38 to 21:17 UTC on 20 Nov every post and dataset page on datahub.io returned 404. A migration changed the type of User.email; pooled connections kept prepared queries built for the old type, and the post page turned the database error into a 404. Ola set pgbouncer=true on the pooled database URL and documented it (35bbff7). The remaining follow-ups (a smoke test after each deploy, and returning a 500 rather than a 404 on database errors) are in datahub-next-6wc.

Open decisions

  • Scheduled publishing. README front matter is parsed in the separate Cloudflare Worker repo, so this is bigger than first thought. Recommended: a nullable Post.publishedAt column, filled from the README date by a scheduled Inngest job that also refreshes the cache when a post goes live; lists and pages hide posts until then (about a day). Backup: a Factory GitHub Action that runs dh publish on the date.
  • Vercel bypass secret for E2E (#990): create it in the Vercel project under Deployment Protection, then add it to the repo's GitHub secrets as VERCEL_AUTOMATION_BYPASS_SECRET.

New beads (datahub-next)

  • datahub-next-6wc: smoke test after each deploy; no 404 on database errors.
  • datahub-next-nkf: E2E hasn't run since March.
  • datahub-next-4kh: a story fixture for E2E (date, preview image, canonical URL).
  • datahub-next-j7h: the committed husky pre-commit hook is stale and blocks commits after pnpm install.
Built with LogoFlowershow