feat: simplify LawNet Postgres store #60

Merged
dernbu merged 2 commits from feat/simplify-postgres-lawnet-store into main 2026-06-15 19:08:58 +02:00
Owner

Summary

  • Simplify LawNet Postgres listing/detail paths to use catalog.lawnet_judgment directly
  • Replace prefixed LawNet result IDs with plain numeric IDs in store responses and fixtures
  • Split citation lookup into an ID query plus shared getJudgmentById detail assembly
  • Remove the old judgment builder/helper paths from the Postgres store

Verification

  • pnpm typecheck
  • pnpm test src/server/stores/lawnet/filesystem-store.test.ts src/server/stores/lawnet/postgres-store.test.ts

Note: Postgres integration tests are skipped unless DATABASE_URL is set.

## Summary - Simplify LawNet Postgres listing/detail paths to use `catalog.lawnet_judgment` directly - Replace prefixed LawNet result IDs with plain numeric IDs in store responses and fixtures - Split citation lookup into an ID query plus shared `getJudgmentById` detail assembly - Remove the old judgment builder/helper paths from the Postgres store ## Verification - `pnpm typecheck` - `pnpm test src/server/stores/lawnet/filesystem-store.test.ts src/server/stores/lawnet/postgres-store.test.ts` Note: Postgres integration tests are skipped unless `DATABASE_URL` is set.
feat: simplify postgres store
Some checks failed
CI / merge-check (pull_request) Failing after 1m8s
3aee9c7727
dernbu force-pushed feat/simplify-postgres-lawnet-store from 3aee9c7727
Some checks failed
CI / merge-check (pull_request) Failing after 1m8s
to 7cf26d36a4
Some checks failed
CI / merge-check (pull_request) Successful in 1m6s
Deploy / deploy-production (push) Has been cancelled
Deploy / deploy-staging (push) Has been cancelled
2026-06-15 19:06:27 +02:00
Compare
dernbu merged commit 7cf26d36a4 into main 2026-06-15 19:08:58 +02:00
dernbu deleted branch feat/simplify-postgres-lawnet-store 2026-06-15 19:08:58 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dernbu/lawnet-scraper!60
No description provided.