Skip to content

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 14:05
· 13 commits to main since this release
61d59ca

Change lists

  • A list that makes a person or a family (add_person, add_family) and then merges it into another with its own merge_person or merge_family (loser key:<key>) now skips both ops on a rerun or a --verify once the merge landed, and so does every op between them that names key:<key>. Before, the rerun made the object again and merged it a second time, and --verify reported both ops as not in the tree.

Added

  • gwt-ledger check --jsonl FILE|- answers many checks against one read of the ledger: one JSON object per line in, one JSON answer per line out, with done and the matching rows. A sweep that checks hundreds of searches no longer reads and normalises the whole ledger for each one. Each line goes through the same code as a single check, so the answers are the same. A bad line stops the batch with exit 2 and names the line. The single check does not change.
  • gwt-ledger scan add and scan check log which images of a book were read and print the ones nobody read yet, so a lane does not sweep the same images twice. The rows are ordinary ledger rows with the query <book> img <first> <last>; a read with no --person counts for everyone, and --skip keeps unread images as gaps. gwt-ledger void --person '' retracts only the rows logged with no person (#255).
  • gwt-apply update_person, update_event, update_place and update_family take an optional expect object: for fields of set, the value the object had when the list was written. A field someone changed since is a conflict in the dry run and in --apply, and nothing of the op is written; the conflict line shows the value the tree has now. A field that already has the new value is a skip, so a rerun and --verify of a landed list still pass. Dates compare as dates and places by the place they name. update_family takes no father or mother in expect, since it never replaces a parent. A list without expect behaves as before.

Changed

  • gwt-ledger check, add and void run about a third faster on a large ledger. normalize skips the accent strip for ASCII text, and the typo match sorts its candidate words once per query instead of once per word. The output is the same (#261).

Fixed

  • A refused gwt-queue command (exit 2) no longer writes the queue file. A rejected add --jsonl batch used to create a header-only queue on a new path, and every refused command rewrote an existing queue with the same rows. The file now keeps its bytes, and a queue that did not exist is not created. add --jsonl - also leaves stdin open for the caller.
  • gwt-ledger reads a row written by hand with found, negative, nothing, miss or another word of the import-tsv synonym map as that result. Before, every reader took such a row as not searched, so a lane ran a found record again; stats now counts these rows under hit, none or unproven instead of under their own words. The file and the row ids do not change. A result outside the vocabulary and a next_date that is not YYYY-MM-DD now get one note on stderr per command, with the count and the first file:line; such a next_date is never due, where before it was compared as text.
  • gwt-queue add --jsonl no longer slows down with the square of the batch. It looked for the highest task id, and with --dedupe scanned the whole queue for a match, once per line. It now reads the queue once per batch: 20,000 lines into an empty queue take under a second instead of half a minute. Ids, order, dedupe decisions and output are the same as before.
  • gwt-queue add --jsonl reads priority the way --priority does. A float or a bool (2.9, 2.0, 1e2, true) now stops the batch with exit 2 and writes nothing. Before, it was cut to an integer (2.9 became 2, true became 1). An integer string such as "+5" is still accepted, and an empty string is still refused (#253).
  • gwt-apply --verify and a rerun of a list that makes a person or family and then merges it into another no longer report the add and the merge as missing, and a second --apply writes nothing. The add skips when the winner carries the note of that merge.