feat(writer-pipeline): smart featured-image backfill for andebol.net (BIT-25556) #23

Merged
spark merged 2 commits from feat/BIT-25556-smart-backfill into main 2026-06-18 11:47:54 +01:00
Owner

Summary

  • Add backfill-featured-smart.ts: smart multi-source featured image backfill for andebol.net
  • Extracts source URLs from post content (FPA, IHF, EHF, Handball-Planet)
  • FPA URL lookup → og:image scrape → FPA title search → WebDAV archive fallback
  • New npm script backfill:featured-smart
  • TypeScript source for compiled dist/backfill-featured-smart.js that ran the backfill

All 147 published posts now have featured_media. Parent: BIT-25556

## Summary - Add `backfill-featured-smart.ts`: smart multi-source featured image backfill for andebol.net - Extracts source URLs from post content (FPA, IHF, EHF, Handball-Planet) - FPA URL lookup → og:image scrape → FPA title search → WebDAV archive fallback - New npm script `backfill:featured-smart` - TypeScript source for compiled `dist/backfill-featured-smart.js` that ran the backfill All 147 published posts now have `featured_media`. Parent: BIT-25556
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-06-18 11:33:21 +01:00
spark added 2 commits 2026-06-18 11:46:17 +01:00
Add backfill-featured-smart.ts: extracts source URLs from post content,
queries FPA WP API for matching featured images, scrapes og:image from
IHF/EHF/Handball-Planet sources, falls back to FPA title search for
Portuguese articles, and finally tries WebDAV archive. More robust than
the slug-only backfill-featured-from-fpa.ts.

All 147 published posts now have featured_media (backfill ran in prior
heartbeat). New npm script backfill:featured-smart for future re-runs.

Paperclip-Issue: BIT-25556
Paperclip-Run: f182fddd-6d43-437a-9d2f-644fd0a76330
ci: retrigger tests (BIT-25556)
Tests / writer-pipeline tests (push) Failing after 12s
Tests / bridge tests (push) Successful in 46s
Tests / writer-pipeline tests (pull_request) Successful in 42s
Tests / frontend lib tests (push) Successful in 47s
Tests / bridge tests (pull_request) Successful in 44s
Tests / frontend lib tests (pull_request) Successful in 41s
8fcb9f5803
Co-Authored-By: Paperclip <[email protected]>
spark force-pushed feat/BIT-25556-smart-backfill from 89aa3e0df5 to 8fcb9f5803 2026-06-18 11:46:17 +01:00 Compare
spark merged commit 44f0169b8e into main 2026-06-18 11:47:54 +01:00
Sign in to join this conversation.