Skip to content

feat: implement backend database schema, repository layer, and integration tests - #49

Merged
vestor-dev merged 3 commits into
CortexRail:mainfrom
martinvibes:PostgreSQL_persistence_layer
Jul 18, 2026
Merged

feat: implement backend database schema, repository layer, and integration tests#49
vestor-dev merged 3 commits into
CortexRail:mainfrom
martinvibes:PostgreSQL_persistence_layer

Conversation

@martinvibes

Copy link
Copy Markdown
Contributor

Description

feat: implement backend database schema, repository layer, and integration tests) for assets, agents, licenses, reports, and event logs.

closes #9

…ation tests for assets, agents, licenses, reports, and event logs.

@vestor-dev vestor-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the cargo.lock file and it should be good to go

@vestor-dev vestor-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vestor-dev
vestor-dev merged commit 740193e into CortexRail:main Jul 18, 2026
Bolajiomo99 added a commit to Bolajiomo99/cortex-protocols that referenced this pull request Jul 19, 2026
…ortexRail#49

PostgreSQL_persistence_layer merged code that requires `pg` and
`@testcontainers/postgresql` without adding them to package.json, and
referenced `./routes/internal` from app.js without ever committing that
file — so a fresh install can't boot the app or run the test suite at
all. Also bumps the Stellar SDK compat shim since installed 13.x
releases renamed `SorobanRpc` to `rpc`, breaking config/stellar.js on
load.

Reconstructs routes/internal.js (GET /api/v1/internal/db-stats) from
the existing (already-committed) test contract in internal.test.js.
vestor-dev pushed a commit that referenced this pull request Jul 21, 2026
* fix(backend): repair boot-blocking dependency and file gaps from PR #49

PostgreSQL_persistence_layer merged code that requires `pg` and
`@testcontainers/postgresql` without adding them to package.json, and
referenced `./routes/internal` from app.js without ever committing that
file — so a fresh install can't boot the app or run the test suite at
all. Also bumps the Stellar SDK compat shim since installed 13.x
releases renamed `SorobanRpc` to `rpc`, breaking config/stellar.js on
load.

Reconstructs routes/internal.js (GET /api/v1/internal/db-stats) from
the existing (already-committed) test contract in internal.test.js.

* feat(stellar): add testnet friendbot funding endpoint and frontend integration

Adds POST /api/v1/stellar/fund so developers can fund a Testnet account
via Stellar Friendbot without leaving the app: blocked on Mainnet (403),
rate-limited to 1 request per IP per hour (429), and validated against
malformed public keys (400). The wallet page shows a "Fund with Testnet
XLM" button only when connected to Testnet with a 0 XLM balance, and
refreshes the balance automatically after funding.

Also adds Jest + React Testing Library to the frontend (previously had
no test tooling) to cover the new button's states.

Closes #33.

* chore(frontend): remove package-lock.json

Frontend now uses pnpm (frontend/pnpm-lock.yaml), making the npm
package-lock.json redundant. Per maintainer request on the PR.
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.

Build full PostgreSQL persistence layer with migrations, repositories, and connection pooling

2 participants