Skip to content

feat(db): add peek script for inspecting database contents - #110

Merged
carhartlewis merged 2 commits into
mainfrom
lewis/test-fixes
Aug 11, 2026
Merged

feat(db): add peek script for inspecting database contents#110
carhartlewis merged 2 commits into
mainfrom
lewis/test-fixes

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Opened automatically when lewis/test-fixes was pushed.

The title is written from the diff and rewritten as you push, because this is squashed onto main and the title becomes the commit subject and the changelog line. Retitle it yourself and it is yours — the automation stops touching it.


Summary by cubic

Add a peek script in packages/db to inspect tracked domains, event hosts, form submissions, and agent definitions. Add test DB isolation via TEST_DATABASE_URL (suffix _test), CI on crm_test, bun run db:test to create/migrate, and client selects it when NODE_ENV=test.

Written for commit e4a42ca. Summary will update on new commits.

Review in cubic

Introduced a new script that logs various database query results, including tracked domains, tracked event hosts, form submissions, and agent definitions. This will aid in monitoring and debugging database interactions.
@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
crm-agent Ready Ready Preview Aug 11, 2026 2:59am
crm-api Ready Ready Preview Aug 11, 2026 2:59am
crm-app Ready Ready Preview Aug 11, 2026 2:59am

Request Review

Updated the database configuration to include a TEST_DATABASE_URL for integration tests. Modified the CI workflow to use a test database, ensuring that tests do not affect the main database. Added a new script for creating and migrating the test database, and updated the client to select the appropriate database based on the environment.
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