Migrate persistence from pgo to kura#30
Merged
Merged
Conversation
Replace raw pgo queries with the kura data layer: - add kura schemas (chat, message, chatli_user, device, participant, attachment, callback, li, ldf_message) and chatli_repo (kura_repo) - rewrite chatli_db, chatli_user_db, chatli_device_db onto kura_query/kura_changeset/chatli_repo - pin kura v2.0.8 (jsonb string-scalar dump support) + kura_postgres v0.4.2, drop the local _checkouts override - add generated sql migrations and a dev docker-compose for local Postgres - switch config to the kura postgres backend
Unpinned rebar3_lint let CI fetch elvis_core 5.x, which rejects the existing elvis.config format and broke linting. Pin to 4.2.2 so CI and local agree. Also wrap an over-long kura_changeset:cast call in chatli_db to satisfy the 120-char line_length rule.
Taure
added a commit
that referenced
this pull request
Jun 24, 2026
Start version-controlling CLAUDE.md so the project notes live with the code (CLAUDE.md is no longer globally gitignored). Fix the stack line: persistence is kura (kura_postgres backend), not pgo (removed in #30).
Taure
added a commit
that referenced
this pull request
Jun 24, 2026
Start version-controlling CLAUDE.md so the project notes live with the code (CLAUDE.md is no longer globally gitignored). Fix the stack line: persistence is kura (kura_postgres backend), not pgo (removed in #30).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces raw
pgoqueries with the kura data layer.Changes
src/schemas/):chat,message,chatli_user,device,participant,attachment,callback,li,ldf_messageusingkura_schema+#kura_field{}chatli_repo(kura_repobehaviour)chatli_db,chatli_user_db,chatli_device_dbrewritten ontokura_query/kura_changeset/chatli_repokurav2.0.8 (includes jsonb string-scalar dump support, needed for text message payloads) andkura_postgresv0.4.2; addedrebar3_kurapluginsql/10_ldf.sql,sql/20_chatli.sqldocker-compose.ymlfor local Postgres;.gitignorecovers_checkouts/,.claude/,*.crashdumpVerification
rebar3 compile- clean (against pinned kura v2.0.8, no_checkoutsoverride)rebar3 ct- all 12 tests pass against Docker Postgres (users, chats, participants, message send/filter/history, attachments, devices, callbacks)