mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-06-10 08:54:34 +02:00
PR #11 (cleanup #2) deleted the /api/place* HTTP handlers but left their orchestrator functions in lib/place_detail.py as dead code. Pre-flight for the original Task #27 (delete google_places.py) surfaced that _enrich_with_google is NOT a no-caller leaf — it's called by the unreachable get_place_detail. A full caller-graph trace showed ~90% of place_detail.py is dead orchestration. Scope expanded (Matt confirmed in chat) to remove the whole dead cluster: - lib/google_places.py (entire file) - place_detail.py: get_place_detail, get_place_by_wikidata, _enrich_with_google, _apply_google_data, _enrich_with_overture, _enrich_with_wiki_index, _enrich_wiki_links, _parse_nominatim, _parse_nominatim_address, _parse_overpass, _build_overpass_query, cache_get, cache_put, _get_db + their now-unused imports/constants (json, time, requests, osm_categories, NOMINATIM_URL, etc.) KEEP only lookup_wiki_index + _get_wiki_index_db (the wiki_enrich_api survivor path) — preserved byte-exact. Module docstring refreshed. Flagged separately (not touched): overture.py + osm_categories.py are now orphaned (only consumers were the deleted cluster); stale docstrings; the deployment_config.py:9 catalog comment. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acquisition | ||
| processors | ||
| __init__.py | ||
| address_book.py | ||
| address_book_test.py | ||
| api.py | ||
| aurora_nav_tool.py | ||
| auth.py | ||
| deployment_config.py | ||
| dispatcher.py | ||
| embedder.py | ||
| enricher.py | ||
| extractor.py | ||
| filing.py | ||
| ingester.py | ||
| key_manager.py | ||
| netsyms.py | ||
| netsyms_api.py | ||
| netsyms_test.py | ||
| new_pipeline.py | ||
| organizer.py | ||
| osm_categories.py | ||
| overture.py | ||
| peertube_collector.py | ||
| peertube_scraper.py | ||
| place_detail.py | ||
| query_router.py | ||
| query_router_test.py | ||
| scraper_runner.py | ||
| status.py | ||
| utils.py | ||
| web_scraper.py | ||
| wiki_enrich_api.py | ||
| wiki_enrich_api_test.py | ||
| wiki_rewrite.py | ||
| wiki_rewrite_api.py | ||
| wiki_rewrite_api_test.py | ||
| zim_monitor.py | ||