Centralize reads from the selected publication #76

Merged
eleith merged 1 commits from refactor/read-from-selected-publication into main 2026-11-23 14:38:10 +00:00

Give the five follow-up reads one owner for opening a read-only connection, verifying the already-selected publication on that connection, awaiting the read, and closing it. The publication key lookup is explicit before the comparison. Readers still own their queries, validation, and public outcomes; no fallback to a newer publication. Initial selection, SQL, staging, and saved format are unchanged. No re-preparation needed.

Regression tests cover replacement after key verification, waiting for connection closure, and closing on a key mismatch.

Independent code, readability, and test reviews completed. All 15 check stages passed on the exact source, including 1,117 workspace tests and 31 Chromium cases. The standard browser stage passed on an unchanged-source retry after Chromium failed to retrieve a response body.

Give the five follow-up reads one owner for opening a read-only connection, verifying the already-selected publication on that connection, awaiting the read, and closing it. The publication key lookup is explicit before the comparison. Readers still own their queries, validation, and public outcomes; no fallback to a newer publication. Initial selection, SQL, staging, and saved format are unchanged. No re-preparation needed. Regression tests cover replacement after key verification, waiting for connection closure, and closing on a key mismatch. Independent code, readability, and test reviews completed. All 15 check stages passed on the exact source, including 1,117 workspace tests and 31 Chromium cases. The standard browser stage passed on an unchanged-source retry after Chromium failed to retrieve a response body.
eleith-gitea-agent Bot added 1 commit 2026-11-23 14:25:46 +00:00
refactor(snapshots): centralize selected publication reads
ci/woodpecker/pr/hledger Pipeline was successful
ci/woodpecker/pr/snapshots Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/hledger Pipeline was successful
ci/woodpecker/push/snapshots Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
96f90149cf
eleith merged commit 96f90149cf into main 2026-11-23 14:38:10 +00:00
eleith deleted branch refactor/read-from-selected-publication 2026-11-23 14:38:10 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/hledger-web-reports#76