Skip to content

fix(mistakes): import every catalogue row, also several from one KB document - #25

Merged
willynikes2 merged 1 commit into
masterfrom
fix/seed-key
Oct 14, 2026
Merged

willynikes2 merged 1 commit into
masterfrom
fix/seed-key

Conversation

@willynikes2

Copy link
Copy Markdown
Owner

The seed key named only the KB document, so a second mistake from the same document was treated as a repeat: on the first live import, 21 of 87 rows were skipped.

The key now names the document and the mistake (seed:<kb_id>:<hash of title>). Rows already imported under the older key are recognised by document and title, so they are not doubled, and a missing KB copy is still retried.

Tests: two new cases in tests/mistakes-import.test.js; suite 315/315. Already run against the live ledger: 21 added, 66 recognised; a second run adds nothing.

🤖 Generated with Claude Code

…ocument

The seed key named only the KB document, so a second mistake from the same document was taken for a
repeat (21 of 87 rows were skipped). The key now names the document and the mistake; rows already
imported under the older key are recognised and not doubled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@willynikes2
willynikes2 merged commit e7306fc into master Oct 14, 2026
9 checks passed
@willynikes2
willynikes2 deleted the fix/seed-key branch October 14, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant