Broken links in /analyses (HTTP 404, 55 links)

← All Specs

Broken links in /analyses (HTTP 404, 55 links)

Quest: Unassigned Priority: P100 Status: done Layer: Agora

Goal

Fix HTTP 404 errors on /analyses/ pages so all affected links return HTTP 200.

Context

The link checker reported broken /analyses links returning HTTP 404. Root cause was
that some analysis IDs were referenced in pageviews but did not have corresponding
entries in the analyses table.

Acceptance Criteria

☑ All 10 originally-affected /analyses URLs return HTTP 200
☑ All analyses in DB return HTTP 200 (0 broken)
☑ Stub entries created for missing analyses

Work Log

2026-04-13 — Slot 51 (minimax:51)

Investigated current state of /analyses broken links:

Verification:

  • Tested all 10 originally-affected URLs
  • Found 8 returned HTTP 200 (already fixed by prior work)
  • Found 2 returned HTTP 404:
- /analyses/SDA-2026-04-02-gap-apoe4-targeting
- /analyses/SDA-2026-04-02-gap-2026-04-01-gap-006

Root Cause:

  • These analysis IDs had pageview entries in site_pageviews table
  • But no corresponding entries existed in analyses table
  • Caused HTTP 404 when accessed
Fix Applied:
  • Created archived stub entries via upsert_analysis() with db_transaction
  • Entries use status=archived, minimal metadata
  • Both URLs now return HTTP 200
DB Changes (not committed to git - PostgreSQL is gitignored):

SDA-2026-04-02-gap-apoe4-targeting: status=archived, title=APOE4 targeting in neurodegeneration
SDA-2026-04-02-gap-2026-04-01-gap-006: status=archived, title=Gap 006 analysis (archived stub)

Verification After Fix:

200 /analyses/SDA-2026-04-02-gap-apoe4-targeting
200 /analyses/SDA-2026-04-02-gap-2026-04-01-gap-006
All analyses in DB returning 404: 0

Conclusion: All 10 originally-affected /analyses URLs now return HTTP 200.

File: f5f6a794-5f7c_broken_links_in_analyses_http_404_spec.md
Modified: 2026-05-01 20:13
Size: 2.1 KB