List unlinked places and unmapped words under Sources, fix them in code with the unmapped skill

Settings > Sources > Unmapped shows the place texts no place resolves, with
their roles' countries and companies, and the host words no table maps, and
copies both as text. Prep fingerprints places.seed(), so a town or spelling
added to the code is seeded and every open role is mapped again at the next
prep. app prep unlinked lists the places on the command line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 13:06:22 +02:00
1 parent ae978594b4
commit 06ff9f549b
13 files changed
+313 -43

No files matched your search

+10
View File
@@ -319,6 +319,16 @@ def test_unresolved_texts_are_listed_most_roles_first(store: Store) -> None:
assert store.unresolved_places(limit=1) == [("oberkochen", "Oberkochen", 2)]
def test_unlinked_texts_carry_their_roles_countries_and_companies(store: Store) -> None:
upsert(store, posting("1", place="Oberkochen", company="Zeiss", country="DE"))
upsert(store, posting("2", place="Oberkochen", company="Zeiss"))
upsert(store, posting("3", place="Oberkochen; Remote", company="Hensoldt", country="DE"))
upsert(store, posting("4", place="Remote"))
assert store.unlinked_places() == [{
"fold": "oberkochen", "text": "Oberkochen", "roles": 3,
"countries": [["DE", 2], ["", 1]], "companies": ["Zeiss", "Hensoldt"]}]
def test_an_alias_links_what_it_names(store: Store) -> None:
upsert(store, posting("1", place="Kbh. K"))
upsert(store, posting("2", place="Copenhagen"))