feat(writer-pipeline): WebDAV archive fallback + handball shortlist (BIT-22292 / BIT-22288) #11

Merged
spark merged 7 commits from feat/bit-21912-cf-cache-rules-script into main 2026-05-14 15:27:10 +01:00
Owner

Remaining commits from feat/bit-21912-cf-cache-rules-script not included in PR #8:

  • feat(writer-pipeline): WebDAV federation archive fallback for featured images (BIT-22292)
  • feat(writer-pipeline): require featured image and credits on WP drafts
  • feat(writer-pipeline): handball-only shortlist for andebol.net (BIT-22288)
  • docs + fix commits for Cloudflare CF Free plan and perf measurements

Required by BIT-22306 smoke test acceptance.

Remaining commits from feat/bit-21912-cf-cache-rules-script not included in PR #8: - feat(writer-pipeline): WebDAV federation archive fallback for featured images (BIT-22292) - feat(writer-pipeline): require featured image and credits on WP drafts - feat(writer-pipeline): handball-only shortlist for andebol.net (BIT-22288) - docs + fix commits for Cloudflare CF Free plan and perf measurements Required by BIT-22306 smoke test acceptance.
spark added 7 commits 2026-05-14 15:25:56 +01:00
fix(deploy): correct cf-cache-rules-apply.sh for CF Free plan (BIT-21922)
Tests / bridge tests (push) Successful in 16s
Tests / writer-pipeline tests (push) Successful in 19s
Tests / frontend lib tests (push) Successful in 16s
95dbcbd9af
Five bugs found and fixed during live application to andebol.net and
newsproject.bitreport.pt:

- Endpoint was /entrypoints (plural); CF API requires /entrypoint (singular)
- origin_cache_control alone does not cache HTML on CF Free; added
  edge_ttl: {mode: override_origin, default: 60} which is required
- starts_with operator not supported on CF Free plan; replaced with contains
- newsproject.bitreport.pt has no own CF zone; zone lookup must use bitreport.pt
- Verification used curl -I (HEAD); rule expression matches GET only, so
  verification must use GET requests (-D - -o /dev/null)

Paperclip-Issue: BIT-21922
docs(perf): update PERFORMANCE_BASELINE.md with Cloudflare HIT measurements (BIT-21912)
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 15s
Tests / frontend lib tests (push) Successful in 13s
a1107167d3
Cache Rule applied 2026-05-12T22:39 UTC; both zones now return cf-cache-status:
HIT on repeat GET /. TTFB on HIT ~81-130 ms (down from ~220-380 ms DYNAMIC).

Co-Authored-By: Paperclip <[email protected]>
Document GET-based curl checks, Free-plan contains paths, and Edge TTL
note aligned with cf-cache-rules-apply.sh. Add baseline operator footnote
and independent HIT smoke.

Co-authored-by: Cursor <[email protected]>
Clarify intro for issue_children_completed parent reopen. Extend
objective #2 traceability with BIT-21847/BIT-21912 aligned to baseline.

Co-authored-by: Cursor <[email protected]>
Enforce BIT-22288: extract og/twitter images at ingest, RSS image
enclosures, optional HTML refetch before publish, upload to WP media
with caption and alt_text, and set featured_media on draft posts.
Fail closed when no usable image URL exists. Optional ANDEBOL_WP_SITE_DOMAIN
for X-Site-Domain on bridge-hosted WordPress.

Co-authored-by: Cursor <[email protected]>
feat(writer-pipeline): WebDAV federation archive fallback for featured images
Tests / writer-pipeline tests (push) Successful in 14s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 15s
6819297e0d
When RSS/HTML provide no image, optional WRITER_WEBDAV_* env enables PROPFIND
depth-1 listing, headline-based file pick, Basic-auth GET, and WP caption from
Credit___filename pattern or WRITER_WEBDAV_DEFAULT_CREDIT (BIT-22292).

Co-authored-by: Cursor <[email protected]>
feat(writer-pipeline): handball-only shortlist for andebol.net
Tests / writer-pipeline tests (push) Successful in 13s
Tests / bridge tests (push) Successful in 15s
Tests / frontend lib tests (push) Successful in 15s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 12s
Tests / frontend lib tests (pull_request) Successful in 13s
72a5ccd65c
Disable Record/SAPO/Guardian world feeds that are not handball-scoped
(BIT-22288). Shortlist andebol.net items with topic handball only so new
drafts align with owner editorial rules.

Co-authored-by: Cursor <[email protected]>
spark merged commit 9d03d489e0 into main 2026-05-14 15:27:10 +01:00
Sign in to join this conversation.