fix(poi): flatten poi list --json to match markers --json #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/7/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
ar-edit poi list --jsonemitted a confusingly double-nested shape:The outer key
poisactually held per-sourceSourcePoisgroups, each of which re-used the keypois, so a consumer had to traversepois[i].pois[j]to reach a POI.Fix
Emit a flat list, tagging each POI with its
source_id:This mirrors
markers --json(flat list,source_idper item) so the two CRDT-annotation commands stay consistent for scripting. The per-itemsource_idalso disambiguates the per-sourcepoi-NNNid namespace (e.g. two sources can each havepoi-001).Test
test_063_marker_annotationsupdated to assert the flat shape (pois[0].id,pois[0].source_id). Verified end-to-end with two sources; fullar-editcrate suite (127 tests) and fmt pass.🤖 Generated with Claude Code