Skip to content

Deploy the library server: highlights import and sync on Postgres (#46) - #47

Merged
sawradip merged 2 commits into
prodfrom
main
Nov 1, 2026
Merged

sawradip merged 2 commits into
prodfrom
main

Conversation

@sawradip

@sawradip sawradip commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Deploys main to prod, which redeploys the Coolify app chalk-library (library.pathshalax.com).

What goes live: #46. lines/sync and import of the highlights API send their rows to Postgres as text ($n::text::jsonb). They failed in production with "cannot call jsonb_to_recordset on a non-array", because postgres.js sent the JSON as a string. CI now also runs the highlights tests on a real Postgres.

npm: release.json is still 0.1.4, which is already on npm, so nothing is published.

After the deploy: ChalkBook's highlights:move -- --go (runagent-dev/chalkbook-internal#33).

🤖 Generated with Claude Code

sawradip and others added 2 commits November 2, 2026 01:12
…xt (postgres.js sent them as a JSON string); tests and CI on a real Postgres

The import failed in production with "cannot call jsonb_to_recordset on a non-array": for a $n::jsonb parameter postgres.js
encodes the JSON text again, so Postgres got a JSON string instead of the array. Casting through text ($n::text::jsonb) sends it
as it is. PGlite, which the tests used, passes it unchanged, so they did not show it: TEST_POSTGRES_URL runs them on a real
Postgres (14 of 16 fail there without this fix), and CI does so with a Postgres service.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(library-server): highlights import and sync fail on Postgres (JSON parameter sent as a string)
@sawradip
sawradip merged commit 754147e into prod Nov 1, 2026
2 checks passed
@sawradip sawradip mentioned this pull request Nov 2, 2026
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