Commit Graph

6 Commits

Author SHA1 Message Date
albertfj114
857f1f3b3a fix: update findDuplicateChurch JSDoc to reflect all 15 matching passes 2026-03-11 06:55:37 -04:00
albertfj114
a046928ed0 feat: add discovermassId to church-matcher ExistingChurch and ChurchCandidate
Add discovermassId field to ExistingChurch interface and ChurchCandidate type,
insert a dedicated matching pass in findDuplicateChurch, and update all 15 importer
push blocks plus 16 loadExistingChurches select queries to include the new field.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 06:52:05 -04:00
albertfj114
2706708c51 feat: add discovermassId field to Church schema
Add discovermassId as a unique, optional field to the Church model
to support importing churches from discovermass.com (20,284 US churches).

The field follows the same pattern as other source ID fields:
- String type, optional, unique
- Maps to 'discovermass_id' database column
- Includes corresponding database index

Generated Prisma client successfully with 'npx prisma generate'
2026-03-11 06:41:58 -04:00
albertfj114
6e9ada7fdf fix: harden discovermass plan against coord validation and regex slowdown
- Validate lat/lng from daddr= (bounds check + isFinite) before storing
- Cap HTML to 100KB before regex matching to prevent backtracking on large pages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 22:34:51 -04:00
albertfj114
bbef80a782 docs: add discovermass.com importer spec and implementation plan
20,284 US churches with mass/confession/adoration schedules.
10s crawl delay (robots.txt), Docker deployment via scheduler.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 21:49:51 -04:00
albertfj114
0e468bcb94 docs: add Brazil + Spain importers design spec and implementation plan
Two new importers:
- horariodemissa.com.br: 8,895 Brazilian churches + 28,523 mass times
- misas.org: 17,919 Spanish churches with coordinates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 19:50:54 -04:00