mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
62232ec87e
Review findings on the place identities and trip list links: - The assistant offers PlacesLibraryMcp, PlaceIdentitiesMcp and TripCollectionsMcp with the collections group (done with the CI fix). - Undoing a merge restores the entries as they were: the merge logs, in its moved_link_ids JSON, each link it moved and each link it made with the use that link names, and whether the merged side became an own place only for the merge. The undo deletes what the merge made and moves the rest back, and only touches a link still in the leading place naming the same use, so a link id SQLite hands out again never moves someone else's link. The sweep counts a merge as spent by the same rule. Same unreleased migration, no schema change. - A use can be taken out of an own place by the user's own link row also once its trip or list is out of reach; the answer then holds no entry, and the place left can be merged again. - A dismissed duplicate is kept by one use of each side (an own place by its first link) and matched by the uses each entry holds, so it stays out when an entry becomes an own place or a merge is undone. - link() checks the named uses with one targeted read instead of reading every use of the user, and the library reads its rows in blocks of 500 ids. - Saved place reorders and the trip tags of a copy run one statement after the other again; a copy takes the first spelling of a tag name, as before. - Unlinking a list from a trip takes place_edit alone, so a link to a list the writer cannot open can be taken off; a member leaving or taken off the trip takes the links whose list nobody left on it can open. - The linked lists and their map places sort by lower(name), then by id, the same on both engines. - list_all_places names the own:<id> keys and identity_id (MCP and wiki); the undo, unlink and trip unlink descriptions say what they do now; README counts 451 tools.